/* ==========================================================================
   NORTH INDY WINDOWS — DESIGN TOKENS
   Design plan:
   - Subject: window replacement — glass, light, clean sightlines, craftsmanship.
   - Palette: architectural charcoal (cooler than pure black, evokes glass/dusk),
     warm stone off-white, restrained brass/bronze accent (window hardware),
     a whisper of glass-blue used only for "light" moments.
   - Type: Cormorant Garamond (display serif, architectural elegance) paired with
     Outfit (clean geometric sans for body/UI) — premium home-improvement register.
   - Signature element: thin brass hairlines that mimic window muntins (the grid
     bars that divide window panes) used as a structural device across nav,
     dividers, and card frames — ties the visual system to the literal subject
     instead of decorating for decoration's sake.
   ========================================================================== */

:root {
  /* Core palette */
  --ink: #12151a;
  --ink-soft: #2a2f37;
  --charcoal: #0b0d0f;
  --charcoal-2: #14171b;
  --charcoal-3: #1b1f24;
  --stone: #f5f1ea;
  --stone-dim: #e7e1d4;
  --brass: #c9a15c;
  --brass-bright: #ddb876;
  --brass-dim: #8a6f3f;
  --glass: #b9d6dc;
  --glass-dim: #6f8b90;
  --line: rgba(245, 241, 234, 0.12);
  --line-soft: rgba(245, 241, 234, 0.06);
  --line-dark: rgba(18, 21, 26, 0.1);

  /* Semantic */
  --bg: var(--charcoal);
  --bg-elevated: var(--charcoal-2);
  --bg-card: var(--charcoal-3);
  --bg-light: var(--stone);
  --bg-light-2: var(--stone-dim);
  --text-on-dark: var(--stone);
  --text-on-dark-dim: rgba(245, 241, 234, 0.62);
  --text-on-light: var(--ink);
  --text-on-light-dim: rgba(18, 21, 26, 0.62);
  --accent: var(--brass);
  --accent-bright: var(--brass-bright);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-5: clamp(3.4rem, 2.3rem + 5.2vw, 6.4rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  /* Radii — restrained, architectural (not squircle-heavy; this brand reads via
     hairlines/frames, not bubbly rounding) */
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;

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

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* Muntin hairline — the signature structural device (mimics a window's grid bar) */
.muntin {
  position: relative;
}
.muntin::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.muntin-v {
  position: relative;
}
.muntin-v::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.7rem;
  border-radius: var(--r-pill);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.5s var(--ease-soft), background-color 0.5s var(--ease-soft), border-color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent);
  color: var(--charcoal);
}
.btn-primary:hover { background: var(--accent-bright); box-shadow: 0 8px 30px -8px rgba(201, 161, 92, 0.55); }
.btn-ghost {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-bright); }
.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-light);
  border-color: var(--line-dark);
}
.btn-ghost-dark:hover { border-color: var(--brass-dim); color: var(--brass-dim); }
.btn-icon {
  width: 2rem; height: 2rem;
  border-radius: 50%;
  background: rgba(18,21,26,0.16);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease-spring);
}
.btn-primary:hover .btn-icon { transform: translate(2px, -2px); }

section { position: relative; }
.section-pad { padding: clamp(4.5rem, 9vw, 8rem) 0; }
