:root {
  --navy: #0d2331;
  --navy-deep: #071925;
  --ink: #14212b;
  --gold: #c5a050;
  --gold-light: #d7b765;
  --cream: #f7f5f0;
  --white: #fff;
  --muted: #677079;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }
.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; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: var(--white); background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  min-height: 104px;
  padding: 16px clamp(24px, 4vw, 68px);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 rgba(13, 35, 49, .08);
}

.brand { display: inline-flex; align-items: center; width: fit-content; }
.brand img { width: clamp(285px, 25vw, 380px); height: auto; }

.primary-nav { display: flex; align-items: center; gap: clamp(22px, 2.4vw, 42px); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .035em; }
.primary-nav > a, .nav-dropdown > button { position: relative; padding: 13px 0; border: 0; background: transparent; cursor: pointer; text-transform: uppercase; }
.primary-nav > a::after, .nav-dropdown > button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 2px;
  background: var(--gold);
  transition: right .25s ease;
}
.primary-nav > a:hover::after, .primary-nav > a.active::after, .nav-dropdown > button:hover::after { right: 0; }
.nav-dropdown { position: relative; }
.nav-dropdown button span { margin-left: 4px; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -22px;
  min-width: 230px;
  padding: 10px;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(7, 25, 37, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .2s ease;
}
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 12px; border-radius: 2px; }
.dropdown-menu a:hover { color: var(--gold); background: #f7f4ec; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 25px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--white); background: var(--navy); box-shadow: 0 8px 18px rgba(13, 35, 49, .18); }
.button-dark:hover { background: #19394e; }
.button-gold { color: #101a21; background: linear-gradient(135deg, var(--gold-light), #c69a42); box-shadow: 0 9px 22px rgba(0, 0, 0, .22); }
.button-gold:hover { background: #e0c06e; }
.button-outline { color: var(--white); border-color: var(--gold); }
.button-outline:hover { color: var(--navy); background: var(--gold); }
.button-hero-outline { color: var(--white); border-color: rgba(255,255,255,.72); background: rgba(7,25,37,.18); backdrop-filter: blur(4px); }
.button-hero-outline:hover { color: var(--navy); background: var(--white); }
.header-cta { justify-self: end; }

.hero {
  position: relative;
  min-height: min(76vh, 720px);
  display: flex;
  align-items: center;
  padding: 70px clamp(32px, 6vw, 92px);
  color: var(--white);
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: var(--navy-deep);
}
.hero-media img {
  width: min(55vw, 760px);
  height: 100%;
  object-fit: contain;
  object-position: right center;
  filter: saturate(.58) contrast(.92) brightness(.82);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 20, 30, .98) 0%, rgba(5, 20, 30, .94) 40%, rgba(5, 20, 30, .68) 67%, rgba(5, 20, 30, .38) 100%),
    linear-gradient(0deg, rgba(5, 20, 30, .2), rgba(5, 20, 30, .2));
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 20, 30, .32) 0, transparent 38%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 760px; min-width: 0; }
.eyebrow { margin: 0 0 20px; color: var(--gold-light); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.hero-tagline { text-transform: none; letter-spacing: .08em; }
.hero h1 { margin: 0; font: 58px/1.04 var(--serif); letter-spacing: -.025em; text-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.hero-intro { max-width: 690px; margin: 25px 0 30px; color: #edf1f3; font-size: 19px; line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; z-index: 2; right: 28px; bottom: 24px; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }

.services { padding: 85px clamp(28px, 7vw, 110px); background: #fbfbfa; box-shadow: inset 0 -1px #e8e6e1; }
.services-heading { max-width: 680px; margin-bottom: 42px; }
.services-heading h2, .why-heading h2 { margin: 0 0 16px; color: var(--navy); font: 42px/1.08 var(--serif); letter-spacing: -.02em; }
.services-heading > p:last-child, .why-heading > p:last-child { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d8d5cd; border-bottom: 1px solid #d8d5cd; }
.service { min-width: 0; padding: 34px clamp(20px, 2.2vw, 36px) 38px; display: flex; flex-direction: column; border-right: 1px solid #d8d5cd; }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; border-right: 0; }
.service svg { width: 48px; height: 48px; margin-bottom: 28px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service .service-name { margin: 0 0 12px; color: var(--gold); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.service h3 { margin: 0 0 15px; color: var(--navy); font: 25px/1.15 var(--serif); }
.service > p:not(.service-name) { margin: 0 0 25px; color: #4e565c; font-size: 14px; line-height: 1.65; }
.service-link { width: fit-content; margin-top: auto; padding-bottom: 5px; border-bottom: 1px solid var(--gold); color: var(--navy); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.service-link span { margin-left: 8px; color: var(--gold); }
.service-disclaimer { max-width: 900px; margin: 26px 0 0; padding: 14px 16px; border-left: 3px solid var(--gold); color: var(--muted); background: rgba(191,160,91,.08); font-size: 13px; line-height: 1.6; }
.audience-section { background: var(--white); }
.audience-card h3 { margin-top: 0; }
.audience-card > p { margin-bottom: 0; }
.main-service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.permit-process-overview {
  padding: 90px clamp(32px, 7vw, 110px);
  color: var(--white);
  background:
    radial-gradient(circle at 14% 18%, rgba(49, 82, 101, .42), transparent 35%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 13px),
    linear-gradient(125deg, #102c3d, #061a27 72%);
}
.permit-process-overview-heading { max-width: 880px; margin: 0 auto 42px; text-align: center; }
.permit-process-overview-heading h2 { margin: 0 0 18px; font: 42px/1.08 var(--serif); letter-spacing: -.02em; }
.permit-process-overview-heading p { max-width: 790px; margin: 0 auto; color: #d3dde2; font-size: 16px; line-height: 1.72; }
.permit-process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.permit-process-card {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  color: var(--ink);
  background: #fbfaf7;
  box-shadow: 0 16px 34px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.permit-process-card-media { height: 138px; overflow: hidden; background: #e9e6de; }
.permit-process-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.permit-process-card-copy { min-height: 260px; padding: 25px 26px 28px; display: flex; flex: 1; flex-direction: column; }
.permit-process-step { margin-bottom: 15px; color: var(--gold); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.permit-process-card h3 { margin: 0 0 14px; color: var(--navy); font: 24px/1.16 var(--serif); }
.permit-process-card p { margin: 0; color: #4e565c; font-size: 14px; line-height: 1.68; }
.permit-process-cta {
  margin-top: 34px;
  padding: 30px 32px;
  display: flex;
  gap: 35px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 9px;
  background: rgba(255,255,255,.055);
}
.permit-process-cta h3 { margin: 0 0 8px; font: 28px/1.12 var(--serif); }
.permit-process-cta p { margin: 0; color: #d3dde2; font-size: 14px; line-height: 1.65; }
.permit-process-cta .button { flex: 0 0 auto; }
@media (hover: hover) {
  .permit-process-card:hover { transform: translateY(-3px); box-shadow: 0 21px 42px rgba(0,0,0,.23); }
}

.veteran-story {
  padding: clamp(58px, 7vw, 92px) clamp(32px, 7vw, 110px);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(50px, 9vw, 135px);
  align-items: center;
  color: var(--white);
  background: radial-gradient(circle at 70% 20%, #18374a 0, var(--navy) 42%, var(--navy-deep) 100%);
}
.section-label { margin: 0 0 15px; display: flex; align-items: center; gap: 16px; color: var(--gold-light); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.section-label span { display: inline-block; width: 44px; height: 1px; background: var(--gold); opacity: .65; }
.veteran-story h2, .approach h2, .projects h2, .contact h2 { margin: 0 0 18px; font: 42px/1.08 var(--serif); letter-spacing: -.02em; }
.veteran-story-copy > p:not(.section-label) { max-width: 670px; margin: 0 0 27px; color: #d8e0e4; font-size: 16px; line-height: 1.75; }
.veteran-story .text-link { display: inline-block; }
.veteran-story-photo { width: min(100%, 390px); margin: 0; justify-self: end; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 8px; box-shadow: 0 18px 46px rgba(0,0,0,.24); }
.veteran-story-photo picture { display: block; width: 100%; height: 100%; }
.veteran-story-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(.72) contrast(.96); }

.why-semperfi { padding: 90px clamp(32px, 7vw, 110px); display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(55px, 8vw, 115px); background: var(--white); }
.why-heading { max-width: 460px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d8d5cd; }
.pillar { padding: 32px clamp(20px, 2.2vw, 34px) 0; border-right: 1px solid #d8d5cd; }
.pillar:first-child { padding-left: 0; }
.pillar:last-child { padding-right: 0; border-right: 0; }
.pillar-number { color: var(--gold); font: 18px/1 var(--serif); }
.pillar h3 { margin: 45px 0 15px; color: var(--navy); font: 26px/1.1 var(--serif); }
.pillar p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.founder { padding: 90px clamp(32px, 7vw, 110px); display: grid; grid-template-columns: minmax(300px, .82fr) 1.18fr; gap: clamp(55px, 8vw, 120px); align-items: center; background: var(--cream); }
.founder-photo { position: relative; width: 100%; max-width: 520px; margin: 0; justify-self: end; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 10px; box-shadow: 0 20px 48px rgba(13,35,49,.18); }
.founder-photo picture { display: block; width: 100%; height: 100%; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 29%; filter: saturate(.86) contrast(.98); }
.founder-copy { max-width: 720px; }
.founder-copy h2 { margin: 0 0 7px; color: var(--navy); font: 44px/1.08 var(--serif); letter-spacing: -.02em; }
.founder-title { margin: 0 0 15px; color: var(--gold); font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.founder-credentials { max-width: 690px; margin: 0 0 23px; color: #344857; font-size: 13px; font-weight: 700; line-height: 1.65; }
.founder-credentials span { margin: 0 7px; color: var(--gold); }
.founder-copy > p:not(.section-label):not(.founder-title):not(.founder-credentials) { margin: 0 0 25px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.founder-link { display: inline-block; color: var(--navy); }

.approach { padding: 90px clamp(32px, 7vw, 110px); background: var(--cream); }
.approach .section-heading { max-width: 500px; margin-bottom: 45px; }
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d7d2c7; }
.approach-grid article { padding: 35px 30px 10px; border-right: 1px solid #d7d2c7; }
.approach-grid article:first-child { padding-left: 0; }
.approach-grid article:last-child { border: 0; }
.approach-grid b { color: var(--gold); font: 28px/1 var(--serif); }
.approach-grid h3 { margin: 40px 0 12px; color: var(--navy); font: 27px/1 var(--serif); }
.approach-grid p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.projects { padding: 80px clamp(32px, 7vw, 110px); display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 60px; align-items: end; color: var(--white); background: linear-gradient(120deg, #17384d, #091e2c); }
.projects h2 { margin-bottom: 0; }
.projects > p { max-width: 480px; margin: 0; color: #c9d1d6; line-height: 1.7; }
.text-link { padding-bottom: 7px; border-bottom: 1px solid var(--gold); color: var(--gold-light); font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.text-link span { margin-left: 12px; }

.contact { padding: 90px clamp(32px, 7vw, 110px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; background: var(--white); }
.contact-intro > p:not(.section-label) { max-width: 500px; color: var(--muted); line-height: 1.7; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label { display: grid; gap: 8px; color: var(--navy); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 3px; border: 0; border-bottom: 1px solid #aeb3b6; border-radius: 0; outline: none; resize: vertical; color: var(--ink); background: transparent; }
.contact-form select { appearance: none; cursor: pointer; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 1px var(--gold); }
.contact-form .button { justify-self: start; border: 0; cursor: pointer; }
.form-privacy { margin: -10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.form-privacy a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-disclaimer { margin-top: -12px; }
.form-status { align-self: center; margin: 0; color: #426348; font-size: 13px; }
.honeypot { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.success-page { min-height: 100vh; color: var(--white); background: linear-gradient(135deg, var(--navy-deep), #17384d); }
.success-main { min-height: 100vh; padding: clamp(28px, 5vw, 72px); display: grid; place-content: center; gap: 36px; }
.success-brand { justify-self: center; padding: 10px 18px; border-radius: 4px; background: var(--white); }
.success-brand img { width: min(420px, 75vw); }
.success-card { width: min(720px, calc(100vw - 48px)); padding: clamp(35px, 6vw, 68px); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: rgba(7,25,37,.66); box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.success-card h1 { margin: 0 0 20px; font: 48px/1.08 var(--serif); letter-spacing: -.02em; }
.success-card > p:not(.section-label) { margin: 0 0 30px; color: #d8e0e4; font-size: 17px; line-height: 1.7; }

.service-page-hero {
  min-height: 570px;
  padding: 95px clamp(32px, 7vw, 110px);
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 20, 30, .96) 0%, rgba(5, 20, 30, .82) 45%, rgba(5, 20, 30, .24) 100%),
    url("assets/hero-atrium.png") center/cover no-repeat;
}
.service-page-hero-copy { max-width: 780px; }
.service-page-hero h1 { margin: 0; max-width: 760px; font: 58px/1.05 var(--serif); letter-spacing: -.025em; }
.service-page-hero-copy > p:not(.eyebrow) { max-width: 680px; margin: 25px 0 30px; font-size: 18px; line-height: 1.65; }

.about-page-hero {
  min-height: 430px;
  padding: 85px clamp(32px, 7vw, 110px);
  display: flex;
  align-items: center;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5,20,30,.95), rgba(5,20,30,.76)),
    url("assets/office-building.png") center 44%/cover no-repeat;
}
.about-page-hero > div { max-width: 790px; }
.about-page-hero h1 { max-width: 760px; margin: 0; font: 56px/1.05 var(--serif); letter-spacing: -.025em; }
.about-page-hero p:not(.eyebrow) { max-width: 700px; margin: 24px 0 0; color: #e1e8ec; font-size: 18px; line-height: 1.68; }
.founder-about { background: var(--white); }
.about-story { background: radial-gradient(circle at 70% 20%, #18374a 0, var(--navy) 42%, var(--navy-deep) 100%); }

.page-intro { padding: 85px clamp(32px, 7vw, 110px); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(55px, 8vw, 120px); background: var(--white); }
.page-intro h2, .permit-types h2, .permit-process h2, .faq h2, .service-cta h2 { margin: 0; color: var(--navy); font: 42px/1.08 var(--serif); letter-spacing: -.02em; }
.page-intro-copy p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.page-intro-copy .service-disclaimer, .contact-intro .service-disclaimer { margin-top: 22px; font-size: 13px; line-height: 1.6; }

.privacy-policy-body { padding: 85px clamp(32px, 7vw, 110px); background: var(--white); }
.policy-content { width: 100%; max-width: 920px; min-width: 0; margin: 0 auto; overflow-wrap: break-word; }
.policy-content .policy-meta { color: var(--navy); font-size: 15px; }
.policy-content h2 { margin: 48px 0 18px; color: var(--navy); font: 38px/1.12 var(--serif); letter-spacing: -.02em; }
.policy-content h3 { margin: 32px 0 12px; color: var(--navy); font: 25px/1.18 var(--serif); }
.policy-content p, .policy-content li, .policy-content address { color: var(--muted); font-size: 15px; line-height: 1.75; }
.policy-content p { margin: 0 0 18px; }
.policy-content ul { margin: 0 0 25px; padding-left: 22px; }
.policy-content li { margin-bottom: 8px; }
.policy-content a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.policy-content address { margin: 0 0 22px; font-style: normal; }

.permit-types { padding: 85px clamp(32px, 7vw, 110px); background: var(--cream); }
.permit-types .section-heading, .permit-process .section-heading { max-width: 600px; margin-bottom: 42px; }
.permit-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #d7d2c7; }
.permit-grid article { padding: 34px clamp(22px, 2.5vw, 38px); border-right: 1px solid #d7d2c7; border-bottom: 1px solid #d7d2c7; }
.permit-grid article:nth-child(3n) { border-right: 0; }
.permit-grid span { color: var(--gold); font: 18px/1 var(--serif); }
.permit-grid h3 { margin: 32px 0 13px; color: var(--navy); font: 25px/1.12 var(--serif); }
.permit-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.68; }

.permit-process { padding: 85px clamp(32px, 7vw, 110px); color: var(--white); background: linear-gradient(120deg, #17384d, #091e2c); }
.permit-process h2 { color: var(--white); }
.permit-process ol { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.permit-process li { padding: 32px clamp(20px, 2.5vw, 38px) 0; display: grid; gap: 18px; border-right: 1px solid rgba(255,255,255,.18); }
.permit-process li:first-child { padding-left: 0; }
.permit-process li:last-child { border-right: 0; }
.permit-process b { color: var(--gold-light); font: 25px/1.1 var(--serif); }
.permit-process li span { color: #ccd6dc; font-size: 14px; line-height: 1.68; }

.faq { padding: 85px clamp(32px, 7vw, 110px); display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(55px, 8vw, 115px); background: var(--white); }
.faq-list { border-top: 1px solid #d7d2c7; }
.faq details { border-bottom: 1px solid #d7d2c7; }
.faq summary { padding: 22px 35px 22px 0; position: relative; color: var(--navy); font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 18px; right: 3px; color: var(--gold); font: 25px/1 var(--serif); }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 720px; margin: -3px 0 23px; padding-right: 35px; color: var(--muted); font-size: 14px; line-height: 1.7; }

.service-cta { padding: 70px clamp(32px, 7vw, 110px); display: grid; grid-template-columns: 1fr .8fr auto; gap: 55px; align-items: end; background: var(--cream); }
.service-cta h2 { max-width: 650px; }
.service-cta > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

footer { padding: 32px clamp(32px, 7vw, 110px); display: grid; grid-template-columns: 1fr auto auto auto; gap: 35px; align-items: center; color: #aab7c0; background: #061722; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.footer-brand { padding: 5px 12px; background: var(--white); border-radius: 2px; }
.footer-brand img { width: 230px; }
footer a:not(.footer-brand) { text-decoration: underline; text-underline-offset: 4px; }
footer a:not(.footer-brand):hover { color: var(--gold-light); }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: minmax(250px, 1fr) auto; }
  .primary-nav { order: 3; grid-column: 1 / -1; justify-content: center; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service { padding: 34px; border-bottom: 1px solid #d8d5cd; }
  .service:nth-child(2) { border-right: 0; }
  .service:nth-child(3), .service:nth-child(4) { border-bottom: 0; }
  .service:first-child { padding-left: 34px; }
  .service:last-child { padding-right: 34px; }
  .main-service-grid { grid-template-columns: repeat(2, 1fr); }
  .main-service-grid .service:nth-child(3),
  .main-service-grid .service:nth-child(4) { border-bottom: 1px solid #d8d5cd; }
  .main-service-grid .service:nth-child(4) { border-right: 0; }
  .main-service-grid .service:nth-child(5) { border-right: 0; border-bottom: 0; }
  .permit-process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-semperfi { grid-template-columns: 1fr; }
  .founder { gap: 55px; }
  .permit-grid { grid-template-columns: repeat(2, 1fr); }
  .permit-grid article:nth-child(3n) { border-right: 1px solid #d7d2c7; }
  .permit-grid article:nth-child(2n) { border-right: 0; }
  .service-cta { grid-template-columns: 1fr 1fr; }
  .service-cta .button { justify-self: start; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 78px; }
  .site-header { min-height: 78px; padding: 10px 20px; grid-template-columns: 1fr auto; }
  .brand img { width: min(210px, 58vw); }
  .header-cta { display: none; }
  .menu-toggle { width: 42px; height: 42px; padding: 10px 7px; display: grid; align-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--navy); transition: .2s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: fixed; inset: 78px 0 0; padding: 25px 32px 50px; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 3px; background: var(--navy-deep); color: var(--white); opacity: 0; visibility: hidden; transform: translateX(100%); transition: .28s ease; overflow-y: auto; }
  .primary-nav.open { opacity: 1; visibility: visible; transform: translateX(0); }
  .primary-nav > a, .nav-dropdown > button { width: 100%; padding: 17px 0; display: block; color: var(--white); text-align: left; border-bottom: 1px solid rgba(255,255,255,.12); }
  .primary-nav > a::after, .nav-dropdown > button::after { display: none; }
  .nav-dropdown button span { float: right; }
  .dropdown-menu { position: static; display: none; padding: 5px 0 10px 15px; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: #c4d0d7; }
  .hero { min-height: calc(100svh - 78px); padding: 80px 28px 70px; background-position: 60% center; }
  .hero-media img { width: 72vw; object-position: right top; }
  .hero::before { background: linear-gradient(90deg, rgba(5,20,30,.94), rgba(5,20,30,.67)); }
  .hero-content { z-index: 2; }
  .hero h1 { font-size: clamp(42px, 12vw, 60px); }
  .hero-intro { font-size: 17px; }
  .service-page-hero { min-height: 600px; padding: 80px 28px; }
  .service-page-hero h1 { font-size: clamp(43px, 12vw, 58px); }
  .about-page-hero { min-height: 430px; padding: 70px 28px; }
  .about-page-hero h1 { font-size: clamp(43px, 12vw, 56px); }
  .services { padding: 65px 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .service, .service:first-child, .service:last-child { padding: 30px 0; border-right: 0; border-bottom: 1px solid #d8d5cd; }
  .service:last-child { border-bottom: 0; }
  .permit-process-overview { padding: 65px 28px; }
  .permit-process-cta { padding: 28px; align-items: flex-start; flex-direction: column; }
  .veteran-story { grid-template-columns: 1fr; gap: 38px; padding: 65px 28px; }
  .veteran-story-photo { width: min(100%, 520px); justify-self: start; }
  .why-semperfi { padding: 65px 28px; }
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar, .pillar:first-child, .pillar:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid #d8d5cd; }
  .pillar:last-child { border-bottom: 0; }
  .pillar h3 { margin-top: 20px; }
  .founder { padding: 65px 28px; grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { max-width: 520px; justify-self: start; aspect-ratio: 5 / 4; }
  .page-intro { padding: 65px 28px; grid-template-columns: 1fr; gap: 30px; }
  .privacy-policy-body { padding: 65px 28px; }
  .policy-content h2 { font-size: 34px; }
  .permit-types, .permit-process { padding: 65px 28px; }
  .permit-grid { grid-template-columns: 1fr; }
  .permit-grid article, .permit-grid article:nth-child(3n), .permit-grid article:nth-child(2n) { padding: 28px 0; border-right: 0; }
  .permit-process ol { grid-template-columns: 1fr 1fr; }
  .permit-process li, .permit-process li:first-child { padding: 27px; border-bottom: 1px solid rgba(255,255,255,.18); }
  .permit-process li:nth-child(2) { border-right: 0; }
  .permit-process li:nth-child(3), .permit-process li:nth-child(4) { border-bottom: 0; }
  .faq { padding: 65px 28px; grid-template-columns: 1fr; gap: 35px; }
  .service-cta { padding: 65px 28px; grid-template-columns: 1fr; gap: 25px; align-items: start; }
  .approach { padding: 65px 28px; }
  .approach-grid { grid-template-columns: 1fr 1fr; }
  .approach-grid article { border-bottom: 1px solid #d7d2c7; }
  .approach-grid article:nth-child(2) { border-right: 0; }
  .approach-grid article:nth-child(3), .approach-grid article:nth-child(4) { border-bottom: 0; }
  .projects { padding: 65px 28px; grid-template-columns: 1fr; gap: 25px; align-items: start; }
  .contact { padding: 65px 28px; grid-template-columns: 1fr; gap: 45px; }
  footer { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
  .permit-process-grid { grid-template-columns: 1fr; }
  .permit-process-card-media { height: 128px; }
  .permit-process-cta .button { width: 100%; white-space: normal; }
}

@media (max-width: 520px) {
  .brand img { width: min(195px, 54vw); }
  .hero h1 { max-width: 100%; font-size: 40px; overflow-wrap: break-word; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; max-width: 100%; padding-inline: 16px; white-space: normal; }
  .service-page-hero h1 { font-size: 42px; }
  .about-page-hero h1 { font-size: 42px; }
  .veteran-story h2, .services-heading h2, .permit-process-overview-heading h2, .why-heading h2, .founder-copy h2, .page-intro h2, .permit-types h2, .permit-process h2, .faq h2, .service-cta h2, .approach h2, .projects h2, .contact h2 { font-size: 36px; }
  .policy-content h2 { font-size: 30px; overflow-wrap: anywhere; }
  .policy-content h3 { font-size: 24px; overflow-wrap: anywhere; }
  .policy-content p, .policy-content li { overflow-wrap: anywhere; }
  .founder-credentials span { display: none; }
  .founder-credentials { display: grid; gap: 3px; }
  .permit-process ol { grid-template-columns: 1fr; }
  .permit-process li, .permit-process li:first-child, .permit-process li:nth-child(3) { padding: 26px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .permit-process li:last-child { border-bottom: 0; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-grid article, .approach-grid article:first-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid #d7d2c7; }
  .approach-grid article:nth-child(3) { border-bottom: 1px solid #d7d2c7; }
  .approach-grid article:last-child { border-bottom: 0; }
  .approach-grid h3 { margin-top: 20px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full { grid-column: auto; }
  .form-status { grid-column: 1; }
  .success-card h1 { font-size: 38px; }
}

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