/* ============ TOKENS ============ */
:root,
[data-theme='light'] {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --color-bg: #f7f5f1;
  --color-surface: #fdfcfa;
  --color-surface-offset: #efece6;
  --color-divider: #e2ded6;
  --color-border: #d3cec4;
  --color-text: #23201a;
  --color-text-muted: #6d685f;
  --color-text-faint: #b3aea4;
  --color-text-inverse: #f9f8f4;
  --color-primary: #8f6400;
  --color-primary-hover: #755200;
  --color-primary-active: #5e4200;
  --color-primary-highlight: #f2e6c8;
  --color-gold-bright: #d9a531;
  --color-gold-bright-hover: #e5b64a;
  --color-on-gold: #1a130c;
  --color-dark-panel: #23201a;

  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-full: 9999px;
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
  --content-wide: 1160px;

  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #171512;
  --color-surface: #1e1c18;
  --color-surface-offset: #24211c;
  --color-divider: #2b2823;
  --color-border: #3c3830;
  --color-text: #d4d1cb;
  --color-text-muted: #8f8b82;
  --color-text-faint: #5c5850;
  --color-text-inverse: #23201a;
  --color-primary: #e0b04a;
  --color-primary-hover: #eabf68;
  --color-primary-active: #cf9c33;
  --color-primary-highlight: #3a3016;
  --color-dark-panel: #14120f;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: none; text-size-adjust: none;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  scroll-behavior: smooth; scroll-padding-top: var(--space-20);
}
body {
  min-height: 100dvh; line-height: 1.6;
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background-color: var(--color-bg);
}
img, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; line-height: 1.12; font-family: var(--font-display); }
p, li { text-wrap: pretty; max-width: 72ch; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; }
::selection { background: oklch(from var(--color-primary) l c h / 0.25); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
a, button, input, textarea, [role='button'] {
  transition: color var(--transition-interactive), background var(--transition-interactive),
    border-color var(--transition-interactive), box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

.container { width: min(var(--content-wide), 100% - clamp(2rem, 6vw, 4rem)); margin-inline: auto; }
.eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-3);
}
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-24)); }
.section--offset { background: var(--color-surface-offset); }
.section__title { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-8); letter-spacing: -0.01em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 600; font-size: var(--text-sm); text-decoration: none;
  border-radius: var(--radius-md); white-space: nowrap;
}
.btn--sm { padding: var(--space-2) var(--space-4); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
[data-theme='dark'] .btn--primary { color: #1a130c; }
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn--primary:active { background: var(--color-primary-active); transform: none; }
.btn--ghost { background: oklch(1 0 0 / 0.12); color: #fff; border: 1px solid oklch(1 0 0 / 0.45); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: oklch(1 0 0 / 0.22); border-color: #fff; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(from var(--color-dark-panel) l c h / 0.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid oklch(1 0 0 / 0.08);
}
.header .btn--primary { background: var(--color-gold-bright); color: var(--color-on-gold); }
.header .btn--primary:hover { background: var(--color-gold-bright-hover); }
.header__inner { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-3); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand__mark-img { height: 42px; width: auto; display: block; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; color: #f6f3ec; }
.brand__tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #d9b459; }
.nav { display: flex; gap: var(--space-6); margin-left: auto; }
.nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: #b5afa2; }
.nav a:hover { color: #fff; }
.header__actions { display: flex; align-items: center; gap: var(--space-4); }
.header__phone {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; text-decoration: none; color: #ece8df;
  white-space: nowrap;
}
.header__phone:hover { color: #ecc363; }
.theme-toggle { display: inline-flex; padding: var(--space-2); border-radius: var(--radius-full); color: #b5afa2; }
.theme-toggle:hover { color: #fff; background: oklch(1 0 0 / 0.08); }

@media (max-width: 1120px) {
  .header__inner { gap: var(--space-4); }
  .nav { gap: var(--space-4); }
  .brand__text { display: none; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .brand__text { display: flex; }
  .header__phone span { display: none; }
}
@media (max-width: 640px) {
  .header__actions .btn { display: none; }
  .header__inner { justify-content: space-between; }
}

/* ============ HERO ============ */
.hero { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, oklch(0.18 0.02 70 / 0.88) 0%, oklch(0.2 0.02 70 / 0.62) 48%, oklch(0.25 0.02 70 / 0.28) 100%);
}
.hero__content { position: relative; z-index: 1; padding-block: clamp(var(--space-20), 12vw, var(--space-32)); color: #fff; }
.hero__content .eyebrow { color: #ecc363; }
.hero__content h1 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.02em; margin-bottom: var(--space-5); }
.hero__sub { font-size: var(--text-lg); line-height: 1.5; max-width: 34em; color: oklch(0.96 0.005 80 / 0.92); margin-bottom: var(--space-8); font-weight: 400; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }

/* ============ TRUST STRIP ============ */
.strip { background: var(--color-dark-panel); color: var(--color-text-inverse); }
[data-theme='dark'] .strip { color: var(--color-text); border-block: 1px solid var(--color-divider); }
.strip__inner {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(var(--space-6), 4vw, var(--space-12)); padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.strip__item { display: flex; gap: var(--space-4); align-items: flex-start; }
.strip__item svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--color-primary); margin-top: 2px; }
[data-theme='light'] .strip__item svg, :root:not([data-theme='dark']) .strip__item svg { color: #e08b45; }
.strip__item h3 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-1); }
.strip__item p { font-size: var(--text-sm); color: oklch(0.85 0.01 80 / 0.75); }
[data-theme='dark'] .strip__item p { color: var(--color-text-muted); }
@media (max-width: 820px) { .strip__inner { grid-template-columns: 1fr; } }

/* ============ SERVICES ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { padding: var(--space-5) var(--space-5) var(--space-6); }
.card__body h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.card__body p { font-size: var(--text-sm); color: var(--color-text-muted); }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.services__note {
  margin-top: var(--space-8); padding: var(--space-5) var(--space-6);
  background: var(--color-primary-highlight); border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
}
.services__note p { font-size: var(--text-sm); max-width: none; }

/* ============ PROCESS ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); list-style: none; counter-reset: step; }
.step {
  background: var(--color-surface); border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6) var(--space-6);
  position: relative; box-shadow: var(--shadow-sm);
}
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--color-primary); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  margin-bottom: var(--space-4);
}
[data-theme='dark'] .step__num { color: #1a130c; }
.step h3 { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--color-text-muted); }
.steps__cta { margin-top: var(--space-10); text-align: center; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ============ WHY ============ */
.why { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; }
.why__list { list-style: none; display: grid; gap: var(--space-5); }
.why__list li { padding-left: var(--space-8); position: relative; font-size: var(--text-base); color: var(--color-text-muted); }
.why__list li strong { color: var(--color-text); display: block; }
.why__list li::before {
  content: ''; position: absolute; left: 0; top: 0.4em;
  width: 18px; height: 18px; border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  border: 2px solid var(--color-primary);
}
.why__img img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 100%; object-fit: cover; }
@media (max-width: 880px) { .why { grid-template-columns: 1fr; } .why__img { order: -1; } }

/* ============ CONTACT ============ */
.section--contact { background: var(--color-dark-panel); color: var(--color-text-inverse); }
[data-theme='dark'] .section--contact { color: var(--color-text); border-top: 1px solid var(--color-divider); }
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.contact__intro .section__title { color: inherit; }
.contact__intro > p { color: oklch(0.85 0.01 80 / 0.8); }
[data-theme='dark'] .contact__intro > p { color: var(--color-text-muted); }
.contact__intro .eyebrow { color: #ecc363; }
.contact__direct { margin-top: var(--space-8); display: grid; gap: var(--space-4); }
.contact__line {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-lg); font-weight: 600; text-decoration: none; color: inherit;
  font-family: var(--font-display);
}
.contact__line:hover { color: #f4b27f; }
.contact__line svg { color: #e08b45; flex-shrink: 0; }

.form {
  background: var(--color-surface); color: var(--color-text);
  border-radius: var(--radius-xl); padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-lg); display: grid; gap: var(--space-5); position: relative;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--space-2); }
.field label, .field legend { font-size: var(--text-sm); font-weight: 600; }
.field label span[aria-hidden], .field legend .hint { color: var(--color-text-muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-bg); font-size: var(--text-sm);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.18); }
.field input.field--error, .field textarea.field--error { border-color: #b3261e; }
.field textarea { resize: vertical; min-height: 96px; }
.field--chips { border: none; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-1); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border); border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 500; color: var(--color-text-muted);
  transition: all var(--transition-interactive); cursor: pointer;
}
.chip:hover span { border-color: var(--color-primary); color: var(--color-text); }
.chip input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 600; }
[data-theme='dark'] .chip input:checked + span { color: #1a130c; }
.chip input:focus-visible + span { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.form__submit { width: 100%; }
.form__note { font-size: var(--text-xs); color: var(--color-text-faint); text-align: center; max-width: none; }
.form__success[hidden] { display: none; }
.form__success {
  position: absolute; inset: 0; border-radius: var(--radius-xl);
  background: var(--color-surface); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: var(--space-3); padding: var(--space-8);
}
.form__success svg { color: var(--color-primary); }
.form__success h3 { font-size: var(--text-xl); }
.form__success p { color: var(--color-text-muted); font-size: var(--text-sm); }
.form__success a { color: var(--color-primary); font-weight: 600; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.footer { background: var(--color-dark-panel); padding-block: var(--space-12) var(--space-10); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-6); }
.footer__logo { width: min(300px, 72vw); height: auto; display: block; }
.footer__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4) var(--space-6); font-size: var(--text-sm); color: #b5afa2; }
.footer__contact a { text-decoration: none; color: #ece8df; }
.footer__contact a:hover { color: #ecc363; }
.footer__legal { font-size: var(--text-xs); color: #6e6759; }

.desktop-br { display: none; }
@media (min-width: 720px) { .desktop-br { display: inline; } }
