/* =========================================================
   Heyv Global — Warm Editorial Corporate
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colors */
  --c-espresso: #17120E;
  --c-espresso-2: #221A14;
  --c-espresso-3: #2E241B;
  --c-ivory: #FAF6EF;
  --c-sand: #F1E9DC;
  --c-sand-2: #E6DBC9;
  --c-amber: #F59E0B;
  --c-amber-hover: #FBB13C;
  --c-amber-text: #B45309;   /* amber for text on light backgrounds */
  --c-amber-deep: #92400E;
  --c-brown: #7A4A0A;
  --c-ink: #1F1A16;
  --c-muted: #5E554C;
  --c-on-dark: #F6EFE4;
  --c-on-dark-muted: #C9BBAA;
  --c-rule: rgba(31, 26, 22, 0.16);
  --c-rule-dark: rgba(246, 239, 228, 0.14);
  --c-amber-mid: #C07A1A;    /* decorative only */
  --c-error: #B42318;
  --c-success: #2F6B2F;

  /* Typography */
  --f-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --f-body: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-display-xl: clamp(3.4rem, 2rem + 6.4vw, 7.75rem);
  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.8125rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --container: 1240px;

  /* Shape & depth */
  --radius-sm: 4px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(23, 18, 14, 0.08);
  --shadow: 0 18px 40px -18px rgba(23, 18, 14, 0.35);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.55);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 280ms;

  /* Header */
  --header-h: 76px;
  --header-h-scrolled: 64px;

  /* Chevron (logo motif) */
  --chevron: polygon(0 0, 58% 0, 100% 50%, 58% 100%, 0 100%, 38% 50%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.05; font-weight: 400; }
section[id] { scroll-margin-top: calc(var(--header-h-scrolled) + 8px); }
main:focus { outline: none; }

svg[viewBox="0 0 24 24"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  /* deep amber on light surfaces (>=3:1), bright amber on dark ones */
  outline: 3px solid var(--c-amber-deep);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-header :focus-visible,
.hero :focus-visible,
.process :focus-visible,
.contact-info :focus-visible,
.site-footer :focus-visible { outline-color: var(--c-amber); }
.skip-link:focus-visible { outline-color: var(--c-espresso); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-amber);
  color: var(--c-espresso);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.95;
  color: var(--c-ink);
  text-wrap: balance;
}
.display-light { color: var(--c-on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--space-4);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-amber-text);
}
.eyebrow-light { color: var(--c-amber); }
/* #B45309 on sand is ~4.2:1 — use the deeper amber on sand sections */
.services .eyebrow,
.testimonials .eyebrow { color: var(--c-amber-deep); }

.chev-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  clip-path: var(--chevron);
  flex: none;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-ink);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-lg { min-height: 56px; padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-arrow { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-primary { background: var(--c-amber); color: var(--c-espresso); }
.btn-primary:hover { background: var(--c-amber-hover); }

.btn-ghost {
  border-color: rgba(246, 239, 228, 0.35);
  color: var(--c-on-dark);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--c-amber); color: var(--c-amber); }

.btn-dark { background: var(--c-espresso); color: var(--c-on-dark); }
.btn-dark:hover { background: var(--c-brown); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--c-amber-text);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  transition: color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { color: var(--c-amber-deep); gap: 0.8rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-espresso);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(23, 18, 14, 0.94);
  border-bottom-color: var(--c-rule-dark);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { backdrop-filter: blur(10px); }
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: var(--header-h-scrolled); }

.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 130px; height: auto; } /* ~42px tall */

.header-cta { display: none; }

/* Mobile menu */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid var(--c-rule-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-bar {
  width: 22px;
  height: 2px;
  background: var(--c-on-dark);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: contents; }
.nav-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--gutter) var(--space-6);
  background: var(--c-espresso);
  border-top: 1px solid var(--c-rule-dark);
  box-shadow: var(--shadow-lg);
}
.nav-list.is-open {
  display: flex;
  max-height: calc(100vh - var(--header-h-scrolled));
  max-height: calc(100dvh - var(--header-h-scrolled));
  overflow-y: auto;
  overscroll-behavior: contain;
}
html.menu-open { overflow: hidden; }
.nav-list a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--f-display);
  font-size: 1.75rem;
  letter-spacing: 0.03em;
  color: var(--c-on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--c-rule-dark);
}
.nav-list a:not(.btn):hover { color: var(--c-amber); }
.nav-cta-mobile { margin-top: var(--space-5); }
.nav-cta-mobile .btn { width: 100%; }

/* No-JS fallback: show nav inline */
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .header-inner { flex-wrap: wrap; padding-block: var(--space-3); }
html:not(.js) .nav-list {
  position: static;
  display: flex;
  flex-flow: row wrap;
  gap: 0 1.25rem;
  padding: 0;
  border: 0;
  box-shadow: none;
}
html:not(.js) .nav-list a:not(.btn) { font-size: 1.25rem; border-bottom: 0; min-height: 44px; }
html:not(.js) .nav-cta-mobile { display: none; }

/* Desktop nav: 1180px so logo + 6 links + CTA never collide */
@media (min-width: 1180px) {
  .menu-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .primary-nav { display: block; margin-left: auto; }
  .nav-list,
  .nav-list.is-open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav-list a:not(.btn) {
    position: relative;
    min-height: 44px;
    padding: 0 0.85rem;
    font-family: var(--f-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--c-on-dark-muted);
    border: 0;
  }
  .nav-list a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 8px;
    height: 2px;
    background: var(--c-amber);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur) var(--ease);
  }
  .nav-list a:not(.btn):hover,
  .nav-list a.is-current { color: var(--c-on-dark); }
  .nav-list a:not(.btn):hover::after,
  .nav-list a.is-current::after { transform: scaleX(1); }
  .nav-cta-mobile { display: none; }
  .brand img { width: 145px; } /* ~47px tall */
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--c-on-dark);
  background:
    radial-gradient(60rem 40rem at 85% 10%, rgba(245, 158, 11, 0.12), transparent 60%),
    linear-gradient(180deg, var(--c-espresso) 0%, var(--c-espresso-2) 100%);
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(4rem, 2rem + 6vw, 7.5rem);
}
.hero-chevron {
  position: absolute;
  right: -18%;
  top: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1 / 1.05;
  transform: translateY(-50%);
  clip-path: var(--chevron);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09), rgba(122, 74, 10, 0.04));
  pointer-events: none;
}
.hero::after {
  /* fine editorial rule grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(246, 239, 228, 0.04) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
  align-items: center;
}
.hero-title {
  font-family: var(--f-display);
  font-size: var(--fs-display-xl);
  line-height: 0.88;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--c-on-dark);
  margin-bottom: var(--space-5);
}
.hero-title .accent {
  display: block;
  color: var(--c-amber);
}
.hero-sub {
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--c-on-dark-muted);
  margin-bottom: var(--space-6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.trust-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-small);
  letter-spacing: 0.03em;
  color: var(--c-on-dark-muted);
}
.trust-line svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--c-amber); }

.hero-stats {
  display: grid;
  gap: var(--space-4);
}
.stat {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 150px;
  clip-path: var(--chevron);
  background: currentColor;
  opacity: 0.1;
}
.stat-amber { background: var(--c-amber); color: var(--c-espresso); }
.stat-brown { background: var(--c-brown); color: #FFF8EE; }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(4.5rem, 3rem + 5vw, 7.5rem);
  line-height: 0.85;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: var(--space-3);
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.stat-note { font-size: 0.95rem; opacity: 0.92; }

@media (min-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat-brown { transform: translateY(2rem); }
}

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .hero-stats {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
  }
  .stat-amber { margin-right: 3.5rem; }
  .stat-brown { margin-left: 3.5rem; transform: translateY(-1rem); }
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  overflow: hidden;
  background: var(--c-amber);
  color: var(--c-espresso);
  border-block: 1px solid rgba(23, 18, 14, 0.2);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 1.05rem 1rem 0.95rem;
  padding-right: 2rem;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-list li::after {
  content: "";
  width: 14px;
  height: 16px;
  background: var(--c-brown);
  clip-path: var(--chevron);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   Sections — shared
   ========================================================= */
.section { padding-block: var(--section-y); }
.section-head {
  max-width: 54rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-intro {
  margin-top: var(--space-5);
  max-width: 36rem;
  font-size: var(--fs-lead);
  color: var(--c-muted);
}
.section-head-split { max-width: none; display: grid; gap: var(--space-5); align-items: end; }
.section-head-split .section-intro { margin-top: 0; }
@media (min-width: 900px) {
  .section-head-split { grid-template-columns: 1.4fr 1fr; gap: var(--space-8); }
}

/* =========================================================
   About
   ========================================================= */
.about { background: var(--c-ivory); }
.about .section-head { border-bottom: 1px solid var(--c-rule); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); max-width: none; }
.about .display { max-width: 18ch; }
.about-grid {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
}
.pull-quote {
  position: relative;
  padding-left: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-left: 4px solid var(--c-amber);
}
.pull-quote p {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--c-brown);
}
.about-text { display: grid; gap: var(--space-5); align-content: start; }
.about-text > p:not(.lead) { color: var(--c-muted); }
.chev-list { display: grid; gap: var(--space-3); }
.chev-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-weight: 600;
}
.chev-list li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--c-amber-text);
  clip-path: var(--chevron);
  transform: translateY(1px);
}
.about-text .text-link { justify-self: start; }

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

/* =========================================================
   Services — editorial numbered list
   ========================================================= */
.services { background: var(--c-sand); }
.service-list { border-top: 2px solid var(--c-ink); }
.service-row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num title arrow"
    "num desc  desc";
  column-gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  row-gap: var(--space-2);
  padding: clamp(1.4rem, 1rem + 1.2vw, 2rem) clamp(0.5rem, 0.25rem + 1vw, 1.25rem);
  border-bottom: 1px solid var(--c-rule);
  overflow: hidden;
}
.service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c-amber);
  transform: translateX(-101%);
  transition: transform 380ms var(--ease);
}
.service-row:hover::before { transform: translateX(0); }
.service-num {
  grid-area: num;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  line-height: 1;
  color: var(--c-amber-text);
  transition: color var(--dur) var(--ease);
}
.service-title {
  grid-area: title;
  align-self: center;
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.service-desc {
  grid-area: desc;
  max-width: 40rem;
  color: var(--c-muted);
  transition: color var(--dur) var(--ease);
}
.service-arrow {
  grid-area: arrow;
  align-self: center;
  width: 30px;
  height: 30px;
  color: var(--c-ink);
  transition: transform var(--dur) var(--ease);
}
.service-row:hover .service-num,
.service-row:hover .service-desc { color: var(--c-espresso); }
.service-row:hover .service-arrow { transform: rotate(45deg); }

@media (min-width: 900px) {
  .service-row {
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.15fr) 3rem;
    grid-template-areas: "num title desc arrow";
    align-items: center;
  }
  .service-desc { align-self: center; }
  .service-arrow { justify-self: end; }
}

/* =========================================================
   Why us
   ========================================================= */
.why { background: var(--c-ivory); }
.why-grid {
  display: grid;
  gap: var(--space-6);
}
.why-item {
  position: relative;
  padding-top: var(--space-5);
  border-top: 2px solid var(--c-ink);
}
.why-num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(6rem, 4rem + 6vw, 9rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-amber-text);
  margin-bottom: var(--space-4);
}
.why-item h3 {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
}
.why-item p { color: var(--c-muted); max-width: 26rem; }
@media (min-width: 820px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 1rem + 3vw, 4rem); }
}

/* =========================================================
   Process — vertical timeline (dark)
   ========================================================= */
.process {
  position: relative;
  overflow: hidden;
  overflow: clip; /* clip, not hidden, so the sticky heading still sticks */
  background: var(--c-espresso-2);
  color: var(--c-on-dark);
}
.process::before {
  content: "";
  position: absolute;
  left: -12%;
  bottom: -20%;
  width: 520px;
  height: 560px;
  clip-path: var(--chevron);
  background: rgba(122, 74, 10, 0.18);
  pointer-events: none;
}
.process-grid {
  position: relative;
  display: grid;
  gap: clamp(3rem, 2rem + 4vw, 5rem);
}
.process-intro {
  margin: var(--space-5) 0 var(--space-6);
  max-width: 30rem;
  font-size: var(--fs-lead);
  color: var(--c-on-dark-muted);
}
.timeline {
  position: relative;
  display: grid;
  gap: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
  padding-left: 3.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--c-amber), var(--c-brown) 70%, transparent);
}
.timeline-step { position: relative; }
.timeline-node {
  position: absolute;
  left: -3.5rem;
  top: 2px;
  width: 28px;
  height: 30px;
  background: var(--c-amber);
  clip-path: var(--chevron);
}
.timeline-step:nth-child(even) .timeline-node { background: var(--c-amber-mid); }
.timeline-step-num {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: var(--space-2);
}
.timeline-step h3 {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1.5rem + 1.3vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--c-on-dark);
  margin-bottom: var(--space-2);
}
.timeline-step p:last-child { color: var(--c-on-dark-muted); max-width: 32rem; }

@media (min-width: 960px) {
  .process-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .process-head { position: sticky; top: calc(var(--header-h-scrolled) + 2rem); }
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials { background: var(--c-sand); }
.slider {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.quote-mark {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  fill: var(--c-amber);
}
.slide blockquote p {
  font-size: clamp(1.4rem, 1.05rem + 1.5vw, 2.2rem);
  line-height: 1.35;
  font-weight: 500;
  color: var(--c-ink);
  text-wrap: balance;
}
.slide figcaption {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  text-align: left;
}
.slide figcaption strong { display: block; font-size: 1.05rem; }
.slide .role { display: block; font-size: var(--fs-small); color: var(--c-muted); letter-spacing: 0.04em; }
.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--c-amber);
  color: var(--c-espresso);
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.avatar-brown { background: var(--c-brown); color: #FFF8EE; }

.js .slide.is-active { animation: slideIn 420ms var(--ease); }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.slider-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-ink);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.slider-btn svg { width: 22px; height: 22px; }
.slider-btn:hover { background: var(--c-ink); color: var(--c-ivory); }
.slider-dots { display: flex; gap: 0.25rem; }
.dot {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 4px;
  transform: translate(-50%, -50%);
  background: rgba(31, 26, 22, 0.25);
  border-radius: 2px;
  transition: background-color var(--dur) var(--ease), width var(--dur) var(--ease);
}
.dot[aria-current="true"]::before { width: 34px; background: var(--c-amber-text); }

/* No-JS: show all testimonials stacked */
html:not(.js) .slide[hidden] { display: block; margin-top: var(--space-7); }
html:not(.js) .slider-controls { display: none; }

/* =========================================================
   Contact
   ========================================================= */
.contact { background: var(--c-ivory); }
.contact-grid {
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-info {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 1.25rem + 3vw, 4rem);
  background: var(--c-espresso);
  color: var(--c-on-dark);
}
.contact-info::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -60px;
  width: 260px;
  height: 280px;
  clip-path: var(--chevron);
  background: rgba(245, 158, 11, 0.08);
  pointer-events: none;
}
.contact-lead {
  margin: var(--space-5) 0 var(--space-6);
  color: var(--c-on-dark-muted);
  max-width: 28rem;
  font-size: var(--fs-lead);
}
.contact-details { position: relative; z-index: 1; display: grid; gap: var(--space-5); }
.contact-details li { display: flex; gap: var(--space-4); align-items: flex-start; }
.ci-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-rule-dark);
  border-radius: var(--radius-sm);
  color: var(--c-amber);
}
.ci-icon svg { width: 20px; height: 20px; }
.ci-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-on-dark-muted);
}
.contact-details a {
  display: inline-block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--c-on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(245, 158, 11, 0.6);
  text-underline-offset: 4px;
  word-break: break-word;
}
.contact-details a:hover { color: var(--c-amber); }

.contact-form {
  display: grid;
  gap: var(--space-5);
  align-content: start;
  padding: clamp(2rem, 1.25rem + 3vw, 4rem);
  background: #FFFDF9;
}
.form-title {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.contact-panel__text { color: var(--c-muted); }
.contact-points { list-style: none; display: grid; gap: var(--space-4); padding: 0; margin: 0; }
.contact-points li { display: grid; gap: 0.15rem; padding: 0 0 var(--space-4) 1.5rem; border-bottom: 1px solid var(--c-sand); position: relative; }
.contact-points li::before {
  content: ""; position: absolute; left: 0; top: 0.4em; width: 10px; height: 12px;
  background: var(--c-amber-text);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}
.contact-points strong { font-weight: 700; color: var(--c-ink); }
.contact-points span { color: var(--c-muted); }
.contact-panel .btn { overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--c-espresso);
  color: var(--c-on-dark-muted);
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5rem);
}
.footer-top {
  display: grid;
  gap: var(--space-6);
  padding-bottom: var(--space-7);
}
.footer-brand img { width: 155px; height: auto; margin-bottom: var(--space-4); }
.footer-brand p { max-width: 22rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--c-on-dark);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--c-amber); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid var(--c-rule-dark);
  font-size: var(--fs-small);
}
.back-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--c-on-dark);
  text-decoration: none;
  font-weight: 600;
}
.back-top svg { width: 16px; height: 16px; color: var(--c-amber); }
.back-top:hover { color: var(--c-amber); }

@media (min-width: 820px) {
  .footer-top { grid-template-columns: 1fr auto; align-items: center; }
}

/* =========================================================
   Scroll reveal (only when JS is active)
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .slide.is-active { animation: none; }
}

/* ===== Legal pages ===== */

/* Footer: legal links + cookie note (all pages) */
.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
}
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-on-dark);
  font-weight: 600;
  text-decoration: none;
}
.footer-legal a:hover,
.footer-legal a[aria-current="page"] { color: var(--c-amber); }
.footer-cookie-note {
  flex-basis: 100%;
  color: var(--c-on-dark-muted);
}

/* Home contact panel: privacy acknowledgement */
.contact-privacy-note { font-size: var(--fs-small); }
.contact-privacy-note a {
  color: var(--c-amber-deep);
  font-weight: 600;
  text-underline-offset: 3px;
}
.contact-privacy-note a:hover { color: var(--c-brown); }

/* Legal hero */
.legal-hero {
  position: relative;
  overflow: hidden;
  color: var(--c-on-dark);
  background:
    radial-gradient(50rem 30rem at 90% 0%, rgba(245, 158, 11, 0.12), transparent 60%),
    linear-gradient(180deg, var(--c-espresso) 0%, var(--c-espresso-2) 100%);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.legal-hero::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 280px;
  height: 300px;
  clip-path: var(--chevron);
  background: rgba(245, 158, 11, 0.07);
  pointer-events: none;
}
.legal-hero-inner { position: relative; z-index: 1; max-width: 54rem; }
.legal-hero :focus-visible { outline-color: var(--c-amber); }
.legal-title {
  font-family: var(--f-display);
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--c-on-dark);
}
.legal-updated {
  margin-top: var(--space-4);
  color: var(--c-on-dark-muted);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
}
.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.legal-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--c-rule-dark);
  border-radius: var(--radius-sm);
  color: var(--c-on-dark);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.legal-switch a:hover { border-color: var(--c-amber); color: var(--c-amber); }
.legal-switch a[aria-current="page"] {
  background: var(--c-amber);
  border-color: var(--c-amber);
  color: var(--c-espresso);
}

/* Layout */
.legal-body {
  background: var(--c-ivory);
  padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) var(--section-y);
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 2vw, 4rem);
  align-items: start;
}

.legal-layout > * { min-width: 0; }

/* Table of contents */
.legal-toc {
  padding: var(--space-5);
  background: #FFFDF9;
  border: 1px solid var(--c-rule);
  border-left: 4px solid var(--c-amber);
  border-radius: var(--radius);
}
.legal-toc-title {
  margin-bottom: var(--space-3);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-amber-deep);
}
.legal-toc ol { display: grid; gap: 0.1rem; }
.legal-toc a {
  display: flex;
  gap: 0.4rem;
  padding: 0.35rem 0;
  color: var(--c-ink);
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
}
.legal-toc a:hover { color: var(--c-amber-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal-toc-num {
  flex: none;
  min-width: 1.6em;
  color: var(--c-muted);
  font-variant-numeric: tabular-nums;
}

@media (min-width: 960px) {
  .legal-layout { grid-template-columns: 17rem minmax(0, 1fr); }
  .legal-toc {
    position: sticky;
    top: calc(var(--header-h-scrolled) + var(--space-5));
    max-height: calc(100vh - var(--header-h-scrolled) - 2 * var(--space-5));
    overflow-y: auto;
  }
}

/* Content */
.legal-content {
  max-width: 70ch;
  color: var(--c-ink);
}
.legal-content > * + * { margin-top: var(--space-5); }
.legal-intro {
  font-size: var(--fs-lead);
  line-height: 1.6;
  font-weight: 500;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--c-rule);
}
.legal-section {
  padding-top: var(--space-6);
  scroll-margin-top: calc(var(--header-h-scrolled) + 16px);
}
.legal-section + .legal-section { border-top: 1px solid var(--c-rule); margin-top: var(--space-6); }
.legal-section > * + * { margin-top: var(--space-4); }
.legal-section h2 {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
}
.legal-num { color: var(--c-amber-text); }
.legal-section h3 {
  margin-top: var(--space-6);
  font-family: var(--f-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.legal-section p,
.legal-section li { color: #3A322B; }
.legal-section strong { color: var(--c-ink); }
.legal-content a:not(.btn) {
  color: var(--c-amber-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal-content a:not(.btn):hover { color: var(--c-brown); }
.legal-section ul {
  display: grid;
  gap: var(--space-2);
  padding-left: 1.4rem;
  list-style: none;
}
.legal-section ul li { position: relative; }
.legal-section ul li::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 0.55em;
  width: 9px;
  height: 11px;
  background: var(--c-amber-text);
  clip-path: var(--chevron);
}

.legal-ph {
  padding: 0 0.2em;
  background: rgba(245, 158, 11, 0.18);
  border-radius: 2px;
  font-weight: 600;
}

.legal-notice {
  display: grid;
  margin-top: var(--space-5);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
  background: #FFFDF9;
  overflow: hidden;
}
.legal-notice > div {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem var(--space-5);
}
.legal-notice > div + div { border-top: 1px solid var(--c-sand); }
.legal-notice dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.legal-notice dd { margin: 0; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .legal-notice > div { grid-template-columns: 14rem 1fr; gap: var(--space-4); align-items: baseline; }
}

.legal-callout {
  padding: var(--space-5);
  background: var(--c-sand);
  border-left: 4px solid var(--c-amber);
  border-radius: var(--radius-sm);
}

.legal-contact {
  padding: var(--space-5);
  background: #FFFDF9;
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-rule);
  border-radius: var(--radius);
  background: #FFFDF9;
}
.legal-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.975rem;
  line-height: 1.5;
}
.legal-table caption {
  padding: 0.75rem var(--space-4);
  text-align: left;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-rule);
}
.legal-table th,
.legal-table td {
  padding: 0.75rem var(--space-4);
  text-align: left;
  vertical-align: top;
  color: #3A322B;
}
.legal-table th {
  background: var(--c-sand);
  color: var(--c-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.legal-table tbody tr + tr td { border-top: 1px solid var(--c-sand); }

/* ===== Cookie banner ===== */
.legal-content code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius-sm);
  background: var(--c-sand);
  font-size: 0.92em;
  overflow-wrap: anywhere;
}

/* Footer "Cookie settings" — a button styled like the footer legal links */
.footer-cookie-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-on-dark);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.footer-cookie-btn:hover { color: var(--c-amber); }

.cookie-banner {
  position: fixed;
  z-index: 150; /* above the sticky header (100), below the skip link (200) */
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5) var(--gutter) calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
  background: var(--c-espresso);
  color: var(--c-on-dark);
  border-top: 3px solid var(--c-amber);
  box-shadow: var(--shadow-lg);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-entering {
  animation: cookie-in var(--dur) var(--ease) both;
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.cookie-banner__title {
  font-family: var(--f-display);
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--c-on-dark);
}
.cookie-banner__text { color: var(--c-on-dark-muted); }
.cookie-banner__text a {
  display: inline-block;
  color: var(--c-amber);
  font-weight: 600;
  text-underline-offset: 3px;
}
.cookie-banner__text a:hover { color: var(--c-amber-hover); }
.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.cookie-banner__btn { min-height: 48px; padding-inline: 1rem; font-size: 0.875rem; }
.cookie-banner__btn--secondary {
  border-color: rgba(246, 239, 228, 0.55);
  background: transparent;
  color: var(--c-on-dark);
}
.cookie-banner__btn--secondary:hover { border-color: var(--c-amber); color: var(--c-amber); }
.cookie-banner :focus-visible { outline-color: var(--c-amber); }

@media (min-width: 640px) {
  .cookie-banner {
    left: auto;
    right: var(--space-5);
    bottom: calc(var(--space-5) + env(safe-area-inset-bottom, 0px));
    width: min(26rem, calc(100vw - 2 * var(--space-5)));
    padding: var(--space-5);
    border-top: 0;
    border-left: 4px solid var(--c-amber);
    border-radius: var(--radius);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner.is-entering { animation: none; }
}
