:root {
  --bg: #0b0d10;
  --card: #12151a;
  --text: #e7ecf3;
  --muted: #9aa5b1;
  --brand: #4f8cff;
  --brand-2: #22d3ee;
  --border: #1e2430;
  --shadow: 0 10px 30px rgba(0,0,0,0.3);
}

[data-theme="light"] {
  --bg: #ffffff;
  --card: #f7f9fc;
  --text: #0b0d10;
  --muted: #4b5563;
  --brand: #224dff;
  --brand-2: #0891b2;
  --border: #e5e7eb;
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; border-radius: 12px; }
video { display: block; width: 100%; height: auto; border-radius: 12px; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: clamp(64px, 10vw, 96px) 0; }
.section.alt { background: var(--card); }
.section h2 { font-size: 40px; margin: 0 0 16px; letter-spacing: -0.02em; }
.section .section-intro { margin: 8px 0 32px; color: var(--muted); }

.btn { display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:12px; border:1px solid var(--border); color:var(--text); text-decoration:none; transition:.2s ease; background:transparent; cursor:pointer; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border: none; color: white; }
.btn-outline { background: transparent; }
.btn-ghost { padding: 8px 12px; border-radius: 10px; }

.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(8px); background: color-mix(in hsl, var(--bg) 60%, transparent); border-bottom: 1px solid var(--border); }
.header-inner { display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand { display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; font-weight:700; }
.brand-logo { height: 42px; width: auto; display: block; }
.logo-light { display: none; }
.brand-name { display:none; opacity:.9; }

.nav-toggle { display:none; background:none; border:0; width:40px; height:40px; position:relative; border-radius:10px; }
.nav-toggle span { position:absolute; left:10px; right:10px; height:2px; background:var(--text); transition:.2s; }
.nav-toggle span:nth-child(1){ top:12px; }
.nav-toggle span:nth-child(2){ top:19px; }
.nav-toggle span:nth-child(3){ top:26px; }

.nav-list { display:flex; gap:18px; align-items:center; list-style:none; margin:0; padding:0; }
.nav-list a { color:var(--text); text-decoration:none; padding:8px 10px; border-radius:10px; }
.nav-list a:hover { background: var(--card); }

.hero { position: relative; min-height: 70vh; display:grid; place-items:center; overflow:hidden; }
.media-backdrop { position:absolute; inset:0; pointer-events:none; }
.media-backdrop img { width:100%; height:100%; object-fit:cover; filter: brightness(0.45) saturate(1.1); }
.hero-content { position: relative; text-align:center; padding: 32px 0; }
.headline { font-size: clamp(32px, 6vw, 64px); margin: 0 0 10px; letter-spacing: -0.03em; }
.subhead { color: var(--muted); max-width: 800px; margin: 0 auto 22px; }
.cta-row { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top: 10px; }
.hero-stats { display:flex; gap:24px; justify-content:center; margin-top: 24px; }
.stat { display:flex; gap:8px; align-items:baseline; background: color-mix(in hsl, var(--card) 70%, transparent); padding:10px 14px; border-radius: 12px; border: 1px solid var(--border); }
.stat .num { font-weight: 800; font-size: 24px; }
.stat .label { color: var(--muted); }

.grid.two { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(16px, 4vw, 28px); align-items:center; }
.about-media img { width:100%; height:auto; }

.cards { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.card { background: var(--bg); border:1px solid var(--border); border-radius:16px; padding:20px; box-shadow: var(--shadow); }
.card h3 { margin-top:0; margin-bottom:6px; }
.card p { margin:0; color: var(--muted); }

.gallery { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 12px; border:1px solid var(--border); background: var(--card); aspect-ratio: 4 / 3; }
.gallery-item img, .gallery-item video { display:block; width:100%; height:100%; object-fit:cover; transition: transform .3s ease, filter .3s ease; }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.03); filter: saturate(1.1); }

.contact-list { list-style:none; padding:0; margin:10px 0 0; }
.contact-list li { margin:6px 0; }
.map-embed iframe { width:100%; height:320px; border:0; border-radius: 12px; }

.site-footer { border-top:1px solid var(--border); padding: 28px 0; background: var(--card); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap: 16px; }
.footer-links { display:flex; gap:12px; }
.footer-links a { color: var(--muted); text-decoration:none; }
.footer-brand { display:flex; align-items:center; gap:10px; color: var(--muted); }

/* Link colors adapt to theme */
a { color: color-mix(in hsl, var(--brand) 80%, var(--text)); }
a:hover { color: var(--brand-2); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.75); display:none; align-items:center; justify-content:center; padding: 24px; z-index: 100; }
.lightbox.open { display:flex; }
.lightbox-content { max-width: 90vw; max-height: 82vh; }
.lightbox-content img, .lightbox-content video { width:100%; height:auto; border-radius: 12px; }
.lightbox-close { position:absolute; top:16px; right:16px; width:40px; height:40px; border-radius: 10px; border:1px solid var(--border); background: var(--card); color: var(--text); cursor:pointer; }

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .grid.two { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .brand-name { display: inline; }
  .nav-toggle { display: inline-block; }
  .nav-list { position: fixed; right: 16px; top: 68px; background: var(--card); border:1px solid var(--border); border-radius: 14px; padding: 10px; display: none; flex-direction: column; align-items: stretch; min-width: 220px; }
  .nav-list.open { display:flex; }
  .gallery { grid-template-columns: 1fr; }
}

/* Theme-based logo switching */
/* Dark theme default shows .logo-dark */
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: block; }

@media (max-width: 480px) {
  .header-inner { height: 56px; }
  .section h2 { font-size: 32px; }
  .subhead { font-size: 14px; }
  .hero-stats { gap: 12px; flex-wrap: wrap; }
  .cards { grid-template-columns: 1fr; }
  .brand-logo { height: 34px; }
}

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

