/* ==========================================================================
   Elen Macurová Vattes — odeli.cz (nový web)
   Ručně psaný statický styl. Bez externích závislostí kromě fontů.
   ========================================================================== */

:root {
  --cream: #faf4ec;
  --cream-deep: #f3e8da;
  --cream-soft: #fffdf9;
  --ink: #2e2f29;
  --ink-soft: #55564c;
  --ink-faint: #85867a;
  --olive: #6f7140;
  --olive-deep: #4d4f2b;
  --olive-light: #a8a985;
  --line: rgba(46, 47, 41, 0.13);
  --line-soft: rgba(46, 47, 41, 0.07);

  --font-display: "DM Serif Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1160px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 24px 60px -30px rgba(46, 47, 41, 0.35);
  --shadow-soft: 0 12px 32px -20px rgba(46, 47, 41, 0.3);
  --header-h: 78px;
}

/* ---------- Reset ---------- */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--olive); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--cream { background: var(--cream); }
.section--deep { background: var(--cream-deep); }
.section--paper { background: var(--cream-soft); }

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
  margin-bottom: 18px;
}

/* ---------- Typography ---------- */

.display,
h1, h2 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.9vw, 1.5rem);
  line-height: 1.28;
  letter-spacing: -0.005em;
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 52ch;
}

.prose p + p { margin-top: 1.05em; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 500; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--olive-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 113, 64, 0.4);
  padding-bottom: 2px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { gap: 0.75rem; border-color: var(--olive-deep); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--olive-deep);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  border-color: rgba(46, 47, 41, 0.28);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(46, 47, 41, 0.05); color: var(--ink); }

.btn--light {
  background: var(--cream);
  color: var(--olive-deep);
}
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(250, 244, 236, 0.5);
  color: var(--cream);
}
.btn--outline-light:hover { background: rgba(250, 244, 236, 0.12); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 244, 236, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  letter-spacing: 0.005em;
  color: var(--ink);
}
.brand-sub {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.93rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  position: relative;
  padding-block: 6px;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--olive);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

.header-cta { padding: 0.72rem 1.3rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 10px 24px 22px;
  background: var(--cream);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-nav .btn { margin-top: 18px; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(540px, 76vh, 800px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(28, 30, 24, 0.86) 0%,
      rgba(30, 32, 25, 0.66) 42%,
      rgba(32, 34, 27, 0.28) 72%,
      rgba(30, 32, 25, 0.16) 100%),
    linear-gradient(to top, rgba(24, 26, 20, 0.55), rgba(24, 26, 20, 0) 45%);
}

.hero-inner {
  padding-block: clamp(64px, 10vw, 120px);
  max-width: 640px;
}

.hero .eyebrow { color: rgba(250, 244, 236, 0.75); }
.hero h1 {
  color: #fffaf3;
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  margin-bottom: 22px;
}
.hero p.hero-lead {
  color: rgba(250, 244, 236, 0.88);
  font-size: clamp(1.04rem, 1.55vw, 1.2rem);
  line-height: 1.7;
  max-width: 48ch;
  margin-bottom: 34px;
}
.hero .btn { --btn-bg: var(--cream); --btn-fg: var(--olive-deep); }
.hero .btn:hover { background: #fff; color: var(--ink); }
.hero .btn--outline-light { background: transparent; --btn-fg: var(--cream); }
.hero .btn--outline-light:hover { background: rgba(250, 244, 236, 0.14); color: var(--cream); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(250, 244, 236, 0.22);
  list-style: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 244, 236, 0.72);
}
.hero-facts li { display: flex; align-items: center; gap: 9px; }
.hero-facts li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--olive-light);
  flex-shrink: 0;
}

/* ---------- Page header (subpages) ---------- */

.page-head {
  padding-block: clamp(52px, 7vw, 92px) clamp(36px, 5vw, 56px);
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line-soft);
}
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 22ch; }
.page-head .lead { margin-top: 22px; }

/* ---------- Intro split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--top { align-items: start; }
.split--reverse .split__media { order: -1; }

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Portrait photo (e.g. the "O mně" portrait) keeps its natural vertical frame
   instead of being cropped to the default 4:3 landscape ratio. */
.split__media--portrait img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* Trims a baked-in dark strip from the top edge of a photo.
   The "Pustíme se společně do změny?" image has a ~41 px dark band burnt in
   above the sky (rows 0-41 of 948 are almost uniformly dark, max luminance 89
   versus ~173 in the rest of the photo). Instead of rewriting the original
   file, the frame is given the aspect ratio of the photo with that band (plus
   a small safety margin) removed: 1265 x 900 instead of 1265 x 948.
   object-fit: cover then scales the photo so it overflows the frame
   vertically, and object-position: bottom anchors it to the bottom edge, so
   exactly the overflowing top strip is cropped away. */
.split__media--trim-top img {
  aspect-ratio: 1265 / 900;
  object-fit: cover;
  object-position: 50% 100%;
}

.split h2 { margin-bottom: 26px; }
.split .lead { margin-bottom: 24px; }

.figcaption-note {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ---------- Signal cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  margin-top: clamp(36px, 4vw, 52px);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--cream-soft);
  padding: clamp(26px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { font-size: 1.16rem; }
.card p { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.62; }

/* Photo tile filling the free cells of the methods card grid. The image is
   absolutely positioned so the tile stretches to the height of the cards in
   its row rather than dictating it. The column span must never exceed the
   number of columns auto-fit actually creates, otherwise an implicit grid
   track would clip the image, so the thresholds are derived from
   minmax(255px, 1fr) + 1px gaps + the 48px wrap padding + 2px card border:
   >=3 columns need ~832px, >=2 columns need ~561px. */
.card--media {
  padding: 0;
  position: relative;
  overflow: hidden;
  min-height: 240px;
  grid-column: span 1;
}
.card--media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 621px) {
  .card--media { grid-column: span 2; }
}
@media (min-width: 850px) {
  .card--media { grid-column: span 3; }
}

/* ---------- Quote ---------- */

.quote-band {
  background: var(--cream-deep);
  text-align: center;
}
.quote-band blockquote {
  margin: 0 auto;
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.9vw, 2.15rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.quote-band .quote-mark {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--olive-light);
  margin-bottom: 12px;
}
.quote-band figcaption {
  margin-top: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 48px);
  list-style: none;
}
.steps li {
  counter-increment: step;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--olive);
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 10px; font-size: 1.2rem; }
.steps p { font-size: 0.96rem; color: var(--ink-soft); line-height: 1.65; }

/* ---------- Methods ---------- */

.methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 46px);
  list-style: none;
}
.methods li {
  border-top: 1px solid var(--line);
  padding-block: 22px;
}
.methods a {
  display: block;
  text-decoration: none;
  transition: color 0.2s ease;
}
.methods a:hover { color: var(--olive-deep); }
.methods .m-name {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.3;
}
.methods .m-name span:last-child {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--olive);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.methods a:hover .m-name span:last-child { transform: translateX(3px); }
.methods .m-desc {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-top: 7px;
  line-height: 1.6;
}

.methods-note {
  margin-top: 36px;
  padding: 22px 26px;
  background: var(--cream-deep);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- Checklist ---------- */

.checklist {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-block: 26px 30px;
}
.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.62;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 15px;
  height: 9px;
  border-left: 1.6px solid var(--olive);
  border-bottom: 1.6px solid var(--olive);
  transform: rotate(-45deg);
}

/* ---------- Contact band ---------- */

.cta-band {
  background: var(--olive-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  border: 1px solid rgba(250, 244, 236, 0.14);
}
.cta-band h2 { color: #fffaf3; }
.cta-band .lead { color: rgba(250, 244, 236, 0.82); }
.cta-band .eyebrow { color: rgba(250, 244, 236, 0.66); }

.cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 20px;
  font-size: 1rem;
}
.contact-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 244, 236, 0.6);
  margin-bottom: 4px;
}
.contact-list dd { margin: 0; }
.contact-list a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 244, 236, 0.35);
}
.contact-list a:hover { border-color: var(--cream); }

/* On light sections the dark-band colours are unreadable, so invert them. */
.contact-list--ink dt { color: var(--ink-faint); }
.contact-list--ink a {
  color: var(--olive-deep);
  border-bottom-color: rgba(111, 113, 64, 0.4);
}
.contact-list--ink a:hover { border-color: var(--olive-deep); }

/* ---------- Method articles ---------- */

.method-list { display: grid; gap: clamp(30px, 4vw, 44px); }

.method-article {
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: var(--shadow-soft);
}
.method-article h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 6px;
}
.method-article .method-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 12px;
}
.method-article h2 + .method-body { margin-top: 18px; }
.method-body { color: var(--ink-soft); font-size: 1rem; line-height: 1.72; }
.method-body p + p { margin-top: 0.9em; }

/* ---------- FAQ ---------- */

.faq { margin-top: clamp(30px, 4vw, 44px); border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 4px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 15px;
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--olive);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p {
  padding: 0 0 20px;
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- Verify / notice strip ---------- */

.notice {
  border-left: 2px solid var(--olive-light);
  padding: 6px 0 6px 20px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ---------- Testimonials carousel ---------- */

.tb {
  margin-top: clamp(32px, 4vw, 48px);
  position: relative;
}

.tb-track {
  list-style: none;
  display: flex;
  gap: clamp(16px, 2vw, 24px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 20px;
  scrollbar-width: none;
}
.tb-track::-webkit-scrollbar { display: none; }

.tb-slide {
  flex: 0 0 calc((100% - 2 * clamp(16px, 2vw, 24px)) / 3);
  scroll-snap-align: start;
  min-width: 0;
}

.tb-card {
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-soft);
}

.tb-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0.8;
  color: var(--olive-light);
  display: block;
}

.tb-card blockquote {
  margin: 0;
  flex: 1;
}
.tb-card blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.35vw, 1.12rem);
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.tb-card figcaption {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.tb-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}

.tb-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(46, 47, 41, 0.22);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.tb-btn:hover { background: rgba(46, 47, 41, 0.05); border-color: var(--olive); }
.tb-btn[disabled] { opacity: 0.3; cursor: default; }
.tb-btn[disabled]:hover { background: transparent; border-color: rgba(46, 47, 41, 0.22); }

.tb-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(46, 47, 41, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.tb-dot[aria-current="true"] { background: var(--olive); transform: scale(1.25); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream-deep);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(40px, 5vw, 64px) 28px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 34px;
}
.footer-brand .brand { margin: 0 0 14px; }
.footer-brand p { max-width: 34ch; font-size: 0.9rem; color: var(--ink-faint); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover { color: var(--olive-deep); text-decoration: underline; text-underline-offset: 3px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Contact page ---------- */

.contact-cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-cards li {
  background: var(--cream-soft);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-cards .eyebrow { margin-bottom: 6px; }
.contact-cards .cc-value {
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.35;
  color: var(--ink);
}
.contact-cards a.cc-value { text-decoration: none; }
.contact-cards a.cc-value:hover { color: var(--olive-deep); }
.contact-cards .cc-note {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-faint);
  margin-top: 6px;
}

.contact-panel {
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: var(--shadow-soft);
}
.contact-panel h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.contact-panel .prose p { font-size: 0.99rem; }

.write-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-block: 22px 26px;
}
.write-list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.write-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 1.6px solid var(--olive);
  border-bottom: 1.6px solid var(--olive);
  transform: rotate(-45deg);
}

.info-box {
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  font-size: 0.95rem;
  line-height: 1.68;
  color: var(--ink-soft);
}
.info-box h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--ink); }
.info-box p + p { margin-top: 0.8em; }
.info-box ul { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.info-box li { padding-left: 16px; position: relative; }
.info-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--olive-light);
}

/* ---------- Legal / long-form text page ---------- */

.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-top: 2.4em; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.8em; }
.legal p,
.legal li { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.75; }
.legal p + p { margin-top: 1em; }
.legal ul, .legal ol { margin-block: 1em; padding-left: 1.4em; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 0.5em; }
.legal li > ul, .legal li > ol { margin-top: 0.5em; }
.legal a { color: var(--olive-deep); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal .legal-updated {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-bottom: 2.4em;
  padding-bottom: 1.4em;
  border-bottom: 1px solid var(--line);
}
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1.2em;
  font-size: 0.93rem;
}
.legal th,
.legal td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}
.legal th {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom-color: var(--line);
}
.legal-table-wrap { overflow-x: auto; }

.legal .legal-toc {
  list-style: none;
  display: grid;
  gap: 9px;
  padding: 0;
  margin-block: 0 2.6em;
  font-size: 0.95rem;
  counter-reset: toc;
}
.legal .legal-toc li { counter-increment: toc; margin-bottom: 0; }
.legal .legal-toc a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  color: var(--ink-soft);
}
.legal .legal-toc a:hover { color: var(--olive-deep); border-bottom-color: rgba(111, 113, 64, 0.4); }
.legal .legal-toc a::before {
  content: counter(toc, decimal-leading-zero) "  ";
  color: var(--olive);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

/* ---------- Utilities ---------- */

.stack > * + * { margin-top: 1.1rem; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.center { text-align: center; }
.max-60 { max-width: 60ch; }
.max-70 { max-width: 70ch; margin-inline: auto; }
.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;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .nav { gap: 20px; font-size: 0.88rem; }
  .header-cta { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .tb-slide { flex-basis: calc((100% - clamp(16px, 2vw, 24px)) / 2); }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 16 / 11; }
  .split__media--portrait img { aspect-ratio: auto; }
  /* Keep the trim-crop from the desktop rule; the narrower 16:11 frame would
     otherwise crop through the photo at a different point. */
  .split__media--trim-top img { aspect-ratio: 1265 / 900; }
  .cta-grid { grid-template-columns: 1fr; }
  .hero { min-height: 600px; }
  .hero-inner { max-width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; line-height: 1.68; }
  .wrap { padding-inline: 20px; }
  .hero { min-height: 0; padding-block: 60px 52px; }
  .hero h1 { font-size: clamp(2.05rem, 9.5vw, 2.6rem); }
  .hero p.hero-lead { font-size: 1rem; }
  .hero-facts { gap: 8px 16px; font-size: 0.72rem; }
  .btn { padding: 0.85rem 1.4rem; font-size: 0.92rem; }
  .btn-row .btn { width: 100%; }
  .page-head h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .methods { grid-template-columns: 1fr; }
  .tb-slide { flex-basis: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .method-article { padding: 24px 20px; border-radius: 20px; }
}

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