/* =====================================================================
   Chelsworth — Private Holdings & Advisory
   Stylesheet: Portland-stone / forest-ink ledger aesthetic.
   Display: Cormorant Garamond · Body: Spectral · Utility: IBM Plex Mono
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette */
  --paper:     #E7E4DD;   /* Portland stone — page ground */
  --paper-2:   #EDEAE3;   /* lifted stone — subtle bands */
  --card:      #F2EFE8;   /* panel face, lighter than paper */
  --stone:     #D5D1C7;   /* hairline borders */
  --mist:      #C4C0B5;   /* secondary borders / dividers */
  --ink:       #161F1B;   /* forest-ink — primary text & dark ground */
  --ink-soft:  #2A332E;   /* dark surfaces */
  --moss:      #33433A;   /* deep moss — panels */
  --moss-2:    #3F5147;   /* lifted moss */
  --brass:     #B0884A;   /* brass accent — eyebrows, rules */
  --brass-2:   #C9A868;   /* lifted brass for dark bg */
  --clay:      #9E4A2E;   /* burnt clay — single live accent */
  --clay-2:    #873E25;   /* clay hover */
  --bone:      #F6F2EA;   /* text on dark */
  --bone-soft: #D8D3C7;   /* muted text on dark */
  --whatsapp:  #25D366;

  /* Type */
  --font-display: "Cormorant Garamond", "Cormorant", "Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Spectral", Georgia, "Times New Roman", serif;
  --font-mono:    "IBM Plex Mono", "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Scale (fluid) */
  --step-display: clamp(2.7rem, 6.2vw, 5.25rem);
  --step-h1:      clamp(2.2rem, 4.4vw, 3.5rem);
  --step-h2:      clamp(1.7rem, 3vw, 2.4rem);
  --step-h3:      clamp(1.25rem, 1.9vw, 1.55rem);
  --step-lead:    clamp(1.1rem, 1.5vw, 1.3rem);
  --step-body:    1.0625rem;
  --step-small:   0.85rem;
  --step-micro:   0.72rem;

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.5s;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(22,31,27,0.018) 0, transparent 120px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}
.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;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.display { font-size: var(--step-display); font-weight: 600; line-height: 1.02; }
h1, .h1 { font-size: var(--step-h1); }
h2, .h2 { font-size: var(--step-h2); }
h3, .h3 { font-size: var(--step-h3); font-weight: 600; }
p { color: inherit; }
p + p { margin-top: 1rem; }
.lead { font-size: var(--step-lead); line-height: 1.6; color: var(--ink); }
.muted { color: var(--moss); }
strong { font-weight: 600; color: var(--ink); }
em { font-style: italic; }

/* Eyebrow — mono small-caps with brass hairline (ledger heading rule) */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--brass);
  flex: none;
}
.eyebrow--bare::before { display: none; }
.eyebrow--center::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--brass);
}
.on-dark .eyebrow { color: var(--brass-2); }
.on-dark .eyebrow::before,
.on-dark .eyebrow--center::after { background: var(--brass-2); }

/* Decorative double ledger rule */
.rule-double {
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  height: 5px;
  width: 100%;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper); }
.section--stone { background: var(--paper-2); }
.section--ink {
  background: var(--ink);
  color: var(--bone);
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%),
    radial-gradient(120% 80% at 100% 0%, rgba(176,136,74,0.10), transparent 55%);
}
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--bone); }
.section--moss { background: var(--moss); color: var(--bone); }
.section--moss h1, .section--moss h2, .section--moss h3 { color: var(--bone); }
.section-head { max-width: 720px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--moss); }
.on-dark .section-head p { color: var(--bone-soft); }
.section + .section { border-top: 0; }

.stack > * + * { margin-top: 1rem; }
.prose p { color: var(--ink); }
.prose--muted p { color: var(--moss); }
.divider { height: 1px; background: var(--stone); border: 0; margin-block: clamp(2rem,4vw,3.5rem); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  --fg: var(--ink);
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.92rem 1.6rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bd);
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), transform .3s var(--ease);
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  --bg: var(--clay); --fg: var(--bone); --bd: var(--clay);
}
.btn--primary:hover { --bg: var(--clay-2); --bd: var(--clay-2); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--bone); }
.btn--light { --bg: transparent; --fg: var(--bone); --bd: rgba(246,242,234,0.45); }
.btn--light:hover { --bg: var(--bone); --fg: var(--ink); --bd: var(--bone); }
.btn--solid-light { --bg: var(--bone); --fg: var(--ink); --bd: var(--bone); }
.btn--solid-light:hover { --bg: var(--brass-2); --bd: var(--brass-2); }
.btn--sm { padding: 0.7rem 1.1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* WhatsApp chip */
.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92rem 1.5rem;
  background: var(--whatsapp);
  color: #05291a;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid rgba(5,41,26,0.2);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
  line-height: 1;
}
.whatsapp:hover { background: #20bd5a; transform: translateY(-2px); }
.whatsapp svg { width: 18px; height: 18px; flex: none; }

/* ---------- Inline link ---------- */
.link {
  color: var(--clay);
  border-bottom: 1px solid rgba(158,74,46,0.4);
  padding-bottom: 1px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.link:hover { color: var(--clay-2); border-bottom-color: var(--clay-2); }
.on-dark .link { color: var(--brass-2); border-bottom-color: rgba(201,168,104,0.5); }
.on-dark .link:hover { color: var(--bone); }
.arrow-link {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.arrow-link:hover { gap: 0.85rem; color: var(--clay); border-bottom-color: var(--clay); }
.on-dark .arrow-link { color: var(--bone); border-bottom-color: var(--brass-2); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(231,228,221,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--stone);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(231,228,221,0.96);
  box-shadow: 0 1px 0 rgba(22,31,27,0.04), 0 14px 30px -22px rgba(22,31,27,0.35);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: var(--ink);
  border-radius: 3px;
  font-family: var(--font-display);
  color: var(--brass-2);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  box-shadow: inset 0 0 0 1px rgba(201,168,104,0.35);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.brand__role {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--moss);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.2vw, 2.2rem);
}
.nav__list a {
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss);
  position: relative;
  padding-block: 0.4rem;
  transition: color .25s var(--ease);
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--clay);
  transition: width .3s var(--ease);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after,
.nav__list a.is-active::after { width: 100%; }
.nav__list a.is-active { color: var(--ink); }

.site-header__cta { display: flex; align-items: center; gap: 1rem; }
.phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: 0.06em;
  color: var(--ink);
}
.phone svg { width: 15px; height: 15px; color: var(--clay); flex: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--stone);
  border-radius: 3px;
  position: relative;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after  { transform: translate(-50%, 7px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translate(-50%, 0) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translate(-50%, 0) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--stone);
    padding: 1.25rem var(--gutter) 1.75rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }
  .nav__list li { width: 100%; border-bottom: 1px solid var(--stone); }
  .nav__list a {
    display: block;
    padding: 0.95rem 0;
    font-size: 0.92rem;
    width: 100%;
  }
  .nav__list a::after { display: none; }
  .nav__list a.is-active { color: var(--clay); }
  .nav__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.4rem;
  }
}
.nav__mobile-cta { display: none; }
@media (max-width: 900px) { .nav__mobile-cta { display: flex; } }
@media (max-width: 560px) {
  .phone { font-size: 0.78rem; }
  .brand__role { display: none; }
}

/* =====================================================================
   Hero
   ===================================================================== */
.hero { position: relative; padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem,5vw,4rem); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--clay); font-style: italic; font-weight: 500; }
.hero__lead { max-width: 40ch; color: var(--moss); font-size: var(--step-lead); margin-bottom: 2rem; }
.hero__actions { margin-bottom: 2.5rem; }

/* Hero ledger block (signature) */
.ledger {
  background: var(--card);
  border: 1px solid var(--stone);
  border-top: 3px solid var(--ink);
  padding: 0.5rem 0 0.25rem;
  position: relative;
}
.ledger::before {
  content: "PRIVATE LEDGER · CHELSWORTH";
  position: absolute;
  top: -10px; left: 1.4rem;
  background: var(--paper);
  padding: 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  color: var(--moss);
}
.ledger__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-top: 1px solid var(--stone);
}
.ledger__row:first-child { border-top: 0; }
.ledger__idx {
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  color: var(--brass);
  letter-spacing: 0.1em;
}
.ledger__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}
.ledger__desc {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--moss);
  margin-top: 0.25rem;
  font-style: normal;
}
.ledger__meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  text-align: right;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .ledger { max-width: 520px; }
}

/* Hero meta strip */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--stone);
}
.hero-meta__item { display: flex; flex-direction: column; gap: 0.3rem; }
.hero-meta__k {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.hero-meta__v {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  max-width: 22ch;
}

/* =====================================================================
   Generic cards / panels / grids
   ===================================================================== */
.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-4px); border-color: var(--brass); }
.card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--stone);
  border-radius: 3px;
  color: var(--clay);
  margin-bottom: 0.4rem;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--moss); font-size: 1rem; }
.card__num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  text-transform: uppercase;
}
.on-dark .card { background: rgba(246,242,234,0.04); border-color: rgba(246,242,234,0.14); }
.on-dark .card:hover { border-color: var(--brass-2); background: rgba(246,242,234,0.06); }
.on-dark .card p { color: var(--bone-soft); }
.on-dark .card h3 { color: var(--bone); }
.on-dark .card__icon { border-color: rgba(246,242,234,0.18); color: var(--brass-2); }

/* Feature row (text + list) for capability sections */
.feature {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.feature + .feature { border-top: 1px solid var(--stone); }
.feature--reverse .feature__media { order: 2; }
.feature__idx {
  font-family: var(--font-mono);
  font-size: var(--step-micro);
  letter-spacing: 0.22em;
  color: var(--brass);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.9rem;
}
.feature h2 { margin-bottom: 1rem; }
.feature__lead { color: var(--moss); margin-bottom: 1.5rem; font-size: var(--step-lead); }
.feature__list { display: grid; gap: 0.9rem; margin-top: 1.25rem; }
.feature__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed var(--stone);
  color: var(--ink);
}
.feature__list li:last-child { border-bottom: 0; }
.feature__list .k {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--brass);
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 3px;
}
.feature__media {
  background: var(--card);
  border: 1px solid var(--stone);
  border-radius: 3px;
  padding: 1.75rem;
  position: relative;
}
.feature__media .panel-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1.25rem;
  display: block;
}
.feature__media ul { display: grid; gap: 0.95rem; }
.feature__media li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 0.7rem;
  align-items: baseline;
  color: var(--moss);
  font-size: 0.98rem;
}
.feature__media li::before {
  content: "";
  width: 7px; height: 7px;
  border: 1px solid var(--brass);
  transform: rotate(45deg);
  margin-top: 7px;
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

/* =====================================================================
   Principles / values
   ===================================================================== */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.principle { padding: clamp(1.75rem, 3vw, 2.5rem); border-right: 1px solid var(--stone); }
.principle:last-child { border-right: 0; }
.principle__k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--clay); text-transform: uppercase; margin-bottom: 1rem; }
.principle h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.principle p { color: var(--moss); font-size: 0.95rem; }
@media (max-width: 900px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: 0; }
  .principle:nth-child(1), .principle:nth-child(2) { border-bottom: 1px solid var(--stone); }
}
@media (max-width: 520px) {
  .principles { grid-template-columns: 1fr; }
  .principle { border-right: 0; border-bottom: 1px solid var(--stone); }
  .principle:last-child { border-bottom: 0; }
}

/* =====================================================================
   Process / numbered approach
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2vw, 2rem); counter-reset: step; }
.step { position: relative; padding-top: 1.5rem; }
.step__num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--brass);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.step__rule { width: 2.5rem; height: 1px; background: var(--ink); margin-bottom: 1.1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.step p { color: var(--moss); font-size: 0.95rem; }
.section--moss .step__num { color: var(--brass-2); }
.section--moss .step__rule { background: var(--brass-2); }
.section--moss .step h3 { color: var(--bone); }
.section--moss .step p { color: var(--bone-soft); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* =====================================================================
   Sectors
   ===================================================================== */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--stone); border-radius: 3px; overflow: hidden; background: var(--card); }
.sector { padding: clamp(1.5rem, 2.4vw, 2rem); border-right: 1px solid var(--stone); border-bottom: 1px solid var(--stone); transition: background-color .3s var(--ease); }
.sector:hover { background: var(--paper-2); }
.sector__icon { color: var(--clay); margin-bottom: 0.9rem; }
.sector__icon svg { width: 26px; height: 26px; }
.sector h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.sector p { color: var(--moss); font-size: 0.93rem; }
@media (max-width: 820px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sectors { grid-template-columns: 1fr; } }

/* =====================================================================
   FAQ accordion
   ===================================================================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--stone); }
.faq__item:first-child { border-top: 1px solid var(--stone); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
  padding: 1.4rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.faq__q:hover { color: var(--clay); }
.faq__plus {
  position: relative;
  width: 18px; height: 18px;
  flex: none;
  margin-top: 5px;
}
.faq__plus::before, .faq__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  background: var(--brass); transform: translate(-50%,-50%);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq__plus::before { width: 14px; height: 1.5px; }
.faq__plus::after  { width: 1.5px; height: 14px; }
.faq__item.is-open .faq__plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s var(--ease);
}
.faq__a-inner { padding: 0 2rem 1.5rem 0.25rem; color: var(--moss); }
.faq__a-inner p + p { margin-top: 0.8rem; }

/* FAQ inline (home, non-accordion quick list) */
.faq-mini { display: grid; gap: 0; }
.faq-mini__item { padding: 1.25rem 0; border-bottom: 1px solid var(--stone); }
.faq-mini__item:first-child { border-top: 1px solid var(--stone); }
.faq-mini__q { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--ink); margin-bottom: 0.45rem; }
.faq-mini__a { color: var(--moss); font-size: 0.98rem; }

/* =====================================================================
   Forms
   ===================================================================== */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
}
.field input, .field textarea, .field select {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: 0.85rem 0.95rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--clay);
  background: var(--card);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23334340' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.form-note { font-size: 0.82rem; color: var(--moss); }
.form-status { display: none; }
.form-status.is-visible {
  display: inline-flex;
  align-items: center;
  color: var(--clay);
  font-family: var(--font-mono);
  font-size: var(--step-small);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* =====================================================================
   Contact layout
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-details { display: grid; gap: 1.75rem; }
.detail { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.detail__icon { width: 42px; height: 42px; border: 1px solid var(--stone); border-radius: 3px; display: grid; place-items: center; color: var(--clay); flex: none; }
.detail__icon svg { width: 19px; height: 19px; }
.detail__k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--moss); margin-bottom: 0.3rem; }
.detail__v { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); font-weight: 600; line-height: 1.3; }
.detail__v a { color: inherit; border-bottom: 1px solid var(--stone); transition: border-color .25s, color .25s; }
.detail__v a:hover { color: var(--clay); border-bottom-color: var(--clay); }
.detail__sub { font-family: var(--font-body); font-size: 0.9rem; color: var(--moss); margin-top: 0.25rem; }
.form-card { background: var(--card); border: 1px solid var(--stone); border-radius: 3px; padding: clamp(1.5rem, 3vw, 2.4rem); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

/* Locations / map-style block */
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--stone); border-radius: 3px; overflow: hidden; }
.location { padding: clamp(1.5rem, 2.4vw, 2rem); border-right: 1px solid var(--stone); background: var(--card); }
.location:last-child { border-right: 0; }
.location__k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.8rem; }
.location h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.location p { color: var(--moss); font-size: 0.93rem; }
@media (max-width: 640px) { .locations { grid-template-columns: 1fr; } .location { border-right: 0; border-bottom: 1px solid var(--stone); } .location:last-child { border-bottom: 0; } }

/* =====================================================================
   CTA band
   ===================================================================== */
.cta-band { position: relative; overflow: hidden; }
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.cta-band h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); max-width: 18ch; }
.cta-band p { color: var(--bone-soft); max-width: 50ch; margin-top: 0.9rem; }
.cta-band__actions { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }
@media (max-width: 760px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { flex-direction: row; flex-wrap: wrap; } }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--ink); color: var(--bone-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.site-footer a { color: var(--bone-soft); transition: color .25s var(--ease); }
.site-footer a:hover { color: var(--brass-2); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(246,242,234,0.12);
}
.footer-brand .brand__name { color: var(--bone); }
.footer-brand .brand__mark { background: transparent; border: 1px solid rgba(201,168,104,0.4); }
.footer-brand p { margin-top: 1.1rem; max-width: 34ch; font-size: 0.95rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col li { font-size: 0.95rem; }
.footer-contact li { display: grid; gap: 0.15rem; }
.footer-contact .k { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss-2); }
.footer-contact a, .footer-contact .v { color: var(--bone); font-family: var(--font-body); font-size: 0.98rem; }
.footer-group {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(246,242,234,0.12);
  border-radius: 3px;
  margin-top: 0.5rem;
}
.footer-group__k { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-2); }
.footer-group a { color: var(--bone); font-family: var(--font-display); font-size: 1.05rem; }
.footer-group p { font-size: 0.85rem; margin-top: 0.25rem; }
.footer-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 2rem;
  font-size: 0.82rem;
}
.footer-base__legal { max-width: 60ch; color: rgba(216,211,199,0.55); font-size: 0.78rem; line-height: 1.55; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Page hero (inner pages)
   ===================================================================== */
.page-hero { padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--stone); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--moss); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--clay); }
.breadcrumb span[aria-current] { color: var(--ink); }
.page-hero h1 { font-size: var(--step-h1); max-width: 18ch; }
.page-hero__lead { max-width: 60ch; color: var(--moss); margin-top: 1.25rem; font-size: var(--step-lead); }

/* Two-column layout (about/story) */
.split { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.split--gap-lg { gap: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.stat { padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.6rem); border-right: 1px solid var(--stone); }
.stat:last-child { border-right: 0; }
.stat__k { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: var(--ink); line-height: 1; }
.stat__v { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); margin-top: 0.6rem; }
@media (max-width: 640px) { .stat-grid { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--stone); } .stat:last-child { border-bottom: 0; } }

/* Quote / perspective block */
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink);
  max-width: 24ch;
}
.on-dark .quote { color: var(--bone); }
.quote__cite { display: block; margin-top: 1.25rem; font-family: var(--font-mono); font-style: normal; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); }

/* =====================================================================
   Reveal animation
   ===================================================================== */
/* Hide only when JS is available; without JS, content shows normally. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal--delay-1 { transition-delay: .08s; }
.reveal--delay-2 { transition-delay: .16s; }
.reveal--delay-3 { transition-delay: .24s; }
.reveal--delay-4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .whatsapp:hover, .sector:hover { transform: none; }
}

/* =====================================================================
   Utilities & responsive grid collapse
   ===================================================================== */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  border: 1px solid var(--stone);
  border-radius: 2px;
  padding: 0.4rem 0.7rem;
}

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .grid--3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .btn-row .btn, .btn-row .whatsapp { flex: 1 1 auto; }
}
