/* ══════════════════════════════════════════════
   NEST v2 — Redesign stylesheet
   Three directions controlled by [data-dir] on <html>
   ══════════════════════════════════════════════ */

/* Fonts are declared in colors_and_type.css (loaded first). */

:root {
  --bg: #F5F0E8;
  --bg-2: #EDE8DC;
  --bg-dark: #0A0A0A;
  --bg-dark-2: #111111;
  --ink: #1A1714;
  --ink-2: #4A4540;
  --ink-3: #9A9490;
  --on-dark: #FAF8F4;
  --on-dark-2: rgba(245,240,232,0.6);
  --on-dark-3: rgba(245,240,232,0.3);
  --accent: #B87333;
  --accent-2: #D4956B;
  --line: rgba(26,23,20,0.1);
  --line-dk: rgba(184,115,51,0.22);
  --line-on-dark: rgba(245,240,232,0.1);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Barlow', -apple-system, sans-serif;
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ── Accent swatches (Tweak) ── */
[data-accent="copper"]   { --accent:#B87333; --accent-2:#D4956B; }
[data-accent="brass"]    { --accent:#C8A96E; --accent-2:#DDC38E; }
[data-accent="oxblood"]  { --accent:#7A2E2E; --accent-2:#A64545; }
[data-accent="forest"]   { --accent:#3E5642; --accent-2:#5F7D62; }
[data-accent="ink"]      { --accent:#1F2937; --accent-2:#475569; }

/* ── Type mode (Tweak) ── */
[data-type="sans"] h1, [data-type="sans"] h2, [data-type="sans"] h3, [data-type="sans"] h4,
[data-type="sans"] .display, [data-type="sans"] .svc-name, [data-type="sans"] .stat-num {
  font-family: var(--sans); font-weight: 300;
}
[data-type="sans"] h1 em, [data-type="sans"] h2 em, [data-type="sans"] h3 em { font-style: normal; font-weight: 500; }

/* ── Theme mode (Tweak) ── */
[data-theme="cream"] { --page-bg: var(--bg); --page-ink: var(--ink); --page-ink-2: var(--ink-2); }
[data-theme="dark"]  { --page-bg: var(--bg-dark); --page-ink: var(--on-dark); --page-ink-2: var(--on-dark-2); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--page-bg, var(--bg)); color: var(--page-ink, var(--ink)); font-family: var(--sans); font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* ══════════════════════════════════════════════
   CHROME — Nav, logo
   ══════════════════════════════════════════════ */

.nv {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1.4rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--page-bg, var(--bg)) 92%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
[data-theme="dark"] .nv { border-bottom-color: var(--line-on-dark); }

.nv-logo { display: inline-flex; align-items: center; line-height: 1; }
.nv-logo .L { font-family: var(--serif); font-style: normal !important; font-weight: 400; font-size: 22px; padding: 0 0.18em; letter-spacing: 0.02em; color: inherit; }
.nv-logo .D { display: inline-block; width: 1px; height: 26px; background: currentColor; opacity: 0.28; align-self: center; }

.nv-links { display: flex; gap: clamp(1.3rem, 3vw, 2.6rem); list-style: none; }
.nv-links a {
  position: relative;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--page-ink, var(--ink)) 60%, transparent);
  padding: 6px 0;
  transition: color .2s;
}
.nv-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nv-links a:hover, .nv-links a.active { color: var(--accent); }
.nv-links a:hover::after, .nv-links a.active::after { transform: scaleX(1); }

.nv-cta {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  transition: background .2s, color .2s;
}
.nv-cta:hover { background: var(--accent); color: var(--page-bg, var(--bg)); }
.nv-phone { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: color-mix(in srgb, var(--page-ink, var(--ink)) 60%, transparent); margin-right: 18px; transition: color .2s; }
.nv-phone:hover { color: var(--accent); }
@media (max-width: 980px) { .nv-phone { display: none; } }

.nv-hamb { display: none; width: 28px; height: 18px; flex-direction: column; justify-content: space-between; }
.nv-hamb span { height: 1px; background: currentColor; }

@media (max-width: 860px) {
  .nv-links, .nv-cta { display: none; }
  .nv-hamb { display: flex; }
  .nv.open + .sheet { transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   CONTAINERS & shared bits
   ══════════════════════════════════════════════ */

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(1.4rem, 4vw, 3rem); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.kicker::before { content: ''; display: block; width: 22px; height: 1px; background: var(--accent); }

.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent); font-weight: 400;
}

.display {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display em { font-style: italic; color: var(--accent); font-weight: 300; }

.title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.008em;
}
.title em { font-style: italic; color: var(--accent); }

.sub-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
}
.sub-title em { font-style: italic; color: var(--accent); }

.lede {
  font-family: var(--sans); font-weight: 300;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: color-mix(in srgb, var(--page-ink, var(--ink)) 72%, transparent);
  max-width: 40ch;
}
[data-theme="dark"] .lede { color: var(--on-dark-2); }

.body-copy { font-size: 0.9rem; line-height: 1.85; color: color-mix(in srgb, var(--page-ink, var(--ink)) 72%, transparent); }
[data-theme="dark"] .section.dark .body-copy, [data-theme="dark"] :not(.section) > .body-copy, [data-theme="dark"] .hero .body-copy { color: var(--on-dark-2); }
.section.cream .body-copy, .section.linen .body-copy { color: color-mix(in srgb, var(--ink) 72%, transparent) !important; }
.section.cream .lede, .section.linen .lede { color: color-mix(in srgb, var(--ink) 72%, transparent) !important; }
.section.cream, .section.linen { color: var(--ink); }
.section.cream h2, .section.cream h3, .section.cream h4, .section.linen h2, .section.linen h3, .section.linen h4 { color: var(--ink); }
.section.cream .contact-list a, .section.cream .contact-list span, .section.linen .contact-list a, .section.linen .contact-list span { color: var(--ink) !important; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  padding: 16px 30px;
  border: 1px solid transparent;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #0A0A0A; }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { border-color: currentColor; color: color-mix(in srgb, var(--page-ink, var(--ink)) 60%, transparent); }
[data-theme="dark"] .btn-secondary { color: var(--on-dark-2); border-color: var(--line-on-dark); }
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }
.btn-arrow::after { content: '→'; font-weight: 300; transition: transform .25s var(--ease); }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  color: var(--accent);
  padding: 4px 0;
  border-bottom: 1px solid currentColor;
  transition: gap .25s var(--ease);
}
.btn-link:hover { gap: 16px; }

/* ── Sections ── */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section.dark { background: var(--bg-dark); color: var(--on-dark); --page-ink: var(--on-dark); }
.section.cream { background: var(--bg); color: var(--ink); --page-ink: var(--ink); }
.section.linen { background: var(--bg-2); color: var(--ink); --page-ink: var(--ink); }
.section.dark .body-copy { color: var(--on-dark-2); }

/* Editorial section header */
.sec-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.sec-head .intro .kicker { margin-bottom: 1.5rem; }
@media (max-width: 720px) { .sec-head { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Reveal animation (light touch) */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise .8s var(--ease) both; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }
.rise-4 { animation-delay: .36s; }
.rise-5 { animation-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
}
