/*
Theme Name: Sutherns LTD Electrical
Theme URI: https://sutherns-ltd-electrical.com
Description: Custom WordPress theme for Sutherns LTD Electrical. Luxury residential construction. Replicates Next.js site 100%.
Author: Sutherns LTD
Author URI: https://sutherns-ltd-electrical.com
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: Proprietary
Text Domain: sutherns-electrical
Tags: custom, electrical, business, luxury, construction

Full standalone theme with Tailwind-like utilities.
*/

/* ========== CSS Variables (Colors, Typography) ========== */
:root {
  --navy: #0A0E1A;
  --charcoal: #1A1A1A;
  --copper: #B87333;
  --copper-hover: #D4894A;
  --ivory: #F5F5F0;
  --slate: #2D2D2D;
  --white: #FFFFFF;
  --max-container: 1280px;
  --header-offset: 100px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-logo: 'Halfre', var(--font-serif);
}

/* ========== Font Faces ========== */
@font-face {
  font-family: 'Halfre';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: url('assets/fonts/halfre/Halfre.woff2') format('woff2'),
       url('assets/fonts/halfre/Halfre.woff') format('woff');
}

/* ========== Base / Reset ========== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 105%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.625;
  color: var(--ivory);
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  margin: 0;
  padding: 0;
}

a { text-decoration: none; color: inherit; }
h1, h2, h3, .font-display { font-family: var(--font-serif); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }

/* Safe area insets */
@supports (padding: env(safe-area-inset-top)) {
  .safe-top { padding-top: env(safe-area-inset-top); }
  .safe-bottom { padding-bottom: env(safe-area-inset-bottom); }
}

/* Icon-only buttons: no background, just the SVG */
#menu-toggle,
#mobile-menu-close,
.testimonial-prev,
.testimonial-next,
.accordion-trigger {
  background: none !important;
  border: none !important;
  cursor: pointer;
}

/* Services accordion - copper icons (SVG inherits currentColor) */
.accordion-trigger .text-copper,
.accordion-item .text-copper {
  color: var(--copper) !important;
}
.accordion-content {
  transition: max-height 0.3s ease-in-out;
}
.accordion-chevron {
  transition: transform 0.2s ease;
}

/* ========== Layout Utilities ========== */
.max-w-container { max-width: var(--max-container); margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
@media (min-width: 640px) { .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 768px) { .md\:px-10 { padding-left: 2.5rem; padding-right: 2.5rem; } }

/* ========== Color Utilities ========== */
.bg-white {
  background-color: var(--white);
  color: var(--charcoal);
}
.bg-white a:not(.btn-primary):not(.btn-secondary) {
  color: inherit;
}
.bg-navy { background-color: var(--navy); }
.bg-charcoal { background-color: var(--charcoal); }
.bg-slate { background-color: var(--slate); }
.bg-copper { background-color: var(--copper); }
.text-white { color: var(--white); }
.text-charcoal { color: var(--charcoal); }
.text-charcoal\/90 { color: rgba(26, 26, 26, 0.9); }
.text-charcoal\/80 { color: rgba(26, 26, 26, 0.8); }
.text-charcoal\/70 { color: rgba(26, 26, 26, 0.7); }
.text-charcoal\/60 { color: rgba(26, 26, 26, 0.6); }
.text-charcoal\/40 { color: rgba(26, 26, 26, 0.4); }
.text-copper { color: var(--copper); }
.text-ivory { color: var(--ivory); }
.text-ivory\/90 { color: rgba(245, 245, 240, 0.9); }
.text-ivory\/80 { color: rgba(245, 245, 240, 0.8); }
.text-ivory\/70 { color: rgba(245, 245, 240, 0.7); }
.text-ivory\/60 { color: rgba(245, 245, 240, 0.6); }
.text-ivory\/50 { color: rgba(245, 245, 240, 0.5); }
.text-ivory\/40 { color: rgba(245, 245, 240, 0.4); }
.text-ivory\/30 { color: rgba(245, 245, 240, 0.3); }
.text-copper\/90 { color: rgba(184, 115, 51, 0.9); }
.text-copper\/70 { color: rgba(184, 115, 51, 0.7); }
.text-copper\/40 { color: rgba(184, 115, 51, 0.4); }
.text-white\/20 { color: rgba(255, 255, 255, 0.2); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.border-charcoal\/10 { border-color: rgba(26, 26, 26, 0.1); }
.border-charcoal\/20 { border-color: rgba(26, 26, 26, 0.2); }
.border-copper\/40 { border-color: rgba(184, 115, 51, 0.4); }
.border-copper\/50 { border-color: rgba(184, 115, 51, 0.5); }
.bg-navy\/40 { background-color: rgba(10, 14, 26, 0.4); }
.bg-navy\/50 { background-color: rgba(10, 14, 26, 0.5); }
.bg-navy\/60 { background-color: rgba(10, 14, 26, 0.6); }
.bg-charcoal\/20 { background-color: rgba(26, 26, 26, 0.2); }
.bg-charcoal\/50 { background-color: rgba(26, 26, 26, 0.5); }
.bg-slate\/30 { background-color: rgba(45, 45, 45, 0.3); }
.bg-copper\/10 { background-color: rgba(184, 115, 51, 0.1); }
.bg-copper\/20 { background-color: rgba(184, 115, 51, 0.2); }

/* ========== Typography Utilities ========== */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-logo { font-family: var(--font-logo); }
.font-logo-alt { font-feature-settings: 'ss01' 1, 'ss02' 1, 'cv01' 1, 'cv02' 1; }
.tracking-\[0\.15em\] { letter-spacing: 0.15em; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.tracking-\[0\.2em\] { letter-spacing: 0.2em; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.tracking-\[0\.3em\] { letter-spacing: 0.3em; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-\[10px\] { font-size: 10px; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-relaxed { line-height: 1.625; }
.leading-snug { line-height: 1.375; }
.leading-tight { line-height: 1.25; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--white);
  background-color: var(--copper);
  transition: all 0.3s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background-color: var(--copper-hover); }
.btn-primary:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--ivory);
  border: 1px solid rgba(245, 245, 240, 0.3);
  background: transparent;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover { background: rgba(245, 245, 240, 0.1); color: var(--white); }

@media (max-width: 768px) {
  .btn-primary, .btn-secondary {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  body { -webkit-tap-highlight-color: rgba(184, 115, 51, 0.08); }
}
a, button { touch-action: manipulation; }

/* ========== Section Heading Accent ========== */
.section-heading-accent {
  position: relative;
  padding-bottom: 1rem;
  display: inline-block;
}
.section-heading-accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--copper) 0%, transparent 100%);
}
.bg-white .section-heading-accent::after {
  background: linear-gradient(90deg, var(--charcoal) 0%, transparent 100%);
}
@media (min-width: 640px) { .section-heading-accent { padding-bottom: 1.5rem; } }

/* Force white sections to stay white with dark text (all viewports, including all phones) */
section.bg-white,
#main-content section.bg-white {
  background-color: #FFFFFF !important;
  background: #FFFFFF !important;
  color: #1A1A1A !important;
  -webkit-text-fill-color: #1A1A1A;
}
section.bg-white *,
#main-content section.bg-white * {
  color: inherit;
}
section.bg-white .text-copper,
section.bg-white a.text-copper,
section.bg-white .link-copper,
#main-content section.bg-white .text-copper,
#main-content section.bg-white a.text-copper,
#main-content section.bg-white .link-copper { color: var(--copper) !important; -webkit-text-fill-color: var(--copper); }
section.bg-white .text-charcoal\/90,
#main-content section.bg-white .text-charcoal\/90 { color: rgba(26, 26, 26, 0.9) !important; -webkit-text-fill-color: rgba(26, 26, 26, 0.9); }
section.bg-white .text-charcoal\/80,
#main-content section.bg-white .text-charcoal\/80 { color: rgba(26, 26, 26, 0.8) !important; -webkit-text-fill-color: rgba(26, 26, 26, 0.8); }
section.bg-white .text-charcoal\/70,
#main-content section.bg-white .text-charcoal\/70 { color: rgba(26, 26, 26, 0.7) !important; -webkit-text-fill-color: rgba(26, 26, 26, 0.7); }
section.bg-white .text-charcoal\/60,
#main-content section.bg-white .text-charcoal\/60 { color: rgba(26, 26, 26, 0.6) !important; -webkit-text-fill-color: rgba(26, 26, 26, 0.6); }
section.bg-white .text-charcoal\/40,
#main-content section.bg-white .text-charcoal\/40 { color: rgba(26, 26, 26, 0.4) !important; -webkit-text-fill-color: rgba(26, 26, 26, 0.4); }

/* iPhone / small phones: reinforce so white sections always visible (iOS Safari) */
@media (max-width: 480px) {
  #main-content section.bg-white {
    background-color: #FFFFFF !important;
    background: #FFFFFF !important;
    color: #1A1A1A !important;
    -webkit-text-fill-color: #1A1A1A;
  }
}

/* ========== Link Copper (underline on hover) ========== */
.link-copper { position: relative; }
.link-copper::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--copper);
  transition: width 0.3s ease;
}
.link-copper:hover::after { width: 100%; }
a.link-copper { text-decoration: none; color: inherit; }

/* Footer: keep underline tight to text (override for footer nav if needed) */
footer .link-copper::after { bottom: 0.5em; }
/* Services cards: keep "View details" underline tight to text */
.services-card .link-copper::after { bottom: 0.25em; }

/* Services cards: uniform spacing and typography across all four */
.services-card {
  background-color: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.services-card-title {
  margin: 0 0 0.75rem 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--white);
}
@media (min-width: 640px) {
  .services-card-title { font-size: 1.25rem; }
}
.services-card-outcome {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(245, 245, 240, 0.8);
}
.services-card-label {
  margin: 0 0 0.25rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--copper);
}
.services-card-label-muted {
  color: rgba(245, 245, 240, 0.5);
}
.services-card-ideal,
.services-card-range {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: rgba(245, 245, 240, 0.6);
}
.services-card-range {
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.services-card-link {
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: var(--copper);
  text-decoration: none;
  transition: color 0.2s;
}
.services-card-link:hover { color: var(--ivory); }

/* ========== Image Utilities ========== */
.img-crop-borders {
  object-fit: cover;
  transform: scale(1.06);
  transform-origin: center center;
}
.img-expand-square {
  object-fit: cover;
  transform: scale(1.12);
  transform-origin: center center;
}

/* ========== Positioning Strip (Vercel match) ========== */
.positioning-strip {
  background-color: var(--charcoal);
}
.positioning-strip-inner span.text-copper {
  color: var(--copper);
  font-family: var(--font-sans);
  letter-spacing: 0.025em;
}
/* Strip dividers - ensure always visible between phrases */
.strip-divider {
  width: 1px;
  min-width: 1px;
  height: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  flex-shrink: 0;
  display: inline-block;
}

/* ========== Marquee Animation ========== */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  animation: marquee 25s linear infinite;
}

/* ========== Services: Hover/Tap to swap line art ↔ rendered (aligned) ========== */
.services-hover-reveal .relative { aspect-ratio: 4/5; overflow: hidden; }
.services-hover-reveal .relative img { object-fit: cover; object-position: center; }
/* Rendered image: hidden by default, visible on hover */
.services-rendered-img {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}
.services-hover-reveal:hover .services-rendered-img,
.services-hover-reveal.is-revealed .services-rendered-img {
  opacity: 1;
}
/* Solid navy blocks rendered from showing through transparent line art */
.services-line-overlay-bg {
  opacity: 1;
  transition: opacity 0.6s ease-out;
}
.services-hover-reveal:hover .services-line-overlay-bg,
.services-hover-reveal.is-revealed .services-line-overlay-bg {
  opacity: 0;
}
/* Line art: visible by default, fades out on hover */
.services-line-img {
  opacity: 1;
  transition: opacity 0.6s ease-out;
}
.services-hover-reveal:hover .services-line-img,
.services-hover-reveal.is-revealed .services-line-img {
  opacity: 0;
}
.services-reveal-hint { transition: opacity 0.3s; }
.services-hover-reveal.is-revealed .services-reveal-hint { opacity: 0; }

/* ========== Form Styles ========== */
select {
  accent-color: var(--copper);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23F5F5F0' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}
select option {
  background: #1A1A1A;
  color: var(--ivory);
  padding: 10px 12px;
}

/* Checklist form inputs (Vercel-style: 5px radius, focus ring) */
.checklist-input {
  width: 100%;
  min-height: 44px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.1);
  background: var(--slate);
  padding: 0.75rem 1rem;
  color: var(--ivory);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.checklist-input::placeholder { color: rgba(245,245,240,0.3); }
.checklist-input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 1px var(--copper);
}
.checklist-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Contact form: force Vercel-style chips and buttons */
#checklist-form .checklist-chip {
  border-radius: 5px;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
#checklist-form .btn-primary,
#checklist-form .btn-secondary {
  border-radius: 5px;
}
#checklist-form .btn-primary {
  background-color: #B87333;
  color: #FFFFFF;
}
#checklist-form .btn-primary:hover:not(:disabled) {
  background-color: #D4894A;
}

/* Prose / content area */
.prose { max-width: 65ch; }
.prose p { margin-bottom: 1em; }
.prose a { color: var(--copper); text-decoration: underline; }
.prose a:hover { color: var(--copper-hover); }
.prose-invert p { color: rgba(245,245,240,0.9); }
.prose-invert a { color: var(--copper); }

/* ========== Header ========== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.3s ease-in-out, background-color 0.5s, border-color 0.5s;
  transform: translateY(0);
}
/* Inner pages (e.g. Services, About): header scrolls with page, nothing sticky at top */
body:not(.has-video-hero) header {
  position: relative;
}
body:not(.has-video-hero) header.header-hidden { transform: none; }
body:not(.has-video-hero) main { padding-top: 0; }
header.header-hidden { transform: translateY(-100%); }
main { padding-top: var(--header-offset); }
body.has-video-hero main { padding-top: 0; }
@media (min-width: 768px) {
  :root { --header-offset: 90px; }
}

/* Scroll indicator - gentle pulse (Vercel: 0→8→0 over 2s) */
@keyframes scroll-indicator-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
.scroll-indicator-pulse {
  animation: scroll-indicator-pulse 2.5s ease-in-out infinite;
}

/* Hero text readability over video */
.hero-title { text-shadow: 0 2px 20px rgba(0,0,0,0.5); }
.hero-tagline { text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
.hero-scroll { text-shadow: 0 1px 6px rgba(0,0,0,0.3); }
.hero-copy-layer { position: absolute; inset: 0; }
.hero-main-title {
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 11vw, 10rem) !important;
  letter-spacing: 0.15em;
}
.hero-construction-title {
  left: 50%;
  top: 61%;
  transform: translateX(-50%);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem) !important;
  letter-spacing: 0.2em;
}
.hero-bottom-stack {
  bottom: 2.25rem;
  gap: 1.25rem;
}

@media (min-width: 768px) and (max-width: 1366px) {
  .hero-main-title {
    top: 45%;
    font-size: clamp(5.2rem, 10vw, 8rem) !important;
  }
  .hero-construction-title {
    top: 60.5%;
    font-size: clamp(1.5rem, 2.2vw, 2.1rem) !important;
    letter-spacing: 0.18em;
  }
  .hero-bottom-stack {
    bottom: 1.6rem;
    gap: 1rem;
  }
  .hero-tagline {
    max-width: 72vw;
    letter-spacing: 0.14em !important;
  }
}

@media (max-width: 1024px) {
  .hero-main-title {
    top: 45%;
    font-size: clamp(4.6rem, 14vw, 7rem) !important;
  }
  .hero-construction-title {
    top: 60%;
    font-size: clamp(1.35rem, 4.8vw, 2rem) !important;
    letter-spacing: 0.16em;
  }
  .hero-bottom-stack {
    bottom: 1.5rem;
    gap: 1rem;
  }
}

@media (max-width: 767px) {
  .hero-main-title {
    top: 44%;
    font-size: clamp(3.2rem, 17vw, 4.9rem) !important;
    letter-spacing: 0.12em;
  }
  .hero-construction-title {
    top: 49.5%;
    font-size: clamp(1.15rem, 7.2vw, 1.7rem) !important;
    letter-spacing: 0.12em;
  }
  .hero-bottom-stack {
    bottom: 1.25rem;
    gap: 0.85rem;
  }
  .hero-tagline {
    max-width: 86vw;
    letter-spacing: 0.1em !important;
    line-height: 1.35;
  }
}

/* ========== Reveal (visible by default for no-JS) ========== */
.reveal { opacity: 1; transform: translateY(0); }

/* ========== Line Clamp ========== */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========== Group Hover ========== */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-copper { color: var(--copper); }

/* Hover utilities */
.hover\:text-copper:hover { color: var(--copper); }
.hover\:text-white:hover { color: var(--white); }
.hover\:bg-ivory\/10:hover { background-color: rgba(245,245,240,0.1); }
.hover\:border-copper\/40:hover { border-color: rgba(184,115,51,0.4); }
.hover\:text-ivory:hover { color: var(--ivory); }

/* ========== Flexbox / Grid Utilities ========== */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.gap-20 { gap: 5rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid-cols-content-sidebar { grid-template-columns: 1fr; }
.grid-cols-content-sidebar-wide { grid-template-columns: 1fr; }
.content-start { align-content: flex-start; }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-5 { grid-column: span 5 / span 5; }
.row-span-1 { grid-row: span 1 / span 1; }
.overflow-hidden { overflow: hidden; }
.opacity-0 { opacity: 0; }
.pointer-events-none { pointer-events: none; }
.w-max { width: max-content; }
.w-px { width: 1px; }
.h-px { height: 1px; }
.w-2 { width: 0.5rem; }
.w-6 { width: 1.5rem; }
.h-1 { height: 0.25rem; }
.h-2 { height: 0.5rem; }
.h-4 { height: 1rem; }
.block { display: block; }
.leading-none { line-height: 1; }
.p-2 { padding: 0.5rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.max-w-sm { max-width: 24rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-2 { row-gap: 0.5rem; }
.text-red-400 { color: #f87171; }
.border { border-width: 1px; border-style: solid; }
.text-ellipsis { text-overflow: ellipsis; }
.select-none { user-select: none; }
.cursor-pointer { cursor: pointer; }
.touch-manipulation { touch-action: manipulation; }
.group { position: relative; }
.transition-all { transition: all 0.3s; }
.h-8 { height: 2rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }
.min-h-0 { min-height: 0; }
.min-h-\[44px\] { min-height: 44px; }
.min-h-\[25rem\] { min-height: 25rem; }
.min-w-\[44px\] { min-width: 44px; }
.min-w-0 { min-width: 0; }
.h-\[65vh\] { height: 65vh; }
.h-\[75vh\] { height: 75vh; }
.overflow-y-auto { overflow-y: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-32 { top: 8rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-\[200px\] { max-width: 200px; }
.max-w-\[220px\] { max-width: 220px; }
.max-w-\[240px\] { max-width: 240px; }
.max-w-\[260px\] { max-width: 260px; }
.max-w-\[280px\] { max-width: 280px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.-ml-1 { margin-left: -0.25rem; }
.-mr-2 { margin-right: -0.5rem; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-2 { margin-top: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.pl-6 { padding-left: 1.5rem; }
.pl-8 { padding-left: 2rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-8 { padding-right: 2rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.bottom-8 { bottom: 2rem; }
.bottom-24 { bottom: 6rem; }
.bottom-28 { bottom: 7rem; }
@media (min-width: 640px) { .sm\:bottom-28 { bottom: 7rem; } }
.left-1\/2 { left: 50%; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-y { border-top: 1px solid; border-bottom: 1px solid; }
.border-l-2 { border-left: 2px solid; }
.border-b-2 { border-bottom: 2px solid; }
.flex-shrink-0 { flex-shrink: 0; }
.space-y-0 > * + * { margin-top: 0; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.list-none { list-style: none; padding-left: 0; margin: 0; }
.list-none { list-style: none; padding-left: 0; margin: 0; }
.list-decimal { list-style-type: decimal; }
.list-inside { list-style-position: inside; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-16 > * + * { margin-top: 4rem; }
.whitespace-nowrap { white-space: nowrap; }
.text-inherit { color: inherit; }
.rounded-full { border-radius: 9999px; }
.rounded-\[5px\] { border-radius: 5px; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-\[1\] { z-index: 1; }
.z-\[2\] { z-index: 2; }
.hover\:scale-105:hover { transform: scale(1.05); }
.bg-gradient-to-b { background-image: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.object-cover { object-fit: cover; }
.object-center { object-position: center; }
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-\[4\/5\] { aspect-ratio: 4/5; }
.aspect-\[16\/10\] { aspect-ratio: 16/10; }
.aspect-\[3\/2\] { aspect-ratio: 3/2; }
.rounded-sm { border-radius: 4px; }
.-translate-x-1\/2 { transform: translateX(-50%); }
.transition-colors { transition: color 0.2s, background-color 0.2s, border-color 0.2s; }
.transition-transform { transition: transform 0.3s; }
.duration-700 { transition-duration: 0.7s; }
.shrink-0 { flex-shrink: 0; }
.flex-grow { flex-grow: 1; }
.flex-1 { flex: 1 1 0%; }

/* Responsive */
@media (min-width: 640px) {
  .sm\:h-\[75vh\] { height: 75vh; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:text-2xl { font-size: 1.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; }
  .sm\:text-sm { font-size: 0.875rem; }
  .sm\:text-lg { font-size: 1.125rem; }
  .sm\:text-xl { font-size: 1.25rem; }
  .sm\:text-7xl { font-size: 4.5rem; }
  .sm\:text-base { font-size: 1rem; }
  .sm\:inline { display: inline; }
  .sm\:inline-block { display: inline-block; }
  .sm\:max-w-\[240px\] { max-width: 240px; }
  .sm\:max-w-\[280px\] { max-width: 280px; }
  .sm\:gap-x-6 { column-gap: 1.5rem; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:mt-6 { margin-top: 1.5rem; }
  .sm\:pl-8 { padding-left: 2rem; }
  .sm\:py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
  .sm\:mb-6 { margin-bottom: 1.5rem; }
  .sm\:gap-8 { gap: 2rem; }
  .sm\:mt-10 { margin-top: 2.5rem; }
  .sm\:gap-10 { gap: 2.5rem; }
  .sm\:gap-12 { gap: 3rem; }
  .sm\:mb-12 { margin-bottom: 3rem; }
  .sm\:mt-16 { margin-top: 4rem; }
  .sm\:mt-20 { margin-top: 5rem; }
  .sm\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
}
@media (min-width: 768px) {
  .md\:max-w-\[220px\] { max-width: 220px; }
  .md\:max-w-\[280px\] { max-width: 280px; }
  .md\:mt-20 { margin-top: 5rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-content-sidebar { grid-template-columns: 1fr minmax(260px, 340px); }
  .md\:grid-cols-content-sidebar-wide { grid-template-columns: 1fr minmax(280px, 360px); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:order-1 { order: 1; }
  .md\:order-2 { order: 2; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:text-2xl { font-size: 1.5rem; }
  .md\:text-3xl { font-size: 1.875rem; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-8xl { font-size: 6rem; }
  .md\:gap-8 { gap: 2rem; }
  .md\:gap-16 { gap: 4rem; }
  .md\:gap-20 { gap: 5rem; }
  .md\:ml-auto { margin-left: auto; }
  .md\:mr-0 { margin-right: 0; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:gap-12 { gap: 3rem; }
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:pt-32 { padding-top: 8rem; }
  .md\:pb-28 { padding-bottom: 7rem; }
  .md\:mb-28 { margin-bottom: 7rem; }
  .md\:mt-12 { margin-top: 3rem; }
  .md\:mt-16 { margin-top: 4rem; }
  .md\:sticky { position: sticky; }
  .md\:top-32 { top: 8rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:gap-6 { gap: 1.5rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:flex { display: flex; }
  .lg\:hidden { display: none; }
  .lg\:text-3xl { font-size: 1.875rem; }
  .lg\:text-5xl { font-size: 3rem; }
  .lg\:text-\[10rem\] { font-size: 10rem; }
}
@media (min-width: 1280px) {
  .xl\:text-\[12rem\] { font-size: 12rem; }
}
.hidden { display: none; }
@media (min-width: 768px) {
  .md\:hidden { display: none !important; }
  .md\:flex { display: flex !important; }
  .md\:block { display: block !important; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex !important; }
  .lg\:hidden { display: none !important; }
}

/* Section padding */
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pb-14 { padding-bottom: 3.5rem; }
.pb-20 { padding-bottom: 5rem; }
@media (min-width: 640px) {
  .sm\:py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .sm\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .sm\:pt-24 { padding-top: 6rem; }
  .sm\:pb-20 { padding-bottom: 5rem; }
}
@media (min-width: 768px) {
  .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .md\:pt-32 { padding-top: 8rem; }
  .md\:pb-28 { padding-bottom: 7rem; }
  .md\:pb-16 { padding-bottom: 4rem; }
  .md\:pt-6 { padding-top: 1.5rem; }
  .md\:pt-20 { padding-top: 5rem; }
  .md\:pb-8 { padding-bottom: 2rem; }
  .md\:pb-12 { padding-bottom: 3rem; }
}

/* Scroll margin for anchor links */
.scroll-mt-28 { scroll-margin-top: 7rem; }

/* Footer gradient line (Vercel: from-transparent via-copper/30 to-transparent) */
.footer-gradient-line {
  background: linear-gradient(to right, transparent, rgba(184,115,51,0.3), transparent);
}

/* ========== Home Improvements Page ========== */
.home-improvements-hero {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.home-improvements-summary-panel {
  display: grid;
  gap: 1rem;
}
.home-improvements-summary-card,
.home-improvements-service-card,
.home-improvements-panel,
.home-improvements-process-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.home-improvements-summary-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
}
.home-improvements-summary-label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(184, 115, 51, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.home-improvements-summary-value {
  margin: 0;
  color: rgba(245, 245, 240, 0.92);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.3;
}
.home-improvements-services-grid,
.home-improvements-process-grid,
.home-improvements-two-column {
  display: grid;
  gap: 1.5rem;
}
.home-improvements-service-card {
  background: rgba(10, 14, 26, 0.4);
  padding: 1.5rem;
}
.home-improvements-panel {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
}
.home-improvements-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-improvements-checklist li {
  position: relative;
  padding-left: 1.25rem;
  color: rgba(245, 245, 240, 0.75);
  line-height: 1.625;
}
.home-improvements-checklist li + li {
  margin-top: 0.75rem;
}
.home-improvements-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: var(--copper);
}
.home-improvements-process-card {
  background: rgba(10, 14, 26, 0.3);
  padding: 1.5rem;
}
.home-improvements-step {
  display: inline-block;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(184, 115, 51, 0.5);
  color: rgba(184, 115, 51, 0.9);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
}
.home-improvements-cta-actions {
  justify-content: center;
}
.bg-white .home-improvements-checklist li {
  color: rgba(26, 26, 26, 0.72);
}
.bg-white .home-improvements-checklist li::before {
  background: var(--charcoal);
}
@media (min-width: 768px) {
  .home-improvements-hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 360px);
    gap: 3rem;
  }
  .home-improvements-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-improvements-process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-improvements-two-column {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 360px);
    gap: 3rem;
    align-items: start;
  }
}

/* ========== Mobile Menu ========== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}
.mobile-menu-overlay.is-open {
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-menu-overlay.is-open .mobile-menu-backdrop {
  opacity: 1;
}
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--navy);
  border-left: 1px solid rgba(255,255,255,0.1);
  padding: 5rem 1.5rem 2rem;
  padding-top: 4.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.6, 0.36, 1);
  z-index: 10000;
}
.mobile-menu-overlay.is-open .mobile-menu-panel {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ivory);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
}
.mobile-menu-close:hover { color: var(--copper); }
@supports (padding: env(safe-area-inset-top)) {
  .mobile-menu-panel { padding-top: calc(4.5rem + env(safe-area-inset-top)); }
  .mobile-menu-close { top: calc(1.5rem + env(safe-area-inset-top)); }
}
.mobile-menu-panel ul { list-style: none; padding-left: 0; margin: 0; }
.mobile-nav-link {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.125rem;
  font-family: var(--font-serif);
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--copper); }
.mobile-menu-cta { padding-top: 2rem; }
.mobile-menu-cta .btn-primary {
  width: 100%;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.025em;
}
