/* -------------------------------------------------------------
   DLC PAINTERS - PREMIUM LIGHT DESIGN SYSTEM
   ------------------------------------------------------------- */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* Style Tokens & Variables */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette - Premium Blue, Warm White & Cool Grays */
  --bg-primary: #FAFAF8;       /* Warm White */
  --bg-secondary: #F4F5F7;     /* Very Light Cool Gray */
  --bg-card: #FFFFFF;          /* Pure White */
  
  --color-primary: #0d48a8;    /* Premium Brand Blue */
  --color-primary-hover: #0a3985;
  --color-primary-light: rgba(13, 72, 168, 0.12);
  
  --text-primary: #1F1F1F;     /* Dark Charcoal */
  --text-secondary: #5C5C5C;   /* Muted Slate Grey */
  --text-muted: #9E9E9C;       /* Soft Light Grey */
  
  /* Shadows & Borders */
  --border-color: rgba(31, 31, 31, 0.08);
  --shadow-sm: 0 4px 12px rgba(31, 31, 31, 0.02);
  --shadow-md: 0 10px 30px rgba(31, 31, 31, 0.04);
  --shadow-lg: 0 20px 50px rgba(31, 31, 31, 0.08);
  --shadow-hover: 0 24px 60px rgba(31, 31, 31, 0.12);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #D4D2CD;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

::selection {
  background-color: var(--color-primary-light);
  color: var(--text-primary);
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-secondary);
}

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

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* -------------------------------------------------------------
   REUSABLE UTILITIES & LAYOUT
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.section-padding {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(13, 72, 168, 0.3);
}

.btn-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: #FFFFFF;
  transform: translateY(-3px);
}

.btn-outline-dark {
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline-dark:hover {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
  transform: translateY(-3px);
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 5rem auto;
}

.section-tag {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--color-primary-light);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* Card Base */
.premium-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

/* -------------------------------------------------------------
   STICKY NAVIGATION
   ------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header.scrolled {
  padding: 0.9rem 0;
  background: rgba(250, 250, 248, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(31, 31, 31, 0.05);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 992px) {
  .nav-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  .nav-cta {
    justify-self: end;
  }
  .nav-menu {
    justify-self: center;
  }
}

.logo {
  display: flex;
  align-items: center;
  z-index: 101;
}

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

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

.header.scrolled .logo-light {
  display: none;
}

.header.scrolled .logo-dark {
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

.logo-icon {
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  box-shadow: 0 0 10px rgba(13, 72, 168, 0.4);
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8); /* Muted white initially */
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.header.scrolled .nav-link {
  color: var(--text-secondary);
}

.nav-link:hover, .nav-link.active {
  color: #FFFFFF !important;
}

.header.scrolled .nav-link:hover, 
.header.scrolled .nav-link.active {
  color: var(--text-primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

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

.nav-cta {
  z-index: 101;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 101;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #FFFFFF;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.header.scrolled .mobile-toggle span {
  background: var(--text-primary);
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  color: #FFFFFF;
  padding-top: 7rem;
  overflow: hidden;
  background: url('../assets/luxury-interior.png') no-repeat center center/cover;
}

.hero-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%; /* Matches video exactly */
  z-index: 1;
  transition: opacity 1.2s ease-in-out;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%; /* Matches poster exactly */
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* Prevent native mobile play button flash on hero and other autoplaying videos */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-play-button {
  display: none !important;
  -webkit-appearance: none !important;
}

.hero-video.playing {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.58) 0%, rgba(20, 20, 20, 0.46) 100%);
  z-index: 3;
}

.hero-container {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 4rem;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #FFFFFF;
}

.hero-title span {
  color: var(--color-primary);
}

.hero-title .hero-subtitle {
  display: block;
  font-size: 0.65em;
  font-weight: 700;
  margin-top: 1rem;
  color: #FFFFFF;
}

.hero-title .hero-subtitle span {
  color: var(--color-primary);
  text-shadow: 0 0 3px #FFFFFF, 0 0 6px #FFFFFF, 0 1px 2px rgba(0, 0, 0, 0.15);
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* Sleek Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--font-heading);
}

.trust-item svg {
  color: var(--color-primary);
  width: 18px;
  height: 18px;
}

/* -------------------------------------------------------------
   FLOATING LEAD FORM
   ------------------------------------------------------------- */
.lead-form-section {
  position: relative;
  z-index: 10;
  margin-top: -6rem; /* Overlap into Hero */
  padding-bottom: 5rem;
}

.lead-form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 3.5rem;
}

.lead-form-title {
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

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

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

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

.form-group label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-fast);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--color-primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-submit-btn {
  width: 100%;
  margin-top: 1.5rem;
}

/* -------------------------------------------------------------
   WHO NEEDS PAINTING? (ALTERNATING SCENARIOS)
   ------------------------------------------------------------- */
.scenarios-grid {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.scenario-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  align-items: center;
}

.scenario-row.reverse {
  direction: rtl;
}

.scenario-row.reverse .scenario-content {
  direction: ltr; /* Reset text direction */
}

.scenario-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background-color: var(--bg-secondary);
}

.scenario-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e3e1db 0%, #cac8c1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  transition: transform var(--transition-slow);
}

.scenario-image-box:hover .scenario-placeholder {
  transform: scale(1.05);
}

.scenario-content {
  display: flex;
  flex-direction: column;
}

.scenario-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.scenario-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

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

/* -------------------------------------------------------------
   SERVICES SECTION
   ------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.service-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-img-placeholder {
  transform: scale(1.05);
}

.service-card-body {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  margin-top: -3.5rem; /* Overlap image slightly */
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  border: 2px solid #FFFFFF;
}

.service-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-card-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-btn {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.service-card-btn span {
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card-btn span {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   BEFORE & AFTER GALLERY
   ------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gallery-frame-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  position: relative;
}

.gallery-frame {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.gallery-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e9e7e1 0%, #dbd9d1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: transform var(--transition-slow);
}

.gallery-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.75rem;
  background: rgba(31, 31, 31, 0.8);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  z-index: 2;
}

.gallery-label.label-after {
  background: var(--color-primary);
}

.gallery-frame-container:hover .gallery-img-placeholder {
  transform: scale(1.05);
}

.gallery-info {
  text-align: center;
}

.gallery-info h4 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.gallery-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   INTRODUCTION SECTION
   ------------------------------------------------------------- */
.intro-section {
  background-color: var(--bg-primary);
  text-align: center;
  padding: 6rem 2rem 2rem 2rem;
}

.intro-container {
  max-width: 800px;
  margin: 0 auto;
}

.intro-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-primary);
}

.intro-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* -------------------------------------------------------------
   CTA BANNER SECTION
   ------------------------------------------------------------- */
.cta-banner {
  position: relative;
  padding: 6rem 0;
  color: #FFFFFF;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.cta-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 45%; /* Cinematic desktop crop prioritizing dark cabinets and marble countertops */
  z-index: 0;
}

/* Tablet crop adjustment */
@media (max-width: 991px) {
  .cta-banner-bg {
    object-position: 20% 45%; /* Tablet crop optimized for narrower viewports */
  }
}

/* Mobile crop adjustment */
@media (max-width: 768px) {
  .cta-banner-bg {
    object-position: 12% 45%; /* Mobile-optimized crop prioritizing the painted cabinets on the left */
  }
}

/* Commercial Page CTA background image crop adjustment */
.commercial-cta-bg {
  object-position: center 20% !important; /* Move focal point upward and center the building, cutting off roadway */
}

/* Wood Staining Page CTA background image crop adjustment */
.staining-cta-bg {
  object-position: center center !important; /* Center the stained deck wood backdrop */
}

.cta-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 15, 0.48); /* Lightened overlay for maximum room visibility while ensuring white text readability */
  z-index: 1;
}

.cta-banner-container {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

.cta-banner p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   WHY CHOOSE DLC PAINTERS
   ------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.benefit-card {
  padding: 2.5rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.benefit-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.benefit-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* -------------------------------------------------------------
   REVIEWS & CAROUSEL
   ------------------------------------------------------------- */
.reviews-section {
  position: relative;
  overflow: hidden;
}

.reviews-carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 2rem 0;
}

/* Keyframes for the marquee infinite scroll */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reviews-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 50s linear infinite;
  will-change: transform;
}

/* Pause behavior is handled dynamically in JavaScript to support touch devices and local hovering */

.review-card {
  width: 420px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Subtle premium hover effect: slight lift and slightly stronger shadow */
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.review-quote-mark {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: rgba(13, 72, 168, 0.08);
  line-height: 1;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.review-text {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  font-style: italic;
}

.review-author-info {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.review-location {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Accessibility: Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reviews-track {
    animation-play-state: paused !important;
  }
}

/* -------------------------------------------------------------
   FINAL CTA SECTION (2-COLUMN PREMIUM)
   ------------------------------------------------------------- */
.final-cta {
  background: var(--bg-secondary);
  position: relative;
  border-top: 1px solid var(--border-color);
  padding: 8rem 0;
}

.final-cta-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: flex-start;
}

.final-cta-content {
  text-align: left;
}

.final-cta-content h2 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.final-cta-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.trust-bullets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.trust-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.trust-bullet-item span {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.2rem;
}

.final-cta-footer {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.final-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.final-cta-phone:hover {
  color: var(--color-primary);
}

.final-cta-phone svg {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
}

.final-cta-form-container {
  position: relative;
  z-index: 5;
  width: 100%;
}

.final-cta-form-container .lead-form-wrapper {
  padding: 3rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.final-cta-form-container .lead-form-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-align: left;
}

.final-cta-form-container .form-grid {
  grid-template-columns: 1fr;
}

.final-cta-form-container .form-group-full {
  grid-column: span 1;
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
.footer {
  background: #1F1F1F;
  color: #E0E0E0;
  padding: 6rem 0 3rem 0;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo-desc .logo {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
}

.footer-logo-desc p {
  color: #A0A0A0;
  margin-bottom: 2rem;
  max-width: 320px;
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(13, 72, 168, 0.35);
}

.footer-title {
  font-size: 1.1rem;
  color: #FFFFFF;
  margin-bottom: 1.75rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link {
  color: #A0A0A0;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: #707070;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* -------------------------------------------------------------
   SCROLL REVEAL CLASS DEFINITIONS
   ------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Delay modifiers for staggered reveals */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Cinematic scale reveal for big image containers */
.reveal-scale {
  opacity: 0;
  transform: scale(0.97) translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* -------------------------------------------------------------
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-card:last-child {
    display: none; /* Hide 3rd gallery card on small screens to fit neatly */
  }
  
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .final-cta-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .final-cta-content {
    text-align: center;
  }
  
  .final-cta-footer {
    justify-content: center;
  }
  
  .trust-bullets {
    justify-items: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-title {
    font-size: 2.75rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
  }
  
  .trust-bar {
    gap: 1.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 3rem;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    z-index: 100;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-link {
    color: var(--text-secondary);
    font-size: 1.1rem;
  }
  
  .nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-cta {
    display: none;
  }
  
  .lead-form-section {
    margin-top: -4rem;
  }
  
  .lead-form-wrapper {
    padding: 2rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .scenario-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .scenario-row.reverse {
    direction: ltr; /* Reset order on mobile */
  }
  
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-card:last-child {
    display: flex;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   DLC PAINTERS - NEW BRANDING REFINEMENTS (LIGHTBOX & VALIDATION)
   ============================================================= */

/* Form Inline Validation Styles */
.form-control.is-invalid {
  border-color: #EF4444 !important;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.error-message {
  color: #EF4444;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 500;
  display: block;
  text-align: left;
}

/* Spinner Animation for Form Submission */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Lightbox Interactive Target Overlay Styles */
.lightbox-enabled {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  will-change: transform, box-shadow;
}

.lightbox-enabled img,
.lightbox-enabled .gallery-img-placeholder,
.lightbox-enabled .scenario-placeholder,
.lightbox-enabled .service-img-placeholder {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  will-change: transform;
}

.lightbox-enabled:hover img,
.lightbox-enabled:hover .gallery-img-placeholder,
.lightbox-enabled:hover .scenario-placeholder,
.lightbox-enabled:hover .service-img-placeholder {
  transform: scale(1.06) !important;
}

/* Subtle primary-colored tint overlay on hover */
.lightbox-enabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 72, 168, 0.08); /* Brand blue tint */
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.lightbox-enabled:hover::after {
  opacity: 1;
}

/* Magnifying glass overlay indicator icon */
.lightbox-enabled::before {
  content: '🔍';
  font-size: 1.1rem;
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.lightbox-enabled:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox Modal System */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 15, 30, 0.85); /* Dark blue-toned backdrop */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-content-wrapper {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content-wrapper {
  transform: scale(1);
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  background-color: var(--bg-secondary);
}

.lightbox-placeholder-card {
  width: 500px;
  max-width: 90vw;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, #062b66 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.lightbox-placeholder-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.lightbox-placeholder-text {
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* Lightbox UI Close & Arrows */
.lightbox-close-btn {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10010;
}

.lightbox-close-btn:hover {
  background: #FFFFFF;
  color: var(--color-primary);
  transform: scale(1.1);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10010;
  user-select: none;
}

.lightbox-arrow:hover {
  background: #FFFFFF;
  color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow-left {
  left: -72px;
}

.lightbox-arrow-right {
  right: -72px;
}

.lightbox-caption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  max-width: 600px;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

/* Lightbox Mobile Adjustments */
@media (max-width: 991px) {
  .lightbox-arrow-left {
    left: 10px;
    background: rgba(10, 15, 30, 0.7);
  }
  .lightbox-arrow-right {
    right: 10px;
    background: rgba(10, 15, 30, 0.7);
  }
  .lightbox-close-btn {
    top: 15px;
    right: 15px;
    background: rgba(10, 15, 30, 0.7);
    position: fixed;
  }
}

/* =============================================================
   SERVICE AREA SECTION
   ============================================================= */
.service-area {
  background: var(--bg-secondary);
}

.service-area-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4.5rem;
  align-items: center;
}

.service-area-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-area-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.service-area-note {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.service-cities-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}

.service-cities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-cities-list li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  padding-left: 1.25rem;
}

.service-cities-list li::before {
  content: "•";
  color: var(--color-primary);
  font-size: 1.25rem;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

/* Highlight the Surrounding Areas list item */
.service-cities-list li:last-child {
  font-weight: 600;
}

.service-area-action {
  margin-top: 1rem;
}

.service-area-map {
  display: flex;
  justify-content: center;
}

.map-link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.map-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 460px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition-fast);
}

.map-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

/* Service Area Responsive Styles */
@media (max-width: 991px) {
  .service-area-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

@media (max-width: 576px) {
  .service-cities-container {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

/* =============================================================
   RESIDENTIAL PAGE SPECIFIC STYLES
   ============================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ Accordion Styling */
.faq-section {
  background: var(--bg-primary);
}

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

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

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-secondary);
}

.faq-icon-toggle {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-family: monospace;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0 2rem;
}

.faq-item.active .faq-answer {
  padding: 0 2rem 1.5rem 2rem;
}

/* =============================================================
   SERVICES DROPDOWN STYLES (DESKTOP & MOBILE)
   ============================================================= */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-caret {
  font-size: 0.7rem;
  margin-left: 0.2rem;
  transition: transform 0.3s ease;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.8;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--bg-card);
  min-width: 180px; /* Reduced width */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem 0; /* Reduced padding */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

@media (min-width: 992px) {
  .nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
  }
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem; /* Reduced padding */
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 500;
  text-align: center; /* Centered */
}

.dropdown-item:hover, .dropdown-item.active {
  background: var(--bg-secondary);
  color: var(--color-primary);
}

/* Mobile Dropdown styles (< 991px) */
@media (max-width: 991px) {
  .nav-dropdown {
    width: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .dropdown-caret {
    display: inline-block;
    float: none;
    margin-left: 0.3rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
  }
  
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    min-width: 100%;
    display: block;
    text-align: center;
  }
  
  .nav-dropdown.expanded .dropdown-menu {
    max-height: 300px;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-dropdown.expanded .dropdown-caret {
    transform: rotate(180deg);
  }
  
  .dropdown-item {
    color: var(--text-secondary); /* Dark text color ensures visibility on mobile menu white background */
    padding: 0.5rem 0;
    font-size: 1rem;
    text-align: center;
    border-left: none;
    display: inline-block;
  }
  
  /* Indent/hierarchy styling on mobile */
  .dropdown-item::before {
    content: "↳ ";
    color: var(--color-primary);
    margin-right: 0.3rem;
    font-weight: bold;
  }
  
  .header.scrolled .dropdown-item {
    color: var(--text-secondary);
  }
  
  .dropdown-item:hover, .dropdown-item.active {
    background: transparent;
    color: var(--color-primary) !important;
  }
}

/* =============================================================
   VIDEO GALLERY PLAY OVERLAY & LIGHTBOX VIDEO STYLES
   ============================================================= */
.video-gallery-frame {
  position: relative;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.3s ease;
  pointer-events: none;
}

.play-icon {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
  padding-left: 4px; /* Centering play glyph */
}

.lightbox-enabled:hover .video-play-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.lightbox-enabled:hover .play-icon {
  transform: scale(1.1);
  background: var(--color-primary);
  color: #FFFFFF;
}

.lightbox-video {
  width: 100%;
  height: auto;
  max-width: 900px;
  max-height: 75vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  outline: none;
  background: #000000;
}

/* =============================================================
   WELCOME SECTION LAYOUT & MOBILE RESPONSIVENESS
   ============================================================= */
.welcome-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

.welcome-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
}

.welcome-img-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-img-wrapper {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  max-width: 460px;
  width: 100%;
}

.welcome-img-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.welcome-image {
  display: block;
  width: 100%;
  height: 480px;
  object-fit: cover;
}

@media (max-width: 991px) {
  .welcome-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem; /* Generous spacing */
    width: 92%; /* roughly 90-92% of the screen */
    margin: 0 auto;
  }
  
  .welcome-text-col {
    width: 100%;
    text-align: center;
  }
  
  .welcome-text-col .section-title {
    text-align: center !important;
  }
  
  .welcome-img-col {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .welcome-img-wrapper {
    max-width: 95%; /* Make it occupy more horizontal space on mobile */
    width: 100%;
  }
  
  .welcome-image {
    height: auto;
    max-height: 480px; /* Increase display size proportionally */
  }
}

/* =============================================================
   FEATURED PROJECT GALLERY LAYOUT
   ============================================================= */
.residential-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr) !important; /* Force 2-column layout on desktop */
  gap: 3.5rem !important; /* Breathing room, reduced unnecessary white space */
}

.featured-gallery-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10; /* Wider landscape style to be visually stronger */
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.featured-gallery-frame img,
.featured-gallery-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.featured-gallery-frame:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.featured-gallery-frame:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .residential-gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
  
  /* Mobile: Featured images/videos become wider so they don't appear isolated */
  .featured-gallery-frame {
    aspect-ratio: 16/10;
  }
}

/* -------------------------------------------------------------
   RESIDENTIAL HERO BACKGROUND VIDEO CROP & OPTIMIZATION
   ------------------------------------------------------------- */
.residential-hero .hero-poster,
.residential-hero .hero-video {
  object-position: center 65%; /* Desktop: Best balance of ceiling lights, painted walls, and floor reflections */
  transition: opacity 0.8s ease-in-out;
}

@media (max-width: 992px) {
  /* Tablet: Focus on the finished garage doors and painted walls */
  .residential-hero .hero-poster,
  .residential-hero .hero-video {
    object-position: center 58%;
  }
}

@media (max-width: 768px) {
  /* Mobile: Independent crop adjustment to ensure perfect balance of walls and glossy floor */
  .residential-hero .hero-poster,
  .residential-hero .hero-video {
    object-position: center 52%;
  }
}

/* -------------------------------------------------------------
   INTERIOR HERO BACKGROUND CROP
   ------------------------------------------------------------- */
.interior-hero .hero-poster,
.interior-hero .hero-video {
  object-position: center 55%; /* Desktop: Lowered viewport to highlight finished room, theater seating, and painted walls */
  transition: opacity 0.8s ease-in-out;
}

@media (max-width: 992px) {
  /* Tablet: Adjust centering for intermediate viewport heights */
  .interior-hero .hero-poster,
  .interior-hero .hero-video {
    object-position: center 30%;
  }
}

@media (max-width: 768px) {
  /* Mobile: Crop specifically for narrow vertical screens to focus on painted walls, column, and door details */
  .interior-hero .hero-poster,
  .interior-hero .hero-video {
    object-position: center 35%;
  }
}

/* -------------------------------------------------------------
   INTERIOR WELCOME IMAGE CUSTOM CROP & SIZING (TableDLC)
   ------------------------------------------------------------- */
.interior-welcome-img-wrapper {
  max-width: 520px !important; /* Desktop: Increase visual impact slightly */
}

.interior-welcome-image {
  object-position: center 25% !important; /* Focus on light fixture, painted walls, and table */
}

@media (max-width: 991px) {
  .interior-welcome-img-wrapper {
    max-width: 95% !important; /* Mobile: occupy natural content width */
  }
  
  .interior-welcome-image {
    height: 480px !important; /* Explicit height on mobile for perfect framing and impact */
    object-fit: cover !important;
    object-position: center 25% !important; /* Focus on light fixture, painted walls, and table */
  }
}

/* -------------------------------------------------------------
   EXTERIOR WELCOME IMAGE CROP
   ------------------------------------------------------------- */
.exterior-welcome-img-wrapper {
  max-width: 520px !important; /* Desktop: Increase visual impact slightly */
}

.exterior-welcome-image {
  object-position: center 5% !important; /* Focus on the building and windows, reducing ground */
}

@media (max-width: 991px) {
  .exterior-welcome-img-wrapper {
    max-width: 95% !important; /* Mobile: occupy natural content width */
  }
  
  .exterior-welcome-image {
    height: 480px !important; /* Explicit height on mobile for perfect framing and impact */
    object-fit: cover !important;
    object-position: center 5% !important; /* Focus on the building, reducing ground */
  }
}

/* -------------------------------------------------------------
   FAQ CTA SECTION
   ------------------------------------------------------------- */
.faq-cta-section {
  padding-bottom: 6rem;
  background: var(--bg-primary);
}

/* If the parent FAQ section has background secondary, match this section's background */
.faq-section[style*="background"] + .faq-cta-section {
  background: var(--bg-secondary) !important;
}

.faq-cta-card {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-normal);
}

.faq-cta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.faq-cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.faq-cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.faq-cta-btn {
  padding: 0.9rem 2.5rem;
}

@media (max-width: 768px) {
  .faq-cta-section {
    padding-bottom: 4rem;
  }
  .faq-cta-card {
    padding: 2.5rem 1.75rem;
  }
  .faq-cta-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  .faq-cta-text {
    font-size: 0.95rem;
  }
}

/* -------------------------------------------------------------
   EXTERNAL HERO BACKGROUND VIDEO CROP & OPTIMIZATION
   ------------------------------------------------------------- */
.exterior-hero .hero-poster,
.exterior-hero .hero-video {
  object-position: center 48%; /* Desktop: Best balance of siding, roofline, and background sky */
  transition: opacity 0.8s ease-in-out;
}

@media (max-width: 992px) {
  /* Tablet: Focus crop slightly higher on the house facade */
  .exterior-hero .hero-poster,
  .exterior-hero .hero-video {
    object-position: center 42%;
  }
}

@media (max-width: 768px) {
  /* Mobile: Centered crop to remove side pillarbox bars symmetrically */
  .exterior-hero .hero-poster,
  .exterior-hero .hero-video {
    object-position: center;
  }
}

/* Vertical video gallery project formatting */
@media (min-width: 769px) {
  /* Desktop/Tablet: Matches the landscape aspect ratio (16/10) of Card 5 */
  .vertical-gallery-frame {
    aspect-ratio: 16/10 !important;
    max-width: 100% !important; /* Spans the full column width like Card 5 */
    margin: 0;
  }
  
  .vertical-gallery-frame img,
  .vertical-gallery-frame video {
    object-position: center 25% !important; /* Prioritizes painter, window, and ladder setup */
  }

  #galleryCard6 .gallery-info {
    text-align: left; /* Keep left-aligned like Card 5 */
    max-width: 100%;
    margin: 1.5rem 0 0 0;
  }
}

@media (max-width: 768px) {
  /* Mobile: Preserves the vertical aspect ratio (9/16) and centered crop */
  .vertical-gallery-frame {
    aspect-ratio: 9/16 !important;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
  }

  .vertical-gallery-frame img,
  .vertical-gallery-frame video {
    object-position: center !important;
  }

  #galleryCard6 .gallery-info {
    text-align: center;
    max-width: 450px;
    margin: 1.5rem auto 0 auto;
  }
}

/* -------------------------------------------------------------
   LEGAL PAGES STYLING (Privacy Policy & Terms of Service)
   ------------------------------------------------------------- */
.legal-container {
  margin-top: 10rem;
  margin-bottom: 6rem;
  padding: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-meta {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-size: 0.95rem;
}

.legal-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content p {
  margin-bottom: 1.25rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style-type: disc;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.legal-content a:hover {
  color: var(--color-primary-hover);
}

@media (max-width: 992px) {
  .legal-container {
    margin-top: 8rem;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    max-width: 90%;
  }
  .legal-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .legal-container {
    margin-top: 7rem;
    margin-bottom: 3rem;
    padding: 2rem 1rem;
    max-width: 95%;
  }
  .legal-title {
    font-size: 2rem;
  }
  .legal-content h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
  }
  .legal-content h3 {
    font-size: 1.15rem;
  }
}

/* =============================================================
   CABINET PAINTING SPECIFIC STYLES
   ============================================================= */
.cabinet-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .cabinet-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .cabinet-process-grid {
    grid-template-columns: 1fr;
  }
}

.cabinet-hero .hero-poster,
.cabinet-hero .hero-video {
  object-position: center;
  transition: opacity 0.8s ease-in-out;
}

/* =============================================================
   COMMERCIAL PAINTING SPECIFIC STYLES
   ============================================================= */
.commercial-welcome-img-wrapper {
  max-width: 520px !important;
}

.commercial-welcome-image {
  object-position: center 30% !important;
}

@media (max-width: 991px) {
  .commercial-welcome-img-wrapper {
    max-width: 95% !important;
  }
  
  .commercial-welcome-image {
    height: 480px !important;
    object-fit: cover !important;
    object-position: center 30% !important;
  }
}

.commercial-cta-bg {
  object-position: center 25% !important;
}

/* =============================================================
   WOOD STAINING SPECIFIC STYLES
   ============================================================= */
.staining-hero .hero-poster,
.staining-hero .hero-video {
  object-position: center 75%; /* Desktop: Focus on the rich stained decking boards */
  transition: opacity 0.8s ease-in-out;
}

@media (max-width: 992px) {
  /* Tablet: Adjust vertical centering */
  .staining-hero .hero-poster,
  .staining-hero .hero-video {
    object-position: center 78%;
  }
}

@media (max-width: 768px) {
  /* Mobile: Focus on the stained wood in narrow portrait viewports */
  .staining-hero .hero-poster,
  .staining-hero .hero-video {
    object-position: center 80%;
  }
}






