/* ==========================================================================
   Kanaka Creek Forest Products Ltd. - Modern Architectural Timber Landing Page
   Dual Theme Architecture: Light (Default, Warm PNW Timber) & Dark (Night Mill)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root,
html[data-theme="light"] {
  --theme-mode: 'light';

  /* Backgrounds */
  --bg-canvas: #f9f8f4;
  --bg-primary: #ffffff;
  --bg-secondary: #f3eee3;
  --bg-card: #ffffff;
  --bg-card-hover: #fdfbf7;
  --bg-glass: rgba(255, 255, 255, 0.90);
  --hero-overlay-start: rgba(249, 248, 244, 0.85);
  --hero-overlay-mid: rgba(249, 248, 244, 0.65);
  --hero-overlay-end: rgba(249, 248, 244, 0.96);

  /* Borders & Dividers */
  --border-color: rgba(20, 28, 22, 0.12);
  --border-highlight: rgba(184, 109, 43, 0.35);

  /* Timber Accents (Western Red Cedar & Douglas Fir) */
  --accent-amber: #9c5417;
  --accent-amber-light: #cf7e36;
  --accent-amber-dark: #8f4f18;
  --accent-amber-glow: rgba(184, 109, 43, 0.18);
  --accent-amber-surface: rgba(184, 109, 43, 0.08);

  /* Coastal Evergreen & Operating Badges */
  --accent-green: #1b3d2c;
  --accent-emerald: #059669;
  --accent-emerald-glow: rgba(5, 150, 105, 0.20);
  --accent-closed: #b45309;

  /* Typography Colors */
  --text-main: #141c16;
  --text-secondary: #3b493f;
  --text-muted: #5e7064;
  --text-inverse: #ffffff;

  /* Form Inputs */
  --input-bg: #ffffff;
  --input-border: #d4cdc2;
  --input-text: #141c16;
  --input-focus-border: var(--accent-amber);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(20, 28, 22, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 28, 22, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 28, 22, 0.12);
  --shadow-glow: 0 4px 20px rgba(184, 109, 43, 0.25);

  /* Sliders & Tracks */
  --slider-track: #e2dbd0;
  --slider-thumb: var(--accent-amber);
}

html[data-theme="dark"] {
  --theme-mode: 'dark';

  /* Backgrounds */
  --bg-canvas: #0a0d0c;
  --bg-primary: #101513;
  --bg-secondary: #171e1a;
  --bg-card: #1f2823;
  --bg-card-hover: #27342e;
  --bg-glass: rgba(23, 30, 26, 0.85);
  --hero-overlay-start: rgba(10, 13, 12, 0.85);
  --hero-overlay-mid: rgba(10, 13, 12, 0.55);
  --hero-overlay-end: rgba(10, 13, 12, 0.98);

  /* Borders & Dividers */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(212, 139, 72, 0.35);

  /* Timber Accents */
  --accent-amber: #d48b48;
  --accent-amber-light: #f3a65e;
  --accent-amber-dark: #b26e2f;
  --accent-amber-glow: rgba(212, 139, 72, 0.22);
  --accent-amber-surface: rgba(212, 139, 72, 0.12);

  /* Coastal Evergreen & Operating Badges */
  --accent-green: #2e684c;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-closed: #f59e0b;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0a0d0c;

  /* Form Inputs */
  --input-bg: #0d1210;
  --input-border: rgba(255, 255, 255, 0.14);
  --input-text: #ffffff;
  --input-focus-border: var(--accent-amber);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.50);
  --shadow-glow: 0 0 25px rgba(212, 139, 72, 0.25);

  /* Sliders & Tracks */
  --slider-track: #2a3530;
  --slider-thumb: var(--accent-amber);
}

:root {
  /* Typography Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);

  /* Radii & Timing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px; /* Prevent header overlap on anchor jump */
  font-size: 16px;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-canvas);
  min-height: 100vh;
  transition: background-color var(--transition-smooth), color var(--transition-smooth);
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--accent-amber);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
  transition: top var(--transition-fast);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

picture {
  display: contents;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   Header & Sticky Navigation
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: var(--announcement-height, 0px);
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  transition: top var(--transition-smooth), background var(--transition-smooth), padding var(--transition-smooth);
}

.header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 1.8vw, 1.5rem);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.footer-logo-img {
  height: 56px;
  max-width: 165px;
  margin-bottom: 0.5rem;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.02);
}

html[data-theme="light"] .logo-dark-mode,
html:not([data-theme="dark"]) .logo-dark-mode {
  display: none !important;
}
html[data-theme="light"] .logo-light-mode,
html:not([data-theme="dark"]) .logo-light-mode {
  display: block !important;
}

html[data-theme="dark"] .logo-light-mode {
  display: none !important;
}
html[data-theme="dark"] .logo-dark-mode {
  display: block !important;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-green));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(184, 109, 43, 0.3);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.70rem;
  color: var(--accent-amber);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: clamp(0.75rem, 1.3vw, 1.6rem);
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: clamp(0.85rem, 0.9vw, 0.92rem);
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 0.4rem 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-amber);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-amber);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-social-mobile-item {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1vw, 1rem);
  flex-shrink: 0;
}

/* Header Direct Call link */
.header-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.header-phone-link:hover {
  color: var(--accent-amber);
}

.header-phone-link svg {
  color: var(--accent-amber);
  flex-shrink: 0;
}

/* Quick GPS Directions Toggle Button */
.btn-directions-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  flex-shrink: 0;
}

.btn-directions-toggle:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-directions-toggle svg {
  color: var(--accent-amber);
  flex-shrink: 0;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.btn-theme-toggle:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  transform: scale(1.06);
}

html[data-theme="light"] .theme-icon-sun {
  display: none;
}
html[data-theme="light"] .theme-icon-moon {
  display: block;
}
html[data-theme="dark"] .theme-icon-sun {
  display: block;
}
html[data-theme="dark"] .theme-icon-moon {
  display: none;
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(620px, 85vh, 850px);
  max-height: 850px;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 30%;
  filter: brightness(0.96) contrast(1.08) saturate(1.15);
  transform: scale(1.02);
  transition: transform 8s ease-out;
}

html[data-theme="dark"] .hero-bg-image {
  filter: brightness(0.85) contrast(1.12) saturate(1.18);
}

.hero:hover .hero-bg-image {
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(249, 248, 244, 0.88) 0%,
      rgba(249, 248, 244, 0.84) 30%,
      rgba(249, 248, 244, 0.65) 52%,
      rgba(249, 248, 244, 0.15) 75%,
      transparent 90%
    ),
    linear-gradient(
      to bottom,
      rgba(249, 248, 244, 0.35) 0%,
      transparent 20%,
      transparent 70%,
      var(--bg-canvas) 100%
    );
  z-index: 2;
}

html[data-theme="dark"] .hero-overlay {
  background:
    linear-gradient(
      to right,
      rgba(10, 13, 12, 0.88) 0%,
      rgba(10, 13, 12, 0.84) 30%,
      rgba(10, 13, 12, 0.60) 52%,
      rgba(10, 13, 12, 0.15) 75%,
      transparent 90%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 13, 12, 0.35) 0%,
      transparent 20%,
      transparent 70%,
      var(--bg-canvas) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 640px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-highlight);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-pill-badge {
  background: var(--accent-amber);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-pill-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}

html[data-theme="dark"] .hero-title .gradient-text {
  color: inherit;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: #17201a;
  font-weight: 550;
  line-height: 1.65;
  margin-bottom: 2.2rem;
  max-width: 500px;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.95), 0 1px 2px rgba(255, 255, 255, 0.9);
}

html[data-theme="dark"] .hero-description {
  color: #e2e8f0;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.85);
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.hero-buttons .btn {
  padding: 0.72rem 1.05rem;
  font-size: 0.88rem;
  gap: 0.45rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-amber-dark));
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-amber-light), var(--accent-amber));
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-amber-glow);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-phone {
  background: var(--bg-card);
  border-color: rgba(5, 150, 105, 0.45);
  color: #047857;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

html[data-theme="dark"] .btn-phone {
  background: var(--bg-card);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.btn-phone:hover {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
}

html[data-theme="dark"] .btn-phone:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.35);
}

/* Live Sawmill Status Badge */
.sawmill-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.sawmill-status-badge.holiday-mode {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.45);
}

.sawmill-status-badge.holiday-mode .sawmill-status-text {
  color: #b45309;
  font-weight: 600;
}

html[data-theme="dark"] .sawmill-status-badge.holiday-mode {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
}

html[data-theme="dark"] .sawmill-status-badge.holiday-mode .sawmill-status-text {
  color: #fbbf24;
}

.hero-holiday-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #b45309;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  margin-top: 0.6rem;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.3s ease;
}

html[data-theme="dark"] .hero-holiday-callout {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald-glow);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

.status-dot.closed {
  background: var(--accent-closed);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* --------------------------------------------------------------------------
   Metrics Strip
   -------------------------------------------------------------------------- */
.metrics-section {
  position: relative;
  z-index: 20;
  margin-top: -2.5rem;
  margin-bottom: 4rem;
}

.metrics-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  box-shadow: var(--shadow-md);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

.metric-value {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-amber);
  line-height: 1.1;
  margin-bottom: 0.4rem;
  font-family: var(--font-heading);
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
  max-width: 190px;
}

/* --------------------------------------------------------------------------
   Sections & Headings
   -------------------------------------------------------------------------- */
.section {
  padding: 5rem 0;
  position: relative;
  scroll-margin-top: calc(var(--announcement-height, 0px) + 75px);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-amber);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Capabilities & Services Grid
   -------------------------------------------------------------------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.capability-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-lg), 0 0 20px var(--accent-amber-glow);
}

.capability-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.capability-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.capability-card.featured .capability-img-wrapper {
  height: 100%;
}

.capability-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.capability-card:hover .capability-img {
  transform: scale(1.08);
}

.capability-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-highlight);
  color: var(--accent-amber);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.capability-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.capability-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.capability-text {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.capability-features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.capability-feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.capability-feature-item svg {
  color: var(--accent-amber);
  flex-shrink: 0;
}

.capability-action {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-amber);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition-fast);
}

.capability-card:hover .capability-action {
  gap: 0.7rem;
  color: var(--accent-amber-light);
}

/* --------------------------------------------------------------------------
   Motion Picture VIP Section (Hollywood North)
   -------------------------------------------------------------------------- */
.film-spotlight {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  margin-top: 4rem;
  scroll-margin-top: calc(var(--announcement-height, 0px) + 85px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.film-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-amber-glow) 0%, transparent 70%);
  pointer-events: none;
}

.film-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-amber-surface);
  color: var(--accent-amber);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.film-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.film-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.film-quote {
  font-style: italic;
  border-left: 3px solid var(--accent-amber);
  padding-left: 1.2rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.film-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.film-f-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.film-f-item svg {
  color: var(--accent-amber);
  flex-shrink: 0;
}

.film-media-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.film-media-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.film-badge-overlay {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 24px rgba(20, 28, 22, 0.12);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.film-badge-overlay:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 28, 22, 0.16);
}

.film-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-amber-surface);
  color: var(--accent-amber);
  border: 1px solid rgba(184, 109, 43, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.film-badge-content {
  display: flex;
  flex-direction: column;
}

.film-badge-title,
.film-badge-num {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--accent-amber);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.film-badge-sub,
.film-badge-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 2px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Interactive Timber Project Estimator
   -------------------------------------------------------------------------- */
.estimator-section {
  background: var(--bg-secondary);
}

.estimator-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.estimator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.estimator-controls,
.estimator-summary-card {
  min-width: 0;
}

.estimator-step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-amber);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

/* Option grids */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.option-btn {
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
}

.option-btn.selected {
  background: var(--accent-amber-surface);
  border-color: var(--accent-amber);
  box-shadow: 0 0 15px var(--accent-amber-glow);
}

.option-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.option-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Sliders */
.range-group {
  margin-bottom: 1.8rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.range-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.range-val-badge {
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--accent-amber);
  font-weight: 700;
  font-size: 0.88rem;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  background: var(--slider-track);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--slider-thumb);
  box-shadow: 0 0 10px var(--accent-amber-glow);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Step 5 Stepper Controls */
.qty-stepper-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  line-height: 1;
  padding: 0;
}

.stepper-btn:hover:not(:disabled) {
  background: var(--accent-amber);
  color: #fff;
  border-color: var(--accent-amber);
}

.stepper-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.range-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Estimator Summary Card */
.estimator-summary-card {
  position: sticky;
  top: 95px;
  scroll-margin-top: calc(var(--announcement-height, 0px) + 75px);
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.summary-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.cutlist-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.summary-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.summary-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cutlist-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  background: var(--accent-amber-surface);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Cut-List Interactive Chips */
.cutlist-chips-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cutlist-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  position: relative;
}

.cutlist-chip:hover {
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.cutlist-chip.active {
  border-color: var(--accent-amber);
  background: rgba(217, 119, 6, 0.06);
  box-shadow: 0 0 0 1px var(--accent-amber), var(--shadow-sm);
}

html[data-theme="dark"] .cutlist-chip.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 1px var(--accent-amber), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cutlist-chip:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 2px;
}

.chip-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.chip-title-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.chip-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-amber);
  background: var(--accent-amber-surface);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.chip-dims {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.chip-active-indicator {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent-amber);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chip-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.chip-meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip-fbm {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.chip-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.chip-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  gap: 2px;
}

.chip-stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
  padding: 0;
}

.chip-stepper-btn:hover:not(:disabled) {
  background: var(--accent-amber);
  color: #fff;
}

.chip-stepper-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.chip-stepper-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  padding: 0 0.35rem;
  min-width: 44px;
  text-align: center;
  white-space: nowrap;
}

.chip-stepper-val small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

.chip-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: var(--radius-full);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.chip-delete-btn:hover:not(:disabled) {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.3);
  color: #ef4444;
}

.chip-delete-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

/* Add Cut Button */
.cutlist-add-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cutlist-add-chip-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px dashed var(--border-highlight);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--accent-amber);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cutlist-add-chip-btn:hover:not(:disabled) {
  background: var(--accent-amber-surface);
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

.cutlist-add-chip-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-style: solid;
  color: var(--text-muted);
}

.cutlist-max-notice {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* Active Cut Specifications Details */
.active-cut-details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.active-cut-details-header {
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}

.active-cut-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.active-cut-list {
  gap: 0.45rem;
}

.active-cut-list .summary-row {
  font-size: 0.84rem;
}

.summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.summary-label {
  color: var(--text-muted);
  font-weight: 500;
}

.summary-val {
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

/* Metric Box for Board Feet */
.summary-metric-box {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}

.metric-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.metric-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.metric-box-tag {
  background: var(--accent-amber-surface);
  color: var(--accent-amber);
  border: 1px solid var(--accent-amber);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.metric-box-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.metric-box-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-amber);
  line-height: 1;
}

.metric-box-unit {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.metric-box-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-box-pieces-row {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--border-color);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.metric-box-pieces-row strong {
  color: var(--text-main);
}

.capacity-alert {
  background: rgba(5, 150, 105, 0.10);
  border: 1px solid rgba(5, 150, 105, 0.30);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
}

/* Trust Guarantees */
.summary-guarantees {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.guarantee-item svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

.guarantee-item strong {
  color: var(--text-main);
}

/* Sawyer Helpline */
.summary-help-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.summary-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-emerald);
  font-weight: 700;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.summary-phone-link:hover {
  color: var(--accent-emerald-glow);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Portfolio & Gallery
   -------------------------------------------------------------------------- */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-highlight);
}

.filter-btn.active {
  background: var(--accent-amber);
  color: #ffffff;
  border-color: var(--accent-amber);
  box-shadow: 0 4px 15px var(--accent-amber-glow);
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 290px;
  background: var(--bg-card);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-highlight);
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 28, 22, 0.92) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.gallery-item-desc {
  font-size: 0.82rem;
  color: var(--accent-amber-light);
}

/* --------------------------------------------------------------------------
   Heritage & Fraser River Sawmill
   -------------------------------------------------------------------------- */
.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

.heritage-media {
  position: relative;
  display: flex;
  flex-direction: column;
}

.heritage-img-main {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.heritage-badge-floating {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  right: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.floating-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-amber);
  line-height: 1;
  flex-shrink: 0;
}

.floating-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.35;
}

.heritage-text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.heritage-text-block h3,
.heritage-text-block .section-title {
  margin-bottom: 1rem;
}

.heritage-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.heritage-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.heritage-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.heritage-pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-highlight);
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--accent-amber-surface);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.pillar-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   Contact & Location
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  background: var(--accent-amber-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  flex-shrink: 0;
}

.contact-detail-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.contact-detail-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.contact-hours-badge {
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
}

.hours-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

/* Contact Social Channels Card */
.contact-social-card {
  background: var(--bg-canvas);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-social-header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-social-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-social-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-social-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.contact-social-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-social-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-amber);
  box-shadow: var(--shadow-sm);
}

.contact-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.contact-social-icon.ig-icon {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.12), rgba(131, 58, 180, 0.12));
  color: #e1306c;
}

.contact-social-icon.fb-icon {
  background: rgba(24, 119, 242, 0.12);
  color: #1877f2;
}

.contact-social-btn:hover .contact-social-icon {
  transform: scale(1.08);
}

.contact-social-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.contact-social-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.contact-social-handle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-social-arrow {
  margin-left: auto;
  color: var(--accent-amber);
  font-weight: 700;
  font-size: 1rem;
  transition: transform var(--transition-fast);
}

.contact-social-btn:hover .contact-social-arrow {
  transform: translateX(3px);
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group.full {
  grid-column: span 2;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--input-text);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* --------------------------------------------------------------------------
   Sawmill Interactive Map & Navigation Card
   -------------------------------------------------------------------------- */
.sawmill-map-card {
  margin-top: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal);
}

.sawmill-map-card:hover {
  border-color: var(--border-highlight);
}

.map-card-header {
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.map-card-info {
  flex: 1;
  min-width: 280px;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}

.map-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.4rem 0;
}

.map-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.map-directions-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.map-iframe-container {
  width: 100%;
  height: 420px;
  position: relative;
  background: var(--bg-secondary);
}

.map-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
}

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

.footer-brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  color: var(--text-secondary);
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.2rem;
}

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

.footer-link {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-amber);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.84rem;
  color: var(--text-muted);
  gap: 1rem;
}

.footer-author-link {
  color: var(--accent-amber);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition-fast), text-decoration var(--transition-fast);
}

.footer-author-link:hover {
  color: var(--accent-amber-light);
  text-decoration: underline;
}

/* Footer Social Links */
.footer-social-wrap {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link-btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.social-link-btn.social-link-ig svg {
  color: #e1306c;
}

.social-link-btn.social-link-fb svg {
  color: #1877f2;
}

.social-link-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
  box-shadow: var(--shadow-sm);
}

.social-link-btn:hover svg {
  transform: scale(1.1);
}

.footer-inline-social {
  color: var(--accent-amber);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-inline-social:hover {
  text-decoration: underline;
  color: var(--accent-amber-light);
}

/* --------------------------------------------------------------------------
   Desktop Floating Quick Quote CTA
   -------------------------------------------------------------------------- */
.desktop-floating-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s;
  pointer-events: none;
}

.desktop-floating-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.floating-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.7rem 1.25rem 0.7rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border-radius: 9999px;
  border: 1.5px solid rgba(184, 109, 43, 0.35);
  box-shadow: 0 12px 32px -4px rgba(20, 28, 22, 0.12),
              0 4px 12px rgba(184, 109, 43, 0.12),
              0 0 0 1px rgba(255, 255, 255, 0.8);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              border-color var(--transition-fast),
              background var(--transition-fast);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.floating-quote-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: #ffffff;
  border-color: var(--accent-amber);
  box-shadow: 0 16px 36px -4px rgba(20, 28, 22, 0.18),
              0 6px 18px rgba(184, 109, 43, 0.22);
  color: var(--text-main);
}

html[data-theme="dark"] .floating-quote-btn {
  background: linear-gradient(135deg, #19251f 0%, #0d1511 100%);
  color: #ffffff;
  border: 1px solid rgba(212, 139, 72, 0.55);
  box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.08),
              0 4px 18px rgba(212, 139, 72, 0.28);
}

html[data-theme="dark"] .floating-quote-btn:hover {
  background: linear-gradient(135deg, #22332a 0%, #121f18 100%);
  border-color: var(--accent-amber);
  box-shadow: 0 16px 36px -5px rgba(0, 0, 0, 0.42),
              0 0 0 1px rgba(255, 255, 255, 0.2),
              0 6px 24px rgba(212, 139, 72, 0.4);
  color: #ffffff;
}

.floating-quote-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-amber), var(--accent-amber-dark));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(184, 109, 43, 0.35);
  position: relative;
  z-index: 1;
}

.floating-quote-icon svg {
  position: relative;
  z-index: 2;
}

.floating-quote-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.floating-quote-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 800;
  color: var(--accent-amber);
}

.floating-quote-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

html[data-theme="dark"] .floating-quote-text {
  color: #ffffff;
}

.floating-quote-arrow {
  color: var(--accent-amber);
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform var(--transition-fast);
}

.floating-quote-btn:hover .floating-quote-arrow {
  transform: translateX(4px);
}

/* Subtle pulsating concentric wave perfectly centered on icon */
.floating-quote-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(184, 109, 43, 0.25);
  border: 1.5px solid var(--accent-amber);
  animation: pulseQuoteRing 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  pointer-events: none;
  z-index: -1;
  transform-origin: center center;
}

@keyframes pulseQuoteRing {
  0% {
    transform: scale(0.96);
    opacity: 0.85;
  }
  65% {
    transform: scale(1.48);
    opacity: 0;
  }
  100% {
    transform: scale(1.48);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   Floating Mobile CTA Bar
   -------------------------------------------------------------------------- */
.floating-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  padding-bottom: max(0.8rem, env(safe-area-inset-bottom));
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.floating-cta-inner {
  display: flex;
  gap: 0.8rem;
  width: 100%;
}

.floating-cta-inner .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
}

/* --------------------------------------------------------------------------
   Modals (Lightbox & Confirmation)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
  padding: 1.5rem;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
  transition: color var(--transition-fast);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: var(--text-main);
}

/* Lightbox Nav Buttons */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: var(--accent-amber);
  color: #ffffff;
  border-color: var(--accent-amber);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .capability-card.featured {
    grid-column: span 2;
  }
  .metrics-card {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.8rem 1.5rem;
  }
  .film-spotlight {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
  .estimator-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .estimator-container {
    padding: 2rem 1.5rem;
  }
  .estimator-summary-card {
    padding: 1.5rem 1.25rem;
  }
  .heritage-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .heritage-img-main {
    min-height: 360px;
    height: 360px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1280px) {
  .header-inner {
    gap: 0.75rem;
  }
  .nav-menu {
    gap: clamp(0.5rem, 0.9vw, 1rem);
  }
  .nav-link {
    font-size: 0.85rem;
  }
  .brand-title {
    font-size: 1.1rem;
  }
  .header-phone-link span {
    display: none;
  }
  .header-phone-link {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-card);
  }
  .btn-theme-toggle,
  .btn-directions-toggle {
    width: 38px;
    height: 38px;
  }
  .header-actions .btn {
    padding: 0.55rem 0.9rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 992px) {
  .header {
    padding: 0.75rem 0;
  }
  .header-inner {
    padding: 0 1rem;
    gap: 0.5rem;
  }
  .brand-logo-img {
    height: 38px;
    max-width: 110px;
  }
  .brand-logo-badge {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    display: none;
  }
  header nav {
    display: contents;
  }
  .header-actions {
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .btn-theme-toggle,
  .btn-directions-toggle {
    width: 38px;
    height: 38px;
  }
  .menu-toggle {
    display: flex;
    min-width: 38px;
    min-height: 38px;
    width: 38px;
    height: 38px;
  }
  .nav-menu {
    position: fixed;
    top: 65px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    visibility: hidden;
    pointer-events: auto;
    transition: transform var(--transition-smooth), visibility var(--transition-smooth);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-social-mobile-item {
    display: block;
    width: 100%;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-color);
  }
  .nav-social-mobile-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
  }
  .nav-social-mobile-row {
    display: flex;
    gap: 0.75rem;
  }
  .nav-social-mobile-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    transition: all var(--transition-fast);
  }
  .nav-social-mobile-btn.nav-social-ig svg {
    color: #e1306c;
  }
  .nav-social-mobile-btn.nav-social-fb svg {
    color: #1877f2;
  }
  .nav-social-mobile-btn:active,
  .nav-social-mobile-btn:hover {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
  }
  .header-actions .btn-primary {
    display: none;
  }
  .header-phone-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--bg-card);
  }
  .header-phone-link span {
    display: none;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .capability-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .option-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .film-features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }
  .desktop-floating-cta {
    display: none !important;
  }
  .floating-cta-bar {
    display: block;
  }
  .floating-cta-inner .btn {
    padding: 0.65rem 0.5rem;
    font-size: 0.84rem;
    gap: 0.35rem;
    white-space: nowrap;
  }
  .floating-cta-inner .btn svg {
    flex-shrink: 0;
  }
  body {
    padding-bottom: 5rem;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(249, 248, 244, 0.90) 0%,
      rgba(249, 248, 244, 0.78) 45%,
      rgba(249, 248, 244, 0.96) 100%
    );
  }
  html[data-theme="dark"] .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(10, 13, 12, 0.90) 0%,
      rgba(10, 13, 12, 0.78) 45%,
      rgba(10, 13, 12, 0.96) 100%
    );
  }
}

@media (max-width: 640px) {
  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
  }
  .metrics-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .metric-item::after {
    display: none;
  }
  .heritage-pillars-grid {
    grid-template-columns: 1fr;
  }
  .heritage-badge-floating {
    position: static;
    margin-top: 1.2rem;
    width: 100%;
    box-sizing: border-box;
  }
  .lightbox-nav-btn {
    width: 38px;
    height: 38px;
  }
  .lightbox-prev {
    left: 0.5rem;
  }
  .lightbox-next {
    right: 0.5rem;
  }

  /* Estimator Mobile Cut-List Chips */
  .cutlist-chip {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .chip-meta-row {
    flex-wrap: wrap;
  }
  .chip-controls {
    justify-content: space-between;
    width: 100%;
    padding-top: 0.45rem;
    border-top: 1px dashed var(--border-color);
  }
  .chip-stepper {
    flex: 1;
    justify-content: space-between;
  }
  .chip-stepper-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .chip-delete-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
}

@media (max-width: 480px) {
  .estimator-container {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
  }
  .estimator-summary-card {
    padding: 1.25rem 0.85rem;
  }
  .brand-subtitle {
    display: none;
  }
  .brand-logo-img {
    height: 34px;
    max-width: 95px;
  }
  .hero-pill {
    padding: 0.35rem 0.75rem;
    gap: 0.4rem;
    max-width: 100%;
    flex-wrap: wrap;
  }
  .hero-pill-badge {
    font-size: 0.68rem;
    padding: 2px 6px;
  }
  .hero-pill-text {
    font-size: 0.75rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero {
    padding: 5.5rem 0 3rem;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   Announcement Bar (Top Mill Notice)
   ========================================== */
.announcement-bar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-smooth);
}

body.has-announcement .hero {
  padding-top: calc(8.5rem + var(--announcement-height, 44px));
}

@media (max-width: 992px) {
  body.has-announcement .hero {
    padding-top: calc(7rem + var(--announcement-height, 44px));
  }
}

@media (max-width: 768px) {
  body.has-announcement .hero {
    padding-top: calc(6rem + var(--announcement-height, 68px));
  }
}

@media (max-width: 480px) {
  body.has-announcement .hero {
    padding-top: calc(5.5rem + var(--announcement-height, 74px));
  }
}

.announcement-bar.announcement-notice {
  background: linear-gradient(90deg, #854d0e 0%, #b45309 50%, #78350f 100%);
  color: #ffffff;
}

.announcement-bar.announcement-alert {
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #7f1d1d 100%);
  color: #ffffff;
}

.announcement-bar.announcement-stock {
  background: linear-gradient(90deg, #065f46 0%, #059669 50%, #047857 100%);
  color: #ffffff;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  gap: 1rem;
}

.announcement-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.announcement-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.announcement-text {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: block;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.announcement-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.announcement-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #ffffff;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.announcement-stock .announcement-action-btn {
  color: #065f46;
}

.announcement-alert .announcement-action-btn {
  color: #991b1b;
}

.announcement-notice .announcement-action-btn {
  color: #92400e;
}

.announcement-btn-icon,
.announcement-btn-arrow {
  flex-shrink: 0;
  display: inline-block;
  transition: transform var(--transition-fast);
}

.announcement-action-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.announcement-action-btn:hover .announcement-btn-arrow {
  transform: translateX(2px);
}

.announcement-action-btn:active {
  transform: translateY(0);
}

.announcement-dismiss-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 0.35rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.announcement-dismiss-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================
   Sawmill Operating Hours & Schedule Bar
   ========================================== */
.sawmill-schedule-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.schedule-status-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sawmill-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  background: var(--bg-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s infinite ease-in-out;
}

.status-dot.closed {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.schedule-holiday-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
}

.contact-holiday-alert {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-top: 0.6rem;
}

html[data-theme="dark"] .contact-holiday-alert {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.schedule-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.schedule-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.schedule-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.schedule-truck-item {
  border-left: 3px solid var(--accent-amber);
}

@media (max-width: 768px) {
  .announcement-inner {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.7rem 2.85rem 0.75rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .announcement-content {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
  }
  .announcement-badge {
    margin-top: 2px;
    font-size: 0.68rem;
    padding: 0.18rem 0.48rem;
  }
  .announcement-text {
    font-size: 0.82rem;
    line-height: 1.38;
  }
  .announcement-actions {
    width: 100%;
    display: flex;
    align-items: center;
    margin-top: 0.35rem;
  }
  .announcement-action-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.54rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
  }
  .announcement-action-btn:active {
    background: rgba(255, 255, 255, 0.92);
    transform: scale(0.99);
  }
  .announcement-dismiss-btn {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
  }
  .announcement-dismiss-btn:active {
    background: rgba(255, 255, 255, 0.2);
  }
  .schedule-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .announcement-inner {
    padding: 0.65rem 2.65rem 0.7rem 0.85rem;
  }
  .announcement-text {
    font-size: 0.8rem;
    line-height: 1.36;
  }
  .announcement-action-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    border-radius: 8px;
  }
}



/* ==========================================================================
   FAQ Section (Accordion with native HTML5 details & summary)
   ========================================================================== */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem auto;
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--accent-amber);
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-left: 1rem;
  color: var(--accent-amber);
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem 1.35rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}
