/* ==========================================================================
   YAV & Company — design tokens
   A ledger-index motif: hairline rules, tabular figures, deep ink + brass.
   ========================================================================== */
:root {
  --ink: #10233F;
  --ink-soft: #1B3358;
  --paper: #F6F4EF;
  --paper-dim: #ECE8DD;
  --rule: #D8D2C4;
  --rule-on-ink: rgba(246, 244, 239, 0.18);
  --brass: #A9812F;
  --brass-light: #C9A15A;
  --verdigris: #3F6657;
  --charcoal: #262420;
  --charcoal-soft: #6b6759;
  --paper-text-on-ink: #F6F4EF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --max-width: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.tabular { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  display: inline-flex;
  align-items: center;
  height: 40px;
  width: 68px;
  flex-shrink: 0;
}
.brand__mark-img { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand__mark--light { }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); }
.brand__tagline { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal-soft); }

.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; }
.site-nav a { color: var(--charcoal); padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--brass); }
.site-nav__cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 18px !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.site-nav__cta:hover { background: var(--ink-soft); }

.nav-toggle__btn { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.nav-toggle__btn span { width: 22px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 860px) {
  .nav-toggle__btn { display: flex; }
  .site-nav {
    position: absolute; top: 84px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: flex-start; gap: 0;
    max-height: 0; overflow: hidden;
  }
  .site-nav a { width: 100%; padding: 14px 28px; border-bottom: 1px solid var(--rule); }
  .site-nav__cta { margin: 14px 28px; text-align: center; }
  .nav-toggle:checked ~ .site-nav { max-height: 480px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 13px 24px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn--primary { background: var(--brass); color: var(--ink); }
.btn--primary:hover { background: var(--brass-light); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--rule-on-ink); color: var(--paper); }
.btn--ghost:hover { border-color: var(--brass-light); color: var(--brass-light); }
.btn--ghost-dark { background: transparent; border-color: var(--rule); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--brass); color: var(--brass); }

/* ==========================================================================
   Hero (ledger statement)
   ========================================================================== */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding: 84px 0 56px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent 43px, var(--rule-on-ink) 44px
  );
  opacity: 0.5;
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; }
.hero__eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-light); margin-bottom: 18px; display: block;
}
.hero h1 {
  color: var(--paper); font-size: clamp(2.4rem, 4.4vw, 3.6rem); font-weight: 500;
  line-height: 1.08; max-width: 14ch;
}
.hero h1 em { font-style: italic; color: var(--brass-light); font-weight: 400; }
.hero p.lede { color: rgba(246,244,239,0.78); font-size: 17px; max-width: 46ch; margin: 20px 0 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__ledger {
  border-top: 1px solid var(--rule-on-ink);
  padding-top: 22px;
}
.hero__ledger-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-bottom: 1px solid var(--rule-on-ink);
  font-size: 14px;
}
.hero__ledger-row:last-child { border-bottom: none; }
.hero__ledger-label { color: rgba(246,244,239,0.65); }
.hero__ledger-value { font-family: var(--font-mono); font-size: 16px; color: var(--brass-light); }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
section { padding: 76px 0; }
.section--dim { background: var(--paper-dim); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }

.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 42px; flex-wrap: wrap; }
.section__eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass); display: block; margin-bottom: 10px;
}
.section__head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; margin-bottom: 0; max-width: 22ch; }
.section__intro { color: var(--charcoal-soft); max-width: 46ch; font-size: 15.5px; }

/* ==========================================================================
   Service index (signature element)
   ========================================================================== */
.ledger-index { border-top: 1px solid var(--rule); }
.ledger-row {
  display: grid;
  grid-template-columns: 64px 1fr auto 28px;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.15s ease;
}
a.ledger-row:hover { background: rgba(169, 129, 47, 0.06); }
.ledger-row__code {
  font-family: var(--font-mono); font-size: 13px; color: var(--brass);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 6px 4px; text-align: center; letter-spacing: 0.03em;
}
.ledger-row__body h3 { font-size: 18px; margin-bottom: 4px; font-weight: 600; }
.ledger-row__body p { margin: 0; color: var(--charcoal-soft); font-size: 14.5px; max-width: 60ch; }
.ledger-row__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--charcoal-soft); white-space: nowrap; }
.ledger-row__arrow { color: var(--brass); font-size: 18px; justify-self: end; transition: transform 0.15s ease; }
a.ledger-row:hover .ledger-row__arrow { transform: translateX(4px); }

@media (max-width: 700px) {
  .ledger-row { grid-template-columns: 44px 1fr 20px; }
  .ledger-row__meta { display: none; }
}

/* ==========================================================================
   Cards (team / testimonials / offices)
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
}

.team-card__photo {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: var(--paper-dim); border-radius: var(--radius);
  margin-bottom: 16px; display: block;
}
.team-card__photo--placeholder {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 32px; color: var(--brass);
  border: 1px solid var(--rule);
}
.team-card h3 { font-size: 17px; margin-bottom: 2px; }
.team-card .role { color: var(--brass); font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.team-card .designation { color: var(--charcoal-soft); font-size: 13.5px; }

.testimonial-card { position: relative; }
.testimonial-card .mark { font-family: var(--font-display); font-style: italic; font-size: 42px; color: var(--brass-light); line-height: 1; display: block; margin-bottom: 6px; }
.testimonial-card blockquote { margin: 0 0 18px; font-size: 15.5px; color: var(--charcoal); }
.testimonial-card cite { font-style: normal; display: block; font-weight: 600; font-size: 14px; }
.testimonial-card .client-role { color: var(--charcoal-soft); font-size: 13px; }

.office-card {
  border-left: 2px solid var(--brass);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.office-card h3 { font-size: 15.5px; margin-bottom: 6px; }
.office-card address { font-style: normal; color: var(--charcoal-soft); font-size: 14px; line-height: 1.55; }
.office-card > .btn { margin-top: auto; align-self: flex-start; }
.office-card__hq {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--verdigris);
  font-weight: 500;
}
.office-card__map {
  margin: 14px 0 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  width: 100%;
}
.office-card__map iframe { width: 100%; height: 100%; border: 0; display: block; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats { border-top: 1px solid var(--rule-on-ink); border-bottom: 1px solid var(--rule-on-ink); display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { padding: 26px 20px; text-align: center; border-left: 1px solid var(--rule-on-ink); }
.stats__item:first-child { border-left: none; }
.stats__value { font-family: var(--font-mono); font-size: 30px; color: var(--brass-light); display: block; }
.stats__label { font-size: 12.5px; color: rgba(246,244,239,0.65); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats__item:nth-child(3) { border-left: none; } }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
  color: var(--charcoal);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); }
.field .errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: #a13e3e; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

.flash { padding: 14px 18px; border-radius: var(--radius); margin: 24px 0 0; font-size: 14.5px; }
.flash--success { background: rgba(63, 102, 87, 0.12); color: var(--verdigris); border: 1px solid rgba(63, 102, 87, 0.3); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin: 0 auto 14px; }
.cta-band p { max-width: 50ch; margin: 0 auto 30px; color: rgba(246,244,239,0.75); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(246,244,239,0.8); padding: 60px 0 0; }
.site-footer h4 { color: var(--paper); font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer p { margin: 0 0 8px; font-size: 14px; }
.site-footer a:hover { color: var(--brass-light); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer__lede { font-size: 14px; max-width: 42ch; margin: 14px 0 18px; }
.site-footer__social { display: flex; gap: 16px; font-size: 13.5px; }
.site-footer__bottom {
  border-top: 1px solid var(--rule-on-ink); padding: 20px 0;
  display: flex; justify-content: space-between; font-size: 12.5px; font-family: var(--font-mono);
  color: rgba(246,244,239,0.55);
}
@media (max-width: 700px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   WhatsApp FAB
   ========================================================================== */
.whatsapp-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--verdigris); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(16, 35, 63, 0.25);
  transition: transform 0.15s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }

/* ==========================================================================
   Misc page bits
   ========================================================================== */
.breadcrumb { font-family: var(--font-mono); font-size: 12.5px; color: var(--charcoal-soft); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brass); }
.prose p { margin: 0 0 16px; color: var(--charcoal); }
.prose { max-width: 68ch; }

.page-header { background: var(--ink); color: var(--paper); padding: 56px 0; }
.page-header h1 { color: var(--paper); font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 10px; }
.page-header p { color: rgba(246,244,239,0.72); max-width: 56ch; margin: 0; }

.divider { height: 1px; background: var(--rule); border: none; margin: 0; }
