/* =========================================
   Novi Tennis Club — site styles
   Theme: light surfaces, dark navy headings,
   orange accent — mirrors the mobile app.
   ========================================= */

:root {
  --ink: #021c34;
  --ink-soft: #1e3553;
  --muted: #5d6d80;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --bg-elev: #ffffff;
  --border: #e3e8f0;
  --accent: #f45912;
  --accent-soft: #fff0e8;
  --accent-strong: #d44a08;
  --success: #1f7f65;
  --warning: #c78917;
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 12px 30px rgba(2, 28, 52, 0.08);
  --shadow-lg: 0 24px 60px rgba(2, 28, 52, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============== Typography ============== */
h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  font-weight: 800;
}
h1 { font-size: clamp(38px, 6vw, 64px); letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 20px; }
h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 14px; }
h4 { font-size: 18px; margin-bottom: 8px; }
h5 { font-size: 14px; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .08em; }

p { margin: 0 0 14px; color: var(--ink-soft); }
.lead { font-size: 18px; color: var(--muted); max-width: 760px; margin-bottom: 36px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow--light {
  background: rgba(244, 89, 18, .18);
  color: #ffd4be;
}

.accent { color: var(--accent); }

/* ============== Icons ============== */
.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: currentColor;
}
.icon-lg { width: 32px; height: 32px; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(244, 89, 18, .35);
}
.btn-primary:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(244, 89, 18, .45);
}
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

/* ============== Header ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 96px; width: auto; max-width: 484px; display: block; }

.nav {
  display: flex;
  gap: 28px;
  margin: 0 auto;
}
.nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  transition: right .2s ease;
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after { right: 0; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  padding: 10px 8px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(2, 28, 52, .55) 0%, rgba(2, 28, 52, .30) 55%, rgba(2, 28, 52, .10) 100%),
    linear-gradient(0deg, rgba(2, 28, 52, .55) 0%, rgba(2, 28, 52, 0) 50%);
  z-index: -1;
}
.hero-content {
  padding: 120px 24px 96px;
  max-width: 820px;
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  color: rgba(255, 255, 255, .88);
  max-width: 600px;
  margin-bottom: 32px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* ============== About ============== */
.about { padding: 110px 0 90px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 56px;
}
.about-text p:last-child { margin-bottom: 0; }
.about-image {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stats li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stats li .icon { color: var(--accent); width: 26px; height: 26px; }
.stats li span { font-size: 14px; color: var(--ink); line-height: 1.35; }
.stats li strong { color: var(--ink); font-weight: 800; font-size: 17px; margin-right: 2px; }

/* ============== Phases ============== */
.phases {
  padding: 100px 0;
  background: var(--bg-soft);
  position: relative;
}
.phase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 36px;
  box-shadow: var(--shadow);
}
.phase--reverse .phase-media { order: 2; }
.phase-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.phase-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.phase:hover .phase-media > img { transform: scale(1.03); }

/* Gallery variant — main image on top + thumbnails row below */
.phase-media.phase-media--gallery {
  aspect-ratio: auto;
  height: auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}
.phase-media--gallery > .phase-main {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.phase:hover .phase-media--gallery > .phase-main { transform: scale(1.02); }
.phase-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.phase-thumbs--3 { grid-template-columns: repeat(3, 1fr); }
.phase-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform .3s ease, filter .3s ease;
  cursor: pointer;
}
.phase-thumbs img:hover { transform: scale(1.03); filter: brightness(1.05); }
.phase-media > img,
.phase-media--gallery > .phase-main { cursor: zoom-in; }

/* ============== Lightbox ============== */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(2, 28, 52, .85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
  border-radius: 6px;
  display: block;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: #021c34;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.lightbox-close:hover { background: #fff; }
.phase-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  background: rgba(2, 28, 52, .85);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.phase-body { padding: 40px 44px; }
.phase-body p:last-of-type { margin-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge--done { background: #dff1ec; color: #1f7f65; }
.badge--done .dot { background: #1f7f65; }
.badge--progress { background: #fbefcf; color: #8c5b00; }
.badge--progress .dot { background: var(--warning); animation: pulse 1.8s ease-in-out infinite; }
.badge--planned { background: #dbe4ef; color: #4a5b73; }
.badge--planned .dot { background: #7d8b99; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 18px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink-soft);
}
.check-list li .icon {
  color: var(--accent);
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.check-list.two-col { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }

/* ============== Audience ============== */
.audience { padding: 100px 0; }
.audience-grid {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.audience-grid li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.audience-grid li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(244, 89, 18, .3);
}
.audience-grid li .icon { color: var(--accent); margin-bottom: 14px; }
.audience-grid li h4 { font-size: 19px; margin-bottom: 6px; }
.audience-grid li p { margin: 0; font-size: 15px; color: var(--muted); }

/* ============== Download (dark) ============== */
.download.dark {
  background:
    radial-gradient(circle at 80% 0%, rgba(244, 89, 18, .15), transparent 60%),
    linear-gradient(180deg, #021c34 0%, #02223e 100%);
  color: #fff;
  padding: 100px 0;
}
.download h2 { color: #fff; }
.download p { color: rgba(255, 255, 255, .82); }
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.download .check-list li { color: rgba(255, 255, 255, .88); }
.download .check-list li .icon { color: var(--accent); }

.store-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.store-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.store-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 89, 18, .5);
  background: rgba(255, 255, 255, .08);
}
.qr {
  width: 180px;
  height: 180px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
}
.qr svg { width: 100%; height: 100%; display: block; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  transition: transform .15s ease, background .15s ease;
  min-width: 200px;
  justify-content: flex-start;
}
.store-badge:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.store-badge:hover .store-logo { color: #fff; }
.store-logo { width: 26px; height: 26px; color: var(--ink); transition: color .15s ease; }
.store-text { display: flex; flex-direction: column; text-align: left; line-height: 1.1; }
.store-text small { font-size: 11px; font-weight: 500; opacity: .8; }
.store-text strong { font-size: 16px; font-weight: 700; }
.store-hint { font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ============== Contact ============== */
.contact { padding: 100px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info li:last-child { border-bottom: none; }
.contact-info li .icon { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.contact-info li strong {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
  font-weight: 700;
}
.contact-info li a {
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
}
.contact-info li a:hover { color: var(--accent); }

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============== Footer ============== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, .8);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand img {
  height: 64px;
  width: auto;
  max-width: 260px;
  margin-bottom: 16px;
}
.footer-brand p { color: rgba(255, 255, 255, .68); max-width: 320px; }
.footer-col h5 { color: #fff; }
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, .68);
  padding: 5px 0;
  font-size: 14px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
  text-align: center;
}

/* ============== Responsive ============== */
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 16px 24px; flex-direction: column; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .about-grid,
  .phase,
  .download-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .phase--reverse .phase-media { order: 0; }
  .phase-body { padding: 28px 26px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .check-list.two-col { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .hero { min-height: 80vh; }
  .hero-content { padding: 80px 24px 60px; }
}

@media (max-width: 600px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .container { padding: 0 18px; }
  .stats { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .store-row { grid-template-columns: 1fr; }
  .qr { width: 200px; height: 200px; }
  .phase-body { padding: 26px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about,
  .phases,
  .audience,
  .download.dark,
  .contact { padding: 70px 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
