@layer reset, base, theme, components, utilities;

/* ==========================================================================
   1. RESET & BASE LAYER
   ========================================================================== */
@layer reset {
  :where(html, body, div, span, h1, h2, h3, h4, p, ul, ol, li, figure, table, tbody, tr, td, button, a) {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  :where(img, svg, iframe) {
    display: block;
    max-width: 100%;
  }

  :where(ul, ol) {
    list-style: none;
  }

  :where(button, input, select, textarea) {
    font: inherit;
    color: inherit;
  }

  :where(a) {
    color: inherit;
    text-decoration: none;
  }
}

/* ==========================================================================
   2. DESIGN TOKENS & THEME LAYER (STRICTLY LIGHT MODE)
   ========================================================================== */
@layer theme {
  :root {
    /* Tier 1: Brand Palette Extracted from Wild Padel Logo */
    --brand-yellow: #FED300;
    --brand-yellow-hover: #F2C800;
    --brand-yellow-tint: #FFFBEB;
    --brand-yellow-Subtle: #FEF3C7;

    --brand-slate: #313E47;
    --brand-slate-deep: #182229;
    --brand-slate-body: #4A5B68;
    --brand-slate-muted: #6C7D8C;

    --accent-court-blue: #0284C7;
    --status-open: #10B981;

    /* Tier 2: Airy Light-Mode Surfaces */
    --surface-page: #FFFFFF;
    --surface-subtle: #F6F8FA;
    --surface-card: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.88);

    --border-hairline: rgba(49, 62, 71, 0.08);
    --border-soft: rgba(49, 62, 71, 0.14);

    /* Tier 3: Typography (Primary: Montserrat | Secondary: Poppins) */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Tier 4: Elevation, Spacing & Radii */
    --shadow-xs: 0 2px 8px rgba(24, 34, 41, 0.04);
    --shadow-sm: 0 8px 24px rgba(24, 34, 41, 0.05);
    --shadow-md: 0 18px 42px rgba(24, 34, 41, 0.07);
    --shadow-lg: 0 28px 64px rgba(24, 34, 41, 0.10);
    --shadow-yellow: 0 10px 26px rgba(254, 211, 0, 0.32);

    --radius-sm: 0.75rem;
    --radius-md: 1.125rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-pill: 9999px;

    --container-max: 76rem; /* 1216px for optimal breathing room */
    --section-space: clamp(4.75rem, 7vw, 7.25rem);
  }
}

/* ==========================================================================
   3. BASE TYPOGRAPHY & DOCUMENT RHYTHM
   ========================================================================== */
@layer base {
  html {
    scroll-behavior: smooth;
    color-scheme: light;
    background-color: var(--surface-page);
    color: var(--brand-slate-deep);
    font-family: var(--font-secondary);
    font-size: 100%;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }

  body {
    background-color: var(--surface-page);
    color: var(--brand-slate-body);
    font-family: var(--font-secondary);
    line-height: 1.65;
    text-align: start;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--brand-slate-deep);
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  p {
    font-family: var(--font-secondary);
    color: var(--brand-slate-body);
    max-width: 68ch;
    text-wrap: pretty;
    overflow-wrap: break-word;
  }

  strong {
    font-weight: 600;
    color: var(--brand-slate-deep);
  }
}

/* ==========================================================================
   4. COMPONENTS LAYER
   ========================================================================== */
@layer components {
  .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  }

  /* ------------------------------------------------------------------------
     STICKY MINIMALIST HEADER
     ------------------------------------------------------------------------ */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-hairline);
    transition: box-shadow 0.25s ease;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5.25rem;
    gap: 2rem;
  }

  .brand-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
  }

  .brand-logo-img {
    height: 2.35rem;
    width: auto;
    object-fit: contain;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
  }

  .nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--brand-slate);
    padding-block: 0.4rem;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background-color: var(--brand-yellow);
    transition: width 0.25s ease;
  }

  .nav-link:hover {
    color: var(--brand-slate-deep);
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 1.15rem;
  }

  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--brand-slate-body);
    background-color: var(--surface-subtle);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-hairline);
    white-space: nowrap;
  }

  .status-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background-color: var(--status-open);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  }

  .mobile-menu-toggle {
    display: none;
    background: var(--surface-subtle);
    border: 1px solid var(--border-soft);
    color: var(--brand-slate-deep);
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  /* ------------------------------------------------------------------------
     BUTTONS & SECTION HEADERS
     ------------------------------------------------------------------------ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.88rem 1.65rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
  }

  .btn:hover:not(:disabled) {
    transform: translateY(-2px);
  }

  .btn-primary {
    background-color: var(--brand-yellow);
    color: var(--brand-slate-deep);
    box-shadow: var(--shadow-yellow);
  }

  .btn-primary:hover:not(:disabled) {
    background-color: var(--brand-yellow-hover);
    box-shadow: 0 14px 30px rgba(254, 211, 0, 0.42);
  }

  .btn-slate {
    background-color: var(--brand-slate);
    color: #FFFFFF;
    box-shadow: var(--shadow-xs);
  }

  .btn-slate:hover:not(:disabled) {
    background-color: var(--brand-slate-deep);
    box-shadow: var(--shadow-sm);
  }

  .btn-outline {
    background-color: #FFFFFF;
    color: var(--brand-slate-deep);
    border-color: var(--border-soft);
  }

  .btn-outline:hover:not(:disabled) {
    border-color: var(--brand-slate);
    background-color: var(--surface-subtle);
  }

  .btn-sm {
    padding: 0.62rem 1.25rem;
    font-size: 0.84rem;
  }

  .btn-block {
    width: 100%;
  }

  .section-header {
    max-width: 44rem;
    margin-inline: auto;
    margin-bottom: 3.75rem;
    text-align: center;
  }

  .section-header-start {
    margin-inline: 0;
    margin-bottom: 2.25rem;
    text-align: start;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-slate);
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-hairline);
    padding: 0.38rem 0.9rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.15rem;
  }

  .eyebrow-dot {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background-color: var(--brand-yellow);
  }

  .section-title {
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
  }

  .section-subtitle {
    font-size: 1.05rem;
    color: var(--brand-slate-muted);
    margin-inline: auto;
  }

  .mark-yellow {
    background: linear-gradient(180deg, transparent 58%, var(--brand-yellow) 58%);
    padding-inline: 0.15em;
  }

  /* ------------------------------------------------------------------------
     HERO SECTION (BREATHABLE, CLEAN, EDITORIAL)
     ------------------------------------------------------------------------ */
  .hero-section {
    padding-block: clamp(3rem, 5vw, 5.25rem) clamp(4rem, 6vw, 6rem);
    background: radial-gradient(circle at 85% 15%, rgba(254, 211, 0, 0.08) 0%, transparent 45%);
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }

  .hero-title {
    font-size: clamp(2.15rem, 1.3rem + 2.25vw, 3.1rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.35rem;
    text-wrap: pretty;
  }

  .hero-lead {
    font-size: 1.08rem;
    color: var(--brand-slate-body);
    max-width: 54ch;
    margin-bottom: 2.15rem;
  }

  .hero-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.95rem;
    margin-bottom: 2.75rem;
  }

  .hero-trust-bar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.85rem;
    border-top: 1px solid var(--border-hairline);
  }

  .hero-trust-logo {
    height: 2.9rem;
    width: auto;
    flex-shrink: 0;
  }

  .hero-trust-caption {
    font-size: 0.85rem;
    color: var(--brand-slate-muted);
    line-height: 1.45;
  }

  /* Clean Hero Photo Card */
  .hero-media-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--brand-slate);
    aspect-ratio: 4 / 3.35;
  }

  .hero-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
  }

  .hero-media-card:hover .hero-media-img {
    transform: scale(1.025);
  }

  .hero-glass-caption {
    position: absolute;
    inset-inline: 1.25rem;
    bottom: 1.25rem;
    background: rgba(24, 34, 41, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .hero-caption-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    color: #FFFFFF;
  }

  .hero-caption-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.76);
  }

  .hero-caption-badge {
    background-color: var(--brand-yellow);
    color: var(--brand-slate-deep);
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.32rem 0.75rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
  }

  /* ------------------------------------------------------------------------
     MINIMAL METRICS STRIP
     ------------------------------------------------------------------------ */
  .metrics-section {
    padding-bottom: clamp(3.5rem, 5vw, 5rem);
  }

  .metrics-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 2rem 2.25rem;
    gap: 1.5rem;
  }

  .metric-item:not(:last-child) {
    border-inline-end: 1px solid var(--border-soft);
    padding-inline-end: 1.5rem;
  }

  .metric-value {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.38rem;
    color: var(--brand-slate-deep);
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
    white-space: nowrap;
  }

  .metric-label {
    font-size: 0.84rem;
    color: var(--brand-slate-muted);
  }

  /* ------------------------------------------------------------------------
     INTERACTIVE BOOKING SIMULATOR (CLEAN & SPACIOUS)
     ------------------------------------------------------------------------ */
  .booking-section {
    padding-block: var(--section-space);
    background-color: var(--surface-subtle);
    border-block: 1px solid var(--border-hairline);
  }

  .booking-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 3.5vw, 3rem);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
  }

  .step-group {
    margin-bottom: 2rem;
  }

  .step-label {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-slate-muted);
    margin-bottom: 0.85rem;
    display: block;
  }

  .service-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .service-radio-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.05rem 1.15rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--surface-card);
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .service-radio-card:hover {
    border-color: var(--brand-slate);
  }

  .service-radio-card.selected {
    background-color: var(--brand-yellow-tint);
    border-color: var(--brand-yellow-hover);
    box-shadow: 0 4px 16px rgba(254, 211, 0, 0.16);
  }

  .service-radio-dot {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    border: 2px solid var(--brand-slate-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    flex-shrink: 0;
  }

  .service-radio-card.selected .service-radio-dot {
    border-color: var(--brand-slate-deep);
  }

  .service-radio-card.selected .service-radio-dot::after {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: var(--brand-slate-deep);
  }

  .service-radio-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--brand-slate-deep);
    margin-bottom: 0.15rem;
  }

  .service-radio-sub {
    font-size: 0.8rem;
    color: var(--brand-slate-muted);
    line-height: 1.4;
  }

  .filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .filter-pill {
    background-color: var(--surface-subtle);
    border: 1px solid transparent;
    color: var(--brand-slate-body);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.52rem 1.05rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .filter-pill:hover {
    color: var(--brand-slate-deep);
    border-color: var(--border-soft);
  }

  .filter-pill.active {
    background-color: var(--brand-slate);
    color: #FFFFFF;
  }

  .slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .slot-btn {
    background-color: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s ease;
  }

  .slot-btn:hover {
    border-color: var(--brand-slate);
  }

  .slot-btn.selected {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow-hover);
    color: var(--brand-slate-deep);
    box-shadow: var(--shadow-xs);
  }

  .court-slot-time {
    display: block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--brand-slate-deep);
  }

  .court-slot-status {
    display: block;
    font-size: 0.72rem;
    color: var(--status-open);
    margin-top: 0.15rem;
  }

  .slot-btn.selected .court-slot-status {
    color: var(--brand-slate-deep);
    font-weight: 500;
  }

  /* Booking Summary Panel */
  .booking-summary-panel {
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
  }

  .court-preview-box {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.12);
  }

  .court-preview-tag {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    background-color: var(--brand-yellow);
    color: var(--brand-slate-deep);
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.68rem;
    padding: 0.22rem 0.65rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
  }

  .summary-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
  }

  .summary-list {
    margin-bottom: 1.5rem;
  }

  .summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.65rem;
    font-size: 0.88rem;
  }

  .summary-list li:not(:last-child) {
    border-bottom: 1px solid var(--border-hairline);
  }

  .summary-list span {
    color: var(--brand-slate-muted);
  }

  .summary-store-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-top: 0.75rem;
  }

  /* ------------------------------------------------------------------------
     ACADEMY X GUSTAVO PRATTO ACADEMY (GPA) SECTION
     ------------------------------------------------------------------------ */
  .gpa-section {
    padding-block: var(--section-space);
  }

  .gpa-feature-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3.5rem;
  }

  .gpa-split-title {
    font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 1rem;
  }

  .gpa-split-text {
    margin-bottom: 1.15rem;
  }

  .gpa-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
  }

  .gpa-emblem-card {
    background-color: var(--brand-slate);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
  }

  .gpa-emblem-img {
    max-height: 8.5rem;
    width: auto;
    margin-inline: auto;
    margin-bottom: 1.35rem;
  }

  .gpa-emblem-badge {
    display: inline-block;
    background-color: rgba(254, 211, 0, 0.14);
    border: 1px solid rgba(254, 211, 0, 0.5);
    color: var(--brand-yellow);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.38rem 0.95rem;
    border-radius: var(--radius-pill);
  }

  .programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .program-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  }

  .program-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-slate);
  }

  .program-card.featured {
    background: linear-gradient(180deg, var(--brand-yellow-tint) 0%, #FFFFFF 45%);
    border-color: var(--brand-yellow-hover);
    box-shadow: var(--shadow-sm);
  }

  .program-tag {
    display: inline-block;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand-slate);
    background-color: var(--surface-subtle);
    padding: 0.32rem 0.75rem;
    border-radius: var(--radius-pill);
    margin-bottom: 1.15rem;
    width: fit-content;
  }

  .program-card.featured .program-tag {
    background-color: var(--brand-yellow);
    color: var(--brand-slate-deep);
  }

  .program-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
  }

  .program-desc {
    font-size: 0.92rem;
    color: var(--brand-slate-muted);
    margin-bottom: 1.5rem;
  }

  .feature-list {
    margin-bottom: 2rem;
  }

  .feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--brand-slate-deep);
    padding-block: 0.4rem;
  }

  .check-dot {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background-color: var(--brand-yellow);
    color: var(--brand-slate-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 0.15rem;
  }

  /* ------------------------------------------------------------------------
     CLUB ECOSYSTEM & OFFICIAL APP SECTION
     ------------------------------------------------------------------------ */
  .ecosystem-section {
    padding-block: var(--section-space);
    background-color: var(--surface-subtle);
    border-block: 1px solid var(--border-hairline);
  }

  .features-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3.5rem;
  }

  .feature-box {
    background-color: var(--surface-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-xs);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
  }

  .feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.85rem;
    background-color: var(--brand-yellow-tint);
    border: 1px solid var(--brand-yellow-Subtle);
    color: var(--brand-slate-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
  }

  .feature-box-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.65rem;
  }

  .feature-box-text {
    font-size: 0.92rem;
    color: var(--brand-slate-muted);
    margin-bottom: 1.25rem;
  }

  .feature-link {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-slate-deep);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .feature-link:hover {
    text-decoration: underline;
    text-decoration-color: var(--brand-yellow);
    text-underline-offset: 4px;
  }

  /* App Banner inside Ecosystem */
  .app-banner {
    background-color: var(--surface-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 4vw, 3.5rem);
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
  }

  .store-buttons-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.85rem;
  }

  .store-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background-color: var(--brand-slate-deep);
    color: #FFFFFF;
    padding: 0.8rem 1.45rem;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }

  .store-badge-btn:hover {
    background-color: var(--brand-yellow);
    color: var(--brand-slate-deep);
    transform: translateY(-2px);
  }

  .store-badge-small {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.8;
  }

  .store-badge-title {
    display: block;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.96rem;
    line-height: 1.15;
  }

  .phone-preview-card {
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
  }

  .phone-header-bar {
    background-color: var(--brand-slate);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    text-align: center;
    margin-bottom: 1rem;
  }

  .phone-header-logo {
    height: 1.85rem;
    width: auto;
    margin-inline: auto;
    margin-bottom: 0.3rem;
  }

  .phone-header-tag {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--brand-yellow);
    text-transform: uppercase;
  }

  .phone-ui-item {
    background-color: var(--surface-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .phone-ui-item:not(:last-child) {
    margin-bottom: 0.65rem;
  }

  .phone-ui-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--brand-slate-deep);
  }

  .phone-ui-sub {
    font-size: 0.74rem;
    color: var(--brand-slate-muted);
  }

  .phone-live-pill {
    background-color: #DCFCE7;
    color: #166534;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
  }

  /* ------------------------------------------------------------------------
     INSTAGRAM & COMMUNITY SECTION (@wild.padel)
     ------------------------------------------------------------------------ */
  .ig-section {
    padding-block: var(--section-space);
  }

  .ig-card-shell {
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 2.5rem;
  }

  .ig-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-soft);
  }

  .ig-identity {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    min-width: 18rem;
  }

  .ig-avatar-ring {
    width: 5.25rem;
    height: 5.25rem;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #FED300, #F97316, #EC4899);
    flex-shrink: 0;
  }

  .ig-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--brand-slate);
    border: 3px solid #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem;
  }

  .ig-handle-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--brand-slate-deep);
    margin-bottom: 0.2rem;
  }

  .ig-bio-text {
    font-size: 0.88rem;
    color: var(--brand-slate-body);
    max-width: 52ch;
  }

  .ig-counters {
    display: flex;
    gap: 2.25rem;
    text-align: center;
  }

  .ig-counter-num {
    display: block;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--brand-slate-deep);
  }

  .ig-counter-label {
    font-size: 0.78rem;
    color: var(--brand-slate-muted);
  }

  .ig-highlights-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
  }

  .ig-highlight-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .ig-highlight-btn {
    background-color: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.1rem;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--brand-slate);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .ig-highlight-btn:hover {
    border-color: var(--brand-slate);
  }

  .ig-highlight-btn.active {
    background-color: var(--brand-yellow);
    border-color: var(--brand-yellow-hover);
    color: var(--brand-slate-deep);
  }

  .ig-highlight-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 1rem 1.35rem;
    margin-top: 1.15rem;
  }

  .ig-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }

  .ig-post-card {
    background-color: var(--surface-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
  }

  .ig-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
  }

  .ig-post-media {
    position: relative;
    aspect-ratio: 4 / 4.2;
    overflow: hidden;
    background-color: var(--brand-slate);
  }

  .ig-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .ig-post-card:hover .ig-post-media img {
    transform: scale(1.04);
  }

  .ig-post-tag {
    position: absolute;
    top: 0.85rem;
    inset-inline-start: 0.85rem;
    background-color: rgba(24, 34, 41, 0.82);
    backdrop-filter: blur(8px);
    color: var(--brand-yellow);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    padding: 0.28rem 0.7rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
  }

  .ig-post-body {
    padding: 1.35rem;
  }

  .ig-post-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--brand-slate-deep);
    margin-bottom: 0.35rem;
  }

  .ig-post-caption {
    font-size: 0.84rem;
    color: var(--brand-slate-muted);
  }

  /* ------------------------------------------------------------------------
     LOCATION, CONTACT & SENIAT RIF SECTION
     ------------------------------------------------------------------------ */
  .location-section {
    padding-block: var(--section-space);
    background-color: var(--surface-subtle);
    border-top: 1px solid var(--border-hairline);
  }

  .location-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem;
    align-items: stretch;
  }

  .surface-panel {
    background-color: var(--surface-card);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 3vw, 2.65rem);
    box-shadow: var(--shadow-xs);
  }

  .panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
  }

  .panel-lead {
    font-size: 0.92rem;
    color: var(--brand-slate-muted);
    margin-bottom: 1.5rem;
  }

  .map-frame {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-hairline);
    height: 14rem;
    margin-bottom: 1.5rem;
    background-color: var(--surface-subtle);
  }

  .map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
  }

  .contact-list {
    display: grid;
    gap: 0.75rem;
  }

  .contact-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.15rem;
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease;
  }

  .contact-row:hover {
    border-color: var(--brand-slate);
  }

  .contact-row-title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-slate-deep);
    display: block;
  }

  .contact-row-sub {
    font-size: 0.8rem;
    color: var(--brand-slate-muted);
  }

  .rif-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background-color: var(--brand-slate);
    color: #FFFFFF;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
  }

  .rif-banner-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
  }

  .rif-banner-name {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.08rem;
    color: #FFFFFF;
  }

  .rif-badge {
    background-color: var(--brand-yellow);
    color: var(--brand-slate-deep);
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-sm);
  }

  .rif-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
  }

  .rif-table tr:not(:last-child) {
    border-bottom: 1px solid var(--border-hairline);
  }

  .rif-table td {
    padding-block: 0.75rem;
    font-size: 0.85rem;
    vertical-align: top;
  }

  .rif-table td:first-child {
    color: var(--brand-slate-muted);
    width: 38%;
    padding-inline-end: 0.75rem;
  }

  .rif-table td:last-child {
    color: var(--brand-slate-deep);
    font-weight: 500;
  }

  .rif-note {
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.82rem;
    color: var(--brand-slate-body);
  }

  /* ------------------------------------------------------------------------
     CLEAN FOOTER
     ------------------------------------------------------------------------ */
  .site-footer {
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-soft);
    padding-block: 4rem 2.25rem;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.75rem;
    border-bottom: 1px solid var(--border-hairline);
  }

  .footer-logo {
    height: 2.5rem;
    width: auto;
    margin-bottom: 1rem;
  }

  .footer-desc {
    font-size: 0.86rem;
    color: var(--brand-slate-muted);
    margin-bottom: 1rem;
  }

  .footer-rif {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--brand-slate-deep);
  }

  .footer-heading {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-slate-deep);
    margin-bottom: 1rem;
  }

  .footer-links {
    display: grid;
    gap: 0.55rem;
  }

  .footer-links li,
  .footer-links a {
    font-size: 0.86rem;
    color: var(--brand-slate-muted);
    transition: color 0.2s ease;
  }

  .footer-links a:hover {
    color: var(--brand-slate-deep);
  }

  .footer-bottom {
    padding-top: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--brand-slate-muted);
  }

  .footer-legal-strip {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.78rem;
    color: var(--brand-slate-body);
  }

  .footer-policy-triggers {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .policy-link-btn {
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    padding: 0.42rem 0.95rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.76rem;
    color: var(--brand-slate-deep);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
  }

  .policy-link-btn:hover {
    border-color: var(--brand-slate);
    background-color: var(--brand-yellow-tint);
  }

  .rif-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.15rem;
  }

  /* ------------------------------------------------------------------------
     NATIVE MODAL DIALOGS FOR LEGAL & META COMPLIANCE
     ------------------------------------------------------------------------ */
  .legal-dialog {
    margin: auto;
    width: min(92vw, 44rem);
    max-height: 84vh;
    background-color: #FFFFFF;
    color: var(--brand-slate-body);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
  }

  .legal-dialog[open] {
    display: flex;
    flex-direction: column;
  }

  .legal-dialog::backdrop {
    background-color: rgba(24, 34, 41, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .legal-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-hairline);
    background-color: var(--surface-subtle);
  }

  .legal-dialog-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-slate-deep);
  }

  .legal-dialog-body {
    padding: 1.75rem 2rem;
    overflow-y: auto;
    display: grid;
    gap: 1rem;
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .legal-dialog-body h4 {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-slate-deep);
    margin-top: 0.4rem;
  }

  .legal-dialog-footer {
    padding: 1.15rem 2rem;
    border-top: 1px solid var(--border-hairline);
    background-color: var(--surface-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   5. UTILITIES & MOTION LAYER
   ========================================================================== */
@layer utilities {
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      @keyframes wild-reveal-in {
        from {
          opacity: 0;
          transform: translateY(20px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .reveal-on-scroll {
        animation: wild-reveal-in auto linear backwards;
        animation-timeline: view(block);
        animation-range: entry 0% cover 22%;
      }
    }
  }

  .reveal-fallback-hidden {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .reveal-fallback-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Responsive Design Breakpoints */
  @media (max-width: 64rem) {
    .hero-grid,
    .booking-card,
    .gpa-feature-split,
    .app-banner,
    .location-grid {
      grid-template-columns: 1fr;
    }

    .programs-grid,
    .features-3col,
    .ig-posts-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .metrics-bar {
      grid-template-columns: repeat(2, 1fr);
    }

    .metric-item:nth-child(2) {
      border-inline-end: none;
    }

    .footer-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (max-width: 48rem) {
    .status-pill {
      display: none;
    }

    .nav-menu {
      display: none;
      position: absolute;
      top: 5.25rem;
      inset-inline: 0;
      background-color: #FFFFFF;
      border-bottom: 1px solid var(--border-soft);
      padding: 1.5rem;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      box-shadow: var(--shadow-md);
    }

    .nav-menu.open {
      display: flex;
    }

    .mobile-menu-toggle {
      display: inline-flex;
    }

    .programs-grid,
    .features-3col,
    .ig-posts-grid,
    .metrics-bar,
    .service-type-grid,
    .footer-grid {
      grid-template-columns: 1fr;
    }

    .slots-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .metric-item:not(:last-child) {
      border-inline-end: none;
      border-bottom: 1px solid var(--border-hairline);
      padding-inline-end: 0;
      padding-bottom: 1rem;
    }
  }
}
