/* ═══════════════════════════════════════════════════════════════
   TACHET — SHARED DESIGN SYSTEM
   Used by all pages. Page-specific styles remain inline where needed.
═══════════════════════════════════════════════════════════════════ */

:root {
  --forest-deep: #061F1A;
  --forest: #0E3B2F;
  --forest-light: #1A4D3E;
  --forest-mist: #2A6253;
  --gold: #C9A961;
  --gold-bright: #E5C57B;
  --gold-deep: #9B7F3F;
  --cream: #F4EBD9;
  --cream-warm: #EFE4CC;
  --paper: #FCF8EE;
  --coral: #D9694A;
  --coral-deep: #B14F33;
  --ink: #0A1814;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Bricolage Grotesque', system-ui, sans-serif;

  --container: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--cream);
  background: var(--forest-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--forest-deep); }

/* ─────────── BAMILÉKÉ PATTERN ─────────── */
.pattern-bg {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='%23C9A961' stroke-width='0.6' opacity='0.18'><path d='M30 0 L60 30 L30 60 L0 30 Z'/><path d='M30 12 L48 30 L30 48 L12 30 Z'/><circle cx='30' cy='30' r='3'/><path d='M0 0 L12 12 M48 12 L60 0 M0 60 L12 48 M48 48 L60 60'/></g></svg>");
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.pattern-bg.on-cream {
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%230E3B2F' stroke-width='0.7' opacity='0.08'><path d='M40 0 L80 40 L40 80 L0 40 Z'/><path d='M40 16 L64 40 L40 64 L16 40 Z'/><circle cx='40' cy='40' r='4'/><path d='M40 32 L48 40 L40 48 L32 40 Z' fill='%230E3B2F' fill-opacity='0.5'/></g></svg>");
  background-size: 80px 80px;
}

/* ─────────── NAV ─────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: rgba(6, 31, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.nav.always-solid {
  background: rgba(6, 31, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo::after {
  content: '™';
  font-size: 0.6em;
  color: var(--gold);
  vertical-align: super;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  padding: 0.65rem 1.4rem;
  background: var(--gold);
  color: var(--forest-deep);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.3s, transform 0.3s;
}
.nav-cta:hover { background: var(--gold-bright); transform: translateY(-1px); }

@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* ─────────── BUTTONS ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.05rem 2rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--forest-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(244, 235, 217, 0.3);
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(244, 235, 217, 0.05);
}
.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ─────────── SECTIONS / TYPOGRAPHY ─────────── */
section {
  position: relative;
  padding: clamp(5rem, 12vh, 10rem) var(--gutter);
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
}
.section-num {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.section-num::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.section-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 144;
}
.section-headline .em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-bright);
}
.section-body {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(244, 235, 217, 0.78);
  font-weight: 300;
  max-width: 60ch;
}
.section-body p + p { margin-top: 1.3rem; }

/* Inverted sections on cream */
.on-cream {
  background: var(--cream);
  color: var(--forest-deep);
}
.on-cream .section-num { color: var(--coral-deep); }
.on-cream .section-num::before { background: var(--coral-deep); }
.on-cream .section-headline { color: var(--forest-deep); }
.on-cream .section-headline .em { color: var(--coral-deep); }
.on-cream .section-body { color: rgba(14, 59, 47, 0.85); }

/* ─────────── SUB-PAGE HERO ─────────── */
.page-hero {
  position: relative;
  padding: 13rem var(--gutter) 7rem;
  background: var(--forest-deep);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(201, 169, 97, 0.15), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(217, 105, 74, 0.08), transparent 50%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}
.page-hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.page-hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 2rem;
  font-variation-settings: "opsz" 144;
  max-width: 18ch;
}
.page-hero-headline .em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold-bright);
}
.page-hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(244, 235, 217, 0.78);
  max-width: 60ch;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
.page-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─────────── CONTENT BLOCKS ─────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.split.equal { grid-template-columns: 1fr 1fr; }
.split.center { align-items: center; }
@media (max-width: 900px) {
  .split, .split.equal { grid-template-columns: 1fr; gap: 3rem; }
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  padding: 2.5rem 2rem;
  border: 1px solid rgba(201, 169, 97, 0.22);
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.04), transparent);
  position: relative;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgba(201, 169, 97, 0.5);
  background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), transparent);
  transform: translateY(-3px);
}
.card-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-style: italic;
  letter-spacing: 0.04em;
}
.card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}
.card-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(244, 235, 217, 0.7);
  font-weight: 300;
}

.on-cream .card {
  border-color: rgba(14, 59, 47, 0.18);
  background: linear-gradient(135deg, rgba(14, 59, 47, 0.03), transparent);
}
.on-cream .card:hover {
  border-color: rgba(14, 59, 47, 0.4);
  background: linear-gradient(135deg, rgba(14, 59, 47, 0.06), transparent);
}
.on-cream .card-num { color: var(--coral-deep); }
.on-cream .card-title { color: var(--forest-deep); }
.on-cream .card-body { color: rgba(14, 59, 47, 0.75); }

/* Numbered list */
.bigpoints {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bigpoints li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
  align-items: baseline;
}
.bigpoints li:last-child { border-bottom: none; }
.bigpoints .bp-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
}
.bigpoints .bp-text {
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(244, 235, 217, 0.85);
}
.bigpoints .bp-text strong {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--cream);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.on-cream .bigpoints li { border-bottom-color: rgba(14, 59, 47, 0.15); }
.on-cream .bigpoints .bp-num { color: var(--coral-deep); }
.on-cream .bigpoints .bp-text { color: rgba(14, 59, 47, 0.8); }
.on-cream .bigpoints .bp-text strong { color: var(--forest-deep); }

/* ─────────── FORMS ─────────── */
.form-section {
  background: linear-gradient(135deg, var(--forest-deep) 0%, var(--forest) 50%, var(--forest-deep) 100%);
  position: relative;
  overflow: hidden;
}
.form-section .container { max-width: 880px; position: relative; z-index: 2; }

.form {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form .full { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .form { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.field input, .field select, .field textarea {
  padding: 1rem 1.2rem;
  background: rgba(244, 235, 217, 0.05);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 4px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.3s, background 0.3s;
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; font-family: var(--sans); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4 L6 8 L10 4' stroke='%23C9A961' stroke-width='1.5' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.field option { background: var(--forest-deep); color: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(244, 235, 217, 0.08);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(244, 235, 217, 0.35); }

.form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.82rem;
  color: rgba(244, 235, 217, 0.5);
  max-width: 40ch;
}

/* Decorative diamond */
.deco-diamond {
  position: absolute;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(201, 169, 97, 0.18);
  transform: rotate(45deg);
  z-index: 1;
}
.deco-diamond.dd-1 { top: -120px; left: -120px; }
.deco-diamond.dd-2 { bottom: -120px; right: -120px; }

/* ─────────── FOOTER ─────────── */
footer {
  background: var(--ink);
  padding: 5rem var(--gutter) 2.5rem;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.footer-brand-tag {
  font-size: 0.9rem;
  color: rgba(244, 235, 217, 0.55);
  line-height: 1.6;
  max-width: 32ch;
}
.footer-col-title {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a {
  color: rgba(244, 235, 217, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(244, 235, 217, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(244, 235, 217, 0.4);
  letter-spacing: 0.08em;
}
.footer-compliance {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-compliance span {
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─────────── ANIMATIONS ─────────── */
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
