@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #F5F6F4;
  --paper: #FFFFFF;
  --navy: #16294B;
  --navy-deep: #0D1B33;
  --ink: #15171C;
  --ink-soft: #4B4F58;
  --gold: #B98B3E;
  --gold-text: #946D2C;
  --line: #D8D9D4;
  --max: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem 0; color: var(--ink-soft); max-width: 62ch; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand span { color: var(--gold-text); margin-left: -8px; }
.brand-mark { display: inline-flex; flex-shrink: 0; }
.brand-mark svg { display: block; }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.nav-cta {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.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); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 { margin-bottom: 20px; }
.hero-copy p.lede {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-actions .note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Local search mockup */
.search-mock {
  position: relative;
  padding: 18px 0 0 28px;
}

.search-mock-back {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  height: 88%;
  background: var(--navy);
  border-radius: 10px;
}

.search-mock svg {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(13, 27, 51, 0.22);
}

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  max-width: 56ch;
  margin-bottom: 48px;
}
.section-head h2 { margin-bottom: 14px; }

/* Flowing trait statements (for non-sequential content) */
.trait-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 640px;
}
.trait-list p { margin: 0; font-size: 1.05rem; }
.trait-list strong {
  font-family: 'Fraunces', serif;
  color: var(--navy);
  font-weight: 600;
}

/* Service list (editorial, label + detail) */
.service-list { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.service-row:first-child { border-top: none; padding-top: 0; }

.service-label {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}
.service-kind {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-bottom: 8px;
}
.service-label h3 { margin-bottom: 8px; }
.service-label p { font-size: 0.95rem; margin-bottom: 0; max-width: 30ch; }

.service-detail ul {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}
.service-detail ul li {
  padding: 10px 0 10px 22px;
  position: relative;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.service-detail ul li:first-child { border-top: none; padding-top: 0; }
.service-detail ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.tier-list {
  margin: 0 0 24px 0;
  padding: 0 0 0 22px;
}
.tier-list li {
  padding: 10px 0;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.tier-list li:first-child { border-top: none; padding-top: 0; }
.tier-list li strong { color: var(--navy); font-family: 'Fraunces', serif; font-weight: 600; }

/* Process route (connected path, not a repeating card grid) */
.route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 28px;
  align-items: stretch;
  margin-top: 8px;
}
.route-col { display: contents; }
.route-line {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: center;
  height: 2px;
  background: var(--line);
}
.route-top {
  grid-row: 1;
  align-self: end;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 24px;
}
.route-bottom {
  grid-row: 3;
  align-self: start;
  padding-top: 24px;
}
.route-marker-row {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}
.route-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.route h3 { font-size: 1.05rem; margin-bottom: 6px; }
.route p { font-size: 0.92rem; margin-bottom: 0; }

/* Local strip */
.local-strip {
  background: var(--navy);
  color: #fff;
  padding: 56px 0;
}
.local-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.local-strip h2 { color: #fff; margin-bottom: 12px; }
.local-strip p { color: #C8CFDC; max-width: 52ch; margin-bottom: 0; }
.local-strip-btn { flex-shrink: 0; }

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-grid nav {
  display: flex;
  gap: 28px;
}
.footer-grid nav a { text-decoration: none; color: var(--ink-soft); font-size: 0.92rem; }
.footer-grid nav a:hover { color: var(--navy); }
.footer-note { color: var(--ink-soft); font-size: 0.85rem; margin-top: 24px; }
.footer-note a { color: var(--navy); text-decoration: underline; }
.footer-legal { color: var(--ink-soft); font-size: 0.82rem; margin: 10px 0 0; }
.footer-legal a { color: var(--ink-soft); text-decoration: underline; }
.footer-legal a:hover { color: var(--navy); }

/* About page profile hero (distinct from the plain centered subpage hero) */
.hero-profile-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.hero-profile .hero-copy p.lede { max-width: 52ch; }
.profile-mark { justify-self: center; }
.profile-mark svg { width: 170px; height: 170px; }

/* About page specifics */
.about-hero .wrap { grid-template-columns: 1fr; max-width: 720px; }
.about-hero p.lede { max-width: 60ch; }

.closing-note { max-width: 56ch; }
.closing-note p { margin: 16px 0 26px; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: 'Work Sans', sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--gold-text);
  line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 14px 0 0; max-width: 62ch; }

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-success, .form-error {
  display: none;
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 0.95rem;
  margin: 0;
}
.form-success {
  background: #EFF6EE;
  border: 1px solid #B7D9B2;
  color: #2C5C28;
}
.form-error {
  background: #FBEEEE;
  border: 1px solid #E3B5B5;
  color: #7A2A2A;
}
.form-error a { color: #7A2A2A; text-decoration: underline; font-weight: 600; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.field input, .field textarea {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 130px; }

.info-specs { margin: 0; }
.info-specs .spec {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
}
.info-specs .spec:first-child { border-top: none; padding-top: 0; }
.info-specs dt {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
  flex: 0 0 130px;
}
.info-specs dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Legal pages */
.legal-content { max-width: 68ch; }
.legal-content h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 14px; }
.legal-content ul { margin: 0 0 14px 0; padding-left: 22px; color: var(--ink-soft); }
.legal-content li { margin-bottom: 6px; }
.legal-updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 32px; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 860px) {
  .brand { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 16px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: none; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: none; }
  .nav { position: relative; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-profile-wrap { grid-template-columns: 1fr; text-align: left; }
  .profile-mark { justify-self: flex-start; order: -1; }
  .profile-mark svg { width: 100px; height: 100px; }
  .search-mock { max-width: 340px; margin: 0 auto; padding: 14px 0 0 20px; }
  .route { display: block; }
  .route-line { display: none; }
  .route-col {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }
  .route-col:first-child { border-top: none; padding-top: 0; }
  .route-top { order: 2; padding-bottom: 0; }
  .route-marker-row { order: 1; padding: 0; margin-bottom: 12px; justify-content: flex-start; }
  .route-bottom { order: 3; padding-top: 12px; }
  .service-row { grid-template-columns: 1fr; gap: 20px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
}
