/* ==========================================================================
   THE BARN YARD — DIGITAL REMIX & ARCHITECTURAL DESIGN SYSTEM
   Bespoke luxury aesthetic blending New England timber heritage with modern 3D CAD precision.
   ========================================================================== */

:root {
  --color-forest-deep: #0b1812;
  --color-forest-rich: #142a20;
  --color-forest-mid: #1d382c;
  --color-forest-light: #284a3b;
  
  --color-timber-honey: #c78a48;
  --color-timber-glow: #e09f58;
  --color-timber-pale: #eed8b9;
  
  --color-cream-bg: #f8f6f0;
  --color-cream-card: #ffffff;
  --color-cream-tint: #f1ede2;
  
  --color-charcoal: #1f2522;
  --color-slate: #3a423e;
  --color-muted: #6e7771;
  --color-border: rgba(20, 42, 32, 0.12);
  --color-border-light: rgba(255, 255, 255, 0.12);

  --font-serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;

  --shadow-subtle: 0 4px 12px rgba(11, 24, 18, 0.04);
  --shadow-medium: 0 10px 30px rgba(11, 24, 18, 0.08);
  --shadow-dramatic: 0 20px 50px rgba(11, 24, 18, 0.16);
  --shadow-glow: 0 0 40px rgba(199, 138, 72, 0.25);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--color-cream-bg);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video, canvas {
  max-width: 100%;
}

/* ==========================================================================
   TOP NOTIFICATION & DUAL-FUNNEL BAR
   ========================================================================== */
.top-utility-bar {
  background-color: var(--color-forest-deep);
  color: #cdd6d1;
  font-size: 0.82rem;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-pill {
  background: rgba(199, 138, 72, 0.2);
  color: var(--color-timber-glow);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(199, 138, 72, 0.4);
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-link {
  color: #cdd6d1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.utility-link:hover {
  color: var(--color-timber-glow);
}

.utility-phone {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
/* ==========================================================================
   HEADER & NAVIGATION — TWO-TIER LUXURY ARCHITECTURE
   Row 1: Official Logo + Dual-Funnel Switcher + Phone + CTA
   Row 2: Dedicated Navigation Row Below Logo (Zero Congestion)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(14, 31, 24, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
  transition: all 0.3s ease;
}

.header-top-row {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.header-top-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-phone {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.header-phone:hover {
  color: var(--color-timber-glow);
}

/* Row 2: Navigation Bar Positioned Below Logo */
.header-nav-row {
  background: rgba(10, 22, 17, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 32px;
}

.nav-links-wrap {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.nav-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  user-select: none;
}

.nav-link {
  color: #d1ded7;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-timber-glow);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-timber-glow);
}

/* Semantic Nav Dropdown Architecture (SEO & AI Agent Optimized) */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item.has-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-item.has-dropdown .nav-arrow {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  opacity: 0.7;
}

.nav-item.has-dropdown:hover .nav-arrow,
.nav-item.has-dropdown:focus-within .nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--color-timber-glow);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(11, 24, 18, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(199, 138, 72, 0.35);
  border-radius: var(--radius-md);
  padding: 8px 0;
  min-width: 250px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 9999;
}

/* Invisible bridge so mouse doesn't lose hover across gap */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-item.has-dropdown:hover .nav-dropdown-menu,
.nav-item.has-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.dropdown-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
  color: #cdd8d2;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.dropdown-link:hover {
  background: rgba(199, 138, 72, 0.2);
  color: var(--color-timber-glow);
  padding-left: 24px;
}

.dropdown-link .dropdown-tag {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(199, 138, 72, 0.2);
  color: var(--color-timber-pale);
  border: 1px solid rgba(199, 138, 72, 0.4);
}

/* Dual Funnel Quick Switcher */
.funnel-toggle-group {
  display: flex;
  background: rgba(11, 24, 18, 0.7);
  border-radius: 30px;
  padding: 3px;
  border: 1px solid var(--color-border-light);
}

.funnel-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: #a8b5ae;
  background: transparent;
  transition: all 0.2s ease;
}

.funnel-btn.active {
  background: var(--color-timber-honey);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-cta {
  background: var(--color-timber-honey);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-timber-glow);
}

.btn-cta:hover {
  background: var(--color-timber-glow);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--color-forest-deep);
  color: #ffffff;
  overflow: hidden;
  padding: 80px 32px;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11,24,18,0.92) 0%, rgba(20,42,32,0.85) 50%, rgba(11,24,18,0.95) 100%),
              url('images/54_x_48_Homestead_Gambrel_Barn_6871_Environment_2.jpg') center/cover no-repeat;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-tag {
  color: var(--color-timber-glow);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-timber-glow);
  box-shadow: 0 0 10px var(--color-timber-glow);
}

.toh-badge {
  height: 24px;
  opacity: 0.85;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.hero-headline span {
  color: var(--color-timber-glow);
  font-style: italic;
  font-weight: 400;
}

.hero-lead {
  font-size: 1.2rem;
  color: #d1ded8;
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 620px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-timber-honey);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: #a4b3ac;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Right Floating Card */
.hero-feature-card {
  background: rgba(20, 42, 32, 0.65);
  border: 1px solid rgba(199, 138, 72, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-dramatic);
  position: relative;
}

.card-header-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-timber-glow);
  font-weight: 700;
  margin-bottom: 12px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: #c5d4cd;
  line-height: 1.6;
  margin-bottom: 24px;
}

.card-image-preview {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 20px;
  border: 1px solid var(--color-border-light);
}

.card-specs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.spec-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-line span:first-child {
  color: #9cb0a6;
}

.spec-line span:last-child {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   SECTION COMMON WRAPPERS
   ========================================================================== */
.section {
  padding: 96px 32px;
}

.section-dark {
  background-color: var(--color-forest-rich);
  color: #ffffff;
}

.section-cream {
  background-color: var(--color-cream-bg);
  color: var(--color-charcoal);
}

.section-white {
  background-color: #ffffff;
  color: var(--color-charcoal);
}

.container {
  max-width: 1360px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px auto;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-timber-honey);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.12rem;
  color: var(--color-slate);
  line-height: 1.65;
}

.section-dark .section-desc {
  color: #bed0c7;
}

/* ==========================================================================
   INTERACTIVE BEFORE / AFTER COMPARISON SLIDER SECTION
   ========================================================================== */
.slider-section {
  background: var(--color-forest-deep);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.slider-container-card {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(20, 42, 32, 0.5);
  border: 1px solid rgba(199, 138, 72, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-dramatic);
}

.slider-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 20px;
}

.slider-instructions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(199, 138, 72, 0.15);
  border: 1px solid rgba(199, 138, 72, 0.4);
  color: var(--color-timber-glow);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Customizing the img-comparison-slider Web Component */
img-comparison-slider {
  --divider-width: 3px;
  --divider-color: #c78a48;
  --default-handle-opacity: 1;
  --default-handle-width: 50px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-height: 640px;
  display: block;
  outline: none;
}

img-comparison-slider:focus {
  outline: 2px solid var(--color-timber-glow);
}

.slider-figure {
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  object-fit: cover;
  display: block;
}

.slider-tag-badge {
  position: absolute;
  top: 24px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.badge-left {
  left: 24px;
  background: rgba(11, 24, 18, 0.85);
  color: #e5ece8;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-right {
  right: 24px;
  background: rgba(199, 138, 72, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Custom handle inside slider */
.custom-slider-handle {
  width: 48px;
  height: 48px;
  background: var(--color-timber-honey);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  cursor: ew-resize;
  color: #ffffff;
}

.slider-callout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border-light);
}

.callout-box h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--color-timber-glow);
}

.callout-box p {
  font-size: 0.95rem;
  color: #b7c7be;
  line-height: 1.6;
}

/* ==========================================================================
   LIFESTYLE ARCHETYPES SECTION (THE 6 PERSONAS)
   ========================================================================== */
.lifestyle-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.lifestyle-pill {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-slate);
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-subtle);
}

.lifestyle-pill:hover {
  border-color: var(--color-timber-honey);
  color: var(--color-timber-honey);
  transform: translateY(-2px);
}

.lifestyle-pill.active {
  background: var(--color-forest-rich);
  color: #ffffff;
  border-color: var(--color-forest-rich);
  box-shadow: var(--shadow-medium);
}

.lifestyle-content-wrapper {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

.lifestyle-info {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lifestyle-tag {
  color: var(--color-timber-honey);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 8px;
}

.lifestyle-heading {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--color-forest-deep);
}

.lifestyle-narrative {
  font-size: 1.05rem;
  color: var(--color-slate);
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
  padding-left: 16px;
  border-left: 3px solid var(--color-timber-honey);
}

.lifestyle-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-pill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-charcoal);
  font-weight: 500;
}

.feature-pill-item svg {
  color: var(--color-timber-honey);
  flex-shrink: 0;
}

.model-fit-box {
  background: var(--color-cream-tint);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.model-name {
  font-weight: 700;
  color: var(--color-forest-deep);
  font-size: 1rem;
}

.model-dims {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.lifestyle-visual {
  position: relative;
  background: var(--color-forest-deep);
  min-height: 480px;
}

.lifestyle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   3D PROCEDURAL TIMBER CONFIGURATOR SECTION
   ========================================================================== */
.configurator-section {
  background: var(--color-forest-deep);
  color: #ffffff;
  position: relative;
}

.configurator-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: stretch;
}

.viewport-container {
  position: relative;
  background: #080f0c;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(199, 138, 72, 0.3);
  box-shadow: var(--shadow-dramatic);
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  cursor: grab;
}

#webgl-canvas:active {
  cursor: grabbing;
}

.viewport-overlay-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.view-btn {
  background: rgba(11, 24, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e5ece8;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.view-btn:hover, .view-btn.active {
  background: var(--color-timber-honey);
  color: #ffffff;
  border-color: var(--color-timber-honey);
}

.viewport-status-bar {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 24, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--color-timber-glow);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
}

/* Configurator Options Panel */
.config-panel {
  background: var(--color-forest-rich);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 28px;
  box-shadow: var(--shadow-dramatic);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height: 720px;
  overflow-y: auto;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

.control-group {
  margin-bottom: 22px;
}

.control-label {
  display: block;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a7b8b0;
  margin-bottom: 8px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.option-btn {
  background: rgba(11, 24, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1ded8;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.option-btn:hover {
  border-color: var(--color-timber-glow);
  color: #ffffff;
}

.option-btn.active {
  background: var(--color-timber-honey);
  color: #ffffff;
  border-color: var(--color-timber-glow);
  font-weight: 700;
}

.toggle-switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(11, 24, 18, 0.5);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.toggle-switch-row span {
  font-size: 0.88rem;
  color: #e5ece8;
}

/* Cost & Quote Box in Panel */
.estimate-summary-box {
  background: rgba(11, 24, 18, 0.85);
  border: 1px solid rgba(199, 138, 72, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 20px;
}

.estimate-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-timber-glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.estimate-price {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 10px 0;
}

.estimate-detail {
  font-size: 0.78rem;
  color: #a4b5ac;
  line-height: 1.4;
  margin-bottom: 16px;
}

.btn-block-cta {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.95rem;
}

/* ==========================================================================
   ENGINEERING & CRAFT MOAT
   ========================================================================== */
.moat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.moat-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.moat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-timber-honey);
}

.moat-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--color-cream-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-timber-honey);
  margin-bottom: 24px;
}

.moat-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--color-forest-deep);
  margin-bottom: 12px;
}

.moat-card-desc {
  font-size: 0.95rem;
  color: var(--color-slate);
  line-height: 1.65;
}

/* ==========================================================================
   LOCATIONS & FOOTER
   ========================================================================== */
.showrooms-section {
  background: var(--color-cream-bg);
  border-top: 1px solid var(--color-border);
}

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

.showroom-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
}

.showroom-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-forest-deep);
  margin-bottom: 8px;
}

.showroom-address {
  font-size: 0.95rem;
  color: var(--color-slate);
  margin-bottom: 16px;
  line-height: 1.5;
}

.showroom-meta {
  font-size: 0.85rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.site-footer {
  background: var(--color-forest-deep);
  color: #ffffff;
  padding: 80px 32px 32px 32px;
  border-top: 1px solid var(--color-border-light);
}

.footer-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #a4b3ac;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-timber-glow);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #c7d6cf;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-timber-glow);
}

.footer-bottom {
  max-width: 1360px;
  margin: 32px auto 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #798881;
}

/* ==========================================================================
   MODAL / LEAD CAPTURE POPUP
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 24, 18, 0.8);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-dramatic);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-muted);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--color-forest-deep);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--color-slate);
  margin-bottom: 24px;
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-charcoal);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-sans);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-timber-honey);
  box-shadow: 0 0 0 3px rgba(199, 138, 72, 0.15);
}

/* ==========================================================================
   OFFICIAL BARN YARD ARCHITECTURAL SERIES & SPECIFICATIONS
   ========================================================================== */

/* Inferred Framework Blueprint Card */
.blueprint-inferred-card {
  background: rgba(14, 34, 25, 0.9);
  border: 1px solid rgba(199, 138, 72, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 14px;
}

.blueprint-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blueprint-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-timber-pale);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blueprint-tag {
  background: rgba(199, 138, 72, 0.25);
  color: var(--color-timber-glow);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.blueprint-specs-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bp-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.bp-label {
  color: #9cb0a6;
}

.bp-val {
  color: #ffffff;
  font-weight: 500;
}

.blueprint-actions-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.btn-blueprint-action {
  flex: 1;
  background: rgba(199, 138, 72, 0.15);
  border: 1px solid var(--color-timber-honey);
  color: var(--color-timber-glow);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-blueprint-action:hover {
  background: var(--color-timber-honey);
  color: #0b1812;
}

.bp-ai-alert {
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.4);
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 0.72rem;
  color: #a5d6a7;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.bp-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #4caf50;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #4caf50;
  animation: pulse-dot 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.bp-quick-control {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bp-control-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8fa298;
  display: block;
  margin-bottom: 5px;
}

.bp-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.bp-mini-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cfdcd5;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bp-mini-btn:hover {
  background: rgba(199, 138, 72, 0.2);
  color: #ffffff;
  border-color: var(--color-timber-honey);
}

.bp-mini-btn.active {
  background: var(--color-timber-honey);
  color: #0b1812;
  font-weight: 600;
  border-color: var(--color-timber-honey);
}

/* ==========================================================================
   ENGINEERED FEASIBILITY & 2D BLUEPRINT DRAFTING SHEET
   ========================================================================== */
.bp-feasibility-badge {
  background: linear-gradient(135deg, rgba(16, 61, 40, 0.95), rgba(8, 38, 24, 0.95));
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.bp-feasibility-verdict {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.bp-check-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22c55e;
  color: #052e16;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1;
}

.bp-verdict-text {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #86efac;
  text-transform: uppercase;
}

.bp-feasibility-answer {
  font-size: 0.76rem;
  color: #d1fae5;
  line-height: 1.35;
}

.bp-feasibility-answer strong {
  color: #ffffff;
}

.bp-drafting-sheet-wrap {
  margin-top: 12px;
  background: #08182b;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 10, 25, 0.7), 0 6px 16px rgba(0, 0, 0, 0.4);
}

.bp-sheet-header {
  background: #0d2238;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-sheet-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #38bdf8;
  text-transform: uppercase;
  font-family: var(--font-mono, monospace);
}

.bp-sheet-tabs {
  display: flex;
  gap: 4px;
}

.bp-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bp-tab-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
  border-color: #38bdf8;
}

.bp-tab-btn.active {
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
  border-color: #38bdf8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bp-svg-viewport {
  position: relative;
  width: 100%;
  min-height: 220px;
  background-color: #061524;
  background-image: 
    linear-gradient(rgba(0, 180, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6px;
}

.bp-svg-viewport svg {
  width: 100%;
  height: auto;
  max-height: 230px;
  display: block;
}

.bp-sheet-footer {
  background: #0a1b2d;
  padding: 6px 10px;
  border-top: 1px solid rgba(0, 212, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.62rem;
  color: #64748b;
  font-family: var(--font-mono, monospace);
}

.btn-blueprint-download {
  flex: 1;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-blueprint-download:hover {
  background: rgba(14, 165, 233, 0.3);
  color: #ffffff;
  border-color: #38bdf8;
}

/* ==========================================================================
   FOOTER SOCIAL LINKS & BADGES
   ========================================================================== */
.footer-social-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c7d6cf;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.footer-social-link:hover {
  background: var(--color-timber-honey);
  color: #ffffff;
  border-color: var(--color-timber-honey);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(199, 138, 72, 0.35);
}

.footer-social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ==========================================================================
   GALLERY COMPONENTS (PHOTO & VIDEO HUB)
   ========================================================================== */
.gallery-tab-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 24px 0;
}

.gallery-tab-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-charcoal);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-tab-btn:hover {
  border-color: var(--color-forest-deep);
  color: var(--color-forest-deep);
}

.gallery-tab-btn.active {
  background: var(--color-forest-deep);
  color: #ffffff;
  border-color: var(--color-forest-deep);
  box-shadow: 0 4px 14px rgba(11, 24, 18, 0.2);
}

.gallery-filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.filter-chip {
  background: rgba(11, 24, 18, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-slate);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:hover {
  background: rgba(199, 138, 72, 0.1);
  border-color: var(--color-timber-honey);
  color: var(--color-forest-deep);
}

.filter-chip.active {
  background: var(--color-timber-honey);
  color: #ffffff;
  border-color: var(--color-timber-honey);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-dramatic);
  border-color: var(--color-timber-honey);
}

.gallery-img-wrap {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background: var(--color-forest-deep);
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.06);
}

.gallery-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(11, 24, 18, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.gallery-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-forest-deep);
  margin-bottom: 8px;
}

.gallery-card-meta {
  font-size: 0.82rem;
  color: var(--color-slate);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gallery-card-desc {
  font-size: 0.88rem;
  color: var(--color-charcoal);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Video Responsive Player Cards */
.video-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-dramatic);
  border-color: var(--color-timber-honey);
}

.video-frame-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  background: #000000;
  border-radius: var(--radius-md);
}

.video-frame-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Enhanced Click-to-Play Video Facade (Solves Error 153 on file:/// & Boosts Speed) */
.video-facade {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  background: #0b1812;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: block;
}

.video-facade img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.88;
}

.video-facade:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.video-facade-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(239, 68, 68, 0.95);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  z-index: 2;
}

.video-facade:hover .video-facade-play {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.7);
}

.video-facade-play svg {
  fill: #ffffff;
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.video-facade-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(11, 24, 18, 0.95));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.video-facade-meta span.yt-pill {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.video-card-info {
  padding: 22px;
}

/* ==========================================================================
   BLOG / JOURNAL COMPONENTS
   ========================================================================== */
.blog-featured-banner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
  margin-bottom: 56px;
}

@media (max-width: 900px) {
  .blog-featured-banner {
    grid-template-columns: 1fr;
  }
}

.blog-featured-img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.blog-featured-body {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 1024px) {
  .blog-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .blog-article-grid {
    grid-template-columns: 1fr;
  }
}

.article-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dramatic);
  border-color: var(--color-timber-honey);
}

.article-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--color-forest-deep);
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.article-card-body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-category {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-timber-honey);
  margin-bottom: 8px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--color-forest-deep);
  margin-bottom: 12px;
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--color-slate);
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

/* ==========================================================================
   ABOUT US / COMPANY TIMELINE COMPONENTS
   ========================================================================== */
.about-milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 50px 0;
}

@media (max-width: 1024px) {
  .about-milestone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .about-milestone-grid {
    grid-template-columns: 1fr;
  }
}

.milestone-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.milestone-year {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-timber-honey);
  line-height: 1;
  margin-bottom: 10px;
}

.milestone-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-forest-deep);
  margin-bottom: 10px;
}

.milestone-desc {
  font-size: 0.88rem;
  color: var(--color-slate);
  line-height: 1.6;
}

.brand-story-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  background: var(--color-forest-deep);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 50px;
  margin: 60px 0;
  border: 1px solid rgba(199, 138, 72, 0.35);
}

@media (max-width: 900px) {
  brand-story-feature {
    grid-template-columns: 1fr;
    padding: 30px;
  }
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-container {
    grid-template-columns: 1fr;
  }
  .configurator-layout {
    grid-template-columns: 1fr;
  }
  .lifestyle-content-wrapper {
    grid-template-columns: 1fr;
  }
  .moat-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .app-workspace-main {
    grid-template-columns: 1fr !important;
  }
  .app-canvas-area {
    height: 44vh !important;
    min-height: 290px !important;
    max-height: 420px !important;
  }
  .app-sidebar {
    max-height: none !important;
    overflow-y: visible !important;
    padding: 20px 16px !important;
  }
  .hero-section {
    padding: 50px 20px 40px;
  }
  .section {
    padding: 50px 20px;
  }
}

@media (max-width: 768px) {
  .top-utility-bar {
    display: none;
  }
  
  /* Header Navigation Bar - Smooth Horizontal Touch Scroll */
  .header-nav-row {
    padding: 8px 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .header-nav-row::-webkit-scrollbar {
    display: none;
  }
  .nav-links-wrap {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 14px;
    width: max-content;
  }
  .nav-sep {
    display: inline-block;
    opacity: 0.35;
    font-size: 0.75rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 4px 2px;
  }

  .slider-callout-grid, .showroom-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
  }
  .section {
    padding: 45px 16px;
  }
  
  /* 3D Configurator Canvas inside index.html */
  .viewport-container {
    height: 340px !important;
    min-height: 280px !important;
  }
  .viewport-status-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.76rem;
    padding: 8px 12px;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
  .viewport-overlay-controls {
    top: 10px;
    left: 10px;
    gap: 6px;
  }
  .viewport-btn {
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  /* Blueprint Console Card on Mobile */
  .blueprint-actions-row {
    flex-direction: column;
    gap: 8px;
  }
  .btn-blueprint-download, .btn-blueprint-action {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .header-top-row {
    padding: 10px 14px;
    gap: 10px;
  }
  .header-top-actions {
    gap: 8px;
  }
  .funnel-toggle-group {
    padding: 2px;
  }
  .funnel-btn {
    padding: 4px 7px;
    font-size: 0.68rem;
  }
  .header-phone {
    font-size: 0.8rem;
  }
  .header-phone span.phone-text {
    display: none;
  }
  .header-top-actions .btn-cta {
    padding: 7px 11px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 6.5vw, 2.6rem);
    line-height: 1.16;
  }
  .hero-lead {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-actions .btn-cta, .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Modal Form Collapse to 1 Column on Mobile */
  .modal-content {
    width: 95vw !important;
    max-width: 95vw !important;
    padding: 22px 14px !important;
    max-height: 92vh !important;
  }
  .modal-content [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .modal-title {
    font-size: clamp(1.35rem, 4.5vw, 1.8rem) !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    height: 32px;
  }
  .hero-stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }
  .stat-value {
    font-size: 1.4rem;
  }
  .stat-label {
    font-size: 0.7rem;
  }
  
  /* Configurator button grids on small phones */
  .options-grid[style*="repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px;
  }
  .options-grid[style*="repeat(3"] {
    grid-template-columns: repeat(3, 1fr) !important;
    font-size: 0.72rem;
  }
  .option-btn {
    padding: 8px 6px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   MODAL CONFIGURATION SPEC SHEET & TOAST FEEDBACK
   ========================================================================== */
.modal-config-card {
  background: rgba(11, 24, 18, 0.95);
  border: 1px solid var(--color-timber-honey);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.modal-config-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-config-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-config-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-timber-glow);
  white-space: nowrap;
}

.modal-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.modal-spec-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d1ded7;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.modal-spec-pill.highlight {
  background: rgba(199, 138, 72, 0.25);
  border-color: rgba(199, 138, 72, 0.55);
  color: var(--color-timber-pale);
  font-weight: 600;
}

.modal-bent-thumb-wrap {
  background: #061524;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-height: 105px;
  overflow: hidden;
}

.modal-bent-thumb-wrap svg {
  width: 100%;
  max-height: 95px;
  display: block;
}

.modal-action-bar {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-copy-spec, .btn-copy-hash {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-copy-spec:hover, .btn-copy-hash:hover {
  background: rgba(199, 138, 72, 0.25);
  color: #ffffff;
  border-color: var(--color-timber-honey);
}

.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0d2b1f;
  color: #86efac;
  border: 1px solid #22c55e;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 999999;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: 90vw;
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   ARCHITECTURAL TIMBER FAQ ACCORDION SYSTEM
   ========================================================================== */
.faq-section {
  padding: 80px 24px;
}

.faq-container {
  max-width: 920px;
  margin: 0 auto;
}

.faq-header-wrap {
  text-align: center;
  margin-bottom: 40px;
}

.faq-search-wrapper {
  max-width: 580px;
  margin: 0 auto 32px auto;
  position: relative;
}

.faq-search-input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  background: #ffffff;
  border: 2px solid rgba(20, 42, 32, 0.12);
  border-radius: var(--radius-xl);
  font-size: 0.98rem;
  color: var(--color-charcoal);
  font-family: inherit;
  box-shadow: var(--shadow-subtle);
  transition: all 0.25s ease;
}

.faq-search-input:focus {
  outline: none;
  border-color: var(--color-timber-honey);
  box-shadow: 0 0 0 3px rgba(199, 138, 72, 0.2);
}

.faq-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-muted);
  pointer-events: none;
}

.faq-filter-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.faq-filter-btn {
  background: #ffffff;
  border: 1px solid rgba(20, 42, 32, 0.14);
  color: var(--color-slate);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-filter-btn:hover {
  background: var(--color-cream-tint);
  border-color: var(--color-timber-honey);
  color: var(--color-forest-deep);
}

.faq-filter-btn.active {
  background: var(--color-forest-deep);
  border-color: var(--color-forest-deep);
  color: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(20, 42, 32, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(11, 24, 18, 0.03);
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(199, 138, 72, 0.4);
  box-shadow: 0 6px 18px rgba(11, 24, 18, 0.06);
}

.faq-item.active {
  border-color: var(--color-timber-honey);
  box-shadow: 0 8px 24px rgba(199, 138, 72, 0.12);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.faq-question-text {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--color-forest-deep);
  line-height: 1.4;
  margin: 0;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-cream-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
  color: var(--color-slate);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--color-forest-deep);
  color: #ffffff;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-body {
  max-height: 800px;
  opacity: 1;
}

.faq-content {
  padding: 0 24px 22px 24px;
  color: var(--color-slate);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-content p {
  margin-bottom: 12px;
}

.faq-content ul {
  margin: 8px 0 14px 20px;
}

.faq-content li {
  margin-bottom: 6px;
}

.faq-highlight-note {
  background: var(--color-cream-tint);
  border-left: 3px solid var(--color-timber-honey);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 0.88rem;
  margin-top: 12px;
  color: var(--color-forest-deep);
}

.faq-support-card {
  background: linear-gradient(135deg, var(--color-forest-deep), var(--color-forest-rich));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 48px;
  text-align: center;
  border: 1px solid rgba(199, 138, 72, 0.3);
  box-shadow: var(--shadow-dramatic);
}

.faq-support-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.faq-support-card p {
  color: #c7d6ce;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 24px auto;
}

.faq-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 50px 16px;
  }
  .faq-trigger {
    padding: 16px 18px;
  }
  .faq-question-text {
    font-size: 1.02rem;
  }
  .faq-content {
    padding: 0 18px 18px 18px;
  }
  .faq-filter-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  .faq-support-card {
    padding: 24px 18px;
  }
}

