/* ===== Design tokens ===== */
:root {
  --primary: #3B7DD8;
  --primary-10: rgba(59, 125, 216, 0.1);
  --secondary: #C5B358;
  --accent: #265E96;
  --foreground: #152532;
  --muted-foreground: #62717F;
  --background: #F8FAFC;
  --muted: #E8EBED;
  --card: #FFFFFF;
  --border: #D5DCE5;
  --white: #FFFFFF;
  --font-heading: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(21, 37, 50, 0.08);
  --shadow-lg: 0 12px 28px rgba(21, 37, 50, 0.14);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-heading);
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.icon-sm { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-md { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-lg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin: 0 auto 12px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary); color: var(--white); padding: 8px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ===== Nav ===== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background 0.4s ease, box-shadow 0.4s ease; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav-logo img { height: 48px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { color: var(--white); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; transition: color 0.3s; }
.nav-links a:not(.btn):hover { color: var(--secondary); }
.nav.scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); }
.nav.scrolled .nav-links a:not(.btn) { color: var(--foreground); }
.nav.scrolled .nav-links a:not(.btn):hover { color: var(--primary); }
.nav.scrolled .menu-toggle { color: var(--foreground); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--white); padding: 8px; }
.icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-mobile { display: none; }
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-mobile.open {
    display: block;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
  }
  .nav-mobile a { display: block; padding: 14px 20px; font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--foreground); border-bottom: 1px solid var(--muted); }
  .nav-mobile .btn { border: 0; margin: 16px 20px; text-align: center; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 999px; padding: 16px 32px; border: 0; cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}
.btn-light { background: var(--white); color: var(--accent); box-shadow: var(--shadow-lg); }
.btn-light:hover { background: var(--secondary); color: var(--foreground); }
.btn-glass { background: rgba(255, 255, 255, 0.15); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(4px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.25); }
.btn-link-light { color: var(--white); background: none; }
.btn-link-light:hover { color: var(--secondary); }
.btn-nav { background: var(--primary); color: var(--white); padding: 10px 20px; }
.btn-nav:hover { background: var(--accent); }
.btn-block { width: calc(100% - 40px); }
.btn-footer { background: var(--primary); color: var(--white); margin-top: 24px; font-size: 13px; padding: 12px 24px; }
.btn-footer:hover { background: var(--secondary); color: var(--foreground); }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(59,125,216,0.8), rgba(38,94,150,0.7) 50%, rgba(38,94,150,0.9)); }
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-logo { height: clamp(112px, 20vw, 176px); width: auto; margin: 0 auto 32px; }
.hero-sub { color: rgba(255,255,255,0.9); font-size: clamp(18px, 2.5vw, 24px); font-weight: 400; margin-bottom: 16px; }
.hero-tagline { color: var(--secondary); font-size: clamp(16px, 2.2vw, 20px); font-weight: 700; letter-spacing: 0.03em; max-width: 640px; margin: 0 auto 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.hero-scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); z-index: 2; animation: bob 2s ease-in-out infinite; }
.hero-scroll:hover { color: var(--white); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ===== Sections ===== */
.section { padding: clamp(72px, 8vw, 128px) 0; }
.section-muted { background: rgba(232, 235, 237, 0.5); }
.section-dark { background: var(--accent); color: var(--white); }
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow { display: block; color: var(--secondary); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 16px 0 24px; }
.on-dark { color: var(--white); }
.divider { display: block; width: 80px; height: 4px; border-radius: 999px; background: var(--secondary); margin: 0 auto; }
.lead { color: var(--muted-foreground); font-size: 18px; line-height: 1.7; margin-bottom: 24px; }
.lead strong { color: var(--foreground); }
.on-dark-muted { color: rgba(255,255,255,0.8); }
.on-dark-muted strong, .on-dark { color: var(--white); }

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1023px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 767px) { .grid-3 { gap: 16px; } }

/* ===== About ===== */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.chip { background: var(--primary-10); color: var(--primary); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background 0.3s, color 0.3s; }
.chip:hover { background: var(--primary); color: var(--white); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s, border-color 0.3s; }
.stat:hover { box-shadow: var(--shadow-lg); border-color: rgba(59,125,216,0.2); }
.stat .icon-lg { color: var(--primary); }
.stat-value { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.stat-label { font-size: 14px; color: var(--muted-foreground); margin-top: 4px; }

/* ===== Services ===== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); transition: box-shadow 0.5s, border-color 0.5s, transform 0.5s; }
.card:hover { box-shadow: var(--shadow-lg); border-color: rgba(59,125,216,0.2); transform: translateY(-4px); }
.card-icon { width: 56px; height: 56px; background: var(--primary-10); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--primary); transition: background 0.5s, color 0.5s, transform 0.5s; }
.card:hover .card-icon { background: var(--primary); color: var(--white); transform: scale(1.1); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--muted-foreground); line-height: 1.7; }
.services-grid { margin-bottom: 64px; }
.showcase-grid { gap: 24px; }
.showcase { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.showcase img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.showcase:hover img { transform: scale(1.04); }
.showcase figcaption { position: absolute; inset: auto 0 0 0; padding: 32px; background: linear-gradient(180deg, transparent, rgba(38,94,150,0.85)); color: var(--white); font-weight: 700; font-size: 20px; }

/* ===== Events ===== */
.events-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 520px; }
.events-photo img { width: 100%; height: 100%; object-fit: cover; }
.events-list { display: flex; flex-direction: column; gap: 24px; }
.event-item { display: flex; gap: 20px; align-items: flex-start; }
.event-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; transition: transform 0.3s; }
.event-item:hover .event-icon { transform: scale(1.1); }
.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); color: var(--foreground); }
.bg-accent { background: var(--accent); }
.event-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.event-item p { color: var(--muted-foreground); line-height: 1.7; }

/* ===== Founder ===== */
.founder-photo { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.founder-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(38,94,150,0.45)); }
.founder-photo img { width: 100%; height: auto; }
.founder-quote { font-family: var(--font-display); font-style: italic; font-size: clamp(20px, 2.5vw, 24px); color: rgba(255,255,255,0.9); line-height: 1.6; margin-bottom: 24px; position: relative; padding-left: 44px; }
.founder-quote span { position: absolute; left: 0; top: -6px; font-size: 52px; color: var(--secondary); font-family: var(--font-heading); }
.founder-facts { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.founder-facts li { display: flex; align-items: center; gap: 12px; }
.fact-icon { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--secondary); flex-shrink: 0; }
.fact-title { font-weight: 600; font-size: 14px; color: var(--white); }
.fact-sub { font-size: 14px; color: rgba(255,255,255,0.6); }

/* ===== CTA ===== */
.cta { position: relative; background: var(--primary); padding: clamp(72px, 8vw, 112px) 0; overflow: hidden; text-align: center; }
.cta-blobs span { position: absolute; background: var(--white); opacity: 0.08; border-radius: 50%; }
.cta-blobs span:first-child { width: 288px; height: 288px; top: 0; left: 0; transform: translate(-50%, -50%); }
.cta-blobs span:last-child { width: 384px; height: 384px; bottom: 0; right: 0; background: var(--secondary); transform: translate(33%, 33%); }
.cta-content { position: relative; z-index: 2; max-width: 896px; }
.cta h2 { color: var(--white); font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 24px; }
.cta p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 40px; }

/* ===== Contact ===== */
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-card { display: flex; align-items: flex-start; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; transition: box-shadow 0.3s, border-color 0.3s; }
.contact-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(59,125,216,0.2); }
.contact-card:hover .contact-icon { background: var(--primary); color: var(--white); }
.contact-icon { width: 48px; height: 48px; background: var(--primary-10); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; transition: background 0.3s, color 0.3s; }
.contact-label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.contact-card p:not(.contact-label) { color: var(--muted-foreground); }
.hours-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.hours-title { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.hours-title svg { color: var(--primary); }
.hours-list { display: flex; flex-direction: column; gap: 12px; }
.hours-list div { display: flex; justify-content: space-between; }
.hours-list dt { color: var(--muted-foreground); }
.hours-list dd { font-weight: 600; font-size: 14px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); min-height: 420px; height: 100%; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ===== Footer ===== */
.footer { background: var(--accent); color: var(--white); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-bottom: 48px; }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo { height: 64px; width: auto; margin-bottom: 24px; }
.footer-text { color: rgba(255,255,255,0.7); line-height: 1.7; }
.footer h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-contact { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.3s; }
.footer-links a:hover, .footer-contact:hover { color: var(--secondary); }
.footer-contact { margin-bottom: 16px; font-style: normal; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; color: rgba(255,255,255,0.5); font-size: 14px; }
.footer-credit { color: rgba(255,255,255,0.7); font-weight: 700; transition: color 0.3s; }
.footer-credit:hover { color: var(--secondary); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
}