/* ============================================================
   MANTELS & MORE — styles.css
   Mobile-first: 320px → 768px → 1024px
   ============================================================ */


/* ============================================================
   PRELOADER
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.preloader.is-leaving {
  opacity: 0;
  pointer-events: none;
}

.preloader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.5rem;
}

/* ── Fireplace ── */
.preloader__fireplace {
  position: relative;
  width: 300px;
  height: 100px;
  background: #0d0d0d;
  border: 5px solid #1e1e1e;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #2a2a2a, 0 12px 32px rgba(0,0,0,0.7), inset 0 0 20px rgba(0,0,0,0.8);
  overflow: hidden;
}

.fireplace__interior {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(180,60,0,0.25) 0%, #0a0a0a 70%);
}

.fireplace__flames {
  position: absolute;
  bottom: 10px;
  left: 6px;
  right: 6px;
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.ft {
  display: block;
  width: 13px;
  border-radius: 50% 50% 25% 25% / 55% 55% 45% 45%;
  transform-origin: bottom center;
  background: linear-gradient(to top, #FF4500 0%, #FF8C00 50%, #FFD000 100%);
  filter: blur(0.5px);
}

/* Heights — bell curve peaking in centre */
.ft:nth-child(1)  { height: 10px; animation: ft 1.0s  0.00s ease-in-out infinite alternate; }
.ft:nth-child(2)  { height: 16px; animation: ft 0.85s 0.10s ease-in-out infinite alternate; }
.ft:nth-child(3)  { height: 22px; animation: ft 1.1s  0.05s ease-in-out infinite alternate; }
.ft:nth-child(4)  { height: 28px; animation: ft 0.9s  0.20s ease-in-out infinite alternate; }
.ft:nth-child(5)  { height: 32px; animation: ft 1.2s  0.15s ease-in-out infinite alternate; }
.ft:nth-child(6)  { height: 28px; animation: ft 0.8s  0.30s ease-in-out infinite alternate; }
.ft:nth-child(7)  { height: 34px; animation: ft 1.0s  0.08s ease-in-out infinite alternate; }
.ft:nth-child(8)  { height: 36px; animation: ft 0.95s 0.25s ease-in-out infinite alternate; }
.ft:nth-child(9)  { height: 34px; animation: ft 1.15s 0.12s ease-in-out infinite alternate; }
.ft:nth-child(10) { height: 30px; animation: ft 0.88s 0.22s ease-in-out infinite alternate; }
.ft:nth-child(11) { height: 26px; animation: ft 1.05s 0.18s ease-in-out infinite alternate; }
.ft:nth-child(12) { height: 20px; animation: ft 0.92s 0.35s ease-in-out infinite alternate; }
.ft:nth-child(13) { height: 15px; animation: ft 1.1s  0.07s ease-in-out infinite alternate; }
.ft:nth-child(14) { height: 20px; animation: ft 0.82s 0.28s ease-in-out infinite alternate; }
.ft:nth-child(15) { height: 13px; animation: ft 1.0s  0.16s ease-in-out infinite alternate; }
.ft:nth-child(16) { height: 9px;  animation: ft 0.9s  0.42s ease-in-out infinite alternate; }

@keyframes ft {
  0%   { transform: scaleX(1)    scaleY(1)    rotate(-2deg); opacity: 0.9; }
  100% { transform: scaleX(0.82) scaleY(1.1)  rotate(2deg);  opacity: 1;   }
}

.fireplace__embers {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(to top, rgba(255,80,0,0.5), transparent);
  box-shadow: 0 0 12px rgba(255,100,0,0.4);
}

/* ── Logo ── */
.preloader__logo {
  width: 300px;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.preloader__logo.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* ── Progress bar ── */
.preloader__progress {
  width: 300px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  margin-top: 1rem;
  overflow: hidden;
}

.preloader__progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  animation: preloader-progress 1.8s ease-out 0.3s forwards;
}

@keyframes preloader-progress {
  from { width: 0%;   }
  to   { width: 100%; }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Ensure the HTML hidden attribute always wins over CSS display rules */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-white);
  overflow-x: hidden;
}

h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===== CSS Variables ===== */
:root {
  /* Typography */
  --font-display: 'cormorant-garamond', Georgia, serif;
  --font-ui:      'forma-djr-display', Arial, sans-serif;
  --font-body:    'forma-djr-micro', Arial, sans-serif;

  /* Colors */
  --color-dark:   #1a1918;
  --color-white:  #ffffff;

  /* Nav */
  --nav-height: 72px;
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-dark);
  height: var(--nav-height);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
}

/* Logo */
.nav__logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto; /* pushes everything else to the right on mobile */
}

.nav__logo-img {
  height: 36px;
  width: auto;
}

/* Nav links — hidden on mobile */
.nav__links {
  display: none;
  gap: 28px;
  margin: 0 auto;
}

.nav__link {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 0.7;
}

/* Nav CTA button — hidden on mobile */
.nav__cta {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 10px 16px;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav__cta:hover {
  border-color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.nav__phone {
  display: none;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  white-space: nowrap;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.nav__phone:hover {
  opacity: 1;
}

.nav__cta-icon {
  width: 14px;
  height: 14px;
  filter: invert(1);
}

/* Hamburger — visible on mobile */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.hamburger__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger → X animation */
.nav__hamburger.is-active .hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.is-active .hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__hamburger.is-active .hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   MOBILE MENU
   ============================================================ */

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-dark);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.mobile-menu__link {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.mobile-menu__link:hover {
  opacity: 1;
}

.mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 14px 20px;
}

.mobile-menu__cta-icon {
  width: 14px;
  height: 14px;
  filter: invert(1);
}

.mobile-menu__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.mobile-menu__phone:hover {
  color: var(--color-white);
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  background-image: url('images/photos/hero-image-mobile.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
}

/* Dark gradient overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.60);
}

/* Content container */
.hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 48px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

/* ── Location Badge ── */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 9, 8, 0.50);
  padding: 7px 14px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-white);
}

.badge__icon {
  width: 10px;
  height: auto;
  /* maps-and-flags.svg is already white — no filter needed */
}

/* ── H1 Heading ── */
.hero__heading {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.08;
}

/* ── Subtext ── */
.hero__subtext {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.65;
  max-width: 380px;
}

/* ── Buttons ── */
.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 17px 28px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

/* White / light button */
.btn--light {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.btn--light:hover {
  background: rgba(255, 255, 255, 0.88);
}

/* calendar.svg is dark → no filter on light button */
.btn--light .btn__icon {
  filter: none;
}

/* Outline / dark button */
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* AI.svg is dark #2c2c2c → invert to white */
.btn--outline .btn__icon {
  filter: invert(1);
}

.btn__icon {
  width: 16px;
  height: 16px;
}


/* ============================================================
   LOAD ANIMATIONS
   ============================================================ */

.animate-fade-in,
.animate-fade-up {
  opacity: 0;
}

.animate-fade-up {
  transform: translateY(26px);
}

body.loaded .animate-fade-in,
body.loaded .animate-fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

body.loaded [data-delay="0"] { transition-delay: 0.15s; }
body.loaded [data-delay="1"] { transition-delay: 0.35s; }
body.loaded [data-delay="2"] { transition-delay: 0.55s; }
body.loaded [data-delay="3"] { transition-delay: 0.75s; }


/* ============================================================
   VISUALIZER SECTION
   ============================================================ */

.visualizer {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "text"
    "image"
    "controls";
  background: #EAE5DF;
}

/* ── Text Block ── */
.visualizer__text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 24px 24px;
}

.visualizer__overline {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-dark);
}

.visualizer__heading {
  color: var(--color-dark);
}

.visualizer__subtext {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.65;
}

/* ── Image Panel ── */
.visualizer__image-panel {
  grid-area: image;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 24px 24px;
}

.visualizer__img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.visualizer__img.is-fading {
  opacity: 0;
}

/* Dot indicators */
.visualizer__dots {
  display: flex;
  gap: 8px;
}

.visualizer__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 25, 24, 0.25);
  transition: background 0.2s ease;
}

.visualizer__dot.is-active {
  background: rgba(26, 25, 24, 0.85);
}

/* ── Controls Block ── */
.visualizer__controls {
  grid-area: controls;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0 24px 40px;
}

/* ── Style Buttons ── */
.visualizer__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.viz-btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 16px;
  background: transparent;
  color: #817D7A;
  border: 1px solid #817D7A;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.viz-btn:hover {
  background: rgba(210, 203, 198, 0.5);
  border-color: #D2CBC6;
  color: var(--color-dark);
}

.viz-btn.is-active {
  background: #D2CBC6;
  border-color: #D2CBC6;
  color: var(--color-dark);
}

/* ── CTA Button ── */
.visualizer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #C4956A;
  color: var(--color-white);
  padding: 16px 28px;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}

.visualizer__cta:hover {
  opacity: 0.85;
}

.visualizer__cta-arrow {
  font-size: 14px;
  letter-spacing: -2px;
}


/* ── Visualizer Responsive ── */
@media (min-width: 768px) {
  .visualizer {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "image text"
      "image controls";
  }

  .visualizer__image-panel {
    padding: 60px 40px;
    justify-content: center;
  }

  .visualizer__text {
    padding: 60px 60px 20px;
    gap: 20px;
    justify-content: flex-end;
  }

  .visualizer__controls {
    padding: 20px 60px 60px;
    justify-content: flex-start;
  }

  .visualizer__heading {
    font-size: 3.5rem;
  }

  .visualizer__dots {
    justify-content: flex-start;
  }
}


/* ============================================================
   BUTTON — BEIGE VARIANT
   ============================================================ */

.btn--beige {
  background: #D2CBC6;
  color: var(--color-dark);
  border-color: #D2CBC6;
}

.btn--beige:hover {
  background: #c5beba;
}

/* calendar icon is dark by default — no filter needed on beige bg */
.btn--beige .btn__icon {
  filter: none;
}

/* Dark filled button (used in contact form) */
.btn--dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn--dark:hover {
  background: #2d2c2b;
}

.btn--dark .btn__icon {
  filter: invert(1);
}


/* ============================================================
   IN-HOME ESTIMATES SECTION
   ============================================================ */

/* Outer beige wrapper */
.estimates-section {
  background: #D2CBC6;
  padding: 2rem 1rem;
}

/* Inner dark photo card */
.estimates-card {
  position: relative;
  background-color: var(--color-dark);
  display: flex;
  align-items: center;
  padding: 56px 0;
  overflow: hidden;
  border-radius: 6px;
}

/* Full-cover background image div */
.estimates-card__bg-picture {
  position: absolute;
  inset: 0;
  background-image: url('images/photos/free-in-home-estimate-mobile-2.svg');
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .estimates-card__bg-picture {
    background-image: url('images/photos/estimates-section-bg-desktop.png');
  }
}

.estimates-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 6, 0.70);
}

.estimates-card__inner {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Main content block */
.estimates__main {
  order: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

/* Features — stacked vertically on mobile, above main content */
.estimates__features {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  align-items: center;
}

/* Individual feature item: icon left, label right */
.estimates__feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.feature__icon {
  width: 16px;
  height: auto;
  flex-shrink: 0;
}

.feature__label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.3;
}

/* Heading */
.estimates__heading {
  color: var(--color-white);
}

/* Subtext */
.estimates__subtext {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  max-width: 460px;
}


/* ============================================================
   SCROLL REVEAL (for future sections)
   ============================================================ */

.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   TABLET: 768px+
   ============================================================ */

@media (min-width: 768px) {
  h2 {
    font-size: 3.5rem;
  }

  .hero {
    background-image: url('images/photos/hero-image-desktop.png');
    background-position: center;
  }

  .hero__overlay {
    background: linear-gradient(
      to right,
      rgba(10, 9, 8, 0.90) 0%,
      rgba(10, 9, 8, 0.78) 30%,
      rgba(10, 9, 8, 0.38) 60%,
      rgba(10, 9, 8, 0.06) 100%
    );
  }

  .hero__content {
    text-align: left;
    align-items: flex-start;
    max-width: 600px;
    padding: 48px 48px 60px;
    gap: 24px;
  }

  .hero__heading {
    font-size: 3.5rem;
  }

  .hero__subtext {
    max-width: 360px;
  }

  .hero__buttons {
    flex-direction: row;
    width: auto;
    max-width: none;
  }
}


/* ============================================================
   DESKTOP: 1024px+
   ============================================================ */

@media (min-width: 1024px) {
  :root {
    --nav-height: 76px;
  }

  .nav {
    padding: 0 48px;
  }

  /* Show nav links — centered via grid */
  .nav {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 32px;
  }

  .nav__logo-link {
    margin-right: 0;
  }

  .nav__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  /* Show CTA + phone */
  .nav__cta,
  .nav__phone {
    display: inline-flex;
  }

  /* Hide hamburger */
  .nav__hamburger {
    display: none;
  }

  .hero__content {
    /* Use percentage width so heading has room to fit 3 lines */
    width: 50%;
    max-width: none;
    padding: 48px 24px 60px 80px;
  }

  .hero__heading {
    font-size: 3.75rem;
  }
}


/* ============================================================
   WIDE DESKTOP: 1280px+
   ============================================================ */

@media (min-width: 1280px) {
  .nav {
    padding: 0 72px;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
  }

  .site-header {
    display: flex;
    justify-content: center;
  }

  .hero__content {
    width: 48%;
    padding: 48px 24px 60px 100px;
  }

  .hero__heading {
    font-size: 4rem;
  }
}


/* ============================================================
   ESTIMATES — RESPONSIVE
   ============================================================ */

@media (min-width: 768px) {
  .estimates-section {
    padding: 60px;
  }

  .estimates-card {
    padding: 72px 0;
  }

  /* Flip order: main first (heading/text/btn), features below */
  .estimates__main     { order: -1; }
  .estimates__features { order: 0; }

  /* Features row on desktop */
  .estimates__features {
    flex-direction: row;
    gap: 0;
    justify-content: center;
    align-items: center;
    max-width: 720px;
    padding: 0;
  }

  .estimates__feature {
    flex: 1;
    justify-content: center;
  }

  /* Vertical separators */
  .estimates__feature:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.30);
    padding-right: 40px;
  }

  .estimates__feature:not(:first-child) {
    padding-left: 40px;
  }

  .feature__label {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .estimates__heading {
    font-size: 3.25rem;
  }

  .estimates-card__inner {
    gap: 56px;
  }
}

@media (min-width: 1024px) {
  .estimates-card__inner {
    padding: 0 64px;
    gap: 64px;
  }

  .estimates__heading {
    font-size: 3.5rem;
  }

  .estimates__features {
    max-width: 820px;
  }

  .estimates__feature:not(:last-child) {
    padding-right: 56px;
  }

  .estimates__feature:not(:first-child) {
    padding-left: 56px;
  }
}


/* ============================================================
   PRICING & PROCESS SECTION
   ============================================================ */

.pricing {
  background: #DDD8D4;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Hero: text stacked on mobile, side-by-side on desktop ── */
.pricing__hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing__hero-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing__hero-photo {
  width: 100%;
  overflow: hidden;
}

.pricing__photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Typography ── */
.pricing__overline {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-dark);
}

.pricing__heading {
  color: var(--color-dark);
}

.pricing__intro {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.65;
}

/* ── White card (contains both affect-pricing and process) ── */
.pricing__card {
  background: var(--color-white);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── What Can Affect Pricing ── */
.pricing__affect {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pricing__subheading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.1;
}

.pricing__body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.65;
}

.pricing__factors {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing__factor-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.pricing__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing__tag {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #817D7A;
  border: 1px solid #817D7A;
  border-radius: 50px;
  padding: 8px 14px;
}

/* ── The Process (inside white card) ── */
.pricing__process {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing__process-heading {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.1;
}

/* Add space between factor label and its tags */
.pricing__factor-group .pricing__process-heading {
  margin-bottom: 10px;
}

.pricing__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pricing__step {
  border: 1px solid rgba(26, 25, 24, 0.12);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing__step-num {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(26, 25, 24, 0.45);
}

.pricing__step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.2;
}

.pricing__step-body {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(26, 25, 24, 0.70);
  line-height: 1.65;
}


/* ── Responsive ── */
@media (min-width: 768px) {
  .pricing {
    padding: 60px;
    gap: 32px;
  }

  /* Photo sits to the right of the text on desktop */
  .pricing__hero {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .pricing__hero-text {
    flex: 1;
    gap: 20px;
  }

  .pricing__heading {
    font-size: 3.5rem;
  }

  .pricing__hero-photo {
    width: 62%;
    flex-shrink: 0;
  }

  .pricing__photo {
    height: 420px;
  }

  .pricing__card {
    padding: 48px;
    gap: 48px;
  }

  .pricing__subheading {
    font-size: 2.5rem;
  }

  .pricing__factors {
    flex-direction: column;
    gap: 28px;
  }

  .pricing__steps {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .pricing__steps {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ============================================================
   REVIEWS CAROUSEL SECTION
   ============================================================ */

.reviews {
  background: #EAE5DF;
  padding: 40px 24px;
}

.reviews__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.reviews__overline {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #6B6560;
}

.reviews__heading {
  color: #3A3734;
}

/* Equal-height slides */
#reviews-splide .splide__list {
  align-items: stretch;
}

#reviews-splide .splide__slide {
  height: auto !important;
}

/* ── Slide cards ── */
.reviews__slide-inner {
  display: flex;
  flex-direction: column;
  background: #F5F2EF;
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
}

.reviews__slide-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
}

.reviews__quote-mark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  line-height: 0.7;
  color: rgba(26, 25, 24, 0.18);
}

.reviews__quote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-dark);
  line-height: 1.7;
}

.reviews__attribution {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(26, 25, 24, 0.12);
}

.reviews__name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-dark);
}

.reviews__stars {
  font-size: 13px;
  color: var(--color-dark);
  letter-spacing: 1px;
}

/* Photo — shown below text on mobile/tablet */
.reviews__slide-photo {
  display: block;
  width: 100%;
}

.reviews__photo {
  width: 100%;
  height: auto;
  display: block;
}

/* Controls — hidden on mobile */
.reviews__controls {
  display: none;
}

/* Suppress Splide's built-in pagination (we move it into controls) */
#reviews-splide .splide__pagination {
  display: none;
}

/* Splide track background matches section */
#reviews-splide .splide__track {
  background: #EAE5DF;
}

/* Mobile: stacked slides have a gap between them */
.reviews__slide + .reviews__slide {
  margin-top: 16px;
}


/* ── Desktop ── */
@media (min-width: 768px) {
  .reviews {
    padding: 60px;
  }

  .reviews__header {
    margin-bottom: 40px;
  }

  /* Slide: text left, photo right */
  .reviews__slide-inner {
    flex-direction: row;
    gap: 10px;
    background: #C8C0B8;
  }

  .reviews__slide-text {
    flex: 1;
    padding: 18px 20px;
    gap: 10px;
    background: #F5F2EF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Photo fills right portion */
  .reviews__slide-photo {
    display: block;
    width: 42%;
    flex-shrink: 0;
    overflow: hidden;
  }

  .reviews__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  /* Controls: circular arrows + dots */
  .reviews__controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
  }

  .reviews__arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(58, 55, 52, 0.4);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #3A3734;
    flex-shrink: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .reviews__arrow:hover {
    border-color: #3A3734;
    background: rgba(58, 55, 52, 0.08);
  }

  /* Pagination dots moved here by JS */
  .reviews__controls .splide__pagination {
    display: flex !important;
    position: static !important;
    gap: 8px;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  .reviews__controls .splide__pagination__page {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(58, 55, 52, 0.25);
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: background 0.2s ease;
    transform: none !important;
    opacity: 1 !important;
  }

  .reviews__controls .splide__pagination__page.is-active {
    background: #3A3734;
    transform: none !important;
  }
}


/* ============================================================
   CONTACT FORM SECTION
   ============================================================ */

.contact-form-section {
  background: #F5F2EF;
  padding: 40px 24px;
}

.contact-form-section__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── Header ── */
.contact-form__overline {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(26, 25, 24, 0.45);
  margin-bottom: 14px;
  text-align: center;
}

.contact-form__heading {
  color: var(--color-dark);
  margin-bottom: 16px;
  text-align: center;
}

.contact-form__subtext {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(26, 25, 24, 0.6);
  line-height: 1.75;
  text-align: center;
}

/* ── Body card (white) ── */
.contact-form__body {
  background: var(--color-white);
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ── Progress Indicator ── */
.form-progress {
  position: relative;
}

.form-progress__line {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  height: 1px;
  background: rgba(26, 25, 24, 0.1);
  z-index: 0;
}

.form-progress__line-fill {
  height: 100%;
  background: var(--color-dark);
  width: 0%;
  transition: width 0.4s ease;
}

.form-progress__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.form-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.form-progress__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 25, 24, 0.18);
  background: #F5F2EF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  color: rgba(26, 25, 24, 0.35);
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.form-progress__step.is-active .form-progress__dot {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.form-progress__step.is-complete .form-progress__dot {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.form-progress__label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(26, 25, 24, 0.35);
  transition: color 0.3s ease;
  display: none;
}

.form-progress__step.is-active .form-progress__label,
.form-progress__step.is-complete .form-progress__label {
  color: var(--color-dark);
}

/* ── Form Steps ── */
.form-step {
  display: none;
  flex-direction: column;
  gap: 24px;
  animation: stepFadeIn 0.25s ease;
}

.form-step.is-active {
  display: flex;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step__question {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-dark);
  line-height: 1.2;
  text-align: center;
}

/* ── Text option cards (steps 1 & 2) ── */
.form-step__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-white);
  border: 1.5px solid rgba(26, 25, 24, 0.12);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
  user-select: none;
}

.option-card:hover {
  border-color: rgba(26, 25, 24, 0.38);
}

/* Circle/square indicator */
.option-card__check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 25, 24, 0.22);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
  font-size: 9px;
  color: transparent;
}

/* Checkbox gets square corners */
.option-card--checkbox .option-card__check {
  border-radius: 3px;
}

/* Selected: radio */
.option-card.is-selected {
  border-color: var(--color-dark);
  background: rgba(26, 25, 24, 0.03);
}

.option-card.is-selected .option-card__check {
  background: var(--color-dark);
  border-color: var(--color-dark);
  color: var(--color-white);
}

.option-card.is-selected .option-card__check::after {
  content: '●';
  font-size: 6px;
  color: var(--color-white);
}

/* Selected: checkbox (square check glyph) */
.option-card--checkbox.is-selected .option-card__check::after {
  content: '✓';
  font-size: 9px;
  color: var(--color-white);
}

.option-card__label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.35;
}

/* ── Image option cards ── */
.form-step__options--grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-step__options--grid-2 {
  grid-template-columns: 1fr 1fr;
  max-width: 500px;
}

.option-card--image {
  flex-direction: column;
  align-items: center;
  padding: 0;
  gap: 10px;
  overflow: visible;
  border: none;
  background: transparent;
}

/* Hover on container has no border — delegate to image */
.option-card--image:hover {
  border-color: transparent;
}

.option-card--image .option-card__label {
  padding: 0;
  border-top: none;
  text-align: center;
}

.option-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 2px solid rgba(26, 25, 24, 0.12);
  transition: border-color 0.2s ease;
}

.option-card--image:hover .option-card__img {
  border-color: rgba(26, 25, 24, 0.4);
}

/* Selected image card: border on the image, checkmark over it */
.option-card--image.is-selected {
  border: none;
  background: transparent;
}

.option-card--image.is-selected .option-card__img {
  border-color: var(--color-dark);
}

.option-card--image.is-selected::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}

/* ── "Other" card (text input reveal) ── */
.option-card--other {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 18px;
}

/* Image grid "Other" needs consistent sizing */
.form-step__options--grid .option-card--other {
  min-height: 60px;
}

.option-card__text-input {
  display: none;
  width: 100%;
  border: none;
  border-top: 1px solid rgba(26, 25, 24, 0.12);
  padding: 8px 0 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-dark);
  background: transparent;
  outline: none;
}

.option-card__text-input::placeholder {
  color: rgba(26, 25, 24, 0.3);
}

.option-card--other.is-selected .option-card__text-input {
  display: block;
}

/* ── Step validation shake ── */
@keyframes formShake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  60%       { transform: translateX(5px); }
}

.form-step.has-error .form-step__options {
  animation: formShake 0.35s ease;
}

.form-step.has-error .contact-fields {
  animation: formShake 0.35s ease;
}

/* ── Contact Fields (step 6) ── */
.contact-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.contact-field__label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(26, 25, 24, 0.5);
  margin-bottom: 8px;
}

.contact-field__optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.contact-field__input,
.contact-field__textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid rgba(26, 25, 24, 0.18);
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-dark);
  background: transparent;
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.contact-field__input::placeholder,
.contact-field__textarea::placeholder {
  color: rgba(26, 25, 24, 0.28);
}

.contact-field__input:focus,
.contact-field__textarea:focus {
  border-bottom-color: var(--color-dark);
}

.contact-field__textarea {
  resize: vertical;
  min-height: 88px;
}

.form-error-msg {
  font-family: var(--font-body);
  font-size: 13px;
  color: #b94040;
  margin-top: -8px;
}

/* ── Form Navigation ── */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 36px;
}

.form-nav__back {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(26, 25, 24, 0.4);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.form-nav__back:hover {
  color: var(--color-dark);
}

.form-nav__back.is-hidden {
  visibility: hidden;
  pointer-events: none;
}

.form-nav__next,
.form-nav__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--color-dark);
  color: var(--color-white);
  border: 1.5px solid var(--color-dark);
  padding: 14px 28px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-nav__next:hover,
.form-nav__submit:hover {
  background: #2d2c2b;
}

.form-nav__submit .btn__icon {
  width: 15px;
  height: 15px;
  filter: invert(1);
}

/* ── Thank You State ── */
.contact-form__thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 24px;
  gap: 20px;
}

.thankyou__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou__heading {
  color: var(--color-dark);
}

.thankyou__text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: rgba(26, 25, 24, 0.6);
  max-width: 440px;
}

.thankyou__estimate {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--color-dark);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 400px;
}

.thankyou__estimate-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.thankyou__estimate-range {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.1;
}

.thankyou__estimate-note {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  text-align: center;
}

/* ── Desktop ── */
@media (min-width: 768px) {
  .contact-form-section {
    padding: 60px;
  }

  .contact-form-section__inner {
    gap: 48px;
  }

  .contact-form__body {
    padding: 48px 56px 56px;
    gap: 44px;
  }

  .form-progress__label {
    display: block;
  }

  .form-step__question {
    font-size: 1.9rem;
  }

  /* Text cards: 4-across */
  .form-step__options {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Image grids: 3-across */
  .form-step__options--grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Size step: 2 large cards */
  .form-step__options--grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  /* Contact fields: 2-column */
  .contact-fields {
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
  }

  .contact-field--full {
    grid-column: span 2;
  }
}
