/* ==========================================================================
   The Eureka Marketing Co. — Design System
   Base: white | Accent: deep navy #0C447C | Secondary: #185FA5 | Font: Georgia
   ========================================================================== */

:root {
  --navy: #0C447C;
  --navy-light: #185FA5;
  --navy-dark: #08305A;
  --navy-tint: #EAF1F8;
  --navy-tint-2: #D6E4F2;
  --white: #FFFFFF;
  --ink: #1A2A3A;
  --ink-soft: #4A5A6A;
  --line: #E2E8F0;
  --line-strong: #C7D4E3;
  --shadow: 0 1px 3px rgba(12, 68, 124, 0.06), 0 8px 24px rgba(12, 68, 124, 0.08);
  --shadow-hover: 0 4px 12px rgba(12, 68, 124, 0.10), 0 16px 40px rgba(12, 68, 124, 0.14);
  --radius: 10px;
  --radius-sm: 6px;
  --maxw: 1140px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font: Georgia, "Times New Roman", "Songti SC", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--navy-light); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }
.section-tint { background: var(--navy-tint); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy-light);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-navy .eyebrow { color: #BFD6F2; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--navy-light); border-color: var(--navy-light); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(12,68,124,.22); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--navy-tint); color: var(--navy); border-color: var(--navy-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 8px rgba(12,68,124,.06); }
.nav-inner { max-width: var(--maxw); height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; color: var(--navy); }
.site-nav .brand-mark { display: none; }
.site-nav .brand { gap: 0; }
.brand-name { font-family: var(--font); font-weight: 700; font-size: 1.02rem; line-height: 1.15; letter-spacing: .01em; }
.brand-name small { display: block; font-weight: 400; font-size: .72rem; color: var(--ink-soft); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 400;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--navy); background: var(--navy-tint); }
.nav-links a.active { color: var(--navy); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0; color: var(--navy);
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  margin: 5px auto; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0C447C 0%, #08305A 100%);
  overflow: hidden;
}
.hero-bg::before {
  content: "";
  position: absolute; inset: -10%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(24,95,165,.55), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(11,67,122,.65), transparent 50%),
    radial-gradient(circle at 60% 20%, rgba(60,130,200,.30), transparent 40%);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(255,255,255,.015) 120px 121px),
    linear-gradient(180deg, rgba(8,48,90,.25) 0%, rgba(8,48,90,.55) 100%);
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.hero-bg-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; /* set to .35 when a photo is added */
  transition: opacity .8s var(--ease);
}
.hero-content { position: relative; z-index: 2; padding: 60px 0 96px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); letter-spacing: -.01em; margin-bottom: 8px; }
.hero .hero-sub { color: #BFD6F2; font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-style: italic; margin-bottom: 28px; }
.hero p { color: #E4EDF6; max-width: 680px; font-size: 1.05rem; margin-bottom: 1rem; }
.hero .btn-row { margin-top: 18px; }
.hero-scroll {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: #BFD6F2; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: .8;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 28px; background: #BFD6F2;
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(.4); opacity: .4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ---------- Stat cards ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--navy-tint-2); }
.stat-num { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); font-weight: 700; line-height: 1; margin-bottom: 10px; }
.stat-num small { font-size: 1.6rem; }
.stat-label { font-size: .95rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--navy-tint-2); }
.card-icon { width: 44px; height: 44px; color: var(--navy); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; display: grid; gap: 14px; max-width: 640px; }
.checklist li {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.08rem; color: var(--ink);
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.checklist li:hover { border-color: var(--navy-tint-2); transform: translateX(4px); }
.checklist .tick {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--navy-tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px;
  max-width: 760px;
}
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { flex: 0 0 22px; color: var(--navy); margin-top: 3px; }
.contact-list .lbl { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px; }
.contact-list .val { font-size: 1.02rem; color: var(--ink); }
.contact-list a.val { color: var(--navy-light); }
.map-wrap {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  width: 100%; height: 400px;
  background: var(--navy-tint);
  margin-top: 28px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 18px; top: 0; bottom: 0;
  width: 2px; background: var(--navy-tint-2);
}
.tl-item { position: relative; padding: 0 0 40px 64px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 9px; top: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--navy); border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--navy-tint-2);
}
.tl-year { font-size: 1.5rem; color: var(--navy); font-weight: 700; margin-bottom: 4px; }
.tl-text { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Placeholder image blocks ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(45deg, var(--navy-tint) 0 14px, var(--navy-tint-2) 14px 28px);
  border: 1px dashed var(--navy-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); text-align: center;
  min-height: 220px;
}
.ph::after {
  content: attr(data-label);
  font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; opacity: .75; padding: 0 16px;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ph.tall { min-height: 320px; }
.ph.hero-ph { min-height: 380px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item .ph { min-height: 240px; border-radius: var(--radius); }
.gallery-item .cap { font-size: .9rem; color: var(--ink-soft); margin-top: 10px; text-align: center; }

/* ---------- Page header (subpages) ---------- */
.page-header {
  padding: calc(var(--nav-h) + 56px) 0 48px;
  background: var(--navy-tint);
  border-bottom: 1px solid var(--line);
}
.page-header .eyebrow { color: var(--navy-light); }
.page-header p { color: var(--ink-soft); max-width: 720px; font-size: 1.08rem; margin-top: 14px; }

.breadcrumbs { font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumbs a { color: var(--navy-light); }
.breadcrumbs span { margin: 0 8px; opacity: .5; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 1.08rem; color: var(--ink); margin-bottom: 1.3rem; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h3 { margin: 2rem 0 .8rem; }
.prose ul { margin: 0 0 1.3rem 1.4rem; }
.prose li { margin-bottom: .6rem; font-size: 1.05rem; }
.prose .lead { font-size: 1.2rem; color: var(--navy-dark); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .split-text { order: 2; }

/* ---------- Founder ---------- */
.founder-card {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px;
}
.founder-card .ph { min-height: 240px; }

/* ---------- Video embed ---------- */
.video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark); color: #C7D8EC; padding: 48px 0 28px;
}
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0; color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name small { color: #9FB8D2; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; justify-content: flex-end; }
.footer-nav a { color: #C7D8EC; font-size: .92rem; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 22px;
  font-size: .82rem; color: #8FA8C8; line-height: 1.5;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg::before { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .container, .nav-inner { padding: 0 24px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(12,68,124,.10);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 8px; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .card-grid, .card-grid.four { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .founder-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .founder-card .ph { min-height: 220px; }
  .stat-card { padding: 24px 20px; }
  .card { padding: 24px 20px; }
  .contact-card { padding: 24px 20px; }
  .tl-item { padding-left: 44px; }
  .timeline::before { left: 14px; }
  .tl-dot { left: 5px; }
  body { font-size: 16px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-scroll { display: none; }
  .hero-content { padding-bottom: 60px; }
}

@media (max-width: 400px) {
  .container, .nav-inner { padding: 0 20px; }
  .contact-card, .card, .stat-card, .founder-card { padding: 20px 16px; }
}
