:root {
  --bg-canvas: #f3e9d8;
  --bg-surface: #fff9ed;
  --bg-surface-elevated: #ffffff;
  --text-primary: #262626;
  --text-muted: #5e5950;
  --accent-forest: #28634a;
  --accent-forest-light: #3a8364;
  --accent-forest-subtle: rgba(40, 99, 74, 0.08);
  --border-forest: #28634a;
  --border-forest-subtle: rgba(40, 99, 74, 0.22);
  --sand-band: #ecdcc3;
  --cream-band: #fff9ed;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1100px;
}

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

html {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
  hyphens: auto;
  background-color: var(--bg-canvas);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted);
}

a {
  color: var(--accent-forest);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-kinetic);
}

a:hover, a:focus-visible {
  color: var(--accent-forest-light);
}

/* Accessibility Focus */
:focus-visible {
  outline: 2px solid var(--accent-forest);
  outline-offset: 3px;
}

/* Layout bands */
.band {
  width: 100%;
  padding: 4.5rem 1.5rem;
}

.band-cream {
  background-color: var(--cream-band);
}

.band-sand {
  background-color: var(--sand-band);
}

.band-gradient {
  background: radial-gradient(circle at 50% 30%, rgba(40, 99, 74, 0.12) 0%, var(--bg-canvas) 70%);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.prose-measure {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}

/* Header: Never fixed/sticky, brand far left */
.site-header {
  position: relative;
  width: 100%;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-forest-subtle);
  padding: 1.1rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background-color: var(--accent-forest);
  border-radius: 50%;
  display: inline-block;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease-kinetic);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-forest);
  background-color: var(--accent-forest-subtle);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
}

.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border-forest);
  padding: 1.2rem;
  z-index: 100;
  flex-direction: column;
  gap: 0.8rem;
}

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

.mobile-nav-drawer a {
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.7rem;
  background-color: var(--accent-forest);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-kinetic), transform 0.15s ease;
}

.btn:hover {
  background-color: var(--accent-forest-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--accent-forest) !important;
  border: 1px solid var(--border-forest);
}

.btn-secondary:hover {
  background-color: var(--accent-forest-subtle);
  transform: translateY(-2px);
}

/* Cards & Surfaces */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-forest-subtle);
  border-radius: var(--radius-card);
  padding: 1.8rem;
  box-shadow: none;
  transition: border-color 0.25s var(--ease-kinetic);
}

.card:hover {
  border-color: var(--border-forest);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

/* Hero Section */
.hero-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-forest-subtle);
  display: block;
}

.hero-facts-panel {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-forest);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  max-width: 320px;
  box-shadow: none;
}

.fact-item {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-forest-subtle);
  padding-bottom: 0.6rem;
}

.fact-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.fact-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--accent-forest);
}

.fact-desc {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Shade Ladders & Undertone Comparison Modules */
.shade-ladder {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.ladder-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-forest-subtle);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.ladder-chip {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.15);
}

.ladder-info h4 {
  margin-bottom: 0.15rem;
  font-size: 1rem;
}

.ladder-info p {
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Side-by-side undertone matrices */
.undertone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.undertone-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-forest-subtle);
  border-radius: var(--radius-card);
  padding: 1.5rem;
}

.undertone-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--accent-forest-subtle);
  color: var(--accent-forest);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

/* Pairing Matrix */
.pairing-matrix {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  border: 1px solid var(--border-forest-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--bg-surface);
}

.pairing-matrix th, .pairing-matrix td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-forest-subtle);
}

.pairing-matrix th {
  background-color: var(--sand-band);
  font-weight: 700;
  color: var(--text-primary);
}

.pairing-matrix tr:last-child td {
  border-bottom: none;
}

.swatch-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mini-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  display: inline-block;
}

/* Numbered look steps */
.step-sequence {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.step-card {
  display: flex;
  gap: 1.5rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-forest-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--accent-forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

/* Images */
img.content-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-forest-subtle);
  margin-bottom: 1.25rem;
  display: block;
}

/* Accordion FAQ */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-forest-subtle);
  border-radius: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background-color: var(--accent-forest-subtle);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  display: none;
}

.faq-answer.open {
  display: block;
}

/* Form Styles */
.tool-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-forest);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-forest-subtle);
  background-color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
}

.form-control:focus {
  outline: 2px solid var(--accent-forest);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.action-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.status-badge {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  background-color: var(--accent-forest-subtle);
  color: var(--accent-forest);
  margin-top: 0.75rem;
}

/* Footer: domain as visible text, linked to ./, email @jumbiqmatmix.makeup, (c) 2026 */
.site-footer {
  margin-top: auto;
  background-color: var(--sand-band);
  border-top: 1px solid var(--border-forest-subtle);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand-domain {
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-legal-identity {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--accent-forest);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-forest);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-forest-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Scroll reveal helper */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-kinetic), transform 0.6s var(--ease-kinetic);
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
  }
  .hero-facts-panel {
    position: static;
    margin-top: -1.5rem;
    max-width: 100%;
  }
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .band {
    padding: 3rem 1.2rem;
  }
}

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