:root {
  --ink: #eef7ff;
  --muted: #a8b6c7;
  --navy: #07111f;
  --navy-2: #0b1a2d;
  --surface: #10243a;
  --line: rgba(191, 220, 241, 0.18);
  --green: #39e6a3;
  --green-dark: #063c2b;
  --yellow: #ffcc47;
  --blue: #4388ff;
  --max: 1180px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--navy);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 5%, rgba(67, 136, 255, 0.13), transparent 30rem),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--navy);
  background: var(--yellow);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  min-height: 5rem;
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, width 180ms ease, padding 180ms ease;
}
.site-header.is-scrolled {
  width: 100%;
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  background: rgba(7, 17, 31, 0.9);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  aspect-ratio: 1;
  color: var(--navy);
  background: var(--green);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0;
  transform: rotate(-8deg);
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover { color: var(--green); }
.nav-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(30rem, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  width: min(calc(100% - 2rem), var(--max));
  min-height: calc(100vh - 5rem);
  min-height: calc(100svh - 5rem);
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.status-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.5rem;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 0.35rem rgba(255, 204, 71, 0.12);
}

h1, h2, h3, p { overflow-wrap: break-word; }
h1 {
  max-width: 8ch;
  margin: 0;
  font-size: clamp(3.3rem, 6.8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}
.hero-lead {
  max-width: 38rem;
  margin: 2rem 0 0;
  color: #c6d3df;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-weight: 850;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--navy); background: var(--green); border-color: var(--green); }
.button-primary:hover { background: #65efb8; }
.button-ghost:hover { border-color: var(--green); }
.notice-inline { margin: 1.1rem 0 0; color: var(--muted); font-size: 0.85rem; }

.hero-visual {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -0.8rem 1.4rem 1.2rem -1rem;
  z-index: -1;
  border: 1px solid rgba(57, 230, 163, 0.38);
}
.hero-visual img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-visual figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.hero-visual figcaption span:first-child { color: var(--yellow); font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; }

.court-section, .contact-section, .legal-section {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.72fr); column-gap: 5rem; align-items: end; margin-bottom: 3rem; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .opening-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.section-heading.compact { grid-template-columns: minmax(0, 0.8fr) minmax(16rem, 1fr); }

.court-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.court-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  min-height: 29rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
}
.court-card-padel { color: white; background: #155dcc; }
.court-card-soccer { color: #eafff6; background: #07543b; }
.court-number { color: rgba(255,255,255,0.58); font-size: 0.85rem; font-weight: 900; }
.card-label { margin: 0 0 0.45rem; font-size: 0.75rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.72; }
.court-card h3 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -0.04em; }
.dimension { margin: 0.75rem 0 0; font-size: 1.15rem; font-weight: 800; }
.court-diagram {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  left: clamp(1rem, 3vw, 2.5rem);
  height: 48%;
  border: 2px solid rgba(255,255,255,0.58);
  opacity: 0.75;
}
.court-diagram::before, .court-diagram::after { content: ""; position: absolute; }
.padel-diagram::before { top: 0; bottom: 0; left: 50%; border-left: 2px solid rgba(255,255,255,0.58); }
.padel-diagram::after { top: 24%; right: 0; bottom: 24%; left: 0; border-top: 2px solid rgba(255,255,255,0.58); border-bottom: 2px solid rgba(255,255,255,0.58); }
.soccer-diagram::before { top: 50%; left: 50%; width: 4.7rem; height: 4.7rem; border: 2px solid rgba(255,255,255,0.58); border-radius: 50%; transform: translate(-50%, -50%); }
.soccer-diagram::after { top: 0; bottom: 0; left: 50%; border-left: 2px solid rgba(255,255,255,0.58); }
.court-diagram span::before, .court-diagram span::after { content: ""; position: absolute; top: 27%; bottom: 27%; width: 14%; border: 2px solid rgba(255,255,255,0.58); }
.court-diagram span::before { left: -2px; border-left: 0; }
.court-diagram span::after { right: -2px; border-right: 0; }

.opening-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.opening-date {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 1.5rem;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 1rem 1rem 0 var(--green-dark);
  transform: rotate(-2deg);
}
.date-day { grid-row: 1 / 3; font-size: clamp(6rem, 14vw, 11rem); font-weight: 950; line-height: 0.76; letter-spacing: -0.09em; }
.date-month { font-size: clamp(1.5rem, 4vw, 3rem); font-weight: 950; line-height: 0.85; }
.date-year { font-size: 1rem; font-weight: 900; letter-spacing: 0.22em; }
.opening-copy p:last-child { max-width: 42rem; margin: 1.8rem 0 0; color: var(--muted); font-size: 1.08rem; }

.contact-section { border-bottom: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: var(--line); }
.info-block { display: flex; gap: 1rem; min-height: 10rem; padding: 1.6rem; background: var(--navy-2); }
.info-icon { color: var(--green); font-size: 1.6rem; font-weight: 900; }
.info-block h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.info-block p { margin: 0; color: var(--muted); }
.contact-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.85rem; }

.legal-section { padding-bottom: 5rem; }
.legal-stack { display: grid; gap: 0.75rem; }
details { border: 1px solid var(--line); background: rgba(16, 36, 58, 0.72); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.7rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 850;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
.summary-icon { color: var(--green); font-size: 1.8rem; font-weight: 400; transition: transform 180ms ease; }
details[open] .summary-icon { transform: rotate(45deg); }
.legal-content { max-width: 54rem; padding: 0 1.25rem 2rem; color: #c8d5e2; }
.legal-content h3 { margin: 2rem 0 0.5rem; color: var(--ink); font-size: 1.1rem; }
.legal-content p { margin: 0.65rem 0; }
.template-warning { padding: 1rem; color: #211900; background: var(--yellow); }
mark, .required-inline { padding: 0.08em 0.25em; color: #2c2200; background: var(--yellow); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-disclaimer { margin: 1rem 0 0; color: var(--muted); font-size: 0.85rem; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 3rem;
  align-items: center;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 1rem; justify-self: end; }
.site-footer a:hover { color: var(--green); }
.copyright { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 5rem; }
  .hero-copy { max-width: 48rem; }
  .hero-visual { width: 92%; margin-left: auto; }
  .section-heading, .section-heading.compact { grid-template-columns: 1fr; gap: 1rem; }
  .opening-section { grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-block { min-height: auto; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 5rem; }
  .site-header { min-height: 4.5rem; }
  .nav-toggle {
    display: grid;
    place-content: center;
    gap: 0.38rem;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0.3rem;
  }
  .nav-toggle span:not(.sr-only) { display: block; width: 1.2rem; height: 2px; background: currentColor; transition: transform 180ms ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    background: rgba(7, 17, 31, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 0.75rem 0; }
  .hero { padding: 4rem 0 5rem; }
  h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .hero-visual { width: calc(100% - 0.4rem); }
  .hero-visual figcaption { flex-direction: column; gap: 0.2rem; }
  .court-grid { grid-template-columns: 1fr; }
  .court-card { min-height: 25rem; }
  .opening-section { grid-template-columns: 1fr; }
  .opening-date { max-width: 30rem; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-self: start; }
  .copyright { grid-column: auto; }
}

@media (max-width: 430px) {
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .date-day { font-size: 7rem; }
  .court-card { padding: 1.35rem; }
  .court-diagram { right: 1.35rem; bottom: 1.35rem; left: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  .site-header, .hero-actions, .skip-link { display: none; }
  body { color: #111; background: #fff; }
  body::before { display: none; }
  .hero, .court-section, .opening-section, .contact-section, .legal-section, .site-footer { width: 100%; color: #111; }
  .hero { min-height: auto; }
  .hero-visual { transform: none; box-shadow: none; }
  .court-card { min-height: 16rem; print-color-adjust: exact; }
  .opening-date { box-shadow: none; print-color-adjust: exact; }
  details { background: #fff; border-color: #aaa; }
  details:not([open]) > *:not(summary) { display: block; }
  .legal-content, .opening-copy p:last-child, .section-heading > p:last-child { color: #222; }
}
