/*
  Carns Lead Systems - Core Stylesheet
  Design Strategy: Structural & Clean
  Major Third Scale Configuration (16px base)
*/

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

html {
  scroll-behavior: smooth;
  font-size: 16px; /* 1rem = 16px */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--page-bg, #FFFFFF);
  color: var(--ink);
  font-family: var(--font-family-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading), sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }
h4 { font-size: 1.125rem; }

.display-heading {
  font-size: clamp(2.2rem, 5vw, var(--font-display));
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  max-width: 65ch;
}

/* Base Layout Container */
.shell {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Concept notice banner */
.concept-banner {
  background: #111827;
  color: #f3f4f6;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--accent);
  z-index: 50;
}

.concept-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.concept-content .badge {
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.concept-content .message {
  opacity: 0.9;
}

.concept-meta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Watch-the-walkthrough link in the concept banner: compact outline button,
   legible on the dark (#111827) banner. Specificity beats .button:not(.secondary). */
.concept-meta a.watch-pitch-btn {
  padding: 10px 18px;
  font-size: 0.85rem;
  background: transparent;
  color: #f3f4f6;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.concept-meta a.watch-pitch-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.status-indicator {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-indicator.status-concept-ready {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}

/* Site Header and Navigation */
.site-header {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 24px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

/* The mark only. The company name beside it is real text, so this image is
   decorative and carries no alt — see templates.mjs. */
.brand-mark {
  display: block;
  height: 42px;
  width: auto;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .brand-mark { height: 34px; }
}

.brand-text {
  font-family: var(--font-family-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 0;
  transition: transform 0.2s ease, top 0.2s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--primary);
}

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

/* Premium Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-family-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  text-decoration: none;
}

.button:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 2px;
}

.button:active {
  transform: translateY(1px);
}

/* High Contrast WCAG AAA/AA Button Colors */
.button:not(.secondary) {
  background: var(--primary);
  color: var(--primary-contrast);
}

.button:not(.secondary):hover {
  background: color-mix(in srgb, var(--primary) 85%, #000);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent);
}

.button.secondary:hover {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.button.nav-cta {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 64px 0 48px;
  align-items: start;
}

.hero-visual-card {
  background: white;
  padding: 48px;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.03);
  border-left: 6px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-category-tag {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: color-mix(in srgb, var(--accent) 90%, #000);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  font-family: var(--font-family-heading);
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
}

.loc-icon {
  color: var(--secondary);
  flex-shrink: 0;
}

.hero-visual-card h1 {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.voice-button {
  background: color-mix(in srgb, var(--secondary) 8%, transparent) !important;
  color: var(--secondary) !important;
  border: 1px dashed var(--secondary) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.voice-button:hover {
  background: color-mix(in srgb, var(--secondary) 15%, transparent) !important;
  box-shadow: none !important;
}

.voice-button .icon {
  font-size: 1.1rem;
}

/* Stars Rating */
.trust-row-visual {
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding-top: 24px;
}

.trust-stars-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  padding: 4px 10px;
  border-radius: 4px;
}

.stars-gold {
  color: #fbbf24;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.rating-num {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}

.review-meta-text {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

/* Hero Sidebar Panel */
.hero-panel {
  background: #1e293b;
  color: #f1f5f9;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.panel-accent-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent);
}

.hero-panel h4 {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.priority-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.priority-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-left: 18px;
}

.priority-list li::before {
  content: "■";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 3px;
  font-size: 0.65rem;
}

.item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}

.item-desc {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.4;
}

/* Services Grid Section */
section {
  padding: 80px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.section-heading-visual {
  max-width: 800px;
  margin-bottom: 48px;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-family-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading-visual h2 {
  font-size: var(--font-h2);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}

.center-align {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--brand-surface, #F4F0E8);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.service-card-header {
  margin-bottom: 16px;
}

.service-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
}

.service-badge.verified {
  background: #ecfdf5;
  color: #047857;
}

.service-badge.draft {
  background: #fffbeb;
  color: #b45309;
}

.service-card-body h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.service-card-body p {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  line-height: 1.5;
  margin-bottom: 24px;
}

.service-card-footer {
  margin-top: auto;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.arrow-icon {
  transition: transform 0.25s ease;
}

.service-link:hover .arrow-icon {
  transform: translateX(4px);
}

/* Proven Process Timeline */
.split {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 64px;
}

.process-column h2 {
  margin-bottom: 16px;
}

.process-column-desc {
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  margin-bottom: 40px;
}

.process {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
}

.process::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: color-mix(in srgb, var(--accent) 25%, transparent);
}

.process-step {
  display: flex;
  gap: 24px;
  position: relative;
  align-items: flex-start;
}

.step-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.step-content {
  padding-top: 8px;
}

.step-content p {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}

/* Parameters Sidebar */
.parameters-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.parameters-card {
  background: var(--brand-surface, #F4F0E8);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e7eb;
}

.parameters-card h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  display: inline-block;
}

.params-explanation {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  margin-bottom: 18px;
  line-height: 1.4;
}

.tag-list-flex {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill-tag {
  background: #f3f4f6;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

.link-maps-action {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-block;
}

.link-maps-action:hover {
  text-decoration: underline;
}

.secondary-params {
  background: #fafafa;
}

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

.bullet-item {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  position: relative;
  padding-left: 14px;
}

.bullet-item::before {
  content: "•";
  color: var(--secondary);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* FAQ Accordion Section */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid #e5e7eb;
}

.faq-question {
  list-style: none;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}

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

.faq-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.25s ease;
}

/* Horizontal bar */
.faq-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

/* Vertical bar */
.faq-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

details[open] .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

details[open] .faq-question {
  color: var(--primary);
  margin-bottom: 12px;
}

.faq-answer {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  line-height: 1.6;
  padding-bottom: 6px;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Contact & Quote Form Section */
.contact {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
}

.contact-info-panel h2 {
  margin-bottom: 16px;
}

.contact-intro-text {
  font-size: 1.02rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  margin-bottom: 32px;
}

.owner-direct-card {
  background: var(--brand-surface, #F4F0E8);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid #e5e7eb;
}

.owner-direct-card h5 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: 16px;
}

.owner-direct-card p {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.owner-direct-card p:last-child {
  margin-bottom: 0;
}

.owner-direct-card a {
  font-weight: 600;
  color: var(--primary);
}

.owner-direct-card a:hover {
  text-decoration: underline;
}

/* Quote Form Styling */
.quote-form-container {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  border: 1px solid #e5e7eb;
}

.form-header {
  margin-bottom: 28px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 18px;
}

.form-subtitle {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
  margin-top: 4px;
}

.lead-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--ink) 80%, transparent);
}

.form-label .required {
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  color: var(--ink);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 15%, transparent);
}

.form-textarea {
  resize: vertical;
}

/* CAD file / drawing upload (manufacturing lead forms) */
.form-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}

.form-file {
  border-style: dashed;
  cursor: pointer;
  padding: 10px 12px;
}

.form-file::file-selector-button {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--primary);
  color: var(--primary-contrast);
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  margin-right: 12px;
  cursor: pointer;
}

/* Honeypot anti-spam */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Consent check */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.form-checkbox {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  cursor: pointer;
}

.consent-text {
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  line-height: 1.45;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.submit-button {
  width: 100%;
}

.submit-arrow {
  transition: transform 0.2s ease;
}

.submit-button:hover .submit-arrow {
  transform: translateX(3px);
}

.form-status {
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

/* Trade Specific Theming Overrides */

/* Fencing Trade */
.trade-fencing .hero-visual-card {
  border-left-width: 10px;
  border-left-color: var(--accent);
}

.trade-fencing.pattern-slats .hero-visual-card {
  background-image: repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(0,0,0,0.02) 38px, rgba(0,0,0,0.02) 40px);
}

.trade-fencing .parameters-card {
  border-left: 4px solid var(--secondary);
}

/* Roofing Trade */
.trade-roofing .hero-visual-card {
  border-top: 8px solid var(--accent);
  border-left-width: 1px;
}

.trade-roofing h1,
.trade-roofing h2 {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Landscaping Trade */
.trade-landscaping .hero-visual-card,
.trade-landscaping .service-card,
.trade-landscaping .parameters-card,
.trade-landscaping .quote-form-container {
  border-radius: 16px;
}

/* Site Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  padding: 64px 0 120px; /* Generous bottom padding for sticky bar clearance */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.footer-brief {
  font-size: 0.88rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  max-width: 32ch;
}

.footer-contact h4,
.footer-badge h5 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 16px;
}

.footer-contact .address-text {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-contact .phone-text {
  font-size: 0.9rem;
}

.footer-contact .phone-text a {
  font-weight: 600;
  color: var(--primary);
}

.carns-disclosure-card {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  padding: 24px;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.carns-disclosure-card h5 {
  margin-bottom: 8px;
}

.carns-disclosure-card p {
  font-size: 0.82rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  line-height: 1.45;
}

.footer-copyright {
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}

/* Service Specification Page Detail Layout */
.specification-breadcrumbs {
  margin-bottom: 20px;
}

.specification-breadcrumbs a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.spec-eyebrow {
  display: block;
  font-family: var(--font-family-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.specification-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.spec-lede {
  margin-bottom: 28px;
}

.font-weight-adjust .button {
  font-weight: 600;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.specification-details h2 {
  margin-bottom: 24px;
  font-size: 1.45rem;
}

.specification-details > p {
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
  margin-bottom: 36px;
}

.spec-points-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 54px;
}

.spec-point {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

.spec-point h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.spec-point p {
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  line-height: 1.5;
}

.spec-faqs {
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  padding-top: 36px;
}

.spec-faqs h3 {
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.specification-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-block {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 32px;
}

.sidebar-block h3,
.sidebar-block h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 18px;
}

.related-list-visual {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}

.related-bullet {
  color: var(--accent);
  font-size: 1.2rem;
}

.related-link:hover {
  color: var(--primary);
}

.verification-note-card {
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}

.verification-notes {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--ink) 65%, transparent);
  line-height: 1.5;
}

.service-page-contact {
  padding-top: 64px;
  border-bottom: none;
}

/* AI Assistant Floating Interactive Widget */
.assistant-wrapper {
  position: fixed;
  right: 24px;
  bottom: 88px; /* High enough to sit comfortably above mobile bar */
  z-index: 999;
}

.assistant-launch {
  border: none;
  background: var(--primary);
  color: var(--primary-contrast);
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-family-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.assistant-launch:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.assistant-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.assistant-pulse::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulseRing 1.5s infinite ease-out;
  opacity: 0;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.assistant-icon {
  font-size: 1.2rem;
}

.assistant {
  border: none;
  background: white;
  width: min(460px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 120px));
  box-shadow: 0 20px 50px rgba(0,0,0,0.22);
  border-radius: 12px;
  position: fixed;
  right: 24px;
  bottom: 148px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.assistant[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Modals Backdrops styling handles native dialog */
.assistant::backdrop {
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  animation: fadeInBackdrop 0.25s ease;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.assistant-header {
  background: #1e293b;
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.assistant-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.assistant-avatar-status {
  position: absolute;
  bottom: 2px;
  left: 28px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid #1e293b;
}

.assistant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.assistant-header h2 {
  font-size: 0.95rem;
  color: white;
  font-family: var(--font-family-body);
}

.assistant-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
}

.assistant-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 4px;
}

.assistant-close:hover {
  color: white;
}

.assistant-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.assistant-disclosure {
  font-size: 0.72rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.assistant-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  word-wrap: break-word;
}

.chat-bubble.bot-message {
  background: white;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-top-left-radius: 2px;
  align-self: flex-start;
}

.chat-bubble.answer {
  background: var(--primary);
  color: var(--primary-contrast);
  border-top-right-radius: 2px;
  align-self: flex-end;
}

.assistant-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
  margin-top: 4px;
  animation: slideUpInput 0.2s ease-out;
}

.assistant-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

@keyframes slideUpInput {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.assistant-footer {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-footer .assistant-input {
  margin-top: 0;
  flex: 1;
  animation: none;
}

.assistant-send-btn {
  width: auto;
  padding: 10px 18px;
  font-size: 0.8rem;
  flex: 0 0 auto;
}

.assistant-send-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.assistant-attach {
  flex: 0 0 auto;
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
  padding: 0 11px;
  height: 38px;
  cursor: pointer;
}

.assistant-attach:hover {
  border-color: #94a3b8;
}

/* Suggested quick-reply chips seeded from the business's qualification questions */
.assistant-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.assistant-suggestion {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: white;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.assistant-suggestion:hover {
  background: var(--primary);
  color: var(--primary-contrast);
}

/* Typing indicator shown while awaiting the AI reply */
.chat-bubble.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.chat-bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: assistantTyping 1s infinite ease-in-out;
}

.chat-bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes assistantTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile sticky conversion bar */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  background: white;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.08);
  display: flex;
  z-index: 998;
  border-top: 1px solid #e5e7eb;
}

.mobile-bar-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.action-call {
  background: white;
  color: var(--ink);
}

.action-quote {
  background: var(--primary);
  color: var(--primary-contrast);
}

/* Response Media Queries */

/* Tablet viewports */
@media (max-width: 900px) {
  .site-header nav {
    display: none; /* In progressive enhancement site.js, toggle logic handles this */
  }

  .nav-toggle {
    display: block;
  }

  .site-header {
    position: relative;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    padding: 24px;
    z-index: 100;
    border-bottom: 2px solid var(--accent);
  }

  .nav-menu.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-menu .button {
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 36px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .quote-form-container {
    padding: 28px;
  }
}

/* Hide mobile sticky conversion elements on desktop format */
@media (min-width: 621px) {
  .mobile-sticky-bar {
    display: none;
  }

  .assistant-wrapper {
    bottom: 24px;
  }
}

/* Micro Mobile viewports */
@media (max-width: 620px) {
  .concept-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 16px;
  }

  .concept-meta {
    align-self: flex-end;
  }

  .hero-visual-card {
    padding: 24px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .button {
    padding: 12px 20px;
  }

  section {
    padding: 48px 0;
  }
}

/* ==========================================================================
   STAGING TYPOGRAPHY SYSTEM
   ========================================================================== */

/* Typography A overrides (Modern Standard) */
html[data-typography="A"] {
  --font-family-heading: 'Poppins', sans-serif;
  --font-family-body: 'Source Sans 3', sans-serif;
}

/* Typography B overrides (Structural and Clean) */
html[data-typography="B"] {
  --font-family-heading: 'Barlow Semi Condensed', sans-serif;
  --font-family-body: 'Public Sans', sans-serif;
}

/* Typography C overrides (Humanist and Highly Legible) */
html[data-typography="C"] {
  --font-family-heading: 'Alegreya Sans', sans-serif;
  --font-family-body: 'Atkinson Hyperlegible', sans-serif;
}

/* Typographic Readability Improvements */
html[data-typography] h1,
html[data-typography] h2,
html[data-typography] h3,
html[data-typography] h4,
html[data-typography] h5,
html[data-typography] h6,
html[data-typography] .display-heading {
  line-height: 1.12;
  letter-spacing: -0.01em;
}

html[data-typography] body,
html[data-typography] p,
html[data-typography] li,
html[data-typography] .lede,
html[data-typography] input,
html[data-typography] select,
html[data-typography] textarea {
  line-height: 1.62;
  letter-spacing: 0.005em;
}

/* Staging Typography Floating Toolbar */
.staging-toolbar {
  position: fixed;
  bottom: 88px;
  left: 24px;
  z-index: 10000; /* Extremely high z-index to sit cleanly above content */
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 12px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2937;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
}

.staging-toolbar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4b5563;
  margin-bottom: 2px;
}

.staging-toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.staging-btn {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.staging-btn:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
  color: #111827;
}

.staging-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.staging-btn[aria-pressed="true"] {
  background-color: #111827;
  border-color: #111827;
  color: #ffffff;
}

.staging-btn.reset-btn {
  background-color: transparent;
  border: 1px dashed #9ca3af;
  color: #4b5563;
}

.staging-btn.reset-btn:hover {
  background-color: #fee2e2;
  border-color: #ef4444;
  color: #b91c1c;
}

/* Collapse/Stack Cleanly on Screens Below 430px */
@media (max-width: 430px) {
  .staging-toolbar {
    left: 12px;
    right: 12px;
    bottom: 80px; /* Offset above the mobile-sticky-bar */
    max-width: none;
    padding: 10px 12px;
  }

  .staging-toolbar-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .staging-btn {
    text-align: center;
    padding: 8px 4px;
    font-size: 0.75rem;
  }
}

/* Reduced Motion Preferences Accessibility */
@media (prefers-reduced-motion: reduce) {
  .staging-btn {
    transition: none;
  }
}

/* Gallery / Visual Showcase Styles */
.gallery-section {
  padding: 80px 0 64px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.gallery-item {
  background: var(--brand-surface, #F4F0E8);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e5e7eb;
}

.gallery-caption {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.gallery-caption h3 {
  font-family: var(--font-family-heading);
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.gallery-caption p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  line-height: 1.5;
  margin: 0;
}

/* Hero Visual Showcase Grid (Bento Style) */
.hero-visual-showcase {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 20px;
  height: 380px;
  margin-top: 24px;
  margin-bottom: -16px;
}

.showcase-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.showcase-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.25) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: white;
  transition: background 0.3s ease;
}

.showcase-card:hover .showcase-card-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 50%, transparent 100%);
}

.showcase-tag {
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 8px;
  font-family: var(--font-family-heading);
}

.showcase-title {
  font-family: var(--font-family-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

@media (max-width: 991px) {
  .hero-visual-showcase {
    grid-template-columns: 1.2fr 1fr;
    height: 300px;
    margin-bottom: 0px;
  }
  .hero-visual-showcase .showcase-card:last-child {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-visual-showcase {
    grid-template-columns: 1fr;
    height: 240px;
  }
  .hero-visual-showcase .showcase-card:not(.large) {
    display: none;
  }
}
