/* ============================================
   ELITE CABINET & DESIGN — Global Stylesheet
   Warm & Natural | Professional & Trustworthy
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500;600&display=swap');

/* ---- Tokens ---- */
:root {
  --cream:       oklch(97% 0.012 75);
  --warm-white:  oklch(99% 0.006 80);
  --linen:       oklch(94% 0.018 80);
  --sand:        oklch(88% 0.028 75);
  --taupe:       oklch(70% 0.030 65);
  --walnut:      oklch(42% 0.042 55);
  --espresso:    oklch(24% 0.025 50);
  --charcoal:    oklch(18% 0.015 50);
  --gold:        oklch(72% 0.090 75);
  --gold-dark:   oklch(58% 0.090 65);
  --nav-h:       80px;
  --section-pad: clamp(60px, 8vw, 120px);
  --radius:      2px;
  --transition:  0.35s ease;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', 'Helvetica Neue', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; font-weight: 500; }
p  { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--walnut); line-height: 1.75; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 60px); }
.section { padding: var(--section-pad) 0; }
.section--linen { background: var(--linen); }
.section--cream { background: var(--cream); }
.section--dark  { background: var(--espresso); color: var(--sand); }
.section--dark p { color: var(--taupe); }

/* ---- NAV ---- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(252,249,245,0.97);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(8px);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-text .brand-name {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--espresso);
  white-space: nowrap;
}
.nav-logo-text .brand-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-top: 2px;
}
.site-nav.hero-nav .nav-logo-text .brand-name { color: var(--warm-white); }
.site-nav.hero-nav .nav-logo-text .brand-sub  { color: var(--sand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}
.site-nav.hero-nav .nav-links a { color: rgba(255,255,255,0.88); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--walnut); }
.site-nav.hero-nav .nav-links a:hover { color: #fff; }
.nav-links .btn-nav {
  background: var(--gold);
  color: var(--espresso) !important;
  padding: 10px 22px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  border: none;
  transition: background var(--transition), transform var(--transition);
}
.nav-links .btn-nav::after { display: none; }
.nav-links .btn-nav:hover { background: var(--gold-dark); color: var(--warm-white) !important; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--espresso);
  transition: all var(--transition);
}
.site-nav.hero-nav .nav-hamburger span { background: #fff; }

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: min(320px, 85vw);
  height: 100vh;
  background: var(--warm-white);
  z-index: 200;
  padding: 80px 40px 40px;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform var(--transition);
  box-shadow: -4px 0 40px rgba(0,0,0,0.12);
}
.nav-drawer.open { transform: translateX(0); }
.nav-drawer a {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--espresso);
  border-bottom: 1px solid var(--sand);
  padding-bottom: 14px;
}
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 150;
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-overlay.open { opacity: 1; }
.drawer-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--espresso);
  cursor: pointer;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--espresso);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--warm-white);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.btn-outline-dark {
  background: transparent;
  color: var(--espresso);
  border: 1px solid var(--walnut);
}
.btn-outline-dark:hover {
  background: var(--espresso);
  color: var(--warm-white);
}

/* ---- SECTION HEADER ---- */
.section-header {
  margin-bottom: clamp(40px, 5vw, 60px);
}
.section-header .eyebrow { margin-bottom: 12px; display: block; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 7s ease;
}
.hero-slide.active img { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(20,14,10,0.62) 0%,
    rgba(20,14,10,0.25) 60%,
    transparent 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  padding-top: var(--nav-h);
}
.hero-content .eyebrow { color: var(--gold); margin-bottom: 20px; }
.hero-content h1 {
  color: #fff;
  max-width: 700px;
  margin-bottom: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-content h1 em { font-style: italic; color: var(--gold); }
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 40px;
  font-style: italic;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.hero-dot.active {
  background: var(--gold);
  transform: scale(1.4);
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 60px 0 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-icon { width: 40px; height: 40px; }
.footer-brand-name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--sand); letter-spacing: 0.04em; }
.footer-tagline { font-size: 0.85rem; color: var(--taupe); line-height: 1.6; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 0.9rem;
  color: var(--taupe);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--sand); }
.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--taupe);
}
.footer-contact-line svg { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--taupe);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  height: 420px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,12,8,0.72) 0%, rgba(18,12,8,0.2) 60%, transparent 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 5vw, 60px) 52px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.page-hero-content .eyebrow { color: var(--gold); margin-bottom: 10px; }
.page-hero-content h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }

/* ---- Divider ---- */
.divider {
  width: 48px; height: 2px;
  background: var(--gold);
  margin: 20px 0;
}
.centered .divider { margin: 20px auto; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: flex; }
  .nav-overlay { display: block; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}
