/* Mesa Express — Legal pages · Light luxury (MotionSites-inspired) */

:root {
  --noir: #0f0a08;
  --espresso: #1e1210;
  --velvet: #3a2520;
  --cocoa: #5c4033;
  --cream: #f5efe6;
  --parchment: #e8dfd2;
  --linen: #fbf8f3;
  --mist: #f0ebe3;
  --white: #ffffff;
  --terracotta: #b85a42;
  --terracotta-dark: #8e4532;
  --terracotta-light: #d4785c;
  --champagne: #e8d4b8;
  --gold: #c9a962;
  --brass: #b8924a;
  --gold-muted: #9a7b3c;
  --stone: #7a6e64;
  --stone-light: #a8988c;
  --success: #3d6b4f;
  --error: #a83232;
  --text-primary: #1e1210;
  --text-secondary: #5c4f47;
  --text-muted: #8a7b72;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #fffefb;
  --surface-elevated: rgba(255, 255, 255, 0.92);
  --border: rgba(30, 18, 16, 0.08);
  --border-strong: rgba(30, 18, 16, 0.12);
  --shadow-sm: 0 2px 8px rgba(30, 18, 16, 0.04);
  --shadow-md: 0 8px 32px rgba(30, 18, 16, 0.08), 0 2px 8px rgba(30, 18, 16, 0.04);
  --shadow-lg: 0 24px 64px rgba(30, 18, 16, 0.1), 0 8px 24px rgba(184, 90, 66, 0.06);
  --shadow-glow: 0 0 0 1px rgba(201, 169, 98, 0.2), 0 20px 60px rgba(201, 169, 98, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--linen);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Ambient canvas (layered depth) ─── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(232, 212, 184, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(184, 90, 66, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 70% 60% at 0% 80%, rgba(201, 169, 98, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, var(--linen) 0%, var(--mist) 45%, var(--cream) 100%);
}

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    radial-gradient(at 40% 20%, rgba(184, 90, 66, 0.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(201, 169, 98, 0.2) 0px, transparent 45%),
    radial-gradient(at 0% 50%, rgba(232, 212, 184, 0.25) 0px, transparent 50%),
    radial-gradient(at 80% 80%, rgba(184, 90, 66, 0.08) 0px, transparent 40%);
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  animation: orb-float 22s ease-in-out infinite;
}

.bg-orb--1 {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: -5%;
  right: -5%;
  background: radial-gradient(circle, rgba(212, 120, 92, 0.35) 0%, transparent 68%);
}

.bg-orb--2 {
  width: min(50vw, 400px);
  height: min(50vw, 400px);
  bottom: 5%;
  left: -10%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.4) 0%, transparent 70%);
  animation-delay: -7s;
}

.bg-orb--3 {
  width: min(35vw, 260px);
  height: min(35vw, 260px);
  top: 38%;
  left: 55%;
  background: radial-gradient(circle, rgba(245, 239, 230, 0.9) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(1.5%, -2%) scale(1.03); }
  66% { transform: translate(-1%, 1.5%) scale(0.98); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(30, 18, 16, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 18, 16, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 75%);
}

.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Skip link ─── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--terracotta);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ─── Header (frosted light) ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(251, 248, 243, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  min-height: 44px;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--terracotta-light), var(--terracotta-dark));
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(184, 90, 66, 0.28);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, transparent 50%);
}

.brand__mark svg {
  width: 22px;
  height: 22px;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--espresso);
}

.brand__tag {
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
}

.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 10px 18px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  transition: color 0.2s, background 0.25s var(--ease-out), box-shadow 0.25s;
}

.nav a:hover {
  color: var(--espresso);
  background: rgba(255, 255, 255, 0.9);
}

.nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.nav a.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  box-shadow: 0 4px 16px rgba(184, 90, 66, 0.3);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--espresso);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    top: calc(var(--nav-height) + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 12px;
    border-radius: var(--radius-md);
    transform: translateY(-8px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.3s, visibility 0.3s;
  }

  .nav.is-open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
    box-shadow: var(--shadow-lg);
  }

  .nav a {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
}

/* ─── Cinematic hero ─── */
.page {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  padding: clamp(56px, 12vw, 112px) clamp(20px, 5vw, 48px) clamp(40px, 8vw, 72px);
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
}

.hero__frame {
  position: relative;
  padding: clamp(40px, 8vw, 64px) clamp(24px, 5vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  animation: hero-reveal 1s var(--ease-out) 0.1s forwards;
}

.hero__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(251, 248, 243, 0.6) 50%,
    rgba(232, 212, 184, 0.15) 100%
  );
  pointer-events: none;
}

.hero__shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 180deg at 50% 50%,
    transparent 0deg,
    rgba(201, 169, 98, 0.08) 60deg,
    transparent 120deg
  );
  animation: shine-rotate 20s linear infinite;
  pointer-events: none;
}

@keyframes shine-rotate {
  to { transform: rotate(360deg); }
}

.hero__ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 98, 0.2);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.hero__ring--2 {
  width: 180px;
  height: 180px;
  top: auto;
  bottom: -40px;
  left: -30px;
  right: auto;
  border-color: rgba(184, 90, 66, 0.15);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__overline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
  padding: 8px 16px;
  background: rgba(184, 90, 66, 0.08);
  border: 1px solid rgba(184, 90, 66, 0.15);
  border-radius: 100px;
}

.hero__overline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 12px rgba(184, 90, 66, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--espresso);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 32rem;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.badge svg {
  width: 16px;
  height: 16px;
  color: var(--terracotta);
  flex-shrink: 0;
}

@keyframes hero-reveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Trust strip (bento mini) */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  max-width: 1140px;
  margin: -24px auto 0;
  padding: 0 clamp(16px, 4vw, 48px) clamp(32px, 6vw, 48px);
  position: relative;
  z-index: 3;
}

.trust-item {
  padding: 20px;
  text-align: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  animation: fade-up 0.6s var(--ease-out) forwards;
}

.trust-item:nth-child(1) { animation-delay: 0.35s; }
.trust-item:nth-child(2) { animation-delay: 0.42s; }
.trust-item:nth-child(3) { animation-delay: 0.49s; }

.trust-item__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--espresso);
  line-height: 1;
  margin-bottom: 4px;
}

.trust-item__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ─── Content ─── */
.content-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) clamp(72px, 12vw, 128px);
}

.content-grid {
  display: grid;
  gap: clamp(24px, 4vw, 32px);
}

@media (min-width: 960px) {
  .content-grid--aside {
    grid-template-columns: 1fr minmax(260px, 300px);
    align-items: start;
  }
}

.glass-card {
  position: relative;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow-md);
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) forwards;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--champagne));
  opacity: 0.85;
}

.glass-card:nth-child(1) { animation-delay: 0.55s; }
.glass-card:nth-child(2) { animation-delay: 0.62s; }

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--espresso);
  margin: 2.25rem 0 0.875rem;
  scroll-margin-top: calc(var(--nav-height) + 24px);
  display: flex;
  align-items: center;
  gap: 12px;
}

.prose h2::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--terracotta), var(--gold));
  flex-shrink: 0;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--cocoa);
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.prose a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 90, 66, 0.35);
  transition: color 0.2s, border-color 0.2s;
}

.prose a:hover {
  color: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

.prose strong {
  color: var(--espresso);
  font-weight: 700;
}

/* TOC */
.toc {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  padding: 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  animation: fade-up 0.7s var(--ease-out) 0.6s forwards;
}

.toc__title {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-bottom: 16px;
}

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color 0.2s, padding-left 0.2s;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--terracotta);
  padding-left: 8px;
  outline: none;
}

/* Cards bento */
.cards {
  display: grid;
  gap: 20px;
}

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

.card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  opacity: 0;
  animation: fade-up 0.65s var(--ease-out) forwards;
  overflow: hidden;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.6) 0%, transparent 45%);
  pointer-events: none;
}

.card:nth-child(1) { animation-delay: 0.4s; }
.card:nth-child(2) { animation-delay: 0.48s; }
.card:nth-child(3) { animation-delay: 0.56s; }

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(201, 169, 98, 0.35);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(184, 90, 66, 0.12), rgba(201, 169, 98, 0.2));
  border: 1px solid rgba(201, 169, 98, 0.25);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--terracotta);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card--featured {
  background: linear-gradient(145deg, var(--espresso) 0%, #2a1a16 100%);
  border-color: rgba(201, 169, 98, 0.2);
}

.card--featured h3,
.card--featured p {
  color: var(--champagne);
}

.card--featured p {
  color: rgba(232, 212, 184, 0.85);
}

.card--featured .card__icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.card--featured .card__icon svg {
  color: var(--gold);
}

.card--featured .btn--primary {
  background: linear-gradient(135deg, var(--champagne), var(--gold));
  color: var(--espresso);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.card--featured .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--champagne);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-dark));
  color: var(--white);
  box-shadow: 0 8px 28px rgba(184, 90, 66, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(184, 90, 66, 0.42);
}

.btn--ghost {
  background: var(--white);
  color: var(--espresso);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn--danger {
  background: linear-gradient(135deg, #c44a4a, var(--error));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(168, 50, 50, 0.25);
}

.btn--danger:hover {
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  transition: background 0.2s;
}

.faq-item[open] {
  background: linear-gradient(90deg, rgba(184, 90, 66, 0.04) 0%, transparent 100%);
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
  border-radius: var(--radius-sm);
}

.faq-item summary {
  font-weight: 700;
  color: var(--espresso);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}

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

.faq-item summary::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mist);
  border: 1px solid var(--border);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b85a42' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s var(--ease-spring), background 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background-color: rgba(184, 90, 66, 0.1);
}

.faq-item p {
  margin-top: 14px;
  padding-right: 44px;
  color: var(--text-secondary);
}

/* Forms */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--cocoa);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 169, 98, 0.2);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.form-group label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--terracotta);
}

.alert {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 28px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.alert--warning {
  background: linear-gradient(135deg, #fff9ed 0%, #fff5e0 100%);
  border: 1px solid rgba(184, 134, 11, 0.25);
  color: #7a5c1a;
}

.alert--warning strong {
  color: #5c4510;
}

.alert--info {
  background: linear-gradient(135deg, #f0f7f2 0%, #e8f2eb 100%);
  border: 1px solid rgba(61, 107, 79, 0.2);
  color: #2d5a3d;
}

.alert svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--terracotta);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  position: relative;
  padding: 20px 20px 20px 72px;
  margin-bottom: 12px;
  background: var(--mist);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(184, 90, 66, 0.3);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  padding: 48px clamp(20px, 5vw, 48px);
  background: linear-gradient(180deg, transparent 0%, rgba(232, 212, 184, 0.25) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 8px;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 16px;
}

/* Section title outside cards */
.section-head {
  text-align: center;
  max-width: 520px;
  margin: 0 auto clamp(32px, 6vw, 48px);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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