/* ================================================================
   asbuilts.ca - Stylesheet
   ================================================================
   1. Custom Properties
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Header & Navigation
   6. Hero Sections
   7. Buttons & CTAs
   8. Why Scanning Section
   9. How It Works (Steps)
   10. Deliverables / What You Get
   11. Service Cards
   12. Industries
   13. Coverage
   14. Quality & Verification
   15. FAQ Accordion
   16. Estimator Calculator
   17. Quote Form
   18. CTA Banner
   19. Footer
   20. Utility Classes
   21. Responsive
   ================================================================ */

/* ----------------------------------------------------------------
   1. Custom Properties
   ---------------------------------------------------------------- */
:root {
  --color-white: #ffffff;
  --color-off-white: #f7f5f2;
  --color-light-grey: #efefef;
  --color-mid-grey: #d5d5d5;
  --color-charcoal: #2d2d2d;
  --color-dark: #1a1a1a;
  --color-black: #111111;
  --color-accent: #c8102e;
  --color-accent-hover: #a50d24;
  --color-accent-light: rgba(200, 16, 46, 0.07);
  --color-text: #333333;
  --color-text-light: #5a5a5a;
  --color-text-muted: #888888;
  --color-border: #e2e2e2;

  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --section-padding: 5rem 1.5rem;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

/* ----------------------------------------------------------------
   2. Reset & Base
   ---------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* ----------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; font-weight: 600; }

p + p { margin-top: 1rem; }

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0.75rem auto 0;
}

/* ----------------------------------------------------------------
   4. Layout Utilities
   ---------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.bg-light { background: var(--color-off-white); }
.bg-dark { background: var(--color-dark); color: var(--color-white); }
.bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--color-white); }

/* ----------------------------------------------------------------
   5. Header & Navigation
   ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.02em;
}

.nav-contact-strip {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-left: auto;
  margin-right: 2rem;
}

.nav-contact-strip a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.nav-contact-strip a:hover { color: var(--color-accent); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-white);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  box-shadow: var(--shadow-lg);
  transition: right 0.3s ease;
}

.nav-open .nav-links {
  right: 0;
}

.nav-links a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--color-accent); }

.nav-links .active {
  color: var(--color-accent);
}

.btn-nav-cta {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.65rem 1.5rem !important;
  background: var(--color-accent);
  color: var(--color-white) !important;
  border-radius: var(--radius);
  text-align: center;
  font-weight: 600 !important;
  transition: background var(--transition);
}

.btn-nav-cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-white) !important;
}

.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 999;
}

.nav-open .nav-overlay { display: block; }

/* ----------------------------------------------------------------
   6. Hero Sections
   ---------------------------------------------------------------- */
/* ---- Video / Image background sections ---- */
.has-video-bg,
.has-image-bg {
  position: relative;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-width: 177.78vh; /* fill tall viewports */
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
}

.has-image-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.has-video-bg > .container,
.has-image-bg > .container {
  position: relative;
  z-index: 2;
}

/* Text overrides for sections with video/image backgrounds */
.has-video-bg .section-header h2,
.has-image-bg .section-header h2 {
  color: #ffffff !important;
}

.has-video-bg .section-subtitle,
.has-image-bg .section-subtitle {
  color: rgba(255, 255, 255, 0.75) !important;
}

.has-video-bg .step-content h3 {
  color: #ffffff !important;
}

.has-video-bg .step-content p {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Industry cards on image bg: semi-transparent dark glass */
/* Crossfading background images for industries section */
.industry-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}

.industry-bg.active {
  opacity: 1;
}

/* Industry cards on image bg: semi-transparent dark glass */
.has-image-bg .industry-card {
  background: rgba(0, 0, 0, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
}

.has-image-bg .industry-card:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.has-image-bg .industry-card.active {
  border-color: var(--color-accent) !important;
  background: rgba(200, 16, 46, 0.2) !important;
}

.has-image-bg .industry-card h4 {
  color: #ffffff !important;
}

/* On mobile, hide video and use solid dark fallback */
@media (max-width: 768px) {
  .video-bg { display: none; }
  .has-video-bg { background: var(--color-dark); }
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 9rem 1.5rem 5rem;
}

.hero .container {
  max-width: 800px;
}

.hero h1 {
  color: var(--color-white);
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  margin-top: 1.25rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page hero - compact */
.page-hero {
  position: relative;
  padding: 10rem 1.5rem 3.5rem;
  background: var(--color-dark);
  color: var(--color-white);
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 { color: var(--color-white); font-size: clamp(1.8rem, 4vw, 2.75rem); }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 0.75rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Crawlable image for SEO (visually part of hero background, accessible to search engines) */
.seo-img {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------------------------------
   7. Buttons & CTAs
   ---------------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: transparent;
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.btn-secondary:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.btn-dark {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: var(--color-dark);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-dark:hover { background: var(--color-charcoal); }

/* ----------------------------------------------------------------
   8. Why Scanning Section
   ---------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.why-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: box-shadow var(--transition);
}

.why-card,
.deliverable-card,
.service-card,
.case-study-teaser {
  box-shadow: var(--shadow-sm);
}

.why-card:hover { box-shadow: var(--shadow-md); }

.why-card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--color-accent);
}

.why-card h3 { margin-bottom: 0.5rem; }
.why-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* ----------------------------------------------------------------
   9. How It Works (Steps)
   ---------------------------------------------------------------- */
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  counter-reset: step;
}

.steps-grid .step {
  flex: 1 1 100%;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  counter-increment: step;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h3 { margin-bottom: 0.35rem; }
.step-content p { color: var(--color-text-light); font-size: 0.95rem; }

/* ----------------------------------------------------------------
   10. Deliverables / What You Get
   ---------------------------------------------------------------- */
.deliverables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.deliverable-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.deliverable-card:hover { box-shadow: var(--shadow-md); }

.deliverable-card .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  color: var(--color-accent);
}

.deliverable-card h3 { margin-bottom: 0.3rem; }
.deliverable-card p { color: var(--color-text-light); font-size: 0.92rem; }

.format-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.format-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

/* Expanded deliverables table (services page) */
.deliverables-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.92rem;
}

.deliverables-table th,
.deliverables-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--color-border);
}

.deliverables-table th {
  background: var(--color-off-white);
  font-weight: 600;
  color: var(--color-dark);
}

.deliverables-table tr:last-child td { border-bottom: none; }

.accuracy-note {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--color-text);
}

.accuracy-note strong { color: #22c55e; }

/* ----------------------------------------------------------------
   11. Service Cards (services page - expanded)
   ---------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  padding: 2.25rem 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.service-card:hover { box-shadow: var(--shadow-md); }

.service-card .icon {
  width: 52px;
  height: 52px;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--color-text-light); font-size: 0.95rem; }

/* ----------------------------------------------------------------
   12. Industries / Who We Work With
   ---------------------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.industry-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.industry-card .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--color-accent);
}

.industry-card h4 { font-size: 0.92rem; }

/* ----------------------------------------------------------------
   13. Coverage
   ---------------------------------------------------------------- */
.coverage-metros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 2rem;
}

.metro-pill {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  cursor: default;
}

#coverage-map {
  margin-top: 2.5rem;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8e8e8;
}

[data-theme="dark"] #coverage-map {
  background: #1a1a2e;
}

.pulse-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #c8102e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #c8102e;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: map-pulse 2s ease-out infinite;
}

@keyframes map-pulse {
  0%   { width: 8px;  height: 8px;  opacity: 0.9; }
  100% { width: 32px; height: 32px; opacity: 0; }
}

.coverage-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
  font-style: italic;
}

/* ----------------------------------------------------------------
   14. Quality & Verification
   ---------------------------------------------------------------- */
.qa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.qa-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.qa-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-icon svg { width: 18px; height: 18px; }

.qa-item h4 { margin-bottom: 0.25rem; }
.qa-item p { color: var(--color-text-light); font-size: 0.92rem; }

/* ----------------------------------------------------------------
   15. FAQ Accordion
   ---------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child { border-top: 1px solid var(--color-border); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-dark);
  list-style: none;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item summary:hover { color: var(--color-accent); }

.faq-answer {
  padding: 0 0 1.25rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   16. Estimator Calculator
   ---------------------------------------------------------------- */
.estimator {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
}

.estimator h3 { margin-bottom: 0.5rem; }

.estimator-intro {
  color: var(--color-text-light);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.estimator-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.estimator-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--color-dark);
}

.estimator-field select,
.estimator-field input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  background: var(--color-white);
  color: var(--color-text);
}

.estimator-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.estimator-result {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  text-align: center;
}

.estimator-result .range {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

.estimator-result .range-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.35rem;
}

.estimator-result .taxes {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.3rem;
}

.estimator-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------------
   17. Quote Form
   ---------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.quote-form { max-width: 100%; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--color-dark);
}

.form-group .optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--color-accent);
}

.form-error {
  display: none;
  font-size: 0.8rem;
  color: var(--color-accent);
  margin-top: 0.3rem;
}

.form-group.error .form-error { display: block; }

/* Checkbox group */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--color-accent);
}

.form-submit {
  margin-top: 0.75rem;
}

.form-submit .btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--color-text-light); }

/* Contact sidebar */
.contact-sidebar {
  padding: 2rem;
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  align-self: start;
}

.contact-sidebar h3 { margin-bottom: 1.25rem; }

.contact-detail {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.contact-detail .icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin-top: 2px;
}

.contact-detail a {
  color: var(--color-text);
  transition: color var(--transition);
}

.contact-detail a:hover { color: var(--color-accent); }

.contact-detail p {
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* ----------------------------------------------------------------
   18. CTA Banner
   ---------------------------------------------------------------- */
.cta-banner {
  padding: 4rem 1.5rem;
  background: var(--color-dark);
  text-align: center;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------------
   19. Footer
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.6);
  padding: 3.5rem 1.5rem 2rem;
  font-size: 0.88rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand .footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.footer-brand .footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.footer-nav h4,
.footer-contact h4 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-nav ul { display: flex; flex-direction: column; gap: 0.4rem; }

.footer-nav a,
.footer-contact a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-contact a:hover { color: var(--color-white); }

.footer-contact p { margin-bottom: 0.35rem; }

.footer-legal {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-powered-by {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-powered-by a { color: rgba(255,255,255,0.45); }
.footer-powered-by a:hover { color: rgba(255,255,255,0.7); }

/* ----------------------------------------------------------------
   20. Utility Classes
   ---------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-centre { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ----------------------------------------------------------------
   20b. 3D Model Viewer
   ---------------------------------------------------------------- */
.model-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.model-tab {
  padding: 0.65rem 1.25rem;
  background: var(--color-dark, #1a1a1a);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}

.model-tab:hover {
  opacity: 0.85;
}

.model-tab.active {
  background: var(--color-accent);
}

.model-viewer-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #1a1a1a;
}

.model-viewer-container iframe {
  display: block;
  width: 100%;
  height: 600px;
  border: none;
}

/* ----------------------------------------------------------------
   21. Responsive
   ---------------------------------------------------------------- */
@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .deliverables-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-group.full-width { grid-column: 1 / -1; }
  .estimator-fields { grid-template-columns: repeat(3, 1fr); }
  .checkbox-group { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .model-viewer-container iframe {
    height: 400px;
  }
  .model-tab {
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
  }
}

@media (min-width: 768px) {
  .steps-grid {
    gap: 2.5rem 3rem;
    max-width: var(--max-width);
  }

  .steps-grid .step {
    flex: 0 1 calc(50% - 1.5rem);
  }

  .contact-layout {
    grid-template-columns: 1fr 340px;
  }

  .footer-container {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer-legal {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  :root { --section-padding: 6rem 2rem; }

  .nav-toggle { display: none; }
  .nav-overlay { display: none !important; }

  .nav-contact-strip { display: flex; }

  .nav-links {
    position: static;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    box-shadow: none;
  }

  .nav-links a {
    padding: 0;
    font-size: 0.9rem;
  }

  .btn-nav-cta {
    margin-top: 0;
  }

  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .deliverables-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid .step { flex: 0 1 calc(33.333% - 2rem); }
}

/* ----------------------------------------------------------------
   22. Navigation Dropdown
   ---------------------------------------------------------------- */
.nav-dropdown { position: relative; }

.nav-dropdown-menu {
  display: none;
  padding-left: 1rem;
}

.nav-dropdown-menu a {
  font-size: 0.9rem !important;
  color: var(--color-text-light) !important;
  padding: 0.5rem 0 !important;
}

.nav-dropdown-menu a:hover { color: var(--color-accent) !important; }

.nav-dropdown.open > .nav-dropdown-menu { display: block; }

.nav-dropdown-trigger { cursor: pointer; }
.nav-dropdown-trigger::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.5;
}

@media (min-width: 1024px) {
  .nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: -1rem;
    min-width: 260px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    z-index: 1002;
  }

  .nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 0;
    right: 0;
    height: 0.5rem;
  }

  .nav-dropdown:hover > .nav-dropdown-menu,
  .nav-dropdown.open > .nav-dropdown-menu { display: block; }

  .nav-dropdown-menu a {
    display: block !important;
    padding: 0.55rem 1.25rem !important;
    font-size: 0.88rem !important;
    white-space: nowrap;
  }

  .nav-dropdown-menu a:hover {
    background: var(--color-off-white);
  }
}

/* ----------------------------------------------------------------
   23. Breadcrumb
   ---------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin-top: 1rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--color-white); }

.breadcrumb .sep {
  color: rgba(255,255,255,0.3);
  font-size: 0.7em;
}

/* ----------------------------------------------------------------
   24. Service Detail Layout
   ---------------------------------------------------------------- */
.service-detail-intro {
  max-width: 800px;
  margin: 0 auto;
}

.service-detail-intro p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--color-text-light);
}

.service-detail-intro p + p { margin-top: 1.25rem; }

.service-intro-figure {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-intro-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------------------------------------------
   25. Service Card Links (services hub)
   ---------------------------------------------------------------- */
.service-card-links {
  margin-top: 1.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.btn-link {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.btn-link:hover { color: var(--color-accent-hover); }

.btn-link-muted {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.btn-link-muted:hover { color: var(--color-text); }

/* ----------------------------------------------------------------
   26. Project Stats Grid (Case Studies)
   ---------------------------------------------------------------- */
.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.project-stat {
  padding: 1.25rem 1.5rem;
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
}

.project-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.project-stat-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
}

/* ----------------------------------------------------------------
   27. Case Study Teaser Card
   ---------------------------------------------------------------- */
.case-study-teaser {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.25rem 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition);
}

.case-study-teaser:hover { box-shadow: var(--shadow-md); }

.case-study-teaser h3 { margin-bottom: 0.5rem; }

.case-study-teaser p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.case-study-teaser .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.case-study-teaser .meta strong { color: var(--color-dark); }

.case-study-teaser--with-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.case-study-teaser-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.case-study-teaser-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 768px) {
  .case-study-teaser--with-image {
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: center;
  }
}

/* ----------------------------------------------------------------
   28. Related Services Grid
   ---------------------------------------------------------------- */
.related-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ----------------------------------------------------------------
   29. Pull Quote (Case Studies)
   ---------------------------------------------------------------- */
.pull-quote {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-light);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
}

/* ----------------------------------------------------------------
   30. Responsive additions
   ---------------------------------------------------------------- */
@media (min-width: 640px) {
  .project-stats { grid-template-columns: repeat(3, 1fr); }
  .related-services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .project-stats { grid-template-columns: repeat(5, 1fr); }
}

/* ----------------------------------------------------------------
   31. Utility Bar
   ---------------------------------------------------------------- */
.utility-bar {
  background: #1a1a1a;
  font-size: 0.8rem;
  line-height: 1;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.utility-bar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.utility-bar-contact {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.utility-bar-contact a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
  font-size: 0.8rem;
}

.utility-bar-contact a:hover {
  color: #ffffff;
}

.utility-bar-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.7rem;
}

@media (max-width: 400px) {
  .utility-bar-contact a:last-child,
  .utility-bar-sep {
    display: none;
  }
}

/* -- Live Chat Button -- */
.live-chat-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #bbb;
  font-size: 0.78rem;
  text-decoration: none;
  margin-left: auto;
  margin-right: 0.75rem;
  transition: color 0.2s;
}

.live-chat-btn:hover { color: #fff; }

.live-chat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  display: inline-block;
}

.live-chat-dot.online  { background: #22c55e; }
.live-chat-dot.offline { background: #ef4444; }

@media (max-width: 400px) {
  .live-chat-btn span:not(.live-chat-dot) { display: none; }
}

/* ----------------------------------------------------------------
   32. Dark Mode Toggle
   ---------------------------------------------------------------- */
.dark-mode-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  padding: 0.25rem 0.65rem;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-primary);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: border-color var(--transition), color var(--transition);
  line-height: 1;
}

.dark-mode-toggle:hover {
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}

.dark-mode-toggle svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Light mode default: show moon (destination = dark) */
.dark-mode-toggle .icon-sun { display: none; }

/* Dark mode: show sun (destination = light), hide moon */
[data-theme="dark"] .dark-mode-toggle .icon-sun { display: inline; }
[data-theme="dark"] .dark-mode-toggle .icon-moon { display: none; }

/* ----------------------------------------------------------------
   33. Cookie Consent Bar
   ---------------------------------------------------------------- */
.cc-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #111111;
  color: rgba(255,255,255,0.8);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  z-index: 9999;
  animation: cc-slide-up 0.3s ease;
}

.cc-bar-hidden {
  animation: cc-slide-down 0.3s ease forwards;
}

@keyframes cc-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes cc-slide-down {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

.cc-bar-text {
  flex: 1;
  line-height: 1.4;
}

.cc-bar-text a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
}

.cc-bar-text a:hover {
  color: #ffffff;
}

.cc-bar-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cc-bar-btn {
  padding: 0.4rem 1rem;
  font-family: var(--font-primary);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.cc-bar-accept {
  background: var(--color-accent);
  color: #ffffff;
}

.cc-bar-accept:hover {
  background: var(--color-accent-hover);
}

.cc-bar-decline {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.2);
}

.cc-bar-decline:hover {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

@media (max-width: 480px) {
  .cc-bar {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}

/* ----------------------------------------------------------------
   34. Legal Pages
   ---------------------------------------------------------------- */
.legal-content {
  max-width: 800px;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.legal-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content ul {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 0.3rem;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--color-accent-hover);
}

/* ----------------------------------------------------------------
   35. Footer Legal Links
   ---------------------------------------------------------------- */
.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-policy-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-policy-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-policy-links a:hover {
  color: #ffffff;
}

.footer-legal-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
}

@media (min-width: 768px) {
  .footer-legal-links {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

/* ----------------------------------------------------------------
   36. Dark Mode
   ---------------------------------------------------------------- */
[data-theme="dark"] {
  --color-white: #141414;
  --color-off-white: #1a1a1a;
  --color-light-grey: #222222;
  --color-mid-grey: #3a3a3a;
  --color-charcoal: #d0d0d0;
  --color-dark: #eeeeee;
  --color-text: #cccccc;
  --color-text-light: #999999;
  --color-text-muted: #666666;
  --color-border: #2a2a2a;
  --color-accent-light: rgba(200, 16, 46, 0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
}

/* -- Sections that must stay dark -- */
[data-theme="dark"] .hero:not(.has-video-bg),
[data-theme="dark"] .cta-banner {
  background: #0d0d0d;
}
[data-theme="dark"] .page-hero {
  background-color: #0d0d0d;
}

[data-theme="dark"] .hero h1,
[data-theme="dark"] .page-hero h1,
[data-theme="dark"] .cta-banner h2 {
  color: #ffffff;
}

[data-theme="dark"] .bg-dark {
  background: #0d0d0d;
  color: #ffffff;
}

[data-theme="dark"] .bg-dark h2,
[data-theme="dark"] .bg-dark h3,
[data-theme="dark"] .bg-dark h4 {
  color: #ffffff;
}

[data-theme="dark"] .estimator-result {
  background: #0d0d0d;
}

[data-theme="dark"] .estimator-result .range {
  color: #ffffff;
}

/* -- Header -- */
[data-theme="dark"] .site-header {
  background: rgba(20, 20, 20, 0.97);
  border-bottom-color: #2a2a2a;
}

[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

[data-theme="dark"] .nav-toggle span {
  background: #eeeeee;
}

[data-theme="dark"] .utility-bar {
  background: #0a0a0a;
  border-bottom-color: rgba(255,255,255,0.04);
}

/* -- Mobile nav panel -- */
@media (max-width: 1023px) {
  [data-theme="dark"] .nav-links {
    background: #141414;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
  }
}

/* -- Desktop dropdown -- */
@media (min-width: 1024px) {
  [data-theme="dark"] .nav-dropdown-menu {
    background: #1a1a1a;
    border-color: #2a2a2a;
  }

  [data-theme="dark"] .nav-dropdown-menu a:hover {
    background: #222222 !important;
  }
}

/* -- 3D Model Viewer -- */
[data-theme="dark"] .model-tab {
  background: #0d0d0d;
}

[data-theme="dark"] .model-tab.active {
  background: var(--color-accent);
}

[data-theme="dark"] .model-viewer-container {
  background: #0d0d0d;
}

/* -- Card elevation (slightly lighter than bg) -- */
[data-theme="dark"] .why-card,
[data-theme="dark"] .deliverable-card,
[data-theme="dark"] .service-card,
[data-theme="dark"] .industry-card:not(.has-image-bg .industry-card),
[data-theme="dark"] .case-study-teaser,
[data-theme="dark"] .estimator {
  background: #1e1e1e;
  border-color: #2a2a2a;
}

/* -- Elements that need white text on accent bg -- */
[data-theme="dark"] .step-number,
[data-theme="dark"] .qa-icon,
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-nav-cta {
  color: #ffffff !important;
}

[data-theme="dark"] .btn-secondary {
  color: #ffffff;
  border-color: rgba(255,255,255,0.4);
}

[data-theme="dark"] .btn-dark {
  background: #0d0d0d;
  color: #ffffff;
}

/* -- Form inputs -- */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .estimator-field select,
[data-theme="dark"] .estimator-field input[type="number"] {
  background-color: #1a1a1a;
  color: #cccccc;
  border-color: #2a2a2a;
}

[data-theme="dark"] .form-group select,
[data-theme="dark"] .estimator-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
}

/* -- Contact sidebar -- */
[data-theme="dark"] .contact-sidebar {
  background: #1a1a1a;
}

/* -- Footer (already dark - keep it dark) -- */
[data-theme="dark"] .site-footer {
  background: #0a0a0a;
}

[data-theme="dark"] .footer-nav h4,
[data-theme="dark"] .footer-contact h4 {
  color: var(--color-accent);
}

