/* ============================================================
   RTA Kitchen Cabinets — Main Stylesheet
   Version: 1.0.0
   ============================================================ */

/* ── DESIGN TOKENS ── */
:root {
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --warm-white: #fdfcfa;
  --cream: #f7f3ed;
  --accent: #8b6914;
  --accent-light: #c49b2a;
  --accent-dark: #6b5010;
  --shadow-sm: 0 1px 3px rgba(28,25,23,.06);
  --shadow-md: 0 4px 16px rgba(28,25,23,.08);
  --shadow-lg: 0 12px 40px rgba(28,25,23,.12);
  --shadow-xl: 0 24px 60px rgba(28,25,23,.16);
  --radius: 6px;
  --radius-lg: 12px;
}


/* ── RESET & BASE ── */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--stone-800);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }


/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253,252,250,.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stone-200);
  transition: box-shadow .3s;
}

.site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 19px;
  color: #d9201e;
  text-decoration: none;
  letter-spacing: -.02em;
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  text-decoration: none;
  color: var(--stone-600);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}

.nav-links a:hover { color: var(--stone-900); }

a.nav-phone {
  font-weight: 600;
  color: var(--stone-800);
  font-size: 14px;
}

a.nav-cta {
  background: var(--stone-900);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  transition: background .25s, transform .25s;
}

a.nav-cta:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn svg { width: 24px; height: 24px; stroke: var(--stone-700); }


/* ── SHARED: BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--stone-900);
  color: #fff;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .3s, transform .3s, box-shadow .3s;
  border: none;
  cursor: pointer;
  letter-spacing: .01em;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary svg { width: 16px; height: 16px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--stone-700);
  padding: 16px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--stone-300);
  transition: border-color .3s, background .3s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--stone-500);
  background: var(--stone-100);
}


/* ── SHARED: SECTIONS ── */
.section { padding: 96px 24px; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-header p.section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--stone-900);
  letter-spacing: -.02em;
  margin-bottom: 14px;
  line-height: 1.15;
}

.section-header p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--stone-500);
}


/* ── HERO ── */
.hero {
  padding: 140px 24px 80px;
  background: linear-gradient(168deg, var(--cream) 0%, var(--warm-white) 50%, #f0ebe3 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,105,20,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone-200), transparent);
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,105,20,.08);
  border: 1px solid rgba(139,105,20,.15);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
  animation: fadeUp .6s ease-out both;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.1;
  color: var(--stone-900);
  letter-spacing: -.025em;
  margin-bottom: 20px;
  animation: fadeUp .6s .1s ease-out both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--stone-500);
  max-width: 480px;
  margin-bottom: 32px;
  animation: fadeUp .6s .2s ease-out both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
  animation: fadeUp .6s .3s ease-out both;
}

.hero-stat strong {
  display: block;
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--stone-900);
}

.hero-stat span {
  font-size: 13px;
  color: var(--stone-400);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp .6s .4s ease-out both;
}

.hero-visual {
  position: relative;
  animation: fadeUp .8s .3s ease-out both;
}

.hero-image-card {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(139,105,20,.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-icon svg { width: 20px; height: 20px; color: var(--accent); }
.float-text strong { display: block; font-size: 14px; color: var(--stone-900); }
.float-text span { font-size: 12px; color: var(--stone-400); }


/* ── TRUST BAR ── */
.trust-bar { background: var(--stone-900); padding: 20px 24px; }

.trust-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--stone-300);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
  flex-shrink: 0;
}


/* ── CABINET STYLES GRID ── */
.styles-section { background: var(--cream); }

.styles-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.style-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.style-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.style-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.style-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.style-card:hover .style-card-img img { transform: scale(1.05); }

.style-card-body { padding: 20px; }

.style-card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  color: var(--stone-900);
  margin-bottom: 6px;
}

.style-card-body p {
  font-size: 14px;
  color: var(--stone-500);
  line-height: 1.5;
  margin-bottom: 14px;
}

.style-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(139,105,20,.08);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

.style-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-900);
  text-decoration: none;
  transition: gap .2s;
}

.style-cta:hover { gap: 10px; }
.style-cta svg { width: 14px; height: 14px; }

.styles-view-all { text-align: center; margin-top: 40px; }


/* ── WHY RTA GRID ── */
.why-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--stone-200);
  transition: box-shadow .3s, border-color .3s;
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--stone-300);
}

.why-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-icon svg { width: 22px; height: 22px; color: var(--accent); }

.why-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--stone-900);
}

.why-card p { font-size: 14px; line-height: 1.6; color: var(--stone-500); }


/* ── QUOTE FORM ── */
.quote-section {
  background: var(--stone-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: -300px;
  left: -300px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,105,20,.12) 0%, transparent 60%);
  pointer-events: none;
}

.quote-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.quote-section .section-header h2 { color: #fff; }
.quote-section .section-header p { color: var(--stone-400); }
.quote-section .section-label { color: var(--accent-light); }

.form-steps {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: all .3s;
}

.step-dot.active { background: var(--accent-light); width: 28px; border-radius: 5px; }
.step-dot.done { background: var(--accent-light); }
.step-line { width: 24px; height: 1px; background: rgba(255,255,255,.1); }

.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .4s ease-out; }

.form-step h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  margin-bottom: 8px;
  color: #fff;
}

.form-step > p { font-size: 14px; color: var(--stone-400); margin-bottom: 28px; }

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.option-card {
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color .25s, background .25s;
  text-align: center;
}

.option-card:hover {
  border-color: rgba(196,155,42,.4);
  background: rgba(196,155,42,.06);
}

.option-card.selected {
  border-color: var(--accent-light);
  background: rgba(196,155,42,.1);
}

.option-card .opt-icon { font-size: 28px; margin-bottom: 6px; }
.option-card .opt-label { font-size: 14px; font-weight: 600; color: #fff; }
.option-card .opt-desc { font-size: 12px; color: var(--stone-400); margin-top: 2px; }

.form-input-group { margin-bottom: 16px; }

.form-input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--stone-300);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color .2s;
}

.form-input::placeholder { color: var(--stone-500); }
.form-input:focus { outline: none; border-color: var(--accent-light); }

.form-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-textarea {
  width: 100%;
  padding: 14px 16px;
  min-height: 100px;
  resize: vertical;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  color: #fff;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
}

.form-textarea:focus { outline: none; border-color: var(--accent-light); }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--stone-400);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
  font-family: 'DM Sans', sans-serif;
}

.btn-back:hover { color: #fff; }

.btn-next {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .3s, transform .3s;
  font-family: 'DM Sans', sans-serif;
}

.btn-next:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-submit { background: #2d7a2d; }
.btn-submit:hover { background: #358a35; }

.form-success { text-align: center; padding: 40px 20px; }

.form-success .check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(196,155,42,.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.form-success .check-circle svg { width: 28px; height: 28px; color: var(--accent-light); }

.form-success h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: #fff;
  margin-bottom: 10px;
}

.form-success p { color: var(--stone-400); font-size: 15px; }
.form-error { color: #f87171; font-size: 13px; margin-top: 8px; display: none; }


/* ── CALCULATOR ── */
.calc-section { background: var(--cream); }

.calc-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.calc-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3.5vw, 38px);
  color: var(--stone-900);
  margin-bottom: 16px;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.calc-content p { font-size: 16px; line-height: 1.6; color: var(--stone-500); margin-bottom: 24px; }

.calc-widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.calc-widget h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--stone-900);
}

.calc-widget > p { font-size: 13px; color: var(--stone-400); margin-bottom: 24px; }

.calc-field { margin-bottom: 20px; }
.calc-field label { display: block; font-size: 13px; font-weight: 600; color: var(--stone-700); margin-bottom: 6px; }

.calc-field select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  border: 1.5px solid var(--stone-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--stone-800);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  transition: border-color .2s;
}

.calc-field select:focus { outline: none; border-color: var(--accent); }

.calc-result {
  background: var(--stone-900);
  color: #fff;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 8px;
}

.calc-result .label { font-size: 12px; color: var(--stone-400); text-transform: uppercase; letter-spacing: .08em; }
.calc-result .amount { font-family: 'DM Serif Display', serif; font-size: 36px; margin: 4px 0; }
.calc-result .compare { font-size: 13px; color: var(--accent-light); }


/* ── CTA BANNER ── */
.cta-banner {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--stone-800) 0%, var(--stone-900) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M20 20h20v20H20zM0 0h20v20H0z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-banner h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: #fff;
  margin-bottom: 14px;
  position: relative;
}

.cta-banner p { color: var(--stone-400); font-size: 16px; margin-bottom: 28px; position: relative; }
.cta-banner .btn-primary { position: relative; font-size: 16px; padding: 18px 40px; }


/* ── FOOTER ── */
.site-footer {
  background: var(--stone-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand p {
  color: var(--stone-500);
  font-size: 13px;
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.5;
}

.footer-links h4 {
  color: var(--stone-300);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  color: var(--stone-500);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color .2s;
}

.footer-links a:hover { color: var(--stone-300); }

.footer-bottom {
  max-width: 1240px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--stone-500);
}

.powered-by a { color: var(--accent-light); text-decoration: none; }
.powered-by a:hover { text-decoration: underline; }


/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll reveal utility */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .calc-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253,252,250,.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--stone-200);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .mobile-menu-btn { display: block; }
  .hero { padding: 110px 20px 60px; }
  .section { padding: 64px 20px; }
  .form-steps { padding: 24px; }
  .form-input-row { grid-template-columns: 1fr; }
  .trust-inner { gap: 20px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .option-grid { grid-template-columns: 1fr; }
}
