:root {
  /* Brand — same in both modes */
  --navy: #0a2540;
  --navy-2: #14365c;
  --navy-deep: #061a30;
  --accent: #d4a64a;
  --accent-2: #f0c668;
  --accent-deep: #a8852e;
  --cream: #faf3e3;

  /* Theme — light mode defaults */
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --card-bg: #ffffff;
  --ink: #1a2434;
  --heading: #0a2540;
  --muted: #5b6b80;
  --line: #e6ebf1;
  --link: #0a2540;

  --shadow-sm: 0 1px 2px rgba(10,37,64,.06), 0 2px 8px rgba(10,37,64,.04);
  --shadow-md: 0 6px 22px rgba(10,37,64,.10);
  --shadow-lg: 0 20px 50px rgba(10,37,64,.18);

  /* Layout */
  --container: 1140px;
  --radius: 12px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1626;
    --bg-alt: #0f1f37;
    --card-bg: #122842;
    --ink: #d8e2f0;
    --heading: #ffffff;
    --muted: #93a3bd;
    --line: rgba(255,255,255,.08);
    --link: #d8e2f0;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.25);
    --shadow-md: 0 6px 22px rgba(0,0,0,.45);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--accent-deep); }

h1, h2, h3 { color: var(--heading); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.display em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

h1.display { font-size: clamp(2.4rem, 4.5vw + 1rem, 4.4rem); }
h2.display { font-size: clamp(1.9rem, 2.6vw + 1rem, 2.8rem); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
}

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 .85rem;
}
.eyebrow-light { color: var(--accent-2); }

/* ---------- Header ---------- */
/* Always dark — visually unified with the hero and footer. */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6,26,48,.92); /* navy-deep w/ slight transparency */
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand img {
  height: 40px;
  width: auto;
  max-width: 220px;
  display: block;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .95rem;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.nav a:hover { color: #fff; border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 6px auto;
  width: 24px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.5rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease, box-shadow .15s ease;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: .01em;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(212,166,74,.35);
}
.btn-accent:hover { background: var(--accent-2); color: var(--navy); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  color: #fff;
}

.btn-full { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 9vw, 8rem);
  color: #f3f6fb;
  overflow: hidden;
  isolation: isolate;
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-svg { width: 100%; height: 100%; display: block; }
.hero-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,33,58,0) 0%, rgba(8,33,58,.0) 60%, rgba(8,33,58,.55) 100%);
  pointer-events: none;
}

.hero-inner { max-width: 760px; }
.hero h1 { color: #fff; margin: .35rem 0 1rem; }
.hero h1 em { color: var(--accent-2); }
.hero .lead {
  font-size: clamp(1.1rem, .7vw + 1rem, 1.3rem);
  color: rgba(255,255,255,.85);
  max-width: 58ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Trust strip ---------- */
.strip {
  background: var(--navy-deep);
  color: #c8d4e6;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: #d8e2f0;
}
.strip-item svg {
  flex: 0 0 auto;
  color: var(--accent-2);
}
.strip-item strong {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.2;
}
.strip-item span {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  margin-top: .15rem;
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin: 0 0 3rem; }
.section-head h2 { position: relative; padding-bottom: .85rem; margin-bottom: .85rem; }
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d8e0ea;
}
.service:hover::before { transform: scaleY(1); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,166,74,.18), rgba(212,166,74,.05));
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.service h3 {
  padding-bottom: .75rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.service ul { list-style: none; padding: 0; margin: 0; }
.service li {
  position: relative;
  padding: .35rem 0 .35rem 1.25rem;
  color: var(--muted);
  font-size: .95rem;
}
.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.about-head h2 { position: relative; padding-bottom: .85rem; }
.about-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.about-body p { color: var(--muted); font-size: 1.05rem; }
.about-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.about-points li {
  padding: .75rem 0 .75rem 1.5rem;
  position: relative;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.about-points li strong { color: var(--heading); margin-right: .25rem; }

/* ---------- Contact ---------- */
.contact-block {
  max-width: 640px;
}
.contact-block .lead { color: var(--muted); }

.contact-list { margin: 1.75rem 0; padding: 0; }
.contact-list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt {
  font-weight: 600;
  color: var(--heading);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.contact-list dd { margin: 0; color: var(--muted); }

.contact-cta { margin-top: 1.25rem; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deep);
  color: #c7d3e3;
  padding: 2.5rem 0;
  border-top: 4px solid var(--accent);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-tagline { margin: 0; font-size: .9rem; color: #aab8cc; }
.copyright { margin: 0; font-size: .85rem; color: #8a9ab2; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .strip-inner { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem 0; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: var(--shadow-md);
    padding: .5rem 1.25rem 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform .15s ease, opacity .15s ease;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.06); width: 100%; }
  .nav a:last-child { border-bottom: 0; }

  .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); }

  .footer-inner { justify-content: center; text-align: center; }

  .hero { min-height: 540px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
