/* Master Craftsmen Design System — shared tokens & components
   Distilled from nevadawindowsanddoors.com (Master Craftsmen Inc., Las Vegas)
   Captured 2026-05-07 · Free-font substitutes: Fraunces, Inter, Inter Tight, JetBrains Mono
   Direction: "Desert Modern" — editorial / architectural / Pentagram-school */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&family=Inter+Tight:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* COLOR — Sonoran modernist palette
     Lifted from Direction 01 Desert Modern, the Nevada light/sand palette */
  --brand:        #b8723a;          /* sand-ochre · primary brand */
  --brand-bright: #d18a4f;          /* lighter sand */
  --brand-deep:   #8b521f;          /* roasted sand · CTA hover, deep accent */
  --brand-pale:   #f0d9bf;          /* sand wash · chip backgrounds */

  --ink:          #1a1a1a;          /* primary text · headings */
  --ink-soft:     #2a2a2a;          /* body emphasis */
  --ink-muted:    #4a4338;          /* body */
  --ink-quiet:    #6b6357;          /* captions / meta / disabled */

  --bg:           #f4efe8;          /* paper bone — base surface */
  --surface:      #ffffff;          /* clean white surface */
  --surface-2:    #ebe3d6;          /* warm bone — secondary fills */
  --surface-3:    #e0d7c5;          /* deeper bone — section breaks */
  --border:       #d6cfc1;          /* default divider */
  --border-strong:#b9ad8c;          /* emphasis divider */
  --rule:         var(--ink);       /* signature 1px ink hairline */

  --text-on-dark:        #f4efe8;
  --text-on-dark-muted:  rgba(244,239,232,0.72);

  /* TYPE */
  --font-display:   'Fraunces', 'Times New Roman', serif;
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  --font-condensed: 'Inter Tight', 'Inter', sans-serif;
  --font-eyebrow:   'Inter', sans-serif;
  --font-mono:      'JetBrains Mono', 'IBM Plex Mono', monospace;

  /* LAYOUT */
  --container:        1200px;
  --container-narrow: 880px;
  --container-wide:   1440px;
  --gutter: 32px;
  --section: 120px;

  /* RADII — Desert Modern is mostly square; minimal rounding */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-muted);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: var(--brand); }

/* ============= TYPOGRAPHY ================================================ */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.display em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-deep);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-variation-settings: "opsz" 96;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.4em;
}
.h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-deep);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 72;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
.h2 em { font-style: italic; color: var(--brand-deep); font-weight: 400; }
.h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 36;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 12px;
}
.eyebrow {
  font-family: var(--font-eyebrow);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--brand);
  display: inline-block;
}
.eyebrow.no-rule::before { display: none; }
.eyebrow.on-dark { color: var(--brand-bright); }
.lede {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 60ch;
}
.lede-editorial {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0;
}
p { margin: 0 0 1.1em; max-width: 72ch; }
.spec-line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-quiet);
  line-height: 1.6;
}
.spec-line strong { color: var(--ink); font-weight: 500; }

/* ============= BUTTONS =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
  cursor: pointer;
}
.btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.secondary:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn.warm {
  background: var(--brand);
  border-color: var(--brand);
}
.btn.warm:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}
.btn.on-dark {
  background: var(--bg);
  border-color: var(--bg);
  color: var(--ink);
}
.btn.on-dark:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
}
.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.btn-arrow::after {
  content: '→';
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  transition: transform 280ms ease;
}
.btn-arrow:hover { color: var(--brand-deep); border-color: var(--brand-deep); }
.btn-arrow:hover::after { transform: translateX(8px); }
.btn-arrow.on-dark { color: var(--bg); border-color: var(--bg); }
.btn-arrow.on-dark:hover { color: var(--brand); border-color: var(--brand); }

/* ============= LAYOUT ==================================================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section) 0; }
.section-sm { padding: 64px 0; }

/* ============= NAVIGATION ================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 18px 48px;
  background: rgba(244,239,232,0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 220ms ease, box-shadow 220ms ease;
}
.nav.transparent {
  background: transparent;
  border-bottom: none;
}
.nav.scrolled {
  background: rgba(244,239,232,0.96);
  box-shadow: 0 1px 0 var(--border);
}
.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.nav-brand em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand-deep);
  font-feature-settings: "ss01" 1;
}
.nav-brand .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
  display: inline-block;
  margin-bottom: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-cta .phone {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
}
.nav-cta .btn {
  padding: 11px 22px;
  font-size: 12px;
}

/* ============= HERO ====================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding: 160px 0 90px;
  color: var(--bg);
  overflow: hidden;
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero .scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.4) 0%, rgba(26,26,26,0.12) 35%, rgba(26,26,26,0.85) 100%);
  z-index: 1;
}
.hero .container { position: relative; z-index: 2; }
.hero .display { color: var(--bg); max-width: 16ch; }
.hero .lede { color: rgba(244,239,232,0.88); max-width: 50ch; }

/* ============= CARD ====================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(26,26,26,0.18);
  border-color: var(--border-strong);
}
.card .img {
  aspect-ratio: 4/3;
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
}
.card .body { padding: 28px 28px 32px; }

/* ============= CHIP ====================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--brand-pale);
  border: 1px solid rgba(184,114,58,0.28);
  color: var(--brand-deep);
  font-family: var(--font-eyebrow);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
}
.chip.ink {
  background: rgba(26,26,26,0.06);
  border-color: rgba(26,26,26,0.18);
  color: var(--ink);
}

/* ============= DARK ====================================================== */
.dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.dark .h1, .dark .h2, .dark .h3, .dark .display { color: var(--bg); }
.dark .lede { color: var(--text-on-dark-muted); }
.dark .eyebrow { color: var(--brand-bright); }

/* ============= FOOTER ==================================================== */
.footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 80px 0 36px;
}
.footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-eyebrow);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin: 0 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { color: rgba(244,239,232,0.78); font-size: 14px; transition: color 140ms; text-decoration: none; }
.footer ul a:hover { color: var(--bg); }
.footer .footer-brand .wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--bg);
  margin-bottom: 18px;
  display: block;
  letter-spacing: -0.01em;
}
.footer .footer-brand .wordmark em {
  font-style: italic;
  font-weight: 300;
  color: var(--brand-bright);
}
.footer .footer-brand .tag {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: rgba(244,239,232,0.7);
  max-width: 320px;
  margin-bottom: 24px;
}
.footer .footer-brand .license {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(244,239,232,0.5);
  line-height: 1.7;
}
.footer .footer-brand .license strong { color: var(--brand-bright); font-weight: 500; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(244,239,232,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244,239,232,0.5);
}

/* ============= RESPONSIVE ================================================ */
@media (max-width: 880px) {
  .nav { grid-template-columns: auto auto; padding: 14px 24px; }
  .nav-links { display: none; }
  .footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 80px 0; }
}

/* ============================================================
   SIGNATURE PATTERNS — Master Craftsmen specific
   ============================================================ */

/* PLATE CALLOUT — numbered photo block with archival caption
   Inspired by editorial monograph "Plate № 01" notation */
.sig-plate {
  position: relative;
  display: grid;
  gap: 0;
}
.sig-plate .photo {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--surface-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.sig-plate .caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(244,239,232,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 18px 22px;
  border-left: 2px solid var(--brand);
}
.sig-plate .caption .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 6px;
}
.sig-plate .caption .desc {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
}
.sig-plate .caption .desc em { font-style: italic; color: var(--brand-deep); font-weight: 400; }

/* SPEC CARD — manufacturer / product spec block, mono-detailed */
.sig-spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--brand);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.sig-spec-card .head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.sig-spec-card .name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}
.sig-spec-card .name em { font-style: italic; color: var(--brand-deep); font-weight: 400; }
.sig-spec-card .specs {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--border);
}
.sig-spec-card .specs li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--border);
}
.sig-spec-card .specs li:last-child { border-bottom: none; }
.sig-spec-card .specs li .v {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* TRUST RULE — full-bleed manufacturer marks horizontal strip */
.sig-trust-rule {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 28px 0;
}
.sig-trust-rule .inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: center;
}
.sig-trust-rule .label {
  font-family: var(--font-eyebrow);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  line-height: 1.6;
}
.sig-trust-rule .marks {
  display: flex;
  align-items: center;
  gap: 56px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.sig-trust-rule .marks span { opacity: 0.78; transition: opacity .2s; }
.sig-trust-rule .marks span:first-child {
  color: var(--brand-deep);
  font-weight: 500;
  font-style: italic;
}
.sig-trust-rule .marks span:hover { opacity: 1; }

/* ARCHITECTURAL NUMERAL — for editorial section markers */
.sig-numeral {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  color: var(--brand-deep);
  letter-spacing: 0.02em;
  display: inline-block;
}
.sig-numeral::before { content: 'N°\00a0'; }


/* ============================================================
   DS NAV — top tab strip linking the two design system pages
   ============================================================ */
.ds-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,239,232,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
}
.ds-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ds-nav-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.005em;
}
.ds-nav-brand em {
  font-style: italic;
  color: var(--brand-deep);
  font-weight: 400;
}
.ds-nav-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.ds-nav-tabs a {
  display: block;
  padding: 8px 16px;
  font-family: var(--font-eyebrow);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: background 160ms, color 160ms;
}
.ds-nav-tabs a:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.ds-nav-tabs a.active {
  background: var(--ink);
  color: var(--bg);
}
.ds-nav-back {
  font-family: var(--font-eyebrow);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-quiet);
  text-decoration: none;
}
.ds-nav-back:hover { color: var(--brand-deep); }
