/*
Theme Name: Tapa Valla Spordikeskus
Theme URI: https://tapasport.ee/
Author: Spark X Agency
Author URI: https://sparkxagency.ee/
Description: Tapa Valla Spordikeskuse koduleht. Uritused, sportimisvoimalused, asukohad ja hinnakiri. Lisapluginaid ei vaja.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tapa-valla-spordikeskus
*/

/* Allpool on lehe stiilid. Neid tohib muuta. */

:root {
    --brand: #4732C8;
    --accent: #05D7E1;
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F8F8FC;
    --gray-100: #F0EFF9;
    --gray-200: #E0DEEF;
    --gray-500: #7B7A90;
    --brand-light: rgba(71,50,200,0.08);
    --shadow-sm: 0 2px 10px rgba(71,50,200,0.08);
    --shadow-md: 0 8px 30px rgba(71,50,200,0.12);
    --shadow-lg: 0 20px 60px rgba(71,50,200,0.18);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
  }

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

  /* Global safety: long words never break past their container */
  h1, h2, h3, h4, p, span, a, div, li {
    overflow-wrap: break-word;
    word-break: normal;
  }
  .hero h1 .hero-line-inner { overflow-wrap: normal; }

  html { scroll-behavior: smooth; font-size: 16px; }

  body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: clip;
  }

  /* ---- UTILITY ---- */
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  .section-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
  }
  .section-title {
    font-family: var(--font-display);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 16px;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
  }
  .section-sub {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 540px;
    line-height: 1.7;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
  }
  .btn-primary {
    background: var(--brand);
    color: var(--white);
    border-color: var(--brand);
  }
  .btn-primary:hover {
    background: #3928b0;
    border-color: #3928b0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(71,50,200,0.35);
  }
  .btn-secondary {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
  }
  .btn-secondary:hover {
    background: var(--brand);
    color: var(--white);
    transform: translateY(-2px);
  }
  .btn-white {
    background: var(--white);
    color: var(--brand);
    border-color: var(--white);
  }
  .btn-white:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-2px);
  }
  .btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
  }
  .btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-2px);
  }
  .btn-accent {
    background: var(--accent);
    color: var(--black);
    border-color: var(--accent);
  }
  .btn-accent:hover {
    background: #04c4cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5,215,225,0.4);
  }

  /* ---- HEADER ---- */
  .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s;
  }
  .header.scrolled { box-shadow: var(--shadow-md); }
  .header { transition: box-shadow 0.3s ease; }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
  }
  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
  }
  .nav { display: flex; align-items: center; gap: 4px; }
  .nav a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
  }
  .nav a:hover { background: var(--brand-light); color: var(--brand); }
  .nav a.active { color: var(--brand); }
  .header-cta { flex-shrink: 0; }
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s;
  }
  .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 999;
    padding: 100px 32px 40px;
    flex-direction: column;
    gap: 8px;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
  }
  .mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--black);
  }

  /* ---- HERO ---- */
  .hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--black);
  }
  .hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #0f0a3c; /* fallback colour behind video */
  }
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  /* gradient overlay sits ON TOP of the video for text legibility */
  .hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(71,50,200,0.86) 0%, rgba(15,10,60,0.82) 50%, rgba(5,215,225,0.28) 100%);
  }
  .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(5,215,225,0.08) 0%, transparent 60%);
  }
  .hero-content {
    position: relative;
    z-index: 3;
    max-width: 720px;
    padding: 80px 0;
  }
  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5,215,225,0.2);
    border: 1px solid rgba(5,215,225,0.4);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 28px;
  }
  .hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
  }
  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4.4vw, 48px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    max-width: 100%;
    hyphens: none;
  }
  .hero h1 .hero-line-inner { white-space: nowrap; }
  .hero h1 .hero-line { display: block; overflow: visible; padding: 0.04em 0; text-align: center; }
  .hero h1 .hero-line-inner {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    animation: lineReveal 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
  }
  .hero h1 .hero-line:nth-child(1) .hero-line-inner { animation-delay: 0.3s; }
  .hero h1 .hero-line:nth-child(2) .hero-line-inner { animation-delay: 0.5s; }
  @keyframes lineReveal {
    to { transform: translateY(0); opacity: 1; }
  }
  .hero h1 .accent-word { color: var(--accent); }

  /* Floating orbs in hero */
  .hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: orbFloat linear infinite;
  }
  @keyframes orbFloat {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(30px) scale(0.6); opacity: 0; }
  }

  /* Badge slide-in */
  .hero-badge {
    animation: badgeIn 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s both;
  }
  @keyframes badgeIn {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* Sub + CTAs + trust */
  .hero-sub   { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.8s both; }
  .hero-ctas  { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 1.0s both; }
  .hero-trust { animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 1.2s both; }

  /* Counter animation */
  .count-up { display: inline-block; }

  /* Shimmer on cards */
  @keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
  }

  /* Animated underline for section labels */
  .section-label::before {
    animation: labelLine 0.6s ease both;
  }
  @keyframes labelLine {
    from { width: 0; opacity: 0; }
    to   { width: 28px; opacity: 1; }
  }

  /* Scroll progress bar */
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    z-index: 9999;
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 0 3px 3px 0;
  }

  /* Parallax hero bg */
  .hero-bg { will-change: transform; }
  .hero-sub {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 540px;
  }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
  .hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 500;
  }
  .hero-trust-item svg { color: var(--accent); flex-shrink: 0; }
  .hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2s ease infinite;
  }
  @keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
  }

  /* ---- HERO CENTERED OVERRIDES ---- */
  .hero { justify-content: center; text-align: center; }
  .hero-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
  }
  .hero-content .hero-badge,
  .hero-content .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-content .hero-ctas { justify-content: center; }
  .hero-content .hero-trust { justify-content: center; }
  .hero-content .hero-line { text-align: center; }

  /* ---- TEAM SECTION ---- */
  .team { padding: 100px 0; background: var(--gray-50); }
  .team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 52px;
  }
  .team-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    border: 1.5px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .team-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
  .team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--brand) 0%, #6a4ee0 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    border: 3px solid var(--white);
    box-shadow: 0 6px 18px rgba(71,50,200,0.25);
    position: relative;
  }
  .team-card:nth-child(2) .team-avatar {
    background: linear-gradient(135deg, var(--accent) 0%, #07a5ad 100%);
    box-shadow: 0 6px 18px rgba(5,215,225,0.3);
  }
  .team-card:nth-child(3) .team-avatar {
    background: linear-gradient(135deg, #6a4ee0 0%, var(--brand) 100%);
  }
  .team-card:nth-child(4) .team-avatar {
    background: linear-gradient(135deg, #0A0818 0%, var(--brand) 100%);
  }
  .team-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 4px;
    color: var(--black);
  }
  .team-role {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }
  .team-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--gray-200);
    padding-top: 16px;
  }
  .team-contacts a {
    font-size: 12.5px;
    color: var(--gray-500);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s;
  }
  .team-contacts a:hover { color: var(--brand); }
  .team-contacts a svg { color: var(--brand); flex-shrink: 0; }

  /* ---- CONTACT FORM SECTION ---- */
  .contact-section { padding: 100px 0; }
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 52px;
  }
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-100);
    transition: all 0.3s;
  }
  .contact-info-card:hover {
    border-color: var(--brand);
    transform: translateX(4px);
  }
  .contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .contact-info-icon svg { color: var(--brand); }
  .contact-info-text strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 4px;
  }
  .contact-info-text a,
  .contact-info-text span {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    line-height: 1.4;
  }
  .contact-info-text a:hover { color: var(--brand); }

  .contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
  }
  .contact-form-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
  }
  .contact-form-sub {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 28px;
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
  }
  .form-group { margin-bottom: 14px; }
  .form-group label,
  .form-row label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 6px;
  }
  .form-input,
  .form-textarea,
  .form-select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--black);
    background: var(--white);
    transition: all 0.2s;
  }
  .form-input:focus,
  .form-textarea:focus,
  .form-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(71,50,200,0.1);
  }
  .form-textarea { resize: vertical; min-height: 120px; font-family: var(--font-body); }
  .form-submit {
    margin-top: 8px;
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 14.5px;
  }
  .form-success {
    background: rgba(5,215,225,0.1);
    border: 1px solid rgba(5,215,225,0.3);
    color: #047a82;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    margin-top: 14px;
    display: none;
  }
  .form-success.show { display: block; }

  /* responsive */
  @media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
  }


  /* ---- QUICK ACCESS ---- */
  .quick-access {
    padding: 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
  }
  .quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
  .quick-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .quick-card:hover {
    border-color: var(--brand);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
  }
  .quick-card:hover .quick-icon { background: var(--brand); }
  .quick-card:hover .quick-icon svg { color: var(--white); }
  .quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
  }
  .quick-icon svg { color: var(--brand); transition: color 0.3s; }
  .quick-card span {
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
  }

  /* ---- INTRO ---- */
  .intro { padding: 100px 0; }
  .intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }
  .intro-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
  }
  .intro-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .intro-visual-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .intro-stat-num {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
  }
  .intro-stat-label {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    max-width: 100px;
    line-height: 1.3;
  }
  .intro-accent-dot {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.2;
  }
  .intro-features { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
  .intro-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-100);
  }
  .intro-feature-icon {
    width: 36px;
    height: 36px;
    background: var(--brand-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .intro-feature-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
  }
  .intro-feature-text span { font-size: 13px; color: var(--gray-500); }

  /* ---- FACILITIES ---- */
  .facilities { padding: 100px 0; background: var(--gray-50); }
  .section-head { display: flex; flex-direction: column; margin-bottom: 52px; }
  .facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .facility-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 28px 22px;
    border: 1.5px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .facility-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
  }
  .facility-card:hover .facility-icon { background: var(--brand); }
  .facility-card:hover .facility-icon svg { color: var(--white); }
  .facility-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
  }
  .facility-icon svg { color: var(--brand); transition: color 0.3s; }
  .facility-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--black);
  }
  .facility-desc { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
  .facility-arrow {
    margin-top: auto;
    color: var(--brand);
    font-size: 18px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s;
  }
  .facility-card:hover .facility-arrow { opacity: 1; transform: translateX(0); }

  /* ---- LOCATIONS ---- */
  .locations { padding: 100px 0; }
  .locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
  }
  .location-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1.5px solid var(--gray-200);
    transition: all 0.3s;
    position: relative;
  }
  .location-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .location-img {
    height: 200px;
    position: relative;
    overflow: hidden;
  }
  .location-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
  }
  .location-card:hover .location-img img { transform: scale(1.05); }
  .location-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(71,50,200,0.8) 0%, transparent 60%);
  }
  .location-img-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent);
    color: var(--black);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .location-body { padding: 24px; background: var(--white); }
  .location-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
  }
  .location-desc { font-size: 13.5px; color: var(--gray-500); margin-bottom: 20px; line-height: 1.6; }
  .location-btns { display: flex; gap: 10px; flex-wrap: wrap; }
  .btn-sm {
    padding: 10px 18px;
    font-size: 12.5px;
  }

  /* ---- PRICES ---- */
  .prices { padding: 100px 0; background: var(--gray-50); }
  .prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
  }
  .price-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    border: 1.5px solid var(--gray-200);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .price-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-4px); }
  .price-card.featured {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
  }
  .price-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .price-card.featured .price-card-icon { background: rgba(255,255,255,0.15); }
  .price-card.featured .price-card-icon svg { color: var(--white); }
  .price-card-icon svg { color: var(--brand); }
  .price-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
  }
  .price-card.featured .price-name { color: var(--white); }
  .price-desc { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; }
  .price-card.featured .price-desc { color: rgba(255,255,255,0.75); }
  .price-amount {
    display: flex;
    align-items: baseline;
    gap: 4px;
  }
  .price-num {
    font-family: var(--font-body);
    font-size: 40px;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .price-card.featured .price-num { color: var(--accent); }
  .price-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500);
  }
  .price-card.featured .price-unit { color: rgba(255,255,255,0.6); }
  .price-from { font-size: 12px; color: var(--gray-500); }
  .price-card.featured .price-from { color: rgba(255,255,255,0.5); }
  .prices-cta { text-align: center; margin-top: 48px; }

  /* ---- HINNAKIRI (full integrated) ---- */
  .notice-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 36px;
  }
  .notice-info { display: flex; align-items: center; gap: 16px; }
  .notice-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .notice-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
  }
  .notice-text span { font-size: 13.5px; color: var(--gray-500); }

  .price-tables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
  }
  .price-table {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.3s;
  }
  .price-table:hover { box-shadow: var(--shadow-md); border-color: var(--brand); }
  .price-table-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid var(--gray-100);
  }
  .price-table-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .price-table-icon svg { color: var(--brand); }
  .price-table-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--black);
  }
  .price-table-meta {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 2px;
  }
  .price-rows { display: flex; flex-direction: column; }
  .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    gap: 16px;
  }
  .price-row:last-child { border-bottom: none; }
  .price-row { transition: background 0.2s ease, padding-left 0.2s ease; border-radius: 6px; }
  .price-row:hover { background: var(--gray-50); padding-left: 8px; }
  .price-row-label { font-size: 14.5px; color: var(--black); font-weight: 500; line-height: 1.4; }
  .price-row-label small {
    display: block;
    font-size: 11.5px;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .price-row-value {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
  }
  .price-row-value.free { color: var(--accent); }

  .price-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
  }
  .price-info-card {
    padding: 26px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .price-info-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
    transform: translateY(-3px);
  }
  .price-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }
  .price-info-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--black);
  }
  .price-info-card p { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; }

  .price-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }

  @media (max-width: 1024px) {
    .price-tables-grid { grid-template-columns: 1fr; }
    .price-info-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    .notice-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
    .notice-card .btn { width: 100%; justify-content: center; }
    .price-table { padding: 20px 18px; }
    .price-table-title { font-size: 19px; }
    .price-table-meta { font-size: 11px; }
    .price-row { padding: 12px 0; gap: 12px; }
    .price-row-label { font-size: 13.5px; }
    .price-row-value { font-size: 17px; }
    .price-info-card { padding: 20px; }
    .price-actions { flex-direction: column; align-items: stretch; }
    .price-actions .btn { justify-content: center; }
  }


  /* ---- EVENTS ---- */
  .events { padding: 100px 0; }
  .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
  }
  .event-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
  }
  .event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
  .event-header {
    background: var(--brand);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .event-date {
    display: flex;
    flex-direction: column;
    color: var(--white);
  }
  .event-day {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
  }
  .event-month { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
  .event-tag {
    background: rgba(5,215,225,0.2);
    border: 1px solid rgba(5,215,225,0.4);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .event-body { padding: 22px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
  .event-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
  }
  .event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--brand);
    font-weight: 600;
  }
  .event-desc { font-size: 13.5px; color: var(--gray-500); line-height: 1.6; flex: 1; }
  .event-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    margin-top: 8px;
    transition: gap 0.2s;
  }
  .event-link:hover { gap: 10px; }
  .events-cta { text-align: center; margin-top: 48px; }

  /* ---- ADDITIONAL SERVICES ---- */
  .additional { padding: 100px 0; background: var(--gray-50); }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 52px;
  }
  .service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px 22px;
    border: 1.5px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s;
    cursor: pointer;
  }
  .service-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); transform: translateX(4px); }
  .service-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
  }
  .service-card:hover .service-icon { background: var(--brand); }
  .service-card:hover .service-icon svg { color: var(--white); }
  .service-icon svg { color: var(--brand); transition: color 0.3s; }
  .service-info strong { font-size: 15px; font-weight: 700; display: block; margin-bottom: 3px; }
  .service-info span { font-size: 12.5px; color: var(--gray-500); }

  /* ---- CTA BAND ---- */
  .cta-band {
    padding: 100px 0;
    background: var(--brand);
    position: relative;
    overflow: hidden;
  }
  .cta-band::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(5,215,225,0.08);
    pointer-events: none;
  }
  .cta-band::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
  }
  .cta-band-inner {
    position: relative;
    z-index: 1;
    text-align: center;
  }
  .cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 4.2vw, 50px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.1;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
  }
  .cta-band h2 .nowrap { white-space: nowrap; }
  .cta-band p {
    font-size: 17px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-band-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

  /* ---- FOOTER ---- */
  .footer { background: #0A0818; padding: 80px 0 0; }
  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 20px; margin-bottom: 28px; max-width: 280px; }
  .footer-contacts { display: flex; flex-direction: column; gap: 12px; }
  .footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
  }
  .footer-contact svg { color: var(--accent); flex-shrink: 0; }
  .footer-contact:hover { color: var(--white); }
  .footer-col-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .footer-links { display: flex; flex-direction: column; gap: 10px; }
  .footer-links a {
    font-size: 13.5px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--accent); }
  .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 16px;
  }
  .footer-copy { font-size: 13px; color: rgba(255,255,255,0.3); }
  .social-links { display: flex; gap: 12px; }
  .social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.2s;
  }
  .social-link:hover { background: var(--brand); border-color: var(--brand); color: var(--white); }

  /* ---- DIVIDER ---- */
  .accent-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 3px;
    width: 60px;
    margin-bottom: 52px;
  }

  /* ---- ANIMATIONS ---- */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .fade-up { opacity: 0; animation: fadeUp 0.7s ease forwards; }
  .delay-1 { animation-delay: 0.15s; }
  .delay-2 { animation-delay: 0.3s; }
  .delay-3 { animation-delay: 0.45s; }
  .delay-4 { animation-delay: 0.6s; }

  /* ---- RESPONSIVE ---- */
  @media (max-width: 1024px) {
    .quick-grid { grid-template-columns: repeat(3, 1fr); }
    .facilities-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  }
  @media (max-width: 768px) {
    .nav { display: none; }
    .header-cta .btn { display: none; }
    .hamburger { display: flex; }
    .hero { min-height: 68vh; }
    .hero-content { padding: 40px 0; max-width: 100%; }
    .hero h1 { font-size: clamp(21px, 5.4vw, 34px); line-height: 1.12; }
    .hero-sub { font-size: 15px; margin-bottom: 28px; }
    .hero-badge { margin-bottom: 20px; font-size: 11px; padding: 5px 14px; }
    .hero-trust { gap: 12px; }
    .hero-trust-item { font-size: 12px; }
    .hero-scroll { display: none; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { justify-content: center; }
    .quick-access { margin-top: -24px; }
    .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .intro-grid { grid-template-columns: 1fr; gap: 40px; }
    .facilities-grid { grid-template-columns: repeat(2, 1fr); }
    .locations-grid { grid-template-columns: 1fr; }
    .prices-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .intro-visual { display: none; }
    .intro-grid > div:first-child { display: none; }
  }
  @media (max-width: 480px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .facilities-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .hero-trust { flex-direction: column; gap: 12px; }
  }




  /* ---- KÕIKIDE ÜRITUSTE NIMEKIRI ---- */
  .events-all { margin-top: 40px; }
  .events-month {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--gray-200);
  }
  .events-month:first-child { margin-top: 0; }
  .event-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
    flex-wrap: wrap;
  }
  .event-row:hover { background: var(--gray-50); }
  .event-row-date {
    font-weight: 800;
    color: var(--brand);
    font-size: 14px;
    min-width: 62px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
  }
  .event-row-main { flex: 1 1 320px; min-width: 0; }
  .event-row-title { font-weight: 700; font-size: 14.5px; color: var(--black); }
  .event-row-loc { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
  .event-row-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-light);
    padding: 4px 10px;
    border-radius: 100px;
    flex-shrink: 0;
  }
  @media (max-width: 520px) {
    .event-row-date { min-width: 54px; font-size: 13px; }
    .event-row-title { font-size: 13.5px; }
  }

  /* ---- PLAY BUTTON (hero) ---- */
  .btn-play {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 14px 26px 14px 16px;
    border-radius: 100px;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .btn-play:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
  }
  .btn-play-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--black);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding-left: 2px;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  .btn-play:hover .btn-play-icon { transform: scale(1.08); }

  /* ---- VIDEO MODAL ---- */
  .video-overlay {
    position: fixed; inset: 0;
    background: rgba(6,4,20,0.92);
    backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .video-overlay.open { opacity: 1; visibility: visible; }
  .video-box {
    width: 100%;
    max-width: 1120px;
    position: relative;
    transform: scale(0.97);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  }
  .video-overlay.open .video-box { transform: scale(1); }
  .video-box video {
    width: 100%;
    height: auto;
    max-height: 82vh;
    display: block;
    border-radius: var(--radius-md);
    background: #000;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  }
  .video-close {
    position: absolute;
    top: -46px; right: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
  }
  .video-close:hover { background: var(--white); color: var(--black); transform: rotate(90deg); }
  .video-caption {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    text-align: center;
    margin-top: 14px;
  }
  @media (max-width: 680px) {
    .video-overlay { padding: 16px; }
    .video-close { top: -42px; width: 34px; height: 34px; }
    .btn-play { padding: 13px 22px 13px 14px; font-size: 13.5px; }
  }

  /* ============================================
     MODAL SYSTEM (v5) — hours, facilities, events
     ============================================ */
  .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 8, 24, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
  }
  .modal-overlay.open { opacity: 1; visibility: visible; }
  .modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
    box-shadow: var(--shadow-lg);
  }
  .modal-overlay.open .modal { transform: translateY(0) scale(1); }
  .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: 1.5px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s;
    color: var(--black);
  }
  .modal-close:hover { background: var(--brand); color: var(--white); border-color: var(--brand); transform: rotate(90deg); }
  .modal-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
  .modal-gallery img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-sm);
  }
  .modal-gallery img:only-child { grid-column: span 2; height: 220px; }
  .modal-body { padding: 28px 32px 32px; }
  .modal-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .modal-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); }
  .modal-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--black);
  }
  .modal-text { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 18px; }
  .modal-text:last-child { margin-bottom: 0; }
  .modal-section-title {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin: 22px 0 12px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .modal-section-title svg { color: var(--brand); }
  .modal-list { display: flex; flex-direction: column; gap: 10px; }
  .modal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-100);
  }
  .modal-list-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
  .modal-list-item span { font-size: 13px; color: var(--gray-500); line-height: 1.5; }
  .modal-list-icon {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--brand-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .modal-list-icon svg { color: var(--brand); }
  /* opening hours table */
  .hours-block { margin-bottom: 20px; }
  .hours-block:last-child { margin-bottom: 0; }
  .hours-period {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid var(--gray-100);
  }
  .hours-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 14px;
    gap: 16px;
  }
  .hours-row span:first-child { color: var(--gray-500); }
  .hours-row span:last-child { font-weight: 600; color: var(--black); white-space: nowrap; }
  .hours-row.closed span:last-child { color: var(--red-700, #A81A1E); }
  .modal-cta {
    margin-top: 22px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .facility-card, .event-link, .location-card .btn { cursor: pointer; }
  .facility-card { position: relative; }
  .facility-card::after {
    content: 'Vaata lähemalt';
    position: absolute;
    bottom: 22px;
    left: 22px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    opacity: 0;
    transition: opacity 0.3s;
  }
  .facility-card:hover::after { opacity: 0; }
  @media (max-width: 600px) {
    .modal-body { padding: 22px 20px 24px; }
    .modal-title { font-size: 23px; }
    .modal-gallery img { height: 120px; }
    .modal-image { height: 190px; }
  }

  /* ============================================
     COMPREHENSIVE RESPONSIVE PASS (v4)
     ============================================ */

  /* Large tablets / small laptops */
  @media (max-width: 1100px) {
    .container { padding: 0 20px; }
    .intro-grid { gap: 48px; }
  }

  /* Tablets */
  @media (max-width: 900px) {
    .price-tables-grid { grid-template-columns: 1fr; }
    .price-info-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    section { overflow-x: clip; }
    .intro { padding: 72px 0; }
    .facilities, .locations, .prices, .events, .additional, .team, .contact-section { padding: 72px 0; }
  }

  /* Landscape phones / small tablets */
  @media (max-width: 680px) {
    .section-title { font-size: clamp(24px, 6vw, 34px); }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-band h2 { font-size: clamp(22px, 5vw, 34px); }
    .header-cta { display: none; }
  }

  /* Phones */
  @media (max-width: 520px) {
    .container { padding: 0 16px; }
    .facilities-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: 1fr; }
    .events-grid { grid-template-columns: 1fr; }
    .intro { padding: 56px 0; }
    .facilities, .locations, .prices, .events, .additional, .team, .contact-section { padding: 56px 0; }
    .section-label { font-size: 10px; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { justify-content: center; }
    .price-actions { flex-direction: column; }
    .price-actions .btn { justify-content: center; }
    .contact-info-card { padding: 18px 20px; }
    .contact-form { padding: 22px 18px; }
    .form-row { grid-template-columns: 1fr; }
    .cta-band { padding: 64px 0; }
    .cta-band-btns { flex-direction: column; align-items: stretch; }
    .cta-band-btns .btn { justify-content: center; }
    .footer { padding: 56px 0 0; }
  }

  /* Small phones */
  @media (max-width: 380px) {
    .hero h1 { font-size: 17px; }
    .section-title { font-size: 22px; }
    .price-row-value { font-size: 16px; }
    .price-row-label { font-size: 13px; }
    .team-avatar { width: 84px; height: 84px; font-size: 28px; }
  }

  /* Narrowest phones (e.g. 320px) */
  @media (max-width: 340px) {
    .hero h1 { font-size: 15px; }
    .hero-badge { font-size: 10px; padding: 5px 12px; }
    .container { padding: 0 14px; }
    .cta-band h2 { font-size: 19px; }
  }

  /* Prevent any horizontal overflow globally */
  html, body { max-width: 100%; overflow-x: clip; }
  img, svg { max-width: 100%; }


/* ---------- Ürituste alamleht ---------- */
  /* Alamlehe päisevahe (pole hero'd) */
  .page-hero {
    background: linear-gradient(135deg, var(--brand) 0%, #1a1050 60%, #0d0833 100%);
    padding: 84px 0 72px;
    position: relative;
    overflow: hidden;
  }
  .page-hero::after {
    content:''; position:absolute; inset:0;
    background: radial-gradient(ellipse 70% 60% at 75% 40%, rgba(5,215,225,0.12) 0%, transparent 60%);
  }
  .page-hero .container { position: relative; z-index: 2; }
  .page-hero .section-label { color: var(--accent); }
  .page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.4vw, 50px);
    font-weight: 800; color: var(--white);
    line-height: 1.1; margin-bottom: 14px;
    overflow-wrap: break-word;
  }
  .page-hero p { color: rgba(255,255,255,0.72); font-size: 16px; max-width: 620px; line-height: 1.7; }
  .page-back {
    display:inline-flex; align-items:center; gap:8px;
    color: rgba(255,255,255,0.7); font-size:13.5px; font-weight:600;
    text-decoration:none; margin-bottom:20px; transition: color .2s;
  }
  .page-back:hover { color: var(--white); }

  /* Filtriribad */
  .ev-filters { display:flex; flex-wrap:wrap; gap:9px; margin-bottom: 34px; }
  .ev-filter {
    padding: 9px 17px; border-radius: 100px;
    border: 1.5px solid var(--gray-200); background: var(--white);
    font-family: var(--font-body); font-size: 13px; font-weight: 600;
    color: var(--gray-500); cursor: pointer; transition: all .22s;
  }
  .ev-filter:hover { border-color: var(--brand); color: var(--brand); }
  .ev-filter.active { background: var(--brand); border-color: var(--brand); color: var(--white); }
  .ev-count { font-size: 13.5px; color: var(--gray-500); margin-bottom: 22px; }
  .ev-empty { text-align:center; padding: 60px 20px; color: var(--gray-500); }
  .events-page { padding: 76px 0 100px; background: var(--white); }
  @media (max-width: 520px) {
    .page-hero { padding: 60px 0 52px; }
    .events-page { padding: 54px 0 72px; }
  }

/* ---------- Ürituste lehe vahekaardid (tulevased / toimunud) ---------- */
.ev-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.ev-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--gray-200, #e5e7eb);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600, #4b5563);
  text-decoration: none;
  transition: all .18s ease;
}
.ev-tab:hover { border-color: var(--brand); color: var(--brand); }
.ev-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white, #fff);
}
/* Ridu peidab JavaScript hidden-atribuudiga. */
.event-row[hidden], .events-month[hidden] { display: none !important; }
/* Ürituse rida on nüüd link, aga peab välja nägema nagu enne. */
a.event-row { text-decoration: none; color: inherit; }
