/*
Theme Name: KitchenRTA Custom
Theme URI: https://kitchenrta.ca/
Author: KitchenRTA
Description: Custom responsive WordPress theme for KitchenRTA, built from the approved HTML, CSS, and JavaScript design.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kitchenrta
*/

/*
 * KitchenRTA.ca — Homepage Stylesheet
 * Version: 1.4 (WordPress-ready layout corrections)
 * Mobile-first · No frameworks · No jQuery · No Bootstrap
 *
 * Corrections from Section N source:
 *  - All rgba() opacity values validated (were valid; preserved)
 *  - Mobile nav overlay and slide-out panel added (was missing entirely)
 *  - Gallery mobile carousel via CSS scroll-snap added
 *  - Mobile bar body padding corrected to env(safe-area-inset-bottom)
 *  - Gallery caption accessibility: always visible on touch, hover on pointer
 *  - Skip-link styles added
 *  - Form placeholder styles added
 *  - products-grid missing from source CSS — added
 */

/* ── GOOGLE FONTS — loaded via <link> in index.html ── */

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  /* Colour palette */
  --c-ink:        #18181b;
  --c-ink-mid:    #3f3f46;
  --c-ink-muted:  #71717a;
  --c-rule:       #e4e4e7;
  --c-bg:         #fafaf9;
  --c-warm:       #fdf8f3;
  --c-white:      #ffffff;
  --c-accent:     #1d4b2f;   /* Forest green — trust, Western Canada */
  --c-accent-lt:  #eaf2ec;
  --c-accent-dk:  #133320;
  --c-cta:        #b45309;   /* Amber — primary CTA buttons */
  --c-cta-hover:  #92400e;
  --c-dark:       #111827;   /* Dark navy — contractors section */

  /* Typography */
  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --radius:    6px;
  --radius-lg: 12px;
  --pad:       clamp(1rem, 4vw, 2rem);
  --container: 1160px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.16);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--f-body);
  color: var(--c-ink);
  background: var(--c-white);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ================================================================
   SKIP LINK (accessibility — required for keyboard users)
   ================================================================ */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--c-cta);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 9999;
  text-decoration: none;
}

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

/* ================================================================
   UTILITIES
   ================================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

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

.text-center { text-align: center; }
.mt-4       { margin-top: 2rem; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--c-ink);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--c-ink-mid);
  max-width: 64ch;
  line-height: 1.7;
}

.section-header             { margin-bottom: 3rem; }
.section-header.centered    { text-align: center; }
.section-header.centered .section-intro { margin: 0 auto; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  padding: 0.875rem 1.75rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
  min-height: 48px; /* WCAG 2.1 AA minimum touch target */
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--c-cta);
  color: #fff;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.25);
}

.btn-primary:hover {
  background: var(--c-cta-hover);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
}

.btn-outline-white {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  background: transparent;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-green {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: transparent;
}

.btn-outline-green:hover {
  background: var(--c-accent-lt);
}

.btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: transparent;
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  padding: 1.05rem 2.25rem;
  font-size: 1rem;
}

/* ================================================================
   SECTIONS — shared layout
   ================================================================ */
.section        { padding: 5rem 0; }
.section-alt    { background: var(--c-warm); }
.section-dark   { background: var(--c-dark); color: #fff; }
.section-accent { background: var(--c-accent); color: #fff; }

.section-accent .section-title,
.section-dark   .section-title { color: #fff; }

.section-accent .section-intro,
.section-dark   .section-intro { color: rgba(255, 255, 255, 0.8); }

.section-accent .eyebrow,
.section-dark   .eyebrow { color: rgba(255, 255, 255, 0.65); }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-rule);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.875rem var(--pad);
  max-width: var(--container);
  margin: 0 auto;
}

.site-logo img {
  height: 44px;
  width: auto;
}

/* Desktop nav */
.header-nav {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.header-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-ink-mid);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.14s, border-color 0.14s;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.header-nav a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

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

.header-phone {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-ink-mid);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: color 0.14s;
}

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

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-ink);
  padding: 0.5rem;
  border-radius: var(--radius);
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.hamburger:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 2px;
}

/* ================================================================
   MOBILE NAV OVERLAY
   Full-height slide-out panel — hidden until JS adds .nav-open to body
   ================================================================ */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: var(--c-white);
  z-index: 160;
  padding: 1.5rem var(--pad);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    visibility 0s linear 0.28s;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-close {
  display: flex;
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-ink);
  padding: 0.5rem;
  border-radius: var(--radius);
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.mobile-nav-close:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 2px;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.mobile-nav-list li {
  border-bottom: 1px solid var(--c-rule);
}

.mobile-nav-list a {
  display: block;
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c-ink);
  transition: color 0.14s;
}

.mobile-nav-list a:hover,
.mobile-nav-list a:focus-visible {
  color: var(--c-accent);
}

.mobile-nav-list a:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* When nav is open */
body.nav-open .mobile-nav-overlay {
  display: block;
  opacity: 1;
}

body.nav-open .mobile-nav-panel {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

body.nav-open {
  overflow: hidden; /* prevent body scroll while nav is open */
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--c-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.72) 0%,
    rgba(17, 24, 39, 0.30) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 6rem var(--pad) 5rem;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: 1.08;
  margin-bottom: 1.125rem;
  color: #fff;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.84);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}

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

/* ================================================================
   TRUST BAR
   ================================================================ */
.trust-bar {
  background: var(--c-warm);
  border-bottom: 1px solid var(--c-rule);
  padding: 1.75rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.trust-icon {
  font-size: 1.35rem;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.trust-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.trust-value {
  font-size: 0.85rem;
  color: var(--c-ink-mid);
  line-height: 1.4;
}

/* ================================================================
   PRODUCT LINES
   (was missing from source Section N CSS — added)
   ================================================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.product-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-rule);
  background: var(--c-white);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  display: block;
}

.product-body    { padding: 1.5rem; }
.product-name    { font-family: var(--f-display); font-size: 1.35rem; color: var(--c-ink); margin-bottom: 0.625rem; }
.product-desc    { font-size: 0.9rem; color: var(--c-ink-mid); line-height: 1.65; margin-bottom: 1.25rem; }

.product-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.14s;
}

.product-link:hover { gap: 0.5rem; }

.product-link:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.product-secondary {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--c-ink-muted);
}

.product-secondary a {
  color: var(--c-accent);
  text-decoration: underline;
}


/* ================================================================
   SERVICE AREAS — province pathways
   Added to support clear regional navigation and provincial SEO.
   No JavaScript required.
   ================================================================ */
.service-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-area-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.75rem;
  background: var(--c-white);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.service-area-card h3 {
  font-family: var(--f-display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--c-ink);
  margin-bottom: 0.75rem;
}

.service-area-card p {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--c-ink-mid);
  margin-bottom: 1.25rem;
}

.service-area-card a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.3rem;
  color: var(--c-accent);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: gap 0.14s ease, color 0.14s ease;
}

.service-area-card a:hover {
  gap: 0.55rem;
  color: var(--c-accent-dk);
}

.service-area-card a:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (hover: hover) {
  .service-area-card:hover {
    transform: translateY(-2px);
    border-color: rgba(29, 75, 47, 0.28);
    box-shadow: var(--shadow-md);
  }
}


/* Province badge shown at the top of each service-area card */
.service-area-card__province {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 48px;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: 100px;
  background: var(--c-accent-lt);
  color: var(--c-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Prevent the timing paragraph from stretching like the description */
.service-area-card .service-area-card__timing {
  flex: 0 0 auto;
  margin-top: auto;
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--c-accent-lt);
  color: var(--c-ink-mid);
  font-size: 0.84rem;
  line-height: 1.55;
}

.service-area-card__timing strong {
  display: block;
  color: var(--c-ink);
  margin-bottom: 0.2rem;
}

.service-area-link {
  margin-top: 0;
}

/* Delivery summary below the province cards */
.delivery-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
  padding: 1.25rem;
  background: var(--c-white);
  border: 1px solid var(--c-rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.delivery-fact {
  min-width: 0;
  padding: 0.5rem 1rem;
  border-right: 1px solid var(--c-rule);
}

.delivery-fact:last-child {
  border-right: 0;
}

.delivery-fact strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--c-accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.delivery-fact span {
  display: block;
  color: var(--c-ink-mid);
  font-size: 0.86rem;
  line-height: 1.5;
}

.service-area-note {
  max-width: 80ch;
  margin: 1.25rem auto 0;
  color: var(--c-ink-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: center;
}

/* ================================================================
   HOW IT WORKS — 4 steps
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  position: relative;
}

/* Connecting line — desktop only */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: var(--c-rule);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 0.75rem;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.125rem;
}

.step-title { font-size: 0.95rem; font-weight: 700; color: var(--c-ink); margin-bottom: 0.5rem; }
.step-desc  { font-size: 0.85rem; color: var(--c-ink-muted); line-height: 1.6; }

/* ================================================================
   PROJECT GALLERY
   ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 0.75rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-item:first-child  { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #fff;
  font-size: 0.75rem;
  padding: 1.25rem 0.75rem 0.75rem;
  /* Desktop: reveal on hover */
  transform: translateY(100%);
  transition: transform 0.22s ease;
}

/* Pointer devices: hover reveals caption */
@media (hover: hover) {
  .gallery-item:hover .gallery-caption { transform: translateY(0); }
}

/* Touch devices: caption always visible */
@media (hover: none) {
  .gallery-caption { transform: translateY(0); }
}

/* ================================================================
   MID-PAGE CTA
   ================================================================ */
.midcta        { padding: 5rem 0; }
.midcta-inner  { text-align: center; max-width: 640px; margin: 0 auto; }

.midcta h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.midcta p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: none;
}

.midcta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.midcta-phone {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

.midcta-phone a {
  color: inherit;
  text-decoration: underline;
}

/* ================================================================
   EXPERTISE / SPECIFICATION SIGNALS
   ================================================================ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.expertise-card {
  padding: 1.75rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-rule);
}

/* Pending-confirmation visual treatment */
.expertise-card.pending {
  border-color: #f59e0b;
  background: #fffbeb;
}

.expertise-pending-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f59e0b;
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.expertise-icon  { font-size: 1.75rem; margin-bottom: 1rem; line-height: 1; }
.expertise-title { font-size: 1rem; font-weight: 700; color: var(--c-ink); margin-bottom: 0.625rem; }
.expertise-desc  { font-size: 0.875rem; color: var(--c-ink-mid); line-height: 1.65; }

/* ================================================================
   CONTRACTORS STRIP
   ================================================================ */
.contractors-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

.contractors-text { max-width: 600px; }

.contractors h2 {
  font-family: var(--f-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  color: #fff;
  margin-bottom: 0.875rem;
}

.contractors p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ================================================================
   QUOTE FORM PLACEHOLDER
   ================================================================ */
.quote-form-placeholder {
  background: var(--c-warm);
  border: 2px dashed var(--c-cta);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.quote-form-placeholder p {
  font-size: 0.9rem;
  color: var(--c-ink-mid);
  line-height: 1.6;
  max-width: none;
  margin-bottom: 0;
}

.quote-form-placeholder strong {
  display: block;
  font-size: 1rem;
  color: var(--c-cta);
  margin-bottom: 0.5rem;
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */
.faq-list    { max-width: 740px; margin: 0 auto; }
.faq-item    { border-bottom: 1px solid var(--c-rule); }

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 1.125rem 0;
  font-family: var(--f-body);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.45;
}

.faq-btn:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 3px;
}

.faq-icon {
  width: 26px;
  height: 26px;
  min-width: 26px; /* prevent squish on long questions */
  border-radius: 50%;
  background: var(--c-accent-lt);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  /* aria-hidden="true" is applied in the HTML because this icon is decorative. */
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--c-accent);
  color: #fff;
}

.faq-answer {
  /* Hidden by default — JS toggles .open on parent .faq-item */
  display: none;
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--c-ink-mid);
  line-height: 1.72;
}

.faq-answer p   { max-width: none; margin-bottom: 0.5rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a   { color: var(--c-accent); text-decoration: underline; }

.faq-item.open .faq-answer { display: block; }

.faq-more { text-align: center; margin-top: 2.25rem; }

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
  background: var(--c-warm);
  border-top: 3px solid var(--c-cta);
  padding: 5rem 0;
  text-align: center;
}

.final-cta h2 {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  color: var(--c-ink);
  margin-bottom: 0.875rem;
}

.final-cta p {
  font-size: 1.05rem;
  color: var(--c-ink-mid);
  max-width: 56ch;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2.5rem;
}

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

.footer-logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.875rem;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.25rem;
}

.footer-socials { display: flex; gap: 0.75rem; }

.footer-social {
  width: 34px;
  height: 34px;
  min-width: 44px;  /* WCAG tap target */
  min-height: 44px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  transition: background 0.16s;
}

.footer-social:hover  { background: var(--c-accent); }

.footer-social:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 2px;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}

.footer-links              { list-style: none; padding: 0; }
.footer-links li           { margin-bottom: 0.4rem; }
.footer-links a            { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); transition: color 0.14s; }
.footer-links a:hover,
.footer-links a:focus-visible { color: #fff; }

.footer-links a:focus-visible {
  outline: 2px solid var(--c-cta);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal              { display: flex; gap: 1.25rem; }
.footer-legal a            { color: rgba(255, 255, 255, 0.4); transition: color 0.14s; }
.footer-legal a:hover,
.footer-legal a:focus-visible { color: #fff; }

/* ================================================================
   MOBILE STICKY BAR
   Hidden on desktop — visible only at ≤768px
   ================================================================ */
.mobile-bar { display: none; }

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */


/* ── Header safeguard for compact desktop and tablet landscape ── */
@media (max-width: 1180px) and (min-width: 769px) {
  .header-inner {
    gap: 1rem;
  }

  .header-nav {
    gap: 0.9rem;
  }

  .header-nav a {
    font-size: 0.78rem;
  }

  .header-phone {
    display: none;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.8rem;
  }
}

/* ── Large tablet / small desktop ── */
@media (max-width: 1024px) {
  .delivery-facts               { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-fact:nth-child(2)   { border-right: 0; }
  .delivery-fact:nth-child(-n+2){ border-bottom: 1px solid var(--c-rule); padding-bottom: 1rem; }
  .delivery-fact:nth-child(n+3) { padding-top: 1rem; }
  .steps-grid                   { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before           { display: none; }
  .footer-grid                  { grid-template-columns: 1fr 1fr; }
}

/* ── Tablet / large mobile ── */
@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Header: keep only the logo and hamburger on mobile.
     Call and quote actions remain available in the fixed bottom bar. */
  .header-nav,
  .header-actions { display: none; }

  .header-inner {
    gap: 0.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
  }

  .site-logo {
    min-width: 0;
    max-width: calc(100% - 60px);
  }

  .site-logo img {
    max-width: 160px;
    width: auto;
    height: 40px;
  }

  .hamburger {
    display: flex;
    flex: 0 0 48px;
  }

  /* Hero */
  .hero          { min-height: 82vh; }
  .hero-content  { padding: 4rem var(--pad) 3.5rem; }
  .hero-actions  { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Trust bar: 2-column grid */
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }

  /* Products: single column */
  .products-grid { grid-template-columns: 1fr; }

  /* Service areas: single column */
  .service-areas-grid { grid-template-columns: 1fr; }

  .delivery-facts {
    grid-template-columns: 1fr;
    padding: 0.5rem 1.25rem;
  }

  .delivery-fact,
  .delivery-fact:nth-child(2),
  .delivery-fact:nth-child(-n+2),
  .delivery-fact:nth-child(n+3) {
    padding: 1rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--c-rule);
  }

  .delivery-fact:last-child {
    border-bottom: 0;
  }

  /* Gallery: 2-column, explicit heights */
  .gallery-grid                        { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-item:first-child            { grid-column: span 2; grid-row: span 1; height: 220px; }
  .gallery-item:nth-child(4)           { grid-column: span 1; }

  /* Expertise */
  .expertise-grid { grid-template-columns: 1fr; }

  /* Contractors */
  .contractors-inner { flex-direction: column; text-align: center; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Mobile sticky bar — shown */
  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--c-white);
    border-top: 1px solid var(--c-rule);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.10);
    padding: 0.625rem 1rem;
    /* Safe area inset for notched phones */
    padding-bottom: calc(0.625rem + env(safe-area-inset-bottom));
    gap: 0.75rem;
  }

  .mobile-bar .btn {
    flex: 1;
    justify-content: center;
    padding: 0.875rem 0.75rem;
    font-size: 0.88rem;
  }

  /* Push page content above sticky bar */
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* ── Small mobile ── */
@media (max-width: 480px) {
  .site-logo img {
    max-width: 140px;
    height: 38px;
  }

  /* Gallery: single column scroll carousel */
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    grid-template-columns: unset;
    grid-auto-rows: unset;
    padding-bottom: 0.5rem; /* space for scroll indicator */
  }

  .gallery-item {
    flex: 0 0 85vw;
    scroll-snap-align: start;
    height: 240px;
    grid-column: unset !important;
    grid-row: unset !important;
  }

  /* Steps: single column */
  .steps-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }

  /* Mid-page CTA */
  .midcta-actions { flex-direction: column; width: 100%; }
  .midcta-actions .btn { width: 100%; justify-content: center; }

  /* Final CTA */
  .final-cta-actions { flex-direction: column; }
  .final-cta-actions .btn { width: 100%; justify-content: center; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
