/* Senken landings — section utilities and component classes. */

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
@media (min-width: 768px) {
  .container { padding-left: var(--container-px-md); padding-right: var(--container-px-md); }
}

.section {
  padding: 64px 0;
  background: var(--color-bg);
}
@media (min-width: 768px) { .section { padding: 96px 0; } }

.section--tint   { background: var(--color-bg-tint); }
.section--dark   { background: var(--color-bg-dark); color: var(--color-fg-on-dark); }
.section--forest { background: var(--color-bg-forest); color: var(--color-fg-on-forest); }
.section--hero   { padding-top: 48px; padding-bottom: 64px; }
@media (min-width: 768px) { .section--hero { padding-top: 64px; padding-bottom: 80px; } }
.section--lg { padding: 96px 0; }
@media (min-width: 768px) { .section--lg { padding: 120px 0; } }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--color-fg-subtle);
  font-weight: 400;
}
.section--dark .eyebrow,
.section--forest .eyebrow { color: var(--color-enstatite-200); opacity: 0.85; }

.heading {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: var(--tr-headline);
  color: inherit;
  text-wrap: balance;
}
.heading--display { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: 500; }
.heading--h1      { font-size: var(--fs-h1);      line-height: var(--lh-heading); font-weight: 500; }
.heading--h2      { font-size: var(--fs-h2);      line-height: var(--lh-small-h); font-weight: 500; }
.heading--h3      { font-size: var(--fs-h3);      line-height: 1.3; font-weight: 500; }

.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-body-lg);
  color: var(--color-fg-muted);
  max-width: 60ch;
}
.section--dark .lead,
.section--forest .lead { color: var(--color-enstatite-200); }

.text-muted { color: var(--color-fg-muted); }
.section--dark .text-muted,
.section--forest .text-muted { color: var(--color-enstatite-200); opacity: 0.85; }

.mono { font-family: var(--font-mono); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--color-jasper-400); outline-offset: 3px; }

.btn--primary {
  background: var(--color-obsidian-950);
  color: var(--color-quartz);
}
.btn--primary:hover { background: #000; }

.btn--secondary {
  background: transparent;
  color: var(--color-obsidian-950);
  border-color: var(--color-obsidian-950);
}
.btn--secondary:hover { background: var(--color-obsidian-950); color: var(--color-quartz); }

.btn--ghost {
  background: transparent;
  color: inherit;
  padding: 12px 0;
}
.btn--ghost:hover { opacity: 0.6; transform: none; }

.btn--accent {
  background: var(--color-jasper-400);
  color: var(--color-obsidian-950);
}
.btn--accent:hover { background: var(--color-jasper-300); }

.btn--lg { font-size: 15px; padding: 14px 28px; }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.section--tint .card { background: #fff; }
.section--dark .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }
}

/* Stat utility (used in CliffSection-style sections) */
.stat {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--color-fg-subtle);
}
.stat__value {
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: var(--tr-headline);
}
.section--dark .stat { border-top-color: rgba(255,255,255,0.16); }
.section--dark .stat__label { color: var(--color-enstatite-200); opacity: 0.7; }

/* Eyebrow + heading stack used at the top of every section */
.section__head { max-width: 60ch; }
.section__head .heading { margin-top: 12px; }
.section__head .lead { margin-top: 16px; }

/* ============================================================
   FAQ (native <details> / <summary>)
   ============================================================ */

.faq {
  margin-top: 32px;
  max-width: 768px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.faq__item { border-top: 1px solid var(--color-border); }
.faq__item:first-child { border-top: 0; }
.faq__item > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-weight: 600;
  font-size: var(--fs-body-lg);
  cursor: pointer;
}
.faq__item > summary::-webkit-details-marker { display: none; }
.faq__item > summary::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-size: 100% 2px, 2px 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--dur-fast) var(--ease-standard);
  opacity: 0.55;
}
.faq__item[open] > summary::after {
  background-size: 100% 2px, 0 100%; /* minus sign */
}
.faq__item > div {
  padding: 0 0 24px;
  color: var(--color-fg-muted);
  max-width: 60ch;
}

/* ============================================================
   CTA BAND (FinalCTA — dark full-bleed)
   ============================================================ */

.cta-band {
  background: var(--color-obsidian-950);
  color: var(--color-quartz);
  padding: 80px 0 96px;
}
.cta-band__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-band__inner .heading { color: var(--color-quartz); }
.cta-band__inner .lead { color: var(--color-enstatite-200); margin: 16px auto 0; }
.cta-band__actions { margin-top: 32px; display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============================================================
   MISC HELPERS
   ============================================================ */

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.anchor-target { scroll-margin-top: 96px; } /* offset sticky nav when jumping to anchors */
