/* ===== Design tokens ===== */
:root {
  --navy: #16233d;
  --navy-2: #223a5e;
  --gold: #c8a24a;
  --gold-dark: #a9863a;
  --cream: #f7f4ee;
  --ink: #1c1f24;
  --muted: #5b6472;
  --white: #ffffff;

  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(22, 35, 61, .35);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== Base ===== */
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: var(--white); padding: .75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; font-weight: 600; font-family: var(--font-body);
  padding: .85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .2s ease;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-ghost { border-color: currentColor; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(22,35,61,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1.1; }
.brand span { display: block; font-family: var(--font-body); font-weight: 500; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-dark); }
.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-menu a { font-weight: 500; color: var(--navy); }
.nav-menu a:hover { color: var(--gold-dark); }
.btn-sm { padding: .55rem 1.1rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); transition: .25s; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 1.25rem; align-items: flex-start;
    background: var(--cream); padding: 1.5rem var(--gutter);
    border-bottom: 1px solid rgba(22,35,61,.1);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ===== Hero ===== */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 1rem; }
.hero-copy h1 { color: var(--navy); margin-bottom: 1.25rem; }
.lede { font-size: 1.2rem; max-width: 34ch; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-photo { position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(22px, 22px);
  background: var(--navy); border-radius: var(--radius); z-index: 0;
}
.hero-photo img {
  position: relative; z-index: 1; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow); width: 100%;
  aspect-ratio: 1 / 1; object-fit: cover;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-photo { max-width: 340px; margin: 0 auto; order: -1; }
  .hero-photo::before { transform: translate(12px, 12px); }
}

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); }
.about-lead h2 { color: var(--navy); }
.about-body p { margin-bottom: 1.1rem; font-size: 1.05rem; }
.about-body strong { color: var(--ink); }
.creds { display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(22,35,61,.12); }
.creds li { font-size: .95rem; color: var(--muted); max-width: 14ch; }
.creds span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--gold-dark); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

/* ===== Services ===== */
.services { background: var(--navy); color: var(--white); }
.services .eyebrow { color: var(--gold); }
.services h2 { color: var(--white); }
.section-head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-sub { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-top: .75rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 2rem 1.75rem;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card-num { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--gold); margin-bottom: 1rem; }
.card h3 { color: var(--white); margin-bottom: .6rem; }
.card p { color: rgba(255,255,255,.72); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* ===== Approach ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; list-style: none; }
.steps li { position: relative; padding: 1.5rem; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 2.1rem; right: -.75rem; width: 1.5rem; height: 2px;
  background: var(--gold); opacity: .5;
}
.step-num {
  width: 3rem; height: 3rem; display: grid; place-items: center;
  border-radius: 50%; background: var(--gold); color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: 1rem;
}
.approach h3 { color: var(--navy); margin-bottom: .5rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { display: none; }
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro h2 { color: var(--navy); margin-bottom: 1rem; }
.contact-direct { margin-top: 1.25rem; font-weight: 500; }
.contact-direct a { color: var(--gold-dark); text-decoration: underline; }
.form { background: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .4rem; color: var(--ink); }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .75rem .9rem;
  border: 1px solid rgba(22,35,61,.2); border-radius: 10px; background: var(--cream);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,74,.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin-top: 1rem; font-weight: 500; min-height: 1.2em; }
.form-status.success { color: #1f7a4d; }
.form-status.error { color: #b3261e; }
.form button[disabled] { opacity: .6; cursor: not-allowed; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.footer-tag { font-size: .9rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--gold); }
.footer-copy { text-align: center; font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
