/* ==========================================================
   F4 Fitouts — f4.ae
   Palette locked to brand: Navy Charcoal, Ivory Sand,
   Warm Sand, Concrete Grey, Clay (accent only, <5%)
   ========================================================== */

:root {
  --navy:     #131F33;
  --ivory:    #F0ECE0;
  --sand:     #D9CDB6;
  --grey:     #9A968C;
  --clay:     #8C5A3C;

  --ink:      #131F33;
  --ink-soft: #47505F;
  --rule:     #C9C1AE;
  --rule-fine:#DED7C6;

  --measure:  36rem;
  --gap:      clamp(3.5rem, 7vw, 7rem);
  --pad:      clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 68rem; margin: 0 auto; padding-inline: var(--pad); }

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

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

/* ---------- Header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory);
}
.head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.05rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { height: 60px; width: auto; display: block; }
@media (max-width: 480px) { .logo { height: 26px; } }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: .93rem;
  padding-block: .3rem; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--clay); }

.wa {
  background: var(--navy); color: var(--ivory) !important;
  padding: .62rem 1.05rem; font-size: .92rem;
  text-decoration: none; border: 1px solid var(--navy);
  white-space: nowrap;
}
.wa:hover { background: transparent; color: var(--navy) !important; }
.nav .wa { border-bottom: 1px solid var(--navy); }
.nav .wa:hover { border-bottom-color: var(--navy); }

.head-right { display: inline-flex; align-items: center; gap: .6rem; }
.wa-mobile { display: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--rule);
  color: var(--navy); padding: .5rem .7rem; font-size: .9rem;
  font-family: inherit; cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .wa-mobile { display: inline-block; padding: .55rem .85rem; font-size: .88rem; }
  .nav .wa { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--pad) 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding-block: .75rem; border-bottom: 1px solid var(--rule-fine); }
  .nav .wa { margin-top: .9rem; text-align: center; }
}

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 300; line-height: 1.14; margin: 0; letter-spacing: -.015em; }
h2 { margin-bottom: 1.15rem; }
h3 { margin-bottom: .55rem; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.16rem; font-weight: 500; letter-spacing: 0; line-height: 1.35; }

p { margin: 0 0 1.05rem; max-width: var(--measure); }
.lede { font-size: clamp(1.1rem, 2.1vw, 1.32rem); line-height: 1.5; color: var(--ink-soft); }

a { color: var(--navy); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--clay); }

strong { font-weight: 600; }

/* ---------- Sections ---------- */
section { padding-block: var(--gap); border-top: 1px solid var(--rule-fine); }
section:first-of-type { border-top: none; }

.hero { padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero p { max-width: 34rem; }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .78rem 1.35rem; font-size: .96rem;
  text-decoration: none; border: 1px solid var(--navy);
  background: var(--navy); color: var(--ivory);
}
.btn:hover { background: transparent; color: var(--navy); }
.btn-quiet { background: transparent; color: var(--navy); }
.btn-quiet:hover { background: var(--navy); color: var(--ivory); }

/* ---------- Spec rows: the signature device ---------- */
.spec { border-top: 1px solid var(--rule); margin-top: 2.75rem; }
.spec-row {
  display: grid; grid-template-columns: 8rem 1fr;
  gap: 1.5rem; padding-block: .95rem;
  border-bottom: 1px solid var(--rule-fine);
  align-items: baseline;
}
.spec-key {
  font-size: 1.28rem; font-weight: 300; color: var(--navy);
  letter-spacing: -.01em;
}
.spec-val { color: var(--ink-soft); font-size: .97rem; margin: 0; max-width: none; }

@media (max-width: 620px) {
  .spec-row { grid-template-columns: 1fr; gap: .15rem; padding-block: .85rem; }
}

/* ---------- Two-column prose / aside ---------- */
.split {
  display: grid; grid-template-columns: 14rem 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.split > .col-label {
  font-size: .9rem; color: var(--grey); line-height: 1.5;
  padding-top: .4rem; border-top: 1px solid var(--rule); margin: 0;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- Service / topic blocks ---------- */
.block { border-top: 1px solid var(--rule); padding-top: 1.5rem; margin-top: 2.5rem; }
.block > h3 { margin-bottom: .55rem; }
.block .range { color: var(--grey); font-size: .92rem; margin: 0; }

.blocks-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 4rem); }
@media (max-width: 760px) { .blocks-2 { grid-template-columns: 1fr; } }

/* ---------- Dark band (used sparingly, once per page max) ---------- */
.dark {
  background: var(--navy); color: var(--ivory);
  border-top: none;
}
.dark h2, .dark h3 { color: var(--ivory); }
.dark p { color: #C7CCD6; }
.dark .lede { color: #C7CCD6; }
.dark a { color: var(--ivory); }
.dark .num { color: var(--sand); }
.dark .block { border-top-color: #2C3648; }
.dark .btn { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.dark .btn:hover { background: transparent; color: var(--ivory); }

/* ---------- Numbered sequence (only where content is a real sequence) ---------- */
.steps { counter-reset: step; }
.step {
  border-top: 1px solid var(--rule); padding-top: 1.4rem; margin-top: 2.4rem;
  display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.25rem;
}
.step .num {
  counter-increment: step; font-size: 1.05rem; font-weight: 400;
  color: var(--clay); padding-top: .12rem;
}
.step .num::before { content: counter(step); }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: .4rem; } }

/* ---------- Lists ---------- */
ul.plain { list-style: none; padding: 0; margin: 0 0 1.05rem; max-width: var(--measure); }
ul.plain li {
  padding-block: .5rem; border-bottom: 1px solid var(--rule-fine);
  color: var(--ink-soft); font-size: .99rem;
}
ul.plain li:first-child { border-top: 1px solid var(--rule-fine); }

ul.run { padding-left: 1.1rem; margin: 0 0 1.05rem; max-width: var(--measure); }
ul.run li { margin-bottom: .4rem; }

/* ---------- Table ---------- */
table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: .96rem; }
th, td { text-align: left; padding: .8rem 1rem .8rem 0; border-bottom: 1px solid var(--rule-fine); vertical-align: top; }
th { font-weight: 600; border-bottom-color: var(--rule); }
td:first-child { width: 32%; color: var(--navy); }
@media (max-width: 620px) {
  table, tbody, tr, td, th { display: block; width: 100%; }
  th { display: none; }
  td { border: none; padding: .15rem 0; }
  td:first-child { font-weight: 600; padding-top: .9rem; border-top: 1px solid var(--rule-fine); }
}

/* ---------- Community index ---------- */
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 2.5rem; }
.area-link {
  display: block; text-decoration: none; color: var(--navy);
  border-top: 1px solid var(--rule); padding: 1.05rem 0;
}
.area-link:hover { border-top-color: var(--clay); }
.area-link .an { display: block; font-size: 1.1rem; font-weight: 400; }
.area-link .ad { display: block; font-size: .88rem; color: var(--grey); margin-top: .15rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); margin-top: 2.5rem; }
.faq details { border-bottom: 1px solid var(--rule-fine); }
.faq summary {
  cursor: pointer; padding: 1.05rem 0; font-size: 1.06rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--clay); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details > p { padding-bottom: 1.05rem; margin: 0; }

/* ---------- Note / disclosure callout ---------- */
.note {
  border-left: 2px solid var(--clay); padding: .2rem 0 .2rem 1.15rem;
  margin: 1.6rem 0; max-width: var(--measure);
}
.note p { margin: 0; }

/* ---------- Form ---------- */
form { max-width: 34rem; }
.field { margin-bottom: 1.15rem; }
label { display: block; font-size: .93rem; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: .98rem;
  border: 1px solid var(--rule); background: #FBF9F4; color: var(--ink);
  border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; }
textarea { min-height: 7rem; resize: vertical; }
.opt { color: var(--grey); }
button[type=submit] {
  padding: .8rem 1.5rem; font: inherit; font-size: .96rem; cursor: pointer;
  background: var(--navy); color: var(--ivory); border: 1px solid var(--navy);
}
button[type=submit]:hover { background: transparent; color: var(--navy); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--navy); color: #C7CCD6;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .93rem;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid #2C3648;
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-foot h4 { margin: 0 0 .8rem; font-size: .93rem; font-weight: 600; color: var(--ivory); }
.site-foot p { margin: 0 0 .45rem; max-width: 22rem; }
.site-foot a { color: #C7CCD6; text-decoration: none; display: block; padding-block: .22rem; }
.site-foot a:hover { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--sand); }
.logo-foot { height: 32px; width: auto; display: block; margin-bottom: 1.15rem; }
.foot-base {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between;
  padding-top: 1.5rem; color: var(--grey); font-size: .87rem;
}
.foot-base a { display: inline; }

/* ---------- Utility ---------- */
.mt0 { margin-top: 0; }
.tight { margin-bottom: .4rem; }
.muted { color: var(--grey); }
.small { font-size: .92rem; }
