/* ==========================================================================
   KAYASTHA CRAFTS  -  stylesheet
   Warm heritage minimalism. Gold accent, no red, no gradients.
   Sections:  fonts / tokens / base / type / layout / header / buttons /
              hero / strip / prose / cards / featured / category-nav /
              values / team / contact / policies / footer / fab / reveal /
              a11y / responsive
   ========================================================================== */

/* ----------------------------- fonts ----------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Yatra One";
  src: url("../fonts/yatra-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------- tokens ---------------------------------- */
:root {
  --ink: #1A1410;
  --ink-soft: #5C4F3D;
  --gold: #C8A24A;
  --gold-soft: #DCC182;
  --gold-deep: #A9842F;        /* darker gold for text-on-cream contrast (AA) */
  --wood: #3E2A1E;
  --wood-deep: #2A1B12;
  --cream: #F5EDE0;
  --cream-bright: #FAF7F2;
  --beige: #EDE3D5;
  --border: #D9CDB8;
  --border-soft: #E4DAC8;
  --wa: #25D366;
  --white: #FFFFFF;

  --shadow-card: 0 14px 40px -22px rgba(62, 42, 30, .35);
  --shadow-soft: 0 10px 30px -20px rgba(62, 42, 30, .30);

  --xs: 4px;  --sm: 8px;  --md: 16px;  --lg: 24px;
  --xl: 32px; --2xl: 48px; --3xl: 64px; --4xl: 96px;

  --container: min(1180px, 92vw);
  --narrow: min(780px, 92vw);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --nepali: "Yatra One", "Fraunces", serif;

  --radius: 8px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; }

::selection { background: var(--gold-soft); color: var(--ink); }

/* ----------------------------- type ------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 520;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-variation-settings: "opsz" 144, "wght" 520; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-variation-settings: "opsz" 96, "wght" 520; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-variation-settings: "opsz" 40, "wght" 540; letter-spacing: 0; }
h1 em, h2 em, h3 em { font-style: italic; font-variation-settings: "opsz" 144, "wght" 460; color: var(--gold-deep); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 var(--md);
  display: inline-block;
}
.eyebrow--light { color: var(--gold-soft); }

.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.3rem);
  line-height: 1.62;
  color: var(--ink-soft);
}

.nepali { font-family: var(--nepali); font-weight: 400; }

/* ----------------------------- layout ---------------------------------- */
.container { width: var(--container); margin-inline: auto; }
.narrow { width: var(--narrow); margin-inline: auto; }

.section { padding-block: clamp(56px, 9vw, 112px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--cream { background: var(--cream); }
.section--bright { background: var(--cream-bright); }
.section--beige { background: var(--beige); }

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); margin-top: var(--md); }

.divider-rule {
  width: 56px; height: 2px; background: var(--gold);
  border: 0; margin: var(--lg) 0 0;
}
.section-head--center .divider-rule { margin-inline: auto; }

/* ----------------------------- header ---------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid {
  background: rgba(245, 237, 224, .94);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom-color: var(--border);
}
.nav {
  width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--lg);
}
.nav__brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__logo { height: 42px; width: auto; transition: opacity .3s var(--ease); }
.nav__logo--cream { display: none; }
/* over-hero (transparent) state shows the cream logo for contrast */
.site-header:not(.is-solid) .nav--over .nav__logo--ink { display: none; }
.site-header:not(.is-solid) .nav--over .nav__logo--cream { display: block; }

.nav__links {
  display: flex; align-items: center; gap: clamp(18px, 2vw, 30px);
  list-style: none;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  padding: 6px 2px;
  position: relative;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--gold); transition: right .28s var(--ease);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a[aria-current="page"]::after { right: 0; }
.nav__links a[aria-current="page"] { color: var(--gold-deep); }

.site-header:not(.is-solid) .nav--over .nav__links a { color: var(--cream-bright); }
.site-header:not(.is-solid) .nav--over .nav__links a[aria-current="page"] { color: var(--gold-soft); }

.nav__cta { flex-shrink: 0; }
.nav__toggle { display: none; }

/* ----------------------------- buttons --------------------------------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans);
  font-weight: 600; font-size: 0.96rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  padding: 13px 26px; min-height: 46px;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 999px;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream-bright); border-color: var(--ink); }

.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: var(--cream-bright);
  border-color: rgba(250, 247, 242, .6);
}
.btn--ghost-light:hover { background: var(--cream-bright); color: var(--ink); border-color: var(--cream-bright); }

.btn--wa { --btn-bg: var(--wa); --btn-fg: #04310f; }
.btn--wa:hover { background: #1fc15c; border-color: #1fc15c; }

.btn--sm { padding: 10px 18px; min-height: 42px; font-size: 0.9rem; }
.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.textlink {
  color: var(--gold-deep); text-decoration: none; font-weight: 600;
  border-bottom: 1.5px solid var(--gold-soft); padding-bottom: 1px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.textlink:hover { color: var(--ink); border-color: var(--gold); }

/* ----------------------------- hero ------------------------------------ */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 860px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute; inset: -8% 0 -8% 0; z-index: -2;
  will-change: transform;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(26,20,16,.82) 0%, rgba(26,20,16,.42) 42%, rgba(26,20,16,.16) 78%, rgba(26,20,16,.30) 100%);
}
/* (single dark scrim is for legibility only, not a decorative gradient) */
.hero__inner {
  width: var(--container); margin-inline: auto;
  padding-block: clamp(40px, 8vw, 96px);
  color: var(--cream-bright);
  position: relative;
}
.hero__eyebrow { color: var(--gold-soft); }
.hero__eyebrow .nepali { font-size: 1.15em; margin-right: 6px; letter-spacing: 0; }
.hero h1 { color: var(--cream-bright); max-width: 16ch; text-wrap: balance; }
.hero__sub {
  max-width: 52ch; margin-top: var(--lg);
  color: rgba(250, 247, 242, .9);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}
.hero .btn-row { margin-top: clamp(28px, 4vw, 40px); }

/* heritage seal / stamp */
.seal {
  position: absolute; z-index: 2;
  top: clamp(96px, 14vh, 150px); right: clamp(16px, 5vw, 64px);
  width: clamp(112px, 13vw, 168px); height: clamp(112px, 13vw, 168px);
  color: var(--gold-soft);
  animation: seal-spin 44s linear infinite;
}
.seal svg { width: 100%; height: 100%; display: block; }
.seal__center {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; animation: seal-spin 44s linear infinite reverse;
}
.seal__center b {
  font-family: var(--serif); font-variation-settings: "opsz" 144, "wght" 540;
  font-size: clamp(1.4rem, 2vw, 1.9rem); color: var(--gold-soft); line-height: 1; display: block;
}
.seal__center span {
  font-family: var(--sans); font-size: 0.56rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(250,247,242,.82); margin-top: 3px; display: block;
}
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* ----------------------------- trust strip ----------------------------- */
.strip {
  background: var(--wood);
  color: var(--cream-bright);
}
.strip__grid {
  width: var(--container); margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding-block: clamp(28px, 4vw, 40px);
}
.strip__item { display: flex; gap: 14px; align-items: flex-start; }
.strip__item .icon { width: 26px; height: 26px; color: var(--gold-soft); flex-shrink: 0; margin-top: 2px; }
.strip__item b { font-family: var(--serif); font-weight: 540; font-size: 1.05rem; display: block; margin-bottom: 2px; }
.strip__item p { font-size: 0.9rem; color: rgba(250,247,242,.74); margin: 0; line-height: 1.45; }

/* ----------------------------- prose ----------------------------------- */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-soft); }
.prose p strong { color: var(--ink); font-weight: 600; }

/* split: text + image */
.split {
  display: grid; gap: clamp(32px, 6vw, 72px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split--reverse .split__media { order: -1; }
.split__media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split__media figcaption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(42,27,18,.84); color: var(--cream-bright);
  font-size: 0.8rem; padding: 7px 13px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}

/* ----------------------------- product cards --------------------------- */
.product-grid {
  display: grid; gap: var(--lg);
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold-soft);
}
.card__media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--cream-bright);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: var(--md) var(--md) calc(var(--md) + 2px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__name {
  font-family: var(--serif); font-variation-settings: "opsz" 36, "wght" 540;
  font-size: 1.12rem; line-height: 1.18; color: var(--ink);
}
.card__specs { display: flex; flex-direction: column; gap: 4px; margin-top: -2px; }
.spec-row { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.4; }
.spec-row .spec-label {
  display: inline-block; min-width: 0;
  font-weight: 600; color: var(--ink); letter-spacing: .01em;
}
.spec-row .spec-variant {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--gold-deep); font-weight: 700; margin-right: 6px;
}
.card__foot { margin-top: auto; padding-top: 4px; }
.card .btn--wa { width: 100%; }

/* ----------------------------- featured editorial ---------------------- */
.feature {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.feature__media {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--wood-deep);
  box-shadow: var(--shadow-card);
}
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature__body .eyebrow { color: var(--gold-deep); }
.feature__body h2 { margin-bottom: var(--md); }
.feature__meta {
  margin-top: var(--lg); display: inline-flex; gap: 10px; align-items: center;
  font-size: 0.85rem; color: var(--ink-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px;
}
.feature__meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

/* home featured: 4-up but with an oversized lead card (not a uniform grid) */
.showcase {
  display: grid; gap: var(--lg);
  grid-template-columns: repeat(2, 1fr);
}
.showcase .card:first-child { grid-row: span 2; }
.showcase .card:first-child .card__media { aspect-ratio: 4 / 5; }
.showcase .card:first-child .card__name { font-size: 1.4rem; }

/* glimpse / 3000+ banner */
.glimpse {
  background: var(--wood);
  color: var(--cream-bright);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  display: grid; gap: var(--lg); align-items: center;
  grid-template-columns: 1.4fr auto;
}
.glimpse h2 { color: var(--cream-bright); }
.glimpse p { color: rgba(250,247,242,.82); margin-top: var(--sm); max-width: 60ch; }
.glimpse .big { font-family: var(--serif); font-variation-settings: "opsz" 144, "wght" 520; }
.glimpse__cta { justify-self: end; }

/* ----------------------------- category nav (products) ----------------- */
.catalog { display: grid; grid-template-columns: 232px 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.cat-nav { position: sticky; top: calc(var(--nav-h) + 20px); align-self: start; }
.cat-nav h2 { font-size: 1.05rem; font-variation-settings: "opsz" 24, "wght" 600; margin-bottom: var(--md); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.cat-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.cat-nav a {
  display: block; text-decoration: none; color: var(--ink-soft);
  font-size: 0.92rem; font-weight: 500;
  padding: 8px 14px; margin-left: -1px;
  border-left: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.cat-nav a:hover { color: var(--ink); }
.cat-nav a.is-active {
  color: var(--gold-deep); border-left-color: var(--gold); font-weight: 600;
  background: var(--cream-bright);
}
.cat-nav__count { float: right; font-size: 0.72rem; color: var(--ink-soft); font-weight: 500; opacity: .7; }

.cat-block { scroll-margin-top: calc(var(--nav-h) + 16px); margin-bottom: clamp(48px, 7vw, 84px); }
.cat-block:last-child { margin-bottom: 0; }
.cat-block__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: var(--lg);
  padding-bottom: var(--md); border-bottom: 1px solid var(--border); }
.cat-block__head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cat-block__head .tag { color: var(--ink-soft); font-size: 0.92rem; }

/* mobile category select */
.cat-select-wrap { display: none; }

/* ----------------------------- values (about) -------------------------- */
.values { display: grid; gap: var(--lg); grid-template-columns: repeat(3, 1fr); }
.value-card {
  background: var(--cream-bright); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 34px);
}
.value-card .vc-icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; background: var(--beige); color: var(--gold-deep);
  margin-bottom: var(--md);
}
.value-card .vc-icon .icon { width: 24px; height: 24px; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* timeline of intentions (about - this content IS a sequence) */
.path { display: grid; gap: 0; margin-top: var(--lg); }
.path__item {
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding-bottom: var(--xl);
}
.path__item:last-child { padding-bottom: 0; }
.path__marker { display: flex; flex-direction: column; align-items: center; }
.path__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--cream); box-shadow: 0 0 0 1px var(--gold); }
.path__line { width: 2px; flex: 1; background: var(--border); margin-top: 6px; }
.path__item:last-child .path__line { display: none; }
.path__body h3 { font-size: 1.15rem; margin-bottom: 4px; }
.path__body p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ----------------------------- team ------------------------------------ */
.team { display: grid; gap: clamp(24px, 4vw, 40px); grid-template-columns: repeat(2, 1fr); }
.member {
  background: var(--cream-bright); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 150px 1fr;
}
.member__photo {
  background: var(--wood); color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--serif); font-variation-settings: "opsz" 144, "wght" 480;
  font-size: 3rem; letter-spacing: .02em;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__body { padding: clamp(22px, 3vw, 30px); }
.member__name { font-size: 1.4rem; margin-bottom: 2px; }
.member__role { color: var(--gold-deep); font-weight: 600; font-size: 0.86rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: var(--md); }
.member__body blockquote { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.member__body blockquote p:first-child::before { content: "\201C"; color: var(--gold); font-family: var(--serif); }
.member__body blockquote p:last-child::after { content: "\201D"; color: var(--gold); font-family: var(--serif); }

/* ----------------------------- contact --------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-list { list-style: none; display: flex; flex-direction: column; gap: var(--lg); }
.info-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.info-item .icon-wrap {
  width: 44px; height: 44px; border-radius: 12px; background: var(--beige);
  display: grid; place-items: center; color: var(--gold-deep); flex-shrink: 0;
}
.info-item .icon-wrap .icon { width: 22px; height: 22px; }
.info-item .info-k { font-size: 0.74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: 3px; }
.info-item .info-v { font-size: 1.02rem; color: var(--ink); }
.info-item .info-v a { color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--gold-soft); transition: border-color .2s; }
.info-item .info-v a:hover { border-color: var(--gold); }

.map-frame {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-soft); background: var(--beige);
}
.map-frame iframe { display: block; width: 100%; height: clamp(340px, 50vh, 520px); border: 0; }

.socials { display: flex; gap: 12px; margin-top: var(--md); }
.social-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--cream-bright);
  display: grid; place-items: center; color: var(--ink);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.social-btn:hover { background: var(--ink); color: var(--cream-bright); border-color: var(--ink); transform: translateY(-2px); }
.social-btn .icon { width: 20px; height: 20px; }

/* ----------------------------- policies -------------------------------- */
.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 20px); }
.toc h2 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: var(--md); }
.toc ul { list-style: none; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; text-decoration: none; color: var(--ink-soft); font-size: 0.9rem; padding: 7px 14px; margin-left: -1px; border-left: 2px solid transparent; transition: all .2s var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--gold-deep); border-left-color: var(--gold); font-weight: 600; }

.policy { scroll-margin-top: calc(var(--nav-h) + 16px); margin-bottom: clamp(40px, 6vw, 64px); max-width: 70ch; }
.policy:last-child { margin-bottom: 0; }
.policy h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: var(--md); }
.policy p { color: var(--ink-soft); }
.policy .callout {
  background: var(--cream-bright); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: var(--radius); padding: var(--md) var(--lg); margin-top: var(--md); font-size: 0.96rem;
}

/* page header band */
.page-head { padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 88px)); padding-bottom: clamp(32px, 5vw, 56px); background: var(--beige); border-bottom: 1px solid var(--border); }
.page-head .container { max-width: 760px; }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.page-head p { color: var(--ink-soft); margin-top: var(--md); font-size: clamp(1.05rem, 1.5vw, 1.18rem); }
.crumb { font-size: 0.8rem; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: var(--md); }
.crumb a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.crumb a:hover { border-color: var(--gold); color: var(--ink); }

/* ----------------------------- footer ---------------------------------- */
.site-footer { background: var(--wood-deep); color: rgba(250,247,242,.78); padding-block: clamp(48px, 7vw, 80px) var(--xl); }
.footer-grid { width: var(--container); margin-inline: auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 48px); }
.footer-brand .f-logo { height: 56px; width: auto; margin-bottom: var(--md); }
.footer-brand .f-tag { font-family: var(--serif); font-variation-settings: "opsz" 40, "wght" 460; font-style: italic; color: var(--gold-soft); font-size: 1.15rem; margin-bottom: var(--md); }
.footer-brand p { font-size: 0.9rem; color: rgba(250,247,242,.6); max-width: 34ch; }
.footer-col h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; margin-bottom: var(--md); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col address {
  text-decoration: none; color: rgba(250,247,242,.78); font-size: 0.92rem; font-style: normal; line-height: 1.5;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-col address { color: rgba(250,247,242,.66); }
.footer-socials { display: flex; gap: 10px; margin-top: var(--md); }
.footer-socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(250,247,242,.2); display: grid; place-items: center; color: rgba(250,247,242,.8); transition: all .2s var(--ease); }
.footer-socials a:hover { background: var(--gold); color: var(--wood-deep); border-color: var(--gold); transform: translateY(-2px); }
.footer-socials .icon { width: 18px; height: 18px; }
.footer-bottom {
  width: var(--container); margin-inline: auto; margin-top: clamp(36px, 5vw, 56px);
  padding-top: var(--lg); border-top: 1px solid rgba(250,247,242,.14);
  display: flex; justify-content: space-between; gap: var(--md); flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(250,247,242,.55);
}
.footer-bottom a { color: rgba(250,247,242,.7); text-decoration: none; border-bottom: 1px solid transparent; }
.footer-bottom a:hover { border-color: var(--gold-soft); }

/* ----------------------------- whatsapp fab ---------------------------- */
.wa-fab {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px -8px rgba(37, 211, 102, .6);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 34px -8px rgba(37,211,102,.7); }
.wa-fab .icon { width: 30px; height: 30px; }
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); opacity: .6;
  animation: wa-pulse 2.6s var(--ease) infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .55; } 70%,100% { transform: scale(1.6); opacity: 0; } }

/* ----------------------------- reveal ---------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ----------------------------- a11y ------------------------------------ */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream-bright);
  padding: 10px 18px; border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-header:not(.is-solid) .nav--over a:focus-visible { outline-color: var(--gold-soft); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----------------------------- responsive ------------------------------ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--xl); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --nav-h: 66px; }

  /* nav -> mobile drawer */
  .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 10px;
    background: var(--cream-bright); cursor: pointer; color: var(--ink);
  }
  .site-header:not(.is-solid) .nav--over .nav__toggle { background: rgba(250,247,242,.12); border-color: rgba(250,247,242,.4); color: var(--cream-bright); }
  .nav__toggle .icon { width: 24px; height: 24px; }

  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(330px, 84vw);
    background: var(--cream-bright);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: calc(var(--nav-h) + 20px) 28px 28px;
    transform: translateX(100%); transition: transform .34s var(--ease);
    box-shadow: -20px 0 50px -30px rgba(42,27,18,.5);
    border-left: 1px solid var(--border);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { color: var(--ink); font-size: 1.15rem; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--gold-deep); }
  .nav__links .nav__drawer-cta { margin-top: var(--lg); }
  .nav__links .nav__drawer-cta .btn { width: 100%; }
  .site-header:not(.is-solid) .nav--over .nav__links a { color: var(--ink); }

  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(26,20,16,.5); z-index: 99;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }

  .strip__grid { grid-template-columns: 1fr; gap: var(--md); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { max-width: 480px; }
  .showcase { grid-template-columns: 1fr 1fr; }
  .showcase .card:first-child { grid-row: auto; grid-column: 1 / -1; }
  .showcase .card:first-child .card__media { aspect-ratio: 16 / 10; }
  .glimpse { grid-template-columns: 1fr; }
  .glimpse__cta { justify-self: start; }
  .values { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* products: collapse sidebar into a sticky select */
  .catalog { grid-template-columns: 1fr; }
  .cat-nav { display: none; }
  .cat-select-wrap {
    display: block; position: sticky; top: var(--nav-h); z-index: 50;
    background: var(--cream); padding: 12px 0; margin: 0 0 var(--lg);
    border-bottom: 1px solid var(--border);
  }
  .cat-select {
    width: 100%; appearance: none; -webkit-appearance: none;
    font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--ink);
    background: var(--cream-bright); border: 1px solid var(--border); border-radius: 10px;
    padding: 13px 44px 13px 16px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235C4F3D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
  }

  .policy-layout { grid-template-columns: 1fr; }
  .toc {
    position: sticky; top: var(--nav-h); z-index: 50; background: var(--cream);
    padding: 12px 0; margin-bottom: var(--lg); border-bottom: 1px solid var(--border);
  }
  .toc ul { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 8px; }
  .toc a { border: 1px solid var(--border); border-radius: 999px; margin-left: 0; padding: 7px 14px; }
  .toc a.is-active { border-color: var(--gold); background: var(--cream-bright); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: var(--md); }
  .showcase { grid-template-columns: 1fr; }
  .member { grid-template-columns: 1fr; }
  .member__photo { aspect-ratio: 16 / 9; font-size: 2.4rem; }
  .card__body { padding: 13px; }
  .card__name { font-size: 1rem; }
  .btn-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .seal { display: none; }
}

/* ----------------------------- reduced motion -------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media { transform: none !important; }
  .wa-fab::after { display: none; }
  .seal, .seal__center { animation: none; }
}

/* ----------------------------- post-fixes ------------------------------ */
/* drawer CTA is only for the mobile slide-out; hidden on desktop */
.nav__drawer-cta { display: none; }
@media (max-width: 900px) { .nav__drawer-cta { display: block; } }

/* lock scroll when the mobile nav drawer is open */
body.nav-open { overflow: hidden; }

/* generic inline icon fallback sizing */
.icon { width: 20px; height: 20px; }

/* make the oversized showcase lead-card image fill its full height (desktop) */
@media (min-width: 901px) {
  .showcase .card:first-child .card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 380px; }
}
