/* ============================================================
   CABINETS DFW — Global Stylesheet
   ============================================================ */

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

:root {
  --cream: #f5f4f0;
  --white: #ffffff;
  --ink: #1a1917;
  --ink-soft: #4a4845;
  --ink-faint: #8a8784;
  --accent: #1a3a5c;
  --accent-light: #2a5080;
  --navy: #0c2233;
  --navy-light: #0f2d42;
  --red-dot: #C8543C;
  --nav-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

nav.nav-solid {
  background: var(--white);
  border-bottom: 1px solid rgba(26,25,23,0.1);
}

nav.nav-transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}

nav.nav-transparent.scrolled {
  background: var(--white);
  border-bottom: 1px solid rgba(26,25,23,0.1);
  box-shadow: 0 2px 24px rgba(0,0,0,0.07);
}

.nav-logo { display: flex; align-items: center; height: 40px; }
.nav-logo svg { height: 34px; width: auto; }

/* Logo color inversion for transparent nav */
.nav-transparent .logo-stroke { stroke: rgba(255,255,255,0.9); }
.nav-transparent .logo-fill { fill: rgba(255,255,255,0.9); }
.nav-transparent.scrolled .logo-stroke { stroke: #1F1F1E; }
.nav-transparent.scrolled .logo-fill { fill: #1F1F1E; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.18s;
}

nav.nav-transparent .nav-links a { color: rgba(255,255,255,0.8); }
nav.nav-transparent.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
nav.nav-transparent .nav-links a:hover { color: white; }
nav.nav-transparent.scrolled .nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }
nav.nav-transparent .nav-links a.active { color: white; font-weight: 500; }
nav.nav-transparent.scrolled .nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  padding: 10px 24px !important;
  font-weight: 500 !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--accent-light) !important; color: white !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 301;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}
nav.nav-transparent .nav-hamburger span { background: white; }
nav.nav-transparent.scrolled .nav-hamburger span { background: var(--ink); }

.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: white;
  padding: 32px;
  border-bottom: 1px solid rgba(26,25,23,0.08);
  z-index: 299;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.nav-mobile a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav-mobile .nav-cta { display: inline-block; margin-top: 8px; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
  background: var(--accent);
  padding: 14px 34px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent-light); color: white; }
.btn-primary svg { flex-shrink: 0; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid rgba(26,25,23,0.25);
  padding: 13px 30px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 13px 30px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline-light:hover { border-color: white; color: white; }

/* ─── SHARED TYPOGRAPHY ─── */
.label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.label-light {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(100,150,210,0.8);
  margin-bottom: 16px;
}

h2.display {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h2.display em { font-style: italic; color: var(--ink-soft); }
h2.display-light { color: white; }
h2.display-light em { color: rgba(255,255,255,0.45); }

.body-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ─── INNER PAGE HERO ─── */
.page-hero {
  padding-top: var(--nav-h);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.15;
  object-position: center 40%;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 88px 80px 80px;
  max-width: 800px;
}
.page-hero-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(100,150,210,0.8);
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 300;
  line-height: 0.96;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.page-hero h1 em { font-style: italic; color: rgba(255,255,255,0.45); }
.page-hero p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  max-width: 540px;
}

/* ─── DIVIDER ─── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 20px;
}
.divider-light {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}

/* ─── SECTION SPACING ─── */
.section { padding: 100px 80px; }
.section-sm { padding: 72px 80px; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--navy);
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.15;
  color: white;
}
.cta-band-text em { font-style: italic; color: rgba(255,255,255,0.4); }

/* ─── FOOTER ─── */
footer {
  background: var(--navy);
  padding: 72px 80px 44px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { margin-bottom: 20px; display: block; width: 120px; }
.footer-tagline {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.3);
  max-width: 290px;
  margin-bottom: 32px;
}
.contact-item { margin-bottom: 14px; }
.contact-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(100,150,210,0.65);
  margin-bottom: 3px;
}
.contact-value {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
}
.contact-value a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.contact-value a:hover { color: rgba(255,255,255,0.9); }
.footer-col-title {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  transition: color 0.18s;
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
}
.footer-bottom p {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.04em;
}
.footer-note {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.14);
  max-width: 380px;
  text-align: right;
  line-height: 1.6;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  nav { padding: 0 36px; }
  .nav-links { gap: 22px; }
  .section { padding: 80px 48px; }
  .section-sm { padding: 56px 48px; }
  .cta-band { padding: 60px 48px; }
  footer { padding: 60px 48px 36px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 60px 24px; }
  .section-sm { padding: 48px 24px; }
  .cta-band { padding: 48px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
  footer { padding: 48px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-note { text-align: left; }
  .page-hero-content { padding: 60px 24px 60px; }
}
