/* Stephen Alan Builders — Navy & Serif system */
:root {
  --navy: #1B3A5C;
  --navy-deep: #12283F;
  --ink: #1F2A33;
  --stone: #5E6670;
  --plaster: #F2F3F1;
  --line: #D9DCD8;
  --brass: #A8844F;
  --white: #FFFFFF;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 .5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
.lede { font-size: 1.25rem; line-height: 1.6; color: var(--stone); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--plaster { background: var(--plaster); }
.section--navy { background: var(--navy); color: #E6ECF2; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head::after {
  content: ""; display: block; width: 56px; height: 2px;
  background: var(--brass); margin-top: 22px;
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  background: var(--white); z-index: 60;
}
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.2rem; line-height: 1.1; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--brass); }
.nav-group { position: relative; }
.nav-group > button {
  font: inherit; font-weight: 600; font-size: .98rem; color: var(--ink);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.nav-group > button::after { content: " ▾"; font-size: .75em; color: var(--stone); }
.nav-menu {
  position: absolute; top: calc(100% + 18px); left: -20px; min-width: 260px;
  background: var(--white); border: 1px solid var(--line); padding: 10px 0;
  box-shadow: 0 18px 40px rgba(18, 40, 63, .14); display: none;
}
.nav-group.open .nav-menu, .nav-group:focus-within .nav-menu { display: block; }
.nav-menu a { display: block; padding: 10px 20px; box-shadow: none !important; }
.nav-menu a:hover { background: var(--plaster); }
.header-call { display: flex; align-items: center; gap: 16px; }
.header-call .phone { font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap; }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border: 2px solid var(--navy); border-radius: 2px;
  background: var(--navy); color: var(--white); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--light:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Hero */
.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(12, 28, 46, .78) 0%, rgba(12, 28, 46, .45) 42%, rgba(12, 28, 46, 0) 70%),
    linear-gradient(to top, rgba(12, 28, 46, .7) 0%, rgba(12, 28, 46, 0) 45%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: .35em; }
.hero p { font-size: 1.25rem; max-width: 52ch; color: #E9EEF3; }
.hero-tagline { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: #E8D6B8; margin-bottom: 14px; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

.page-hero { position: relative; color: var(--white); min-height: 420px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 28, 46, .85), rgba(12, 28, 46, .25) 65%); }
.page-hero .wrap { position: relative; z-index: 1; padding-bottom: 56px; padding-top: 120px; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { color: #E3E9EF; font-size: 1.2rem; margin: 12px 0 0; max-width: 56ch; }
.page-hero--plain { background: var(--navy); min-height: 300px; }
.page-hero--plain::after { display: none; }

/* Trust strip */
.trust { background: var(--navy-deep); color: #DCE4EC; }
.trust ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust li { font-size: .98rem; line-height: 1.4; padding-left: 16px; border-left: 2px solid var(--brass); }
.trust strong { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--white); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--wide-img { grid-template-columns: 1.25fr 1fr; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Services */
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.service { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.service figure { margin: 0 0 20px; overflow: hidden; background: var(--line); aspect-ratio: 4 / 3; }
.service figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service:hover figure img { transform: scale(1.03); }
.service h3 { margin-bottom: .35em; }
.service p { color: var(--stone); margin-bottom: .6em; }
.service .more { font-weight: 700; color: var(--navy); margin-top: auto; }
.service figure.no-photo { display: flex; align-items: center; justify-content: center; background: var(--navy); }
.service figure.no-photo img { width: 88px; height: 88px; object-fit: contain; opacity: .9; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 36px); }
.plan { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan figure { margin: 0; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.plan figure img { width: 100%; height: 100%; object-fit: cover; }
.plan .tag {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .94);
  color: var(--navy); font-size: .82rem; font-weight: 700; padding: 4px 10px;
}
.plan .body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.plan h3 { margin-bottom: .25em; }
.plan .specs { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--navy); font-weight: 600; }
.plan p { color: var(--stone); }
.plan .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.plan .actions a { font-weight: 700; }
.plan-note { margin-top: 28px; color: var(--stone); font-size: .95rem; }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.process li { counter-increment: step; padding: 32px 32px 36px 0; border-bottom: 1px solid var(--line); }
.process li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.process li::before {
  content: counter(step); display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1;
  color: var(--brass); margin-bottom: 14px;
}
.process h3 { margin-bottom: .4em; }
.process p { color: var(--stone); margin: 0; }
.process-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.process-foot p { margin: 0; }
.process-foot strong { color: var(--navy); }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--brass); border-bottom: 2px solid var(--brass); transform: rotate(-45deg); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.review { margin: 0; display: flex; flex-direction: column; }
.review .stars { color: var(--brass); letter-spacing: 3px; font-size: 1.05rem; margin-bottom: 14px; }
.review blockquote { margin: 0 0 18px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: var(--ink); }
.section--navy .review blockquote { color: var(--white); }
.review figcaption { margin-top: auto; font-weight: 700; color: var(--navy); }
.section--navy .review figcaption { color: #D9C3A0; }
.review figcaption span { display: block; font-weight: 400; color: var(--stone); font-size: .92rem; }
.section--navy .review figcaption span { color: #AFC0D0; }
.rating-summary { display: flex; align-items: baseline; gap: 14px; margin-bottom: 36px; }
.rating-summary .score { font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: var(--navy); }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; margin-bottom: 20px; background: var(--line); }
.member h3 { margin-bottom: .1em; }
.member .role { color: var(--brass); font-weight: 700; margin-bottom: 12px; }
.member p { color: var(--stone); }

.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.values h3 { font-size: 1.25rem; margin-bottom: .35em; }
.values p { color: #C9D5E1; font-size: .98rem; margin: 0; }

.story { max-width: 760px; }
.story p { font-size: 1.15rem; }
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.4; color: var(--navy); border-left: 2px solid var(--brass); padding-left: 28px; margin: 40px 0; max-width: 34ch; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filters button {
  font: inherit; font-weight: 600; padding: 9px 18px; border: 1px solid var(--line); background: var(--white);
  color: var(--ink); cursor: pointer; border-radius: 2px;
}
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: .92rem; color: var(--stone); padding: 8px 0 6px; }
.gallery figcaption strong { color: var(--ink); font-weight: 600; }
.gallery .tall button { aspect-ratio: 3 / 4; }
dialog.lightbox { border: 0; padding: 0; max-width: min(1400px, 94vw); background: transparent; }
dialog.lightbox::backdrop { background: rgba(10, 20, 32, .92); }
dialog.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; }
dialog.lightbox p { color: #E6ECF2; text-align: center; margin: 12px auto 0; }
dialog.lightbox .close { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; font: inherit; font-size: 1rem; font-weight: 700; color: var(--white); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); padding: 8px 14px; cursor: pointer; }

/* CTA band */
.cta-band { background: var(--navy); color: #E6ECF2; }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { margin: 0; color: #C9D5E1; }
.cta-band .btn-row { justify-content: flex-end; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
form .field { margin-bottom: 20px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label, legend { display: block; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.hint { font-weight: 400; color: var(--stone); font-size: .92rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 14px; border: 1px solid #B9BFC4; border-radius: 2px; background: var(--white);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.choices label { font-weight: 400; display: flex; align-items: center; gap: 8px; margin: 0; }
.form-status { margin-top: 16px; font-weight: 600; }
.form-status.ok { color: #2E6B4A; }
.form-status.err { color: #9B2C2C; }
.hp { position: absolute; left: -9999px; }
.contact-card { background: var(--plaster); padding: 32px; }
.contact-card h3 { margin-bottom: .6em; }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--navy); margin-top: 16px; }
.contact-card dd { margin: 2px 0 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B9C7D4; font-size: .98rem; }
.site-footer .wrap { padding-top: 64px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.site-footer a { color: #E2E9F0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 52px; height: auto; }
.footer-bia { display: inline-block; margin-top: 8px; }
.footer-bia img { width: 120px; height: auto; }
.footer-brand span { font-family: var(--serif); color: var(--white); font-size: 1.25rem; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: #D9C3A0; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding-top: 22px; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* Responsive */
@media (max-width: 1040px) {
  .nav, .header-call .phone { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; color: var(--navy);
    background: none; border: 2px solid var(--navy); padding: 8px 14px; cursor: pointer; border-radius: 2px;
  }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .site-header.open .nav > a, .site-header.open .nav-group { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--plaster); }
  .site-header.open .nav a { box-shadow: none; }
  .nav-group > button::after { content: ""; }
  .nav-menu { position: static; display: block; border: 0; box-shadow: none; padding: 6px 0 0 14px; min-width: 0; }
  .nav-menu a { padding: 8px 0; font-weight: 400; }
  .site-header.open .nav .mobile-phone { display: block; margin-top: 16px; border: 0; }
  .trust ul { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.mobile-phone { display: none !important; }
@media (max-width: 1040px) { .site-header.open .nav .mobile-phone { display: block !important; } }
@media (max-width: 860px) {
  .split, .split--wide-img, .contact-grid, .cta-band .wrap, .process-foot { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .service-list, .plans, .reviews, .team, .gallery { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr 1fr; }
  .process li, .process li:not(:nth-child(3n+1)) { padding: 28px 24px 30px 0; border-left: 0; }
  .process li:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .checklist { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .service-list, .plans, .reviews, .team, .gallery, .process, .values, .footer-grid, form .row, .trust ul { grid-template-columns: 1fr; }
  .process li:nth-child(even) { padding-left: 0; border-left: 0; }
  .brand span { font-size: 1.05rem; }
  .hero { min-height: 78vh; }
  .header-call .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

.plan[hidden], .gallery figure[hidden] { display: none; }
.plan .tag { letter-spacing: .01em; }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 760px; }
.ba figure { margin: 0; }
.ba img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--line); }
.ba figcaption { font-weight: 700; color: var(--navy); padding-top: 8px; }
.ba figure:nth-child(odd) figcaption { color: var(--stone); }
@media (max-width: 600px) { .ba { grid-template-columns: 1fr 1fr; gap: 10px 12px; } }
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.legal li { margin-bottom: .4em; }

.plan .price { font-family: var(--serif); font-size: 1.15rem; color: var(--brass); margin: 0 0 10px; }
/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-family: var(--sans); font-size: 1.6rem; font-weight: 400; color: var(--brass); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 24px; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-group { margin-top: 48px; }
.faq-group:first-child { margin-top: 0; }
.faq-group > h2 { font-size: 1.6rem; margin-bottom: 14px; }
