/* ===========================================================================
   Canyon Bloom Painting — Flagship Edition
   Design & Architecture: Antigravity (Powered by Gemini)
   Theme: Warm Sonoran Modernism — Desert Mineral, Terracotta, Saguaro & Basalt
   =========================================================================== */

:root {
  /* Color System */
  --bg-sand: #FAF7F2;
  --bg-card: #FFFFFF;
  --bg-subtle: #F3ECE1;
  --bg-dark: #1E272D;
  --bg-darker: #151C21;
  
  --ink: #222B30;
  --ink-secondary: #56646E;
  --ink-muted: #84939E;
  --ink-inverted: #F8F9FA;
  
  --terracotta: #C25A3C;
  --terracotta-hover: #A7472B;
  --terracotta-soft: rgba(194, 90, 60, 0.12);
  --terracotta-glow: rgba(194, 90, 60, 0.25);
  
  --sage: #7E8A57;
  --sage-dark: #647040;
  --sage-soft: rgba(126, 138, 87, 0.14);
  
  --ochre: #D99A2C;
  --ochre-soft: rgba(217, 154, 44, 0.15);
  
  --border: #E8E0D2;
  --border-strong: #D5CBB9;
  --border-dark: #2F3C45;
  
  /* Typography */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  
  /* Radii & Shadows */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(34, 43, 48, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(34, 43, 48, 0.08), 0 4px 12px rgba(34, 43, 48, 0.03);
  --shadow-lg: 0 24px 60px -12px rgba(34, 43, 48, 0.14), 0 8px 24px -4px rgba(34, 43, 48, 0.06);
  --shadow-glow: 0 16px 40px -10px var(--terracotta-glow);
  
  --max-w: 1200px;
  --nav-h: 78px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

a {
  color: var(--terracotta);
  text-decoration: none;
  transition: color 0.18s ease;
}
a:hover { color: var(--terracotta-hover); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.2rem, 3.5vw, 2.5rem);
  padding-right: clamp(1.2rem, 3.5vw, 2.5rem);
}

.container-narrow {
  max-width: 860px;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--terracotta);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* Kicker & Badges */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.85rem;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--terracotta);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
}
.badge-terracotta {
  background: var(--terracotta-soft);
  color: var(--terracotta-hover);
  border-color: rgba(194, 90, 60, 0.25);
}
.badge-sage {
  background: var(--sage-soft);
  color: var(--sage-dark);
  border-color: rgba(126, 138, 87, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--r-pill);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--terracotta);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(194, 90, 60, 0.35);
}
.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 90, 60, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--ink) !important;
  border: 1.5px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--bg-dark);
  color: #FFFFFF !important;
  border: 1px solid var(--border-dark);
}
.btn-dark:hover {
  background: var(--bg-darker);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.84rem;
}

/* ===========================================================================
   TOP ANNOUNCEMENT BAR
   =========================================================================== */
.announcement-bar {
  background: var(--bg-dark);
  color: var(--ink-inverted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--border-dark);
}
.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.announcement-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
.announcement-right a {
  color: var(--ochre);
  font-weight: 600;
}
.announcement-right a:hover {
  text-decoration: underline;
}

/* ===========================================================================
   SITE HEADER & NAVIGATION
   =========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
}
.site-header.scrolled {
  box-shadow: 0 10px 30px -10px rgba(34, 43, 48, 0.08);
  background: rgba(255, 255, 255, 0.95);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.brand-img {
  height: 48px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.18s ease;
  position: relative;
}
.main-nav a:hover {
  color: var(--terracotta);
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.2s ease;
}
.main-nav a:hover::after {
  width: 100%;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone-link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  color: var(--ink);
}
.header-phone-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--sage-dark);
}
.header-phone-number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.nav-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-strong);
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* ===========================================================================
   HERO: ARCHITECTURAL SONORAN STATEMENT
   =========================================================================== */
.hero-section {
  position: relative;
  padding: clamp(3rem, 6.5vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem);
  background: radial-gradient(100% 70% at 75% 0%, #F5ECDD 0%, var(--bg-sand) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 1.35rem;
  color: var(--ink);
}
.hero-title .highlight-terracotta {
  color: var(--terracotta);
  position: relative;
  display: inline-block;
}
.hero-title .highlight-terracotta::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(194, 90, 60, 0.18);
  border-radius: 4px;
  z-index: -1;
}

.hero-lead {
  font-size: clamp(1.08rem, 1.8vw, 1.25rem);
  color: var(--ink-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.4rem;
}

.hero-credentials-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.credential-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-secondary);
}
.credential-item strong {
  color: var(--ink);
}
.star-rating {
  color: var(--ochre);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

/* Hero Visual Showcase */
.hero-visual-card {
  position: relative;
  background: var(--bg-card);
  padding: 1rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.hero-preview-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: #E8E0D2;
}
.hero-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(21, 28, 33, 0.86);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-visual-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ochre);
}

.hero-visual-caption {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.4rem;
}
.caption-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
}
.caption-loc {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-muted);
}

/* Floating Inspection Tag */
.hero-floating-stat {
  position: absolute;
  bottom: -20px;
  right: -15px;
  background: var(--bg-card);
  padding: 0.9rem 1.3rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 3;
}
.stat-icon-circ {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-soft);
  color: var(--sage-dark);
  display: grid;
  place-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}
.stat-text-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
}
.stat-text-lbl {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

/* ===========================================================================
   SONORAN PILLARS / PROOF BAND
   =========================================================================== */
.pillars-band {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  padding: 1.2rem 1rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-2px);
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 0.4rem;
}
.pillar-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.pillar-desc {
  font-size: 0.88rem;
  color: var(--ink-secondary);
  margin: 0;
  line-height: 1.45;
}

/* ===========================================================================
   INTERACTIVE ESTIMATOR & SCOPE PLANNER (SHOWSTOPPER)
   =========================================================================== */
.section-estimator {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: linear-gradient(180deg, var(--bg-sand) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.estimator-wrapper {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.estimator-controls {
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* Project Type Tabs */
.estimator-type-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.type-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-sand);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  text-align: left;
  transition: all 0.2s ease;
}
.type-btn:hover {
  background: #FFF;
  border-color: var(--ink-muted);
}
.type-btn.active {
  background: #FFF;
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(194, 90, 60, 0.15);
}
.type-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--terracotta-soft);
  color: var(--terracotta);
  display: grid;
  place-content: center;
  flex-shrink: 0;
}
.type-btn.active .type-icon {
  background: var(--terracotta);
  color: #FFF;
}
.type-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.2;
}
.type-sub {
  font-size: 0.76rem;
  color: var(--ink-muted);
  display: block;
}

/* Form Groups inside Estimator */
.estimator-group {
  margin-bottom: 1.8rem;
}
.estimator-group-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.estimator-val-readout {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--terracotta);
}

.range-slider-wrap {
  position: relative;
  padding: 0.5rem 0;
}
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-subtle);
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid #FFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Choice Buttons (Pills) */
.choice-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}
.pill-btn {
  padding: 0.7rem 0.5rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-sand);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  transition: all 0.18s ease;
}
.pill-btn:hover {
  border-color: var(--ink-muted);
}
.pill-btn.active {
  background: var(--bg-dark);
  color: #FFF;
  border-color: var(--bg-dark);
}

/* Estimator Live Output Sidebar */
.estimator-output-panel {
  background: var(--bg-dark);
  color: var(--ink-inverted);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--border-dark);
}

.output-header-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ochre);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.output-pricing-block {
  margin: 1.2rem 0 1.6rem;
}
.output-range-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.output-pricing-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.4rem;
}

.output-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  border-top: 1px solid var(--border-dark);
}
.output-spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-dark);
  font-size: 0.88rem;
}
.spec-name {
  color: #A0B0BA;
}
.spec-val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #FFFFFF;
}

.estimator-cta-wrap {
  margin-top: auto;
}
.output-fineprint {
  font-size: 0.74rem;
  color: #84939E;
  margin-top: 0.8rem;
  text-align: center;
}

/* ===========================================================================
   DUAL-MODE TRANSFORMATION STUDIO (BEFORE / AFTER & INSPECTOR)
   =========================================================================== */
.section-transformations {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.transformation-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.project-switcher-tabs {
  display: flex;
  gap: 0.6rem;
}
.proj-tab {
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  font-weight: 700;
  background: var(--bg-sand);
  color: var(--ink-secondary);
  border: 1px solid var(--border);
  transition: all 0.18s ease;
}
.proj-tab:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
}
.proj-tab.active {
  background: var(--terracotta);
  color: #FFFFFF;
  border-color: var(--terracotta);
}

.view-mode-toggle {
  display: flex;
  align-items: center;
  background: var(--bg-sand);
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}
.mode-btn {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: var(--r-pill);
  color: var(--ink-secondary);
  transition: all 0.18s ease;
}
.mode-btn.active {
  background: var(--bg-card);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Before / After Slider Component */
.ba-showcase-container {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  background: var(--bg-dark);
}

/* Mode 1: Interactive Slider */
.ba-slider-view {
  --ba-pos: 50%;
  position: relative;
  aspect-ratio: 16/10;
  min-height: 480px;
  overflow: hidden;
  user-select: none;
}
.ba-slider-view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-layer-after {
  position: absolute;
  inset: 0;
}
.ba-layer-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 3px;
  background: #FFFFFF;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}
.ba-slider-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid #FFFFFF;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  display: grid;
  place-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
}

.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 10;
}

.ba-badge-pill {
  position: absolute;
  top: 1.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 5;
}
.ba-badge-before {
  left: 1.5rem;
  background: rgba(21, 28, 33, 0.85);
  color: #FFF;
  border: 1px solid rgba(255,255,255,0.2);
}
.ba-badge-after {
  right: 1.5rem;
  background: var(--terracotta);
  color: #FFF;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Mode 2: Side by Side Grid View */
.ba-split-view {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--border-strong);
}
.ba-split-view.active {
  display: grid;
}
.split-pane {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.split-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Callout Inspector Details below image */
.transformation-footer-details {
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 1.5rem;
  align-items: center;
}
.tf-meta-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
}
.tf-meta-loc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 0;
}
.tf-spec-item {
  border-left: 2px solid var(--border);
  padding-left: 1rem;
}
.tf-spec-lbl {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  display: block;
}
.tf-spec-val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

/* Secondary Photo Gallery Grid */
.additional-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.gallery-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-subtle);
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.04);
}
.gallery-card-body {
  padding: 1.2rem;
}
.gallery-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
}
.gallery-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.2rem 0 0.4rem;
}
.gallery-card-desc {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  margin: 0;
}

/* ===========================================================================
   THE 5-STAGE DESERT-PROOF PROCESS
   =========================================================================== */
.section-process {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--bg-dark);
  color: var(--ink-inverted);
}
.section-process .section-title {
  color: #FFFFFF;
}
.section-process .section-subtitle {
  color: #A0B0BA;
}

.process-steps-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  position: relative;
}
.process-steps-container::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border-dark);
  z-index: 1;
}

.process-step-card {
  position: relative;
  z-index: 2;
  background: var(--bg-darker);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-md);
  padding: 1.6rem 1.2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.process-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--terracotta);
}
.step-number-bubble {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--terracotta);
  color: var(--terracotta);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  display: grid;
  place-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 0 6px var(--bg-darker);
}
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.84rem;
  color: #8C9CA8;
  margin: 0;
  line-height: 1.5;
}

/* ===========================================================================
   SERVICES ARCHITECTURAL BREAKDOWN
   =========================================================================== */
.section-services {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--bg-sand);
  border-bottom: 1px solid var(--border);
}

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.service-spec-card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.service-spec-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.service-icon-circ {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--terracotta-soft);
  color: var(--terracotta);
  display: grid;
  place-content: center;
}
.service-icon-circ svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}
.service-index-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.service-spec-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.service-spec-card p {
  font-size: 0.92rem;
  color: var(--ink-secondary);
  margin-bottom: 1.4rem;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.service-features-list li::before {
  content: "✓";
  color: var(--sage);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ===========================================================================
   SONORAN ARCHITECTURE PALETTE & HOA GUIDE
   =========================================================================== */
.section-palette {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.palette-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}

.swatch-card {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-sand);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
  cursor: pointer;
}
.swatch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.swatch-color-chip {
  aspect-ratio: 5/4;
  width: 100%;
}
.swatch-body {
  padding: 1rem;
}
.swatch-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.2rem;
}
.swatch-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--terracotta);
  font-weight: 700;
  display: block;
}
.swatch-specs {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
  font-size: 0.74rem;
  color: var(--ink-secondary);
  display: flex;
  justify-content: space-between;
}

/* ===========================================================================
   OWNER-OPERATOR STORY: MARK STEWART
   =========================================================================== */
.section-about-mark {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--bg-sand);
  border-bottom: 1px solid var(--border);
}

.about-mark-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.about-mark-portrait-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--r-lg);
  padding: 1.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.portrait-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-subtle);
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-mark-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 0.8rem 1.4rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.badge-quote-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0;
  color: var(--ink);
}
.badge-quote-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--terracotta);
  font-weight: 700;
}

.about-mark-text h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
}
.about-mark-text p {
  font-size: 1.05rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.owner-guarantee-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.2rem 1.5rem;
  margin-top: 1.8rem;
}
.owner-guarantee-box p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

/* ===========================================================================
   VALLEY SERVICE AREAS
   =========================================================================== */
.section-areas {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.areas-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.areas-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.city-pill {
  padding: 0.6rem 1.2rem;
  border-radius: var(--r-pill);
  background: var(--bg-sand);
  border: 1.5px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  transition: all 0.2s ease;
}
.city-pill:hover {
  background: var(--terracotta);
  color: #FFF;
  border-color: var(--terracotta);
  transform: translateY(-2px);
}

/* ===========================================================================
   HOMEOWNER TESTIMONIALS
   =========================================================================== */
.section-reviews {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--bg-sand);
  border-bottom: 1px solid var(--border);
}

.reviews-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.review-card-item {
  background: var(--bg-card);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.review-quote-text {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.review-author-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.author-avatar-circ {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--terracotta);
  font-family: var(--font-display);
  font-weight: 800;
  display: grid;
  place-content: center;
  font-size: 1rem;
}
.author-name-tag {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 0;
}
.author-project-loc {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  margin: 0;
}

/* ===========================================================================
   CATEGORIZED FAQ
   =========================================================================== */
.section-faq {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.faq-filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.faq-tab-btn {
  padding: 0.55rem 1.2rem;
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--bg-sand);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  transition: all 0.18s ease;
}
.faq-tab-btn.active {
  background: var(--bg-dark);
  color: #FFF;
  border-color: var(--bg-dark);
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 820px;
  margin: 0 auto;
}
.faq-item {
  background: var(--bg-sand);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: var(--ink-muted);
}
.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  background: none;
  cursor: pointer;
}
.faq-icon-cross {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.faq-icon-cross::before, .faq-icon-cross::after {
  content: "";
  position: absolute;
  background: var(--terracotta);
  transition: transform 0.25s ease;
}
.faq-icon-cross::before {
  top: 9px;
  left: 2px;
  width: 16px;
  height: 2px;
}
.faq-icon-cross::after {
  top: 2px;
  left: 9px;
  width: 2px;
  height: 16px;
}
.faq-trigger[aria-expanded="true"] .faq-icon-cross::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-content-inner {
  padding: 0 1.6rem 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* ===========================================================================
   FINAL CONSULTATION & ESTIMATE FORM
   =========================================================================== */
.section-contact {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: linear-gradient(180deg, var(--bg-sand) 0%, #EDE5D6 100%);
  border-bottom: 1px solid var(--border);
}

.contact-layout-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-direct-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.direct-method-item {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  align-items: flex-start;
}
.method-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--terracotta-soft);
  color: var(--terracotta);
  display: grid;
  place-content: center;
  flex-shrink: 0;
}
.method-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.method-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin-top: 0.1rem;
  display: block;
}

/* Consultation Form */
.consultation-form-card {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: clamp(1.8rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}

.form-grid-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.form-field-full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-secondary);
  margin-bottom: 0.4rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-sand);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #FFF;
  box-shadow: 0 0 0 4px var(--terracotta-soft);
}

.form-status-banner {
  grid-column: 1 / -1;
  padding: 0.9rem 1.2rem;
  border-radius: var(--r-sm);
  background: var(--sage-soft);
  color: var(--sage-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ===========================================================================
   FOOTER
   =========================================================================== */
.site-footer {
  background: var(--bg-darker);
  color: #B5C4CF;
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  margin-bottom: 1.2rem;
}
.footer-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 320px;
  color: #8C9CA8;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links-list li {
  margin-bottom: 0.6rem;
}
.footer-links-list a {
  color: #8C9CA8;
  font-size: 0.9rem;
  transition: color 0.18s ease;
}
.footer-links-list a:hover {
  color: var(--ochre);
}

.footer-bottom-row {
  border-top: 1px solid var(--border-dark);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #6C7C87;
}

/* ===========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   =========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .estimator-wrapper {
    grid-template-columns: 1fr;
  }
  .estimator-output-panel {
    border-left: none;
    border-top: 1px solid var(--border-dark);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps-container {
    grid-template-columns: 1fr;
  }
  .process-steps-container::before {
    display: none;
  }
  .services-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .palette-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  .announcement-bar { display: none; }
  .main-nav { display: none; }
  .header-phone-link { display: none; }
  .nav-toggle-btn { display: flex; }
  
  .transformation-footer-details {
    grid-template-columns: 1fr;
  }
  .services-catalog-grid {
    grid-template-columns: 1fr;
  }
  .additional-gallery-grid {
    grid-template-columns: 1fr;
  }
  .palette-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-mark-grid {
    grid-template-columns: 1fr;
  }
  .areas-inner-grid {
    grid-template-columns: 1fr;
  }
  .reviews-cards-grid {
    grid-template-columns: 1fr;
  }
  .contact-layout-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-inner {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
}
