/*
Theme Name: Sadolin Spordihoone
Theme URI: https://sadolinspordihoone.ee
Author: SA Rapla Spordirajatised
Author URI: https://sadolinspordihoone.ee
Description: Custom theme for Sadolin Spordihoone (SA Rapla Spordirajatised). News and Events are CMS-managed; remaining content is theme-managed.
Version: 2.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: sadolin
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy-dark:   #0c1a4a;
    --navy-mid:    #162469;
    --navy-accent: #1e3494;
    --red:         #E32127;
    --red-bright:  #f5373d;
    --brand-blue:  #012C65;
    --cream: #f4f5fa;
    --warm-white: #f9faff;
    --text-dark: #0c1230;
    --text-muted: #556080;
    --border: #d0d5e8;
    --radius: 10px;
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Barlow', sans-serif;
    background: var(--warm-white);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
  }

  /* ─── TOP BAR ─── */
  .topbar {
    background: var(--navy-dark);
    color: #b0bbdd;
    font-size: 13px;
    padding: 8px 0;
  }
  .topbar-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    flex-wrap: wrap;
  }
  .topbar a { color: #b0bbdd; text-decoration: none; }
  .topbar a:hover { color: #fff; }
  .topbar-hours { display: flex; gap: 20px; }
  .topbar-contact { display: flex; gap: 20px; }

  /* ─── NAV ─── */
  nav {
    background: var(--navy-mid);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  }
  .nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    height: 68px;
  }
  .nav-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: 22px; letter-spacing: 0.5px;
    color: #fff; text-decoration: none;
    display: flex; align-items: center; gap: 12px;
  }
  .nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
  .nav-logo-text .logo-sub { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.55); letter-spacing: 1.5px; text-transform: uppercase; }
  .logo-mark {
    width: 40px; height: 40px;
    background: var(--red);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff;
    flex-shrink: 0;
  }
  .nav-links {
    display: flex; gap: 4px; list-style: none;
  }
  .nav-links a {
    color: #c8d0f0; text-decoration: none;
    font-size: 13.5px; font-weight: 500;
    padding: 8px 10px; border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.1); color: #fff; }
  .nav-cta {
    background: var(--red) !important;
    color: #fff !important;
    font-weight: 600 !important;
  }
  .nav-cta:hover { background: var(--red-bright) !important; }
  .nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

  /* ─── HERO ─── */
  .hero {
    background: var(--navy-dark);
    min-height: 560px;
    display: flex; align-items: center;
    position: relative; overflow: hidden;
  }
  .hero-pattern {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(0deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
      linear-gradient(90deg, rgba(12,26,74,0.70) 0%, rgba(12,26,74,0.35) 50%, rgba(12,26,74,0.10) 100%),
      url('assets/images/banner.jpg');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
  }
  .hero-inner {
    max-width: 1200px; margin: 0 auto; padding: 80px 24px;
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  }
  .hero-text {}
  .hero-badge {
    display: inline-block;
    background: var(--navy-accent);
    color: #c8d0f0;
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 6px 14px; border-radius: 4px; margin-bottom: 20px;
  }
  .hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: 68px; line-height: 1.0;
    color: #fff; letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 20px;
  }
  .hero h1 span { color: var(--red); }
  .hero-sub {
    font-size: 18px; color: #a8b4d8; line-height: 1.6;
    max-width: 460px; margin-bottom: 36px;
  }
  .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--red); color: #fff;
    border: none; padding: 14px 28px; border-radius: var(--radius);
    font-family: 'Barlow', sans-serif; font-size: 15px; font-weight: 600;
    cursor: pointer; text-decoration: none; display: inline-block;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.3px;
  }
  .btn-primary:hover { background: var(--red-bright); transform: translateY(-1px); }
  .btn-outline {
    background: transparent; color: #c8d0f0;
    border: 1.5px solid rgba(255,255,255,0.25); padding: 14px 28px;
    border-radius: var(--radius); font-family: 'Barlow', sans-serif;
    font-size: 15px; font-weight: 500; cursor: pointer;
    text-decoration: none; display: inline-block;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
  }
  .btn-outline:hover { border-color: rgba(255,255,255,0.6); color: #fff; background: rgba(255,255,255,0.05); }
  .hero-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  }
  .hero-card {
    background: rgba(12,18,48,0.45);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius);
    padding: 20px;
    backdrop-filter: blur(6px);
  }
  .hero-card-icon {
    width: 44px; height: 44px;
    background: var(--red);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; font-size: 22px;
  }
  .hero-card h3 {
    color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 4px;
  }
  .hero-card p { color: #fff; font-size: 13px; opacity: 0.92; }

  /* ─── INFO STRIP ─── */
  .info-strip {
    background: var(--red);
    padding: 18px 0;
  }
  .info-strip-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
    align-items: center;
  }
  .info-item {
    display: flex; align-items: center; gap: 12px; color: #fff;
  }
  .info-icon { font-size: 20px; flex-shrink: 0; }
  .info-label { font-size: 12px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.8px; }
  .info-value { font-size: 15px; font-weight: 600; }
  .info-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.3); }

  /* ─── SECTIONS ─── */
  section { padding: 80px 0; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

  .section-label {
    font-size: 12px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: var(--red); margin-bottom: 10px;
  }
  .section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 42px; line-height: 1.1;
    color: var(--text-dark); margin-bottom: 14px;
  }
  .section-sub {
    font-size: 17px; color: var(--text-muted);
    max-width: 540px; line-height: 1.6;
  }
  .section-header { margin-bottom: 44px; }
  .section-header-row {
    display: flex; justify-content: space-between; align-items: flex-end;
    flex-wrap: wrap; gap: 20px; margin-bottom: 44px;
  }

  /* ─── NEWS ─── */
  .news-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  }
  .news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .news-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.1); }
  .news-card-thumb {
    display: block;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--navy-mid);
  }
  .news-card-date {
    background: var(--navy-mid);
    color: #fff;
    width: 64px; height: 64px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    flex-shrink: 0;
  }
  .news-card-date .day { font-size: 26px; font-weight: 800; line-height: 1; }
  .news-card-date .month { font-size: 12px; font-weight: 500; text-transform: uppercase; opacity: 0.85; }
  .news-card-top { display: flex; align-items: stretch; gap: 0; }
  .news-card-header { padding: 18px; display: flex; gap: 16px; align-items: center; }
  .news-card-body { padding: 0 18px 18px; }
  .news-tag {
    font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: var(--red); margin-bottom: 8px;
  }
  .news-card-title {
    font-size: 16px; font-weight: 600; color: var(--text-dark);
    margin-bottom: 8px; line-height: 1.4;
    text-decoration: none; display: block;
  }
  .news-card-title:hover { color: var(--red); }
  .news-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
  .read-more {
    font-size: 13px; font-weight: 600; color: var(--red);
    text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
  }
  .read-more::after { content: '→'; }
  /* Back links: left arrow only — must NOT inherit .read-more's trailing arrow */
  .back-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 600;
    color: var(--red); text-decoration: none;
    margin-bottom: 24px;
  }
  .back-link::before { content: '←'; font-size: 15px; line-height: 1; }
  .back-link:hover { color: var(--navy-mid); }
  .read-more:hover { color: var(--navy-mid); }

  /* ─── EVENTS ─── */
  .events-bg { background: var(--cream); }
  .events-list {
    display: flex; flex-direction: column; gap: 14px;
  }
  .event-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 24px;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none; color: inherit;
  }
  .event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    border-color: var(--red);
  }
  .event-date {
    background: var(--navy-mid);
    color: #fff;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
  }
  .event-date .day { font-size: 28px; font-weight: 800; line-height: 1; display: block; }
  .event-date .month { font-size: 12px; font-weight: 500; text-transform: uppercase; opacity: 0.85; letter-spacing: 1px; display: block; margin-top: 4px; }
  .event-info {}
  .event-tag {
    display: inline-block;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--red); margin-bottom: 6px;
  }
  .event-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px; font-weight: 700; color: var(--text-dark);
    line-height: 1.2; margin-bottom: 6px;
  }
  .event-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    font-size: 13px; color: var(--text-muted);
  }
  .event-meta span { display: inline-flex; align-items: center; gap: 6px; }
  .event-meta i { color: var(--red); }
  .event-cta {
    font-size: 13px; font-weight: 600; color: var(--red);
    white-space: nowrap;
  }
  .event-cta::after { content: ' →'; }
  .events-empty {
    background: #fff; border: 1px dashed var(--border); border-radius: var(--radius);
    padding: 36px; text-align: center; color: var(--text-muted); font-size: 15px;
  }

  /* ─── FACILITIES ─── */
  .facilities-bg { background: var(--cream); }
  .facilities-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  }
  .facilities-grid .fac-card {
    flex: 1 1 250px;
    max-width: calc(25% - 15px);
  }
  @media (max-width: 1080px) { .facilities-grid .fac-card { max-width: calc(50% - 10px); } }
  @media (max-width: 620px)  { .facilities-grid .fac-card { max-width: 100%; } }
  .fac-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; color: inherit;
    display: block;
  }
  .fac-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
  .fac-thumb {
    height: 200px;
    display: flex; align-items: flex-end; justify-content: flex-start;
    font-size: 52px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
  }
  .fac-thumb::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(12,26,74,0.72) 0%, rgba(0,0,0,0.1) 60%);
  }
  .fac-thumb-label {
    position: relative; z-index: 2;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.75); padding: 14px 16px;
    display: flex; align-items: center; gap: 6px;
  }
  .fac-thumb-label i { font-size: 12px; color: var(--red); }

  /* ─── GALLERY ─── */
  .gallery-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: 280px; overflow: hidden;
  }
  .gallery-img {
    position: relative; overflow: hidden;
  }
  .gallery-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
  }
  .gallery-img:hover img { transform: scale(1.06); }
  .gallery-img-overlay {
    position: absolute; inset: 0;
    background: rgba(12,26,74,0.3);
    transition: background 0.3s;
  }
  .gallery-img:hover .gallery-img-overlay { background: rgba(12,26,74,0.1); }

  /* ─── ICON SIZING ─── */
  .icon-sm { font-size: 14px; }
  .topbar .fa-solid, .topbar .fa-regular { font-size: 12px; margin-right: 4px; }
  .info-icon .fa-solid { font-size: 18px; }
  .contact-icon-wrap .fa-solid, .contact-icon-wrap .fa-regular { font-size: 18px; color: var(--red); }
  .trail-feature-dot .fa-solid { font-size: 15px; color: var(--navy-mid); }
  .about-service-icon .fa-solid, .about-service-icon .fa-regular { font-size: 16px; color: var(--red); }
  .hero-card-icon .fa-solid { font-size: 20px; color: #fff; }
  .map-placeholder .fa-solid { font-size: 40px; color: #fff; opacity: 0.95; }
  .fac-thumb.green-dark { background: var(--navy-dark); }
  .fac-thumb.green-mid  { background: var(--navy-mid);  }
  .fac-thumb.green-acc  { background: var(--red); }
  .fac-thumb.green-lig  { background: var(--navy-accent); }
  .fac-body { padding: 18px; }
  .fac-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 20px; color: var(--text-dark);
    margin-bottom: 6px;
  }
  .fac-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
  .fac-link {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: var(--red);
    margin-top: 12px;
  }
  .fac-link::after { content: '→'; }
  .fac-calendar {
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .fac-calendar-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
  }
  .fac-calendar-label i { color: var(--red); }
  .fac-calendar-links {
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  .fac-calendar-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600;
    color: var(--navy-mid); text-decoration: none;
    background: var(--cream); border: 1px solid var(--border);
    padding: 5px 10px; border-radius: 5px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
  }
  .fac-calendar-link:hover { background: var(--red); color: #fff; border-color: var(--red); }
  .fac-calendar-link i { font-size: 11px; }

  /* ─── ALU SPORDIHOONE ─── */
  .alu-bg { background: var(--navy-dark); }
  .alu-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  }
  .alu-image {
    width: 100%; aspect-ratio: 4 / 3;
    background: var(--navy-mid);
    background-image: url('assets/images/thumb/alu-spordihoone.jpg');
    background-size: cover; background-position: center;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(12,18,48,0.15);
  }
  .alu-text .section-label { color: #ff6b6b; }
  .alu-text .section-title { color: #fff; }
  .alu-text p { color: #a8b4d8; font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
  .alu-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px;
  }
  .alu-feature {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
    font-size: 14px; color: #c8d0f0;
  }
  .alu-feature i { color: #ff6b6b; font-size: 16px; }

  /* ─── HEALTH TRAIL ─── */
  .trail-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  }
  .trail-visual {
    background:
      linear-gradient(135deg, rgba(12,26,74,0.82), rgba(22,36,105,0.78)),
      url('assets/images/terviserada.jpg') center/cover no-repeat,
      var(--navy-dark);
    border-radius: 16px;
    height: 360px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .trail-visual-inner { position: relative; z-index: 1; text-align: center; }
  .trail-big-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 110px; font-weight: 800; color: rgba(255,255,255,0.08);
    line-height: 1; position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
    white-space: nowrap;
  }
  .trail-badges {
    display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 2;
  }
  .trail-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; padding: 16px 24px;
    color: #fff; display: flex; align-items: center; gap: 14px;
  }
  .trail-badge-icon { font-size: 28px; }
  .trail-badge-info {}
  .trail-badge-val { font-family: 'Barlow Condensed', sans-serif; font-size: 28px; font-weight: 700; line-height: 1; }
  .trail-badge-label { font-size: 13px; color: #8a96c0; margin-top: 2px; }
  .trail-features { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
  .trail-feature {
    display: flex; gap: 16px; align-items: flex-start;
  }
  .trail-feature-dot {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--cream); border: 2px solid var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0; margin-top: 2px;
  }
  .trail-feature-title { font-weight: 600; font-size: 15px; margin-bottom: 3px; }
  .trail-feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

  /* ─── ABOUT ─── */
  .about-bg { background: var(--navy-dark); }
  .about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  }
  .about-text .section-title { color: #fff; }
  .about-text .section-label { color: #ff6b6b; }
  .about-text p { color: #a8b4d8; font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
  .about-stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px;
  }
  .about-stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 20px;
  }
  .about-stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 40px; font-weight: 800; color: #ff6b6b; line-height: 1;
    margin-bottom: 4px;
  }
  .about-stat-label { font-size: 13px; color: #8a96c0; }
  .about-visual {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 32px;
  }
  .about-services { display: flex; flex-direction: column; gap: 14px; }
  .about-service {
    display: flex; align-items: center; gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; padding: 14px 18px;
  }
  .about-service-icon { font-size: 22px; width: 40px; text-align: center; }
  .about-service-name { color: #c8d0f0; font-weight: 500; font-size: 15px; }
  .about-visual-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 0.5px;
  }

  /* ─── HINNAKIRI (PDF-style) ─── */
  .hinnakiri-bg { background: var(--cream); }
  .hinnakiri-wrap { max-width: 1100px; margin: 0 auto; }
  .hinnakiri-date {
    font-size: 14px; color: var(--text-muted);
    margin-bottom: 12px;
  }
  .hk-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #c84141;
    font-size: 14px;
    box-shadow: 0 4px 18px rgba(12,18,48,0.06);
  }
  .hk-table th, .hk-table td {
    border: 1px solid #c84141;
    padding: 8px 12px;
    text-align: center;
    vertical-align: middle;
  }
  .hk-table thead th {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    letter-spacing: 0.3px;
  }
  .hk-table thead th.hk-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: 0.5px;
  }
  .hk-table thead th.hk-sub {
    background: #e85959;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
  }
  .hk-table thead th.hk-unit {
    background: #ef6b6b;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-style: italic;
    padding: 5px 10px;
  }
  .hk-table tr.hk-category td {
    background: var(--red);
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    padding: 9px 12px;
    text-transform: uppercase;
  }
  .hk-table tr.hk-category td .hk-cat-sub {
    text-transform: none;
    font-weight: 500;
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
    margin-left: 6px;
    opacity: 0.9;
  }
  .hk-table tbody td.hk-service {
    font-weight: 500;
    color: var(--text-dark);
    background: #fffdf5;
  }
  .hk-table tbody td.hk-price {
    font-weight: 700;
    color: var(--text-dark);
    background: #fffdf5;
    min-width: 78px;
  }
  .hk-table tbody tr:hover td.hk-service,
  .hk-table tbody tr:hover td.hk-price { background: #fff5da; }
  .hk-note {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
  }
  .hk-simple-title {
    margin-top: 28px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
  }
  .hk-simple {
    width: 100%;
    max-width: 640px;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid #c84141;
    font-size: 14px;
  }
  .hk-simple td {
    border: 1px solid #c84141;
    padding: 9px 14px;
    background: #fffdf5;
  }
  .hk-simple td:last-child {
    text-align: center;
    font-weight: 700;
    width: 100px;
  }
  .hk-terms {
    margin-top: 22px;
    border: 1.5px solid var(--red);
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 13.5px;
    color: var(--text-dark);
    line-height: 1.55;
    background: #fff;
  }
  .hk-download {
    margin-top: 22px;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff;
    padding: 12px 22px; border-radius: 8px;
    font-weight: 600; text-decoration: none;
    font-size: 14px;
  }
  .hk-download:hover { background: var(--red-bright); }
  .hk-download i { font-size: 16px; }
  @media (max-width: 760px) {
    .hk-table { font-size: 12px; }
    .hk-table th, .hk-table td { padding: 6px 6px; }
    .hk-table thead th.hk-brand { font-size: 15px; }
    .hinnakiri-wrap { overflow-x: auto; }
  }

  /* ─── BOOKING CTA ─── */
  .booking-cta {
    background: var(--navy-mid);
    padding: 64px 0;
    border-top: 4px solid var(--red);
  }
  .booking-cta-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 24px;
  }
  .booking-cta h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 42px; font-weight: 800; color: #fff; margin-bottom: 8px;
  }
  .booking-cta p { color: rgba(255,255,255,0.7); font-size: 16px; }
  .btn-white {
    background: var(--red); color: #fff;
    padding: 16px 36px; border-radius: var(--radius);
    font-size: 16px; font-weight: 700; text-decoration: none;
    display: inline-block; white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  }
  .btn-white:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

  /* ─── CONTACT ─── */
  .contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  }
  .contact-item { display: flex; gap: 16px; margin-bottom: 28px; }
  .contact-icon-wrap {
    width: 48px; height: 48px; border-radius: 10px;
    background: var(--cream); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
  }
  .contact-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
  .contact-val { font-size: 16px; font-weight: 500; color: var(--text-dark); }
  .contact-val a { color: var(--text-dark); text-decoration: none; }
  .contact-val a:hover { color: var(--red); }
  .map-placeholder {
    background:
      linear-gradient(135deg, rgba(12,26,74,0.78), rgba(22,36,105,0.72)),
      url('assets/images/kontakt.jpg') center/cover no-repeat,
      var(--navy-dark);
    border-radius: var(--radius);
    height: 300px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #e1e7f8; gap: 12px;
    position: relative; overflow: hidden;
  }
  .map-placeholder-icon { font-size: 40px; }
  .map-placeholder p { font-size: 14px; }
  .map-placeholder a {
    display: inline-block; margin-top: 8px;
    background: var(--red); color: #fff;
    padding: 10px 20px; border-radius: 6px;
    font-size: 14px; font-weight: 600; text-decoration: none;
  }
  .hours-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px;
  }
  .hours-block {
    background: var(--cream); border-radius: 8px; padding: 16px;
    border-left: 3px solid var(--red);
  }
  .hours-days { font-weight: 600; font-size: 14px; margin-bottom: 4px; }

  /* ─── TEAM ─── */
  .team-section { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--border); }
  .team-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 30px; line-height: 1.2;
    color: var(--text-dark); margin-bottom: 8px;
  }
  .team-sub {
    font-size: 15px; color: var(--text-muted); margin-bottom: 32px;
  }
  .team-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 300px)); gap: 20px;
    justify-content: flex-start;
  }
  .team-card-placeholder { background: var(--cream); border-style: dashed; }
  .team-photo-empty { background: linear-gradient(135deg, #c8d0e4, #8a96c0); }
  .team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
  .team-photo {
    width: 100%; aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--navy-mid), var(--navy-dark));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.35); font-size: 56px;
  }
  .team-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  .team-info { padding: 18px; }
  .team-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 20px; color: var(--text-dark);
    margin-bottom: 4px;
  }
  .team-role {
    font-size: 13px; font-weight: 600; color: var(--red);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 12px;
  }
  .team-contacts { display: flex; flex-direction: column; gap: 6px; }
  .team-contacts a {
    font-size: 13px; color: var(--text-muted); text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
  }
  .team-contacts a:hover { color: var(--red); }
  .team-contacts i { width: 14px; color: var(--red); }
  .hours-time { color: var(--red); font-weight: 700; font-size: 16px; }

  /* ─── FOOTER ─── */
  footer {
    background: var(--navy-dark);
    padding: 60px 0 28px;
    border-top: 3px solid var(--red);
  }
  .footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
    margin-bottom: 40px;
  }
  .footer-brand {}
  .footer-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: 22px; color: #fff; margin-bottom: 14px;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
  }
  .footer-tagline { color: #7a87b8; font-size: 14px; line-height: 1.6; max-width: 260px; margin-bottom: 20px; }
  .footer-social { display: flex; gap: 10px; }
  .social-btn {
    width: 36px; height: 36px; border-radius: 6px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; text-decoration: none;
    color: #fff; transition: background 0.2s;
  }
  .social-btn:hover { background: var(--red); }
  .footer-col h4 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px; font-weight: 700; color: #fff;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
  }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 10px; }
  .footer-col ul a { color: #7a87b8; font-size: 14px; text-decoration: none; transition: color 0.2s; }
  .footer-col ul a:hover { color: #ff6b6b; }
  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
  }
  .footer-copy { color: #566280; font-size: 13px; }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a { color: #566280; font-size: 13px; text-decoration: none; }
  .footer-links a:hover { color: #ff6b6b; }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-cards { display: none; }
    .hero h1 { font-size: 52px; }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .trail-grid, .about-grid, .contact-grid, .alu-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
  }
  @media (max-width: 600px) {
    .facilities-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 40px; }
    .section-title { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
    .info-strip-inner { gap: 20px; flex-direction: column; align-items: flex-start; }
    .info-divider { display: none; }
    .topbar-hours, .topbar-contact { flex-direction: column; gap: 4px; }
    .about-stats { grid-template-columns: 1fr; }
  }

  /* ─── ANIMATIONS ─── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-text > * { animation: fadeUp 0.6s ease both; }
  .hero-text > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-text > *:nth-child(2) { animation-delay: 0.2s; }
  .hero-text > *:nth-child(3) { animation-delay: 0.3s; }
  .hero-text > *:nth-child(4) { animation-delay: 0.4s; }

  /* ─── SUBPAGE ─── */
  .subpage { background: var(--warm-white); }
  .subpage-bar {
    background: var(--navy-mid);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 0;
  }
  .subpage-bar .container { display: flex; align-items: center; justify-content: space-between; }
  .subpage-back {
    color: #c8d0f0;
    text-decoration: none;
    font-size: 14px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.2s, color 0.2s;
  }
  .subpage-back:hover { background: rgba(255,255,255,0.08); color: #fff; }
  .subpage-back i { font-size: 13px; }
  /* ─── BOOKING FORM ─── */
  .booking-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 4px 18px rgba(12,18,48,0.05);
  }
  .booking-fieldset { margin-bottom: 26px; }
  .booking-fieldset:last-of-type { margin-bottom: 24px; }
  .booking-legend {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 16px;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--red);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .booking-row { margin-bottom: 16px; }
  .booking-row:last-child { margin-bottom: 0; }
  .booking-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .booking-field { display: flex; flex-direction: column; }
  .booking-field label {
    font-size: 13px; font-weight: 600; color: var(--text-dark);
    margin-bottom: 6px;
  }
  .booking-field .req { color: var(--red); }
  .booking-field input,
  .booking-field select,
  .booking-field textarea {
    font-family: 'Barlow', sans-serif;
    font-size: 15px; color: var(--text-dark);
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--warm-white);
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .booking-field input:focus,
  .booking-field select:focus,
  .booking-field textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(226,32,40,0.12);
  }
  .booking-field textarea { resize: vertical; min-height: 110px; }
  .booking-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .booking-alert {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 16px 20px; border-radius: 10px;
    margin-bottom: 24px; font-size: 15px;
  }
  .booking-alert i { font-size: 20px; margin-top: 1px; flex-shrink: 0; }
  .booking-alert-ok { background: #e8f7ec; border: 1px solid #a8dfb6; color: #1a6b32; }
  .booking-alert-ok i { color: #1a9b45; }
  .booking-alert-err { background: #fdeaea; border: 1px solid #f2b8b8; color: #a12626; }
  .booking-alert-err i { color: var(--red); }
  .booking-alert a { color: inherit; font-weight: 600; }
  .sadolin-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px; margin: 0 3px;
    border: 1px solid var(--border); border-radius: 6px;
    color: var(--text-dark); text-decoration: none;
    font-weight: 600; font-size: 14px;
    background: #fff;
  }
  .sadolin-pagination .page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }
  .sadolin-pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }
  @media (max-width: 620px) {
    .booking-row-2 { grid-template-columns: 1fr; }
    .booking-form { padding: 22px; }
  }

  /* ─── NAV DROPDOWN (Meist) ─── */
  .nav-links li { position: relative; }
  .has-dropdown > a::after {
    content: '▾'; margin-left: 6px; font-size: 11px; opacity: 0.75;
  }
  .nav-dropdown {
    position: absolute; top: 100%; left: 0;
    min-width: 232px;
    background: var(--navy-dark);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 6px;
    list-style: none;
    box-shadow: 0 14px 34px rgba(0,0,0,0.4);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
    z-index: 200;
  }
  .has-dropdown:hover .nav-dropdown,
  .has-dropdown:focus-within .nav-dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .nav-dropdown li { display: block; }
  .nav-dropdown a {
    display: block; white-space: nowrap;
    padding: 9px 12px; border-radius: 6px;
    font-size: 13.5px; color: #c8d0f0;
  }
  .nav-dropdown a:hover { background: var(--red); color: #fff; }
  .nav-dropdown-sep {
    height: 1px; background: rgba(255,255,255,0.12); margin: 5px 8px;
  }

  /* ─── GENERIC SUBPAGE ─── */
  .subpage-hero {
    background: var(--navy-dark);
    color: #fff;
    padding: 54px 0 46px;
  }
  .subpage-hero .section-label { color: #ff7a80; }
  .subpage-hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800; font-size: 46px; line-height: 1.05;
    text-transform: uppercase; letter-spacing: -0.5px;
    margin-bottom: 12px;
  }
  .subpage-hero .subpage-lead {
    font-size: 17px; color: #a8b4d8; max-width: 720px; line-height: 1.65;
  }
  .subpage-body { padding: 56px 0 76px; background: var(--warm-white); }
  .subpage-inner { max-width: 840px; margin: 0 auto; }
  .subpage-inner p {
    font-size: 16.5px; line-height: 1.75; color: var(--text-dark); margin-bottom: 16px;
  }
  .subpage-inner h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 26px; color: var(--text-dark);
    margin: 34px 0 12px;
  }
  .subpage-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px; margin: 26px 0 8px;
  }
  .subpage-fact {
    background: #fff; border: 1px solid var(--border); border-radius: 10px;
    padding: 16px 18px;
  }
  .subpage-fact i { color: var(--red); font-size: 16px; margin-bottom: 8px; display: block; }
  .subpage-fact .f-label {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 3px;
  }
  .subpage-fact .f-value { font-size: 15.5px; font-weight: 600; color: var(--text-dark); }
  .subpage-cta {
    display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px;
    padding-top: 28px; border-top: 1px solid var(--border);
  }

  /* Rules (Kodukord) */
  .rules-group {
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    padding: 22px 26px; margin-bottom: 18px;
  }
  .rules-group h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 21px; color: var(--red);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin: 0 0 12px; padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .rules-group ol { margin: 0; padding-left: 20px; }
  .rules-group li {
    font-size: 15.5px; line-height: 1.65; color: var(--text-dark); margin-bottom: 9px;
  }
  .rules-group li:last-child { margin-bottom: 0; }
  .rules-note {
    background: var(--cream); border-left: 4px solid var(--red);
    border-radius: 8px; padding: 16px 20px; margin-top: 22px;
    font-size: 14.5px; color: var(--text-dark);
  }

  /* ─── MEIST ENTRY CARDS (replaces stat boxes) ─── */
  .about-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
  .about-link-card {
    display: block; text-decoration: none;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px; padding: 22px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
  }
  .about-link-card:hover {
    background: rgba(255,255,255,0.1); border-color: var(--red); transform: translateY(-3px);
  }
  .about-link-card i { font-size: 22px; color: #ff7a80; margin-bottom: 12px; display: block; }
  .about-link-card .al-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 5px;
  }
  .about-link-card .al-desc { font-size: 13.5px; color: #8a96c0; line-height: 1.5; }

  /* Council list inside Sihtasutusest */
  .council-list { list-style: none; margin: 4px 0 0; padding: 0; }
  .council-list li {
    font-size: 14.5px; color: #c8d0f0; padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  }
  .council-list li:last-child { border-bottom: none; }
  .council-list .c-role { color: #8a96c0; font-size: 13px; }

  /* ─── SPONSOR ─── */
  .sponsor-band { background: var(--cream); padding: 46px 0; }
  .sponsor-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: center; gap: 40px;
    flex-wrap: wrap; text-align: center;
  }
  .sponsor-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px 40px;
    display: flex; align-items: center; justify-content: center;
    min-width: 260px; min-height: 104px;
    box-shadow: 0 4px 18px rgba(12,18,48,0.06);
  }
  .sponsor-box img { max-width: 260px; max-height: 62px; width: auto; height: auto; display: block; }
  .sponsor-box .sponsor-fallback {
    font-family: 'Barlow', sans-serif; font-weight: 700;
    font-size: 26px; letter-spacing: -0.5px; color: var(--brand-blue);
  }
  .sponsor-text { max-width: 460px; text-align: left; }
  .sponsor-label {
    font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px;
    text-transform: uppercase; color: var(--red); margin-bottom: 8px;
  }
  .sponsor-text p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }
  @media (max-width: 720px) {
    .sponsor-inner { flex-direction: column; gap: 24px; }
    .sponsor-text { text-align: center; }
    .about-links { grid-template-columns: 1fr; }
    .subpage-hero h1 { font-size: 34px; }
  }

  /* ─── TEAM CAROUSEL ─── */
  .team-carousel { position: relative; }
  .team-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    padding: 4px 2px 14px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .team-track::-webkit-scrollbar { display: none; }
  .team-track .team-card {
    flex: 0 0 262px;
    scroll-snap-align: start;
  }
  .team-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; color: var(--navy-mid);
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(12,18,48,0.16);
    cursor: pointer; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    transition: background 0.2s, color 0.2s, opacity 0.25s, visibility 0.25s;
  }
  .team-nav:hover { background: var(--red); color: #fff; border-color: var(--red); }
  .team-prev { left: -18px; }
  .team-next { right: -18px; }
  .team-nav[disabled] { opacity: 0; visibility: hidden; pointer-events: none; }
  @media (max-width: 900px) {
    .team-prev { left: 2px; }
    .team-next { right: 2px; }
  }

  /* ─── SCROLL REVEAL ─── */
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: 0.08s; }
  .reveal-d2 { transition-delay: 0.16s; }
  .reveal-d3 { transition-delay: 0.24s; }
  @media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.is-visible {
      opacity: 1 !important; transform: none !important; transition: none !important;
    }
    .team-track { scroll-behavior: auto; }
  }

  /* ─── SUBPAGE: SCHEDULE + CLUB LINKS ─── */
  .sched-list { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 8px; }
  .sched-item {
    background: #fff; border: 1px solid var(--border);
    border-left: 4px solid var(--red); border-radius: 10px;
    padding: 18px 20px;
  }
  .sched-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 20px; color: var(--text-dark); margin-bottom: 6px;
  }
  .sched-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px !important; }
  .sched-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .sched-meta li {
    font-size: 14px; color: var(--text-dark);
    display: flex; align-items: center; gap: 9px;
  }
  .sched-meta i { color: var(--red); width: 15px; text-align: center; flex-shrink: 0; }
  .sched-meta a { color: var(--text-dark); }
  .sched-meta a:hover { color: var(--red); }
  .club-list { list-style: none; margin: 16px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .club-list li {
    display: flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--border); border-radius: 8px;
    padding: 12px 16px; font-size: 15px;
  }
  .club-list i { color: var(--red); font-size: 13px; flex-shrink: 0; }
  .club-list a { color: var(--text-dark); text-decoration: none; font-weight: 500; }
  .club-list a:hover { color: var(--red); text-decoration: underline; }

  /* ─── SUBPAGE HERO PHOTO ─── */
  .subpage-hero.has-photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  /* ─── PHOTO GALLERY ─── */
  .photo-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px; margin: 20px 0 10px;
  }
  .photo-item {
    display: block; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border); background: var(--cream);
    aspect-ratio: 3 / 2;
  }
  .photo-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.35s ease;
  }
  .photo-item:hover img { transform: scale(1.05); }
  .info-value a { color: #fff; text-decoration: none; }
  .info-value a:hover { text-decoration: underline; }

  /* ─── CLICKABLE FACILITY CARDS ─── */
  .fac-card-linked { position: relative; }
  .fac-card-linked:hover { border-color: var(--red); }
  .fac-cover {
    position: absolute; inset: 0; z-index: 1;
    border-radius: var(--radius);
  }
  /* keep the nested calendar links + read-more above the cover link */
  .fac-card-linked .fac-calendar,
  .fac-card-linked .fac-link { position: relative; z-index: 2; }
  .fac-card-linked .fac-thumb,
  .fac-card-linked .fac-body { position: relative; }
  .team-photo { background-size: cover; background-position: center top; }

  /* ═══════════════════════════════════════════════════════════
     MOBILE  —  overrides everything above (later rules win)
     ═══════════════════════════════════════════════════════════ */
  @media (max-width: 980px) {
    .nav-hamburger {
      position: relative; z-index: 320;
      width: 44px; height: 44px;              /* proper tap target */
      display: flex; flex-direction: column;  /* bars must stack */
      align-items: center; justify-content: center;
      gap: 5px;
    }
    .nav-hamburger span { margin: 0; }
    .nav-hamburger span { transition: transform .25s, opacity .2s; }
    body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
    body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* slide-in drawer */
    .nav-links {
      display: flex !important;
      position: fixed;
      top: var(--nav-bottom, 68px); left: 0; right: 0; bottom: 0;
      flex-direction: column; align-items: stretch; gap: 2px;
      background: var(--navy-dark);
      padding: 14px 18px 48px;
      overflow-y: auto; -webkit-overflow-scrolling: touch;
      transform: translateX(100%);
      transition: transform .3s cubic-bezier(.4,0,.2,1);
      z-index: 300;
      box-shadow: -8px 0 30px rgba(0,0,0,.4);
    }
    body.nav-open .nav-links { transform: none; }
    body.nav-open { overflow: hidden; }

    .nav-links > li { width: 100%; }
    .nav-links > li > a {
      display: flex; align-items: center;
      padding: 14px 12px; font-size: 16px;      /* 48px tall tap target */
      border-radius: 8px;
      border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .nav-cta {
      margin-top: 14px; justify-content: center !important;
      padding: 15px 12px !important; font-size: 16px !important;
    }

    /* Meist submenu = accordion, not hover */
    .has-dropdown > a { justify-content: space-between; }
    .has-dropdown > a::after { transition: transform .25s; }
    .has-dropdown.open > a::after { transform: rotate(180deg); }
    .nav-dropdown {
      position: static; opacity: 1; visibility: visible; transform: none;
      background: rgba(0,0,0,.22);
      border: none; box-shadow: none; border-radius: 8px;
      min-width: 0; padding: 0 6px;
      max-height: 0; overflow: hidden;
      transition: max-height .3s ease, padding .3s ease, margin .3s ease;
      margin: 0;
    }
    .has-dropdown.open .nav-dropdown {
      max-height: 460px; padding: 6px; margin: 4px 0 8px;
    }
    .nav-dropdown a { padding: 13px 14px; font-size: 15px; }
    .nav-dropdown-sep { margin: 4px 10px; }

    /* hero: keep the cards, don't hide content */
    .hero { min-height: 0; }
    .hero-inner { padding: 52px 20px; gap: 32px; }
    .hero-cards { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
    .hero-card { padding: 14px; }
    .hero-card-icon { width: 38px; height: 38px; font-size: 18px; margin-bottom: 9px; }
    .hero-card h3 { font-size: 14px; }
    .hero-card p { font-size: 12px; }
    .hero h1 { font-size: 44px; }
    .hero-sub { font-size: 16px; margin-bottom: 26px; }
    .hero-actions { gap: 10px; }
    .hero-actions .btn-primary, .hero-actions .btn-outline {
      flex: 1 1 auto; text-align: center; padding: 14px 18px;
    }

    section { padding: 56px 0; }
    .container { padding: 0 20px; }
    .section-title { font-size: 32px; }
    .section-header, .section-header-row { margin-bottom: 30px; }
    .section-header-row { flex-direction: column; align-items: flex-start; gap: 12px; }

    .info-strip-inner { flex-direction: row; flex-wrap: wrap; gap: 18px 26px; justify-content: flex-start; }
    .info-divider { display: none; }
    .info-item { flex: 1 1 44%; }

    .gallery-strip { grid-template-columns: 1fr 1fr; height: auto; }
    .gallery-img { aspect-ratio: 3/2; }

    .event-card { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
    .event-cta { display: none; }
    .event-title { font-size: 19px; }

    .team-track .team-card { flex-basis: 78vw; max-width: 300px; }
    .team-nav { display: none; }          /* swipe instead of arrows on touch */

    .subpage-hero { padding: 40px 0 34px; }
    .subpage-hero h1 { font-size: 34px; }
    .subpage-hero .subpage-lead { font-size: 16px; }
    .subpage-body { padding: 40px 0 56px; }
    .subpage-inner p { font-size: 16px; }
    .subpage-cta { flex-direction: column; }
    .subpage-cta .btn-primary { text-align: center; }

    .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

    .booking-form { padding: 20px; }
    .booking-row-2 { grid-template-columns: 1fr; }
    .booking-field input, .booking-field select, .booking-field textarea { font-size: 16px; } /* stops iOS zoom */

    .hinnakiri-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hk-table { min-width: 620px; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  }

  @media (max-width: 600px) {
    .hero h1 { font-size: 36px; letter-spacing: -0.5px; }
    .hero-cards { grid-template-columns: 1fr 1fr; }
    .section-title { font-size: 28px; }
    .topbar { font-size: 11.5px; padding: 5px 0; }
    .topbar-inner { gap: 4px 14px; justify-content: center; }
    .topbar-hours, .topbar-contact {
      flex-direction: row; flex-wrap: wrap; gap: 4px 14px; justify-content: center;
    }
    .info-item { flex: 1 1 100%; }
    .gallery-strip { grid-template-columns: 1fr 1fr; }
    .photo-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-logo { font-size: 18px; gap: 9px; }
    .nav-logo img { height: 42px !important; }
    .nav-logo-text .logo-sub { font-size: 10px; }
    .team-track .team-card { flex-basis: 84vw; }
    .sched-item, .rules-group { padding: 16px; }
    .subpage-facts { grid-template-columns: 1fr; }
  }

  /* touch devices: no hover-only reveals */
  @media (hover: none) {
    .fac-card:hover, .news-card:hover, .team-card:hover,
    .about-link-card:hover, .event-card:hover { transform: none; }
  }

  /* ─── HERO CARDS ARE LINKS ─── */
  a.hero-card {
    text-decoration: none; display: block;
    transition: background .2s, border-color .2s, transform .2s;
  }
  a.hero-card:hover {
    background: rgba(12,18,48,0.66);
    border-color: var(--red);
    transform: translateY(-3px);
  }
  .hero-card-more {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 10px; font-size: 12.5px; font-weight: 600;
    color: #ff8a8f; letter-spacing: .2px;
  }
  .hero-card-more::after { content: '→'; }
  a.hero-card:hover .hero-card-more { color: #fff; }

  /* ═══ MOBILE UX FIXES (topbar + info strip density, Alu layout) ═══ */
  @media (max-width: 980px) {
    /* top information bar: one tight wrapped row instead of five lines */
    .topbar { padding: 6px 0; font-size: 12px; }
    .topbar-inner {
      flex-direction: row; flex-wrap: wrap;
      justify-content: center; gap: 3px 14px;
      padding: 0 14px;
    }
    .topbar-hours, .topbar-contact {
      flex-direction: row; flex-wrap: wrap;
      gap: 3px 14px; justify-content: center;
    }
    .topbar-hours span, .topbar-contact a { white-space: nowrap; }

    /* red strip: 2-up compact grid, not 4 tall stacked rows */
    .info-strip { padding: 12px 0; }
    .info-strip-inner {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: 10px 14px; padding: 0 18px;
    }
    .info-item { flex: none; gap: 9px; align-items: flex-start; }
    .info-icon { font-size: 15px; margin-top: 2px; }
    .info-icon .fa-solid, .info-icon .fa-regular { font-size: 14px; }
    .info-label { font-size: 10px; letter-spacing: .5px; }
    .info-value { font-size: 12.5px; line-height: 1.3; word-break: break-word; }
    .info-divider { display: none !important; }

    /* Alu block: full-width photo with a sane height */
    .alu-image { aspect-ratio: 16 / 10; width: 100%; border-radius: 12px; }
  }
  @media (max-width: 480px) {
    .topbar { font-size: 11px; }
    /* keep 2 columns even on small phones - stacking made the strip ~224px tall */
    .info-strip { padding: 10px 0; }
    .info-strip-inner { grid-template-columns: 1fr 1fr; gap: 8px 10px; padding: 0 14px; }
    .info-item { gap: 7px; }
    .info-label { font-size: 9.5px; }
    .info-value { font-size: 11.5px; }
    /* NB: .info-divider elements still count for :nth-child even when hidden,
       so don't index items that way - just let the 5 items flow 2/2/1. */
    .info-strip-inner .info-item { min-width: 0; }
  }

  /* ═══ Hinnakiri back link: match the rest of the site ═══ */
  .subpage-bar { background: transparent; border: none; padding: 26px 0 0; }
  .subpage-bar .container { justify-content: flex-start; }
  .subpage-back {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 14px; font-weight: 600;
    color: var(--red); text-decoration: none;
    background: none; border: none; padding: 0;
  }
  .subpage-back i { display: none; }          /* .back-link style uses a CSS arrow */
  .subpage-back::before { content: '←'; font-size: 15px; line-height: 1; }
  .subpage-back:hover { background: none; color: var(--navy-mid); }

  /* ═══ MOBILE TAP TARGETS ═══ */
  @media (max-width: 980px) {
    /* footer links were only ~17px tall */
    .footer-col ul li { margin-bottom: 2px; }
    .footer-col ul a {
      display: inline-block; padding: 9px 0; min-height: 40px;
      line-height: 22px; font-size: 15px;
    }
    .footer-links a { display: inline-block; padding: 9px 0; min-height: 40px; }
    .social-btn { width: 44px; height: 44px; }
    /* inline "read more" style links */
    .read-more, .fac-link {
      padding: 7px 0; min-height: 36px; align-items: center;
    }
    .back-link, .subpage-back { padding: 8px 0; min-height: 40px; }
    .topbar a { display: inline-block; padding: 3px 0; }
  }

  /* ═══ PHOTO LIGHTBOX ═══ */
  .lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(6,10,26,0.94);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    padding: 40px 16px;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  }
  .lightbox.is-open { opacity: 1; visibility: visible; }
  body.lb-open { overflow: hidden; }
  .lb-stage {
    margin: 0; max-width: min(1200px, 94vw); max-height: 88vh;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
  }
  .lb-stage img {
    max-width: 100%; max-height: 82vh;
    width: auto; height: auto; display: block;
    border-radius: 8px; box-shadow: 0 24px 70px rgba(0,0,0,.55);
    animation: lbIn .28s cubic-bezier(.22,.61,.36,1) both;
  }
  @keyframes lbIn { from { opacity:0; transform: scale(.97) } to { opacity:1; transform:none } }
  .lb-count { color: #c8d0f0; font-size: 14px; letter-spacing: .4px; }
  .lightbox button {
    position: absolute; background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22); color: #fff;
    cursor: pointer; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, border-color .2s, transform .2s;
  }
  .lightbox button:hover { background: var(--red); border-color: var(--red); }
  .lb-close { top: 18px; right: 18px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
  .lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 22px; }
  .lb-prev { left: 20px; } .lb-next { right: 20px; }
  .lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }
  .lightbox button[hidden] { display: none; }
  .photo-item { cursor: zoom-in; }
  @media (max-width: 700px) {
    .lightbox { padding: 16px 8px; }
    .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 18px; }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
    .lb-close { top: 10px; right: 10px; width: 42px; height: 42px; }
    .lb-stage img { max-height: 74vh; }
  }
  @media (prefers-reduced-motion: reduce) {
    .lightbox, .lb-stage img { transition: none !important; animation: none !important; }
  }

  /* ═══ HINNAKIRI TABS (Sadolin / Alu) ═══ */
  .hk-tabs {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin: 0 0 22px; padding-bottom: 2px;
  }
  .hk-tab {
    font-family: 'Barlow', sans-serif;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px; border-radius: 10px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    background: #fff; color: var(--text-muted);
    border: 1px solid var(--border);
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  }
  .hk-tab i { font-size: 14px; }
  .hk-tab:hover { border-color: var(--red); color: var(--text-dark); }
  .hk-tab.is-active {
    background: var(--red); color: #fff; border-color: var(--red);
    box-shadow: 0 6px 18px rgba(227,33,39,.24);
  }
  .hk-panel { display: none; }
  .hk-panel.is-active { display: block; animation: hkFade .25s ease both; }
  @keyframes hkFade { from { opacity:0; transform: translateY(6px) } to { opacity:1; transform:none } }
  .hk-table-alu .hk-price { min-width: 110px; }
  @media (max-width: 620px) {
    .hk-tabs { gap: 6px; }
    .hk-tab { flex: 1 1 auto; justify-content: center; padding: 12px 14px; font-size: 14px; }
    .hk-table-alu { min-width: 420px; }
  }
  @media (prefers-reduced-motion: reduce) { .hk-panel.is-active { animation: none; } }

  /* ═══ TOPBAR SOCIAL ICONS ═══ */
  .topbar-social {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: 4px; padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.16);
  }
  .topbar-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    color: #b0bbdd; font-size: 12px;
    transition: background .2s, color .2s;
  }
  .topbar-social a:hover { background: var(--red); color: #fff; }

  /* ═══ ALU CALENDAR BUTTONS ═══ */
  .alu-cal { margin-top: 24px; }
  .alu-cal-label {
    font-size: 11.5px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: #8a96c0; margin-bottom: 10px;
    display: flex; align-items: center; gap: 7px;
  }
  .alu-cal-label i { color: #ff7a80; }
  .alu-cal-links { display: flex; gap: 9px; flex-wrap: wrap; }
  .alu-cal-link {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.16);
    color: #c8d0f0; text-decoration: none;
    padding: 10px 15px; border-radius: 8px;
    font-size: 13.5px; font-weight: 600;
    transition: background .2s, border-color .2s, color .2s;
  }
  .alu-cal-link i { font-size: 11px; color: #ff7a80; }
  .alu-cal-link:hover { background: var(--red); border-color: var(--red); color: #fff; }
  .alu-cal-link:hover i { color: #fff; }

  @media (max-width: 980px) {
    .topbar-social { border-left: none; padding-left: 0; margin-left: 0; gap: 2px; }
    .topbar-social a { width: 32px; height: 32px; font-size: 13px; }
    .alu-cal-links { flex-direction: column; }
    .alu-cal-link { justify-content: center; }
  }
  /* headline sits centred against the 64px date box (tag was removed) */
  .news-card-header > div:last-child { display: flex; align-items: center; min-height: 64px; }
  .news-card-title { margin-bottom: 0; }
