/* ===========================
   UNITFLIP — CUSTOM THEME
   =========================== */

:root {
  --bg: #F5F0E8;
  --bg-alt: #EDE8DF;
  --fg: #1A3A2A;
  --fg-muted: #4A6352;
  --accent: #C85A2A;
  --accent-light: rgba(200, 90, 42, 0.12);
  --white: #FFFFFF;
  --border: #D4CEc4;
  --hero-bg: #1A3A2A;
  --section-pad: clamp(64px, 8vw, 120px);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

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

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(24px, 5vw, 80px);
}

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

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--fg);
}

.nav-tagline {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---- HERO ---- */
.hero {
  background: var(--hero-bg);
  padding: clamp(60px, 7vw, 100px) clamp(24px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  max-width: 100%;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 6vw, 88px);
  line-height: 1.0;
  color: var(--white);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 440px;
}

/* Comparison Card */
.comparison-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(8px);
}

.comparison-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.comparison-before, .comparison-after { margin-bottom: 12px; }

.comparison-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

.tag-after { color: var(--accent); }

.comparison-image-slot {
  border-radius: 10px;
  overflow: hidden;
  height: 140px;
  position: relative;
}

.before-slot { background: #2C3E32; }
.after-slot { background: #1A3A2A; }

.comparison-arrow {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}

/* Before texture (old unit) */
.before-texture {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.texture-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.image-caption {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-align: center;
  line-height: 1.5;
}

/* After visual (refreshed unit) */
.after-visual {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.after-wall {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(135deg, #E8DDD0 0%, #D4C8B8 100%);
}

.after-wall::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 25%;
  width: 18px;
  height: 25px;
  border: 2px solid rgba(26, 58, 42, 0.3);
  border-radius: 3px;
}

.after-wall::after {
  content: '';
  position: absolute;
  top: 30%;
  right: 22%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(26, 58, 42, 0.25);
}

.after-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(135deg, #9A8B6E 0%, #7A6D55 100%);
}

.after-floor::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 40px 20px;
}

.after-caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* Stats row */
.comparison-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 8px;
}

.stat { flex: 1; text-align: center; }

.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
}

/* ---- SECTION COMMON ---- */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---- WHAT ---- */
.what {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  background: var(--bg);
}

.what-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.what-header {
  max-width: 600px;
  margin-bottom: 56px;
}

.what-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  color: var(--fg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 8px 32px rgba(26, 58, 42, 0.1);
  transform: translateY(-2px);
}

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

.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.what-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 640px;
}

/* ---- HOW ---- */
.how {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.how-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28vw;
  color: var(--border);
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.how-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.how-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1.1;
  color: var(--fg);
  max-width: 680px;
  margin-bottom: 64px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.how-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.8;
}

.how-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.how-content p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.how-stat-row {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.how-stat {
  font-size: 15px;
  color: var(--fg-muted);
}

.how-stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--fg);
  margin-right: 4px;
}

/* ---- PROCESS ---- */
.process {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  background: var(--bg);
}

.process-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.process-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 3.5vw, 52px);
  color: var(--fg);
  max-width: 600px;
  margin-bottom: 64px;
  line-height: 1.1;
}

.steps {
  position: relative;
  max-width: 700px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 28px;
  margin-bottom: 48px;
  position: relative;
}

.step-line {
  position: absolute;
  left: 19px;
  top: 32px;
  bottom: -16px;
  width: 2px;
  background: var(--border);
}

.step:last-child .step-line { display: none; }

.step-marker {
  grid-row: 1;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.step-content {
  grid-row: 1;
}

.step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
  opacity: 0.7;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---- PRICING ---- */
.pricing {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  background: var(--fg);
  color: var(--white);
}

.pricing-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.pricing .section-eyebrow { color: var(--accent); }

.pricing-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 4vw, 56px);
  color: var(--white);
  margin-bottom: 48px;
  line-height: 1.05;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.pricing-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 32px 28px;
}

.pricing-card.featured {
  background: var(--accent);
  border-color: var(--accent);
}

.pricing-tier {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 6px;
}

.pricing-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.pricing-detail {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.pricing-range {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 16px;
}

.pricing-ideal {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

.pricing-note {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

/* ---- CLOSING ---- */
.closing {
  padding: var(--section-pad) clamp(24px, 5vw, 80px);
  background: var(--hero-bg);
}

.closing-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.closing-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  color: var(--white);
  line-height: 1.05;
  max-width: 800px;
  margin-bottom: 28px;
}

.closing-body {
  font-size: clamp(16px, 1.4vw, 18px);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.closing-signature {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}

.closing-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.closing-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

/* ---- FOOTER ---- */
.footer {
  padding: 40px clamp(24px, 5vw, 80px);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  color: var(--fg);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-right {
  text-align: right;
}

.footer-contact {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 4px;
}

.footer-location {
  font-size: 13px;
  color: var(--fg-muted);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-sub { max-width: 100%; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .how-stat-row {
    flex-direction: column;
    gap: 16px;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-right { text-align: left; }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .comparison-stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
  }

  .step {
    grid-template-columns: 24px 1fr;
    column-gap: 16px;
  }
}