/* Rietek — Volume Tree–inspired holding company layout
   Archivo + Poppins · white canvas · 6px CTAs · numbered sections */

:root {
  --ink: #0a0a0b;
  --ink-soft: #1a1a1f;
  --muted: #64748b;
  --muted-light: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.08);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;

  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --radius: 6px;
  --radius-lg: 12px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
  --shadow: 0 20px 50px rgba(10, 10, 11, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

/* Override leftover Elementor / old-theme dark chrome */
body.rietek-elementor,
body.elementor-page,
body.home,
body.page {
  background-color: #ffffff !important;
  color: var(--ink);
}

body .site-header,
body .site-footer,
body .page-shell,
body .main-content {
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.65;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.main-content > .section > .container,
.main-content > .hero {
  width: 100%;
  max-width: none;
}

.main-content > .section > .container {
  width: auto;
  margin-inline: 0;
  padding-inline: 1.25rem;
}

.section {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--line);
}

.main-content > .hero + .section {
  border-top: 1px solid var(--line);
}

.main-content > .hero {
  border-top: none;
}

.section-head {
  max-width: 38rem;
  margin-bottom: var(--space-xl);
}

.section-head .eyebrow {
  margin-bottom: var(--space-sm);
}

.section-head h2 {
  margin-bottom: var(--space-md);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s var(--ease), border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--surface-soft);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-lg);
}

/* —— Header + dropdown —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: auto;
}

.logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.logo-word {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.logo img:not(.logo-mark) {
  width: 8.25rem;
  height: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem 1.5rem;
}

.nav-desktop > a,
.nav-desktop .nav-item > button {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.nav-desktop > a:hover,
.nav-desktop .nav-item > button:hover,
.nav-desktop .nav-item.is-open > button {
  color: var(--ink);
}

.nav-item {
  position: relative;
}

.nav-item > button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item > button::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.7;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  margin-top: 0.5rem;
  z-index: 50;
}

/* Invisible bridge so the mouse can travel into the panel */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}

.nav-item.is-open .nav-dropdown,
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  display: block;
}

.nav-item:hover > button,
.nav-item:focus-within > button {
  color: var(--ink);
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.nav-dropdown a:hover {
  background: var(--surface-soft);
}

.nav-dropdown strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.nav-dropdown span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 2.5rem;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile > a,
.nav-mobile summary {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.55rem 0;
  cursor: pointer;
  list-style: none;
}

.nav-mobile details a {
  display: block;
  padding: 0.4rem 0 0.4rem 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }

  .menu-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* —— Side nav + shell —— */
.page-shell {
  display: grid;
  grid-template-columns: 1fr;
  width: min(100%, calc(var(--max) + 11rem));
  margin-inline: auto;
}

.side-nav {
  display: none;
}

.main-content {
  min-width: 0;
}

@media (min-width: 1100px) {
  .page-shell {
    grid-template-columns: 11rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .side-nav {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    padding: 2rem 0 2rem 1.25rem;
    height: fit-content;
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow-y: auto;
  }
}

.side-nav .label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1rem;
  font-weight: 600;
}

.side-nav ol {
  border-left: 1px solid var(--line);
  counter-reset: side;
}

.side-nav li {
  counter-increment: side;
}

.side-nav a {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.45rem 0 0.45rem 0.9rem;
  font-size: 0.8rem;
  color: var(--muted-light);
  border-left: 2px solid transparent;
  margin-left: -1px;
}

.side-nav a::before {
  content: counter(side, decimal-leading-zero);
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
}

/* —— 01 Hero —— */
.hero {
  padding: clamp(2rem, 4vw, 3.5rem) 1.25rem clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 50% 45% at 90% 10%, rgba(37, 99, 235, 0.08), transparent 55%),
    var(--surface);
}

.hero-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-xl);
  }
}

.hero-copy > .eyebrow {
  margin-bottom: var(--space-sm);
}

.hero-copy .brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: var(--space-md);
}

.hero-copy .brand-lockup img {
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.hero-copy .brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-copy .brand-name .tek {
  color: var(--accent);
}

.hero-copy h1 {
  margin-bottom: var(--space-md);
  max-width: 16ch;
}

.hero-note {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: var(--muted-light);
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  max-height: 380px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-bar {
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
}

.trust-bar p {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 1rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
}

.trust-logos span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  opacity: 0.55;
}

/* —— 02 Two doors —— */
.doors {
  display: grid;
  gap: var(--space-md);
}

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

.door {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px 1fr;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s;
}

.door:hover {
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.door-media {
  background: var(--surface-soft);
  overflow: hidden;
}

.door-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.door-body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.door-body .eyebrow {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.door-body h3 {
  margin-bottom: 0.5rem;
}

.door-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.door-body .link-arrow {
  font-weight: 500;
  font-size: 0.9rem;
}

.link-arrow::after {
  content: " →";
}

.link-arrow:hover {
  color: var(--accent);
}

/* —— 03 Problems —— */
.problem-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.problem {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .problem:nth-child(odd) {
    padding-right: var(--space-lg);
  }

  .problem:nth-child(even) {
    padding-left: var(--space-lg);
    border-left: 1px solid var(--line);
  }
}

.problem h3 {
  margin-bottom: 0.5rem;
}

.problem .quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.problem ul {
  list-style: disc;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.problem li + li {
  margin-top: 0.35rem;
}

/* —— 04 What we do (three doors) —— */
.service-grid {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto 1fr auto auto;
  }

  /* Align icon / eyebrow / title rows across the three cards */
  .service-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 6;
    align-items: start;
  }
}

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.service-card .icon-pill {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  border-radius: 22%;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  margin-bottom: var(--space-md);
  background: var(--surface-soft);
}

.service-card .eyebrow {
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.service-card h3 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.service-card > p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.service-card ul {
  margin-bottom: var(--space-md);
}

.service-card li {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 0.35rem 0;
  border-top: 1px solid var(--line);
}

.service-card .link-arrow {
  font-weight: 500;
  font-size: 0.9rem;
  align-self: start;
}

/* —— 05 Proof / numbers —— */
.stats-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 800px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.stat > span {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat--stores .stat-app {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.stat-ratings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1rem;
  align-items: start;
  width: 100%;
}

.stat-ratings:has(.stat-store:only-child) {
  grid-template-columns: 1fr;
}

.stat-store {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
  text-align: left;
}

.stat-store strong {
  margin-bottom: 0;
  color: var(--ink);
}

.stat-store > span {
  font-size: 0.75rem;
  color: var(--muted-light);
}

.stat-star {
  font-size: 0.62em;
  margin-left: 0.06em;
  font-weight: 600;
  line-height: 1;
  color: inherit;
}

/* —— 06 Case studies —— */
.case-grid {
  display: grid;
  gap: var(--space-md);
}

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

.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s, border-color 0.25s;
}

.case-card:hover {
  box-shadow: var(--shadow);
  border-color: #cbd5e1;
}

.case-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-soft);
  overflow: hidden;
}

/* VIDEO MODAL option 1 — remove .case-play + .video-modal rules to revert */
.case-play {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.case-play:hover {
  background: rgba(10, 10, 11, 0.92);
  transform: translateY(-1px);
}

.case-play-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}

.case-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.28rem 0 0.28rem 0.45rem;
  border-color: transparent transparent transparent #fff;
}

.video-modal {
  padding: 0;
  border: none;
  background: transparent;
  max-width: min(52rem, calc(100vw - 2rem));
  width: 100%;
}

.video-modal::backdrop {
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: blur(4px);
}

.video-modal-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 10, 11, 0.28);
}

.video-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.video-modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.video-modal-close {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.video-modal-close:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.video-modal-frame {
  background: #0a0a0b;
  aspect-ratio: 16 / 9;
}

.video-modal-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0a0a0b;
}

.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-media--fit {
  aspect-ratio: auto;
  background: #f1f5f9;
}

.case-card-media--fit img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.case-card-body {
  padding: var(--space-md);
}

.case-card-body .eyebrow {
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.case-card-body h3 {
  margin-bottom: 0.4rem;
}

.case-card-body p {
  color: var(--muted);
  font-size: 0.925rem;
  margin-bottom: var(--space-md);
}

.case-metric {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.case-metric span,
.case-metric a {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted-light);
  margin-top: 0.15rem;
}

.case-metric a {
  color: var(--accent);
}

.case-metric span a {
  display: inline;
}

.case-metric a:hover {
  text-decoration: underline;
}

/* —— 07 FAQ —— */
.faq-list {
  max-width: 42rem;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 0;
  font-weight: 500;
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .answer {
  padding-bottom: 1.25rem;
  color: var(--muted);
  max-width: 36rem;
}

.faq-item .answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Contact band */
.contact-band {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 700px) {
  .contact-band {
    grid-template-columns: 1.4fr 1fr;
    padding: var(--space-2xl);
    align-items: end;
  }
}

.contact-band .eyebrow {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-sm);
}

.contact-band h2 {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.contact-band p {
  color: rgba(255, 255, 255, 0.65);
}

.contact-details {
  display: grid;
  gap: 0.85rem;
}

.contact-details a {
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: fit-content;
}

.contact-details a:hover {
  color: #93c5fd;
  border-bottom-color: #93c5fd;
}

.contact-details .muted {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
  border: none;
  font-weight: 400;
}

/* Footer */
.site-footer {
  padding-block: var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--line);
  margin-top: var(--space-xl);
}

.footer-inner {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  }
}

/* Legal pages */
.legal-page {
  padding-block: clamp(2.5rem, 5vw, 4rem) var(--space-2xl);
}

.legal-inner {
  max-width: 42rem;
}

.legal-inner h1 {
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-size: 0.875rem;
  color: var(--muted-light);
  margin-bottom: var(--space-lg);
}

.legal-inner > p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-inner a {
  color: var(--accent);
}

.legal-inner a:hover {
  text-decoration: underline;
}

.legal-list {
  list-style: decimal;
  padding-left: 1.25rem;
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
  color: var(--muted);
}

.legal-list li {
  padding-left: 0.35rem;
  line-height: 1.65;
}

.legal-list strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-list ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
  display: grid;
  gap: 0.35rem;
}

.legal-bullets {
  list-style: disc;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.65;
}

.legal-bullets strong {
  color: var(--ink);
}

.legal-note {
  margin-top: var(--space-lg) !important;
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  font-size: 0.85rem !important;
  color: var(--muted-light) !important;
}

.footer-brand .logo {
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-brand .logo-word {
  white-space: nowrap;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 22rem;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  padding: 0.25rem 0;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted-light);
}

/* Inner pages */
.page-main,
.page-article {
  width: 100%;
  max-width: none;
}

.page-hero {
  padding-block: var(--space-2xl) var(--space-xl);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

.page-body {
  padding-block: var(--space-xl);
  max-width: 40rem;
}

.page-body p + p {
  margin-top: 1rem;
}

/* Legal pages keep a readable measure via .legal-inner */
.legal-page {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.accent-word {
  color: var(--accent);
}

/* About page — hero lives inside .page-shell like Home */
.about-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem clamp(2rem, 4vw, 3rem);
  text-align: left;
  border-top: none;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 40% at 20% 0%, rgba(37, 99, 235, 0.07), transparent 60%),
    var(--surface);
}

.main-content > .about-hero + .section {
  border-top: none;
}

.about-hero-inner {
  max-width: 42rem;
  margin-inline: 0;
}

.about-hero h1 {
  margin-bottom: var(--space-md);
}

.about-hero .lede {
  margin-inline: 0;
}

.about-hero .cta-group {
  justify-content: flex-start;
}

.about-split {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 800px) {
  .about-split {
    grid-template-columns: minmax(14rem, 0.9fr) minmax(0, 1.25fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
}

.about-split-head .pill {
  margin-bottom: var(--space-md);
}

.about-split-head h2 {
  max-width: 14ch;
  margin: 0;
}

.about-prose {
  display: grid;
  gap: 1.15rem;
  padding-top: 0.15rem;
}

.about-prose p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.about-prose strong {
  color: var(--ink);
  font-weight: 600;
}

/* Contact page */
.contact-page {
  padding-block: clamp(2.5rem, 5vw, 4.5rem) var(--space-2xl);
  background:
    radial-gradient(ellipse 40% 35% at 10% 0%, rgba(37, 99, 235, 0.06), transparent 55%),
    var(--surface-soft);
}

.contact-layout {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-2xl);
  }
}

.contact-intro h1 {
  margin-bottom: var(--space-md);
  max-width: 14ch;
}

.contact-channels {
  display: grid;
  gap: 0.85rem;
  margin-top: var(--space-lg);
}

.contact-channels li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.contact-channels a:hover {
  color: var(--accent);
}

.channel-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.next-steps {
  margin-top: var(--space-xl);
  padding: var(--space-md);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.next-steps .eyebrow {
  margin-bottom: 0.85rem;
}

.next-steps ol {
  display: grid;
  gap: 0.75rem;
}

.next-steps li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--muted);
}

.next-steps li span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.contact-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 7rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.25rem;
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted-light);
  line-height: 1.5;
}

.form-note strong {
  color: var(--muted);
  font-weight: 500;
}

.form-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-status--ok {
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.form-status--err {
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.form-captcha {
  margin-top: 0.25rem;
}

.contact-form .cf-turnstile {
  margin-top: 0.25rem;
}

.nav-desktop > a.is-active {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
