/* Section styles for the service pages written by tools/build-services.py.
   Header, hero and footer come from assets/shell.css; this file styles what sits
   between them, in the same language as the homepage sections. */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { color: var(--ink-soft); font-family: var(--sans); font-size: 17px; line-height: 1.7; font-weight: 400; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 40px; }
@media (max-width: 900px) { .wrap { padding: 0 22px; } }

section.block { padding: 120px 0; }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 18px; }
/* Section index in front of each section label: 01 / … */
.wm-main { counter-reset: sec; }
.wm-main > section { counter-increment: sec; }
.wm-main .eyebrow::before { content: counter(sec, decimal-leading-zero) "\00a0\00a0/\00a0\00a0"; color: var(--gold); font-weight: 500; }
.sec-head { max-width: 760px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 60px); }

/* ---------- Who this is for ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; margin-top: 64px; }
.item { border-top: 1px solid var(--gold); padding-top: 26px; }
.item h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.25; margin-bottom: 12px; }
.item p { font-weight: 300; }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; gap: 34px; margin-top: 44px; } }

/* ---------- Dark section: the steps ---------- */
.dark { position: relative; overflow: hidden; color: rgba(247,244,238,.82); padding: 130px 0;
  background: radial-gradient(1200px 700px at 85% -10%, #17385a 0%, var(--navy) 55%, var(--navy-deep) 100%); }
.dark h2, .dark h3 { color: var(--cream); }
.dark .eyebrow { color: var(--gold-light); }
.rows { margin-top: 64px; border-bottom: 1px solid rgba(247,244,238,.14); }
.row { display: grid; grid-template-columns: 70px minmax(0,1fr) minmax(0,1.25fr); gap: 28px; align-items: baseline; padding: 34px 0; border-top: 1px solid rgba(247,244,238,.14); }
.row .n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 17px; }
.row .lbl { display: block; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); font-weight: 500; margin-bottom: 8px; }
.row h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; }
.row p { font-size: 16.5px; font-weight: 300; }
.row em { color: var(--gold-light); }
@media (max-width: 800px) {
  .dark { padding: 90px 0; }
  .rows { margin-top: 44px; }
  .row { grid-template-columns: 34px 1fr; gap: 8px 12px; padding: 26px 0; }
  .row p { grid-column: 2; }
}

/* ---------- Founders ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,6fr); gap: 84px; align-items: start; }
/* The founders photo is 2:3 and must never be cropped. */
.portrait { position: sticky; top: 110px; aspect-ratio: 2 / 3; width: min(100%, calc((100vh - 170px) * 2 / 3)); justify-self: center; }
.portrait .clip { width: 100%; height: 100%; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 1px solid var(--gold); z-index: -1; opacity: .8; }
.motion .portrait.reveal { opacity: 1; transform: none; }
.motion .portrait .clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease); }
.motion .portrait.in .clip { clip-path: inset(0 0 0 0); }
.about-body h2 { font-size: clamp(34px, 4.4vw, 60px); margin-bottom: 34px; }
.know { list-style: none; border-top: 1px solid var(--line); }
.know li { border-bottom: 1px solid var(--line); padding: 20px 0; font-weight: 300; }
.know b { display: block; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.3; color: var(--ink); margin-bottom: 4px; }
.disclosure { margin-top: 30px; font-size: 14.5px; line-height: 1.65; border-left: 1px solid var(--gold); padding-left: 20px; color: var(--muted); }
.legacy { margin-top: 26px; max-width: 58ch; }
.legacy a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.sign { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.sign .nm { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.sign .rl { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .portrait { position: relative; top: 0; width: min(100%, 340px); justify-self: start; }
  .portrait::before { inset: 12px -12px -12px 12px; }
}

/* ---------- FAQ ---------- */
.faq { background: var(--cream-deep); }
.faq-grid { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,6fr); gap: 70px; align-items: start; }
.faq .sec-head { position: sticky; top: 110px; }
.faq-list { border-top: 1px solid var(--gold); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 26px 54px 26px 0; position: relative; font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); line-height: 1.3; color: var(--ink); font-weight: 500; transition: color .25s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 17px; height: 1.5px; background: var(--gold-deep); transition: transform .35s var(--ease); }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-item summary:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.faq-item p { padding: 0 54px 28px 0; font-weight: 300; max-width: 62ch; }
@media (max-width: 900px) {
  section.block { padding: 84px 0; }
  .faq-grid { grid-template-columns: 1fr; gap: 44px; }
  .faq .sec-head { position: static; }
}

/* ---------- Other services ---------- */
.related-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; margin-top: 54px; border-top: 1px solid var(--line); }
.related-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(20px, 2vw, 25px); line-height: 1.3; color: var(--ink); }
.related-list a span { transition: transform .5s var(--ease), color .25s; }
.related-list a i { font-style: normal; color: var(--gold); font-size: 22px; transition: transform .5s var(--ease); }
.related-list a:hover span { transform: translateX(10px); color: var(--gold-deep); }
.related-list a:hover i { transform: translateX(8px); }
@media (max-width: 800px) { .related-list { grid-template-columns: 1fr; margin-top: 40px; } }
.areas { margin-top: 40px; font-size: 15.5px; color: var(--muted); line-height: 2; }
.areas span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.areas a { color: var(--navy); border-bottom: 1px solid var(--gold); }
.areas a:hover { color: var(--gold-deep); }

/* ---------- Closing call ---------- */
.contact { position: relative; color: var(--cream); padding: 130px 0 120px;
  background: radial-gradient(900px 520px at 88% 0%, rgba(200,164,93,0.24), transparent 60%), var(--navy-deep); }
.contact .eyebrow { color: var(--gold-light); }
.contact h2 { color: var(--cream); font-size: clamp(38px, 5.2vw, 74px); font-weight: 400; max-width: 16ch; }
.contact .sub { color: rgba(251,248,241,0.8); font-size: 18px; font-weight: 300; margin: 26px 0 0; max-width: 520px; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (max-width: 860px) { .contact { padding: 90px 0; } }
@media (max-width: 560px) { .contact .actions .wm-btn { width: 100%; } }

/* Phones only: the number stays within reach the whole way down. */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 48; box-shadow: 0 -4px 18px rgba(16,30,52,0.18); }
  .callbar a { flex: 1 1 50%; text-align: center; color: #fff; font-size: 16.5px; font-weight: 600; letter-spacing: 0.04em; padding: 15px 10px calc(15px + env(safe-area-inset-bottom)); }
  .callbar a:first-child { background: var(--gold); color: var(--navy-deep); }
  .callbar a:last-child { background: #1f7a4d; }
  .wm-foot { padding-bottom: 96px; }
}
