/* ========================================
   SCHIANO FENCE — Main Stylesheet
   ======================================== */

/* --- Design Tokens --- */
:root {
  /* Deep forest green — outdoor, natural, premium */
  --color-primary: #1A3C34;
  --color-primary-light: #2A5C4E;
  --color-primary-dark: #0E2420;

  /* Warm copper/terracotta — warmth, craftsmanship, action */
  --color-accent: #C4652A;
  --color-accent-light: #D8803F;
  --color-accent-dark: #A85420;

  --color-white: #FFFFFF;
  --color-off-white: #F5F3EF;
  --color-light-gray: #E5E1DA;
  --color-medium-gray: #524E49;
  --color-dark-gray: #2E2C28;
  --color-black: #1A1918;

  --color-success: #2E7D4F;
  --color-error: #C0392B;

  --color-input-border: #949088;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Source Sans 3', sans-serif;

  --fs-sm: 0.875rem;
  --fs-base: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.75rem;
  --fs-hero: 3.25rem;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  --max-width: 1400px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);

  --header-height: 108px;
  --header-height-mobile: 80px;

  --transition: 500ms cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Smooth Scrolling --- */
html {
  scroll-behavior: smooth;
}

/* --- Custom Text Selection --- */
::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-dark-gray);
  background: var(--color-off-white);
}

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

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p { margin-bottom: var(--space-sm); }
p:last-child { margin-bottom: 0; }

/* --- Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section--alt {
  background: var(--color-white);
}

.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--color-medium-gray);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-lg);
}

/* --- Skip to main --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  z-index: 1000;
  font-size: var(--fs-sm);
}
.skip-link:focus {
  top: var(--space-sm);
}

/* --- Global Focus Indicator --- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.service-card:focus-visible,
.gallery__item:focus-visible {
  outline-offset: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  letter-spacing: 0.5px;
  transition: all var(--transition);
  text-align: center;
  line-height: 1;
  min-height: 44px;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--primary:hover, .btn--primary:focus {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: rgba(0,0,0,0.35);
  color: var(--color-white);
  border: 2px solid var(--color-white);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn--secondary:hover, .btn--secondary:focus {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover, .btn--outline:focus {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--call {
  background: var(--color-success);
  color: var(--color-white);
}
.btn--call:hover, .btn--call:focus {
  background: #256b42;
  transform: translateY(-2px);
}

/* Button pressed feedback */
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 80ms;
}

.btn--sm {
  padding: 0.65rem 1.4rem;
  font-size: var(--fs-sm);
  min-height: 38px;
}

/* --- Text Logo --- */
.text-logo {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--color-primary);
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
  position: relative;
}

.text-logo .logo-s,
.text-logo .logo-e {
  font-size: 2.3rem;
  color: var(--color-accent);
}

.text-logo .logo-underline {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
  margin-top: 4px;
  border-radius: 2px;
}

.text-logo small {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-medium-gray);
  margin-top: 2px;
  text-transform: uppercase;
}

/* --- Scroll Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-on-scroll {
  opacity: 0;
}

/* Fallback: if JS is disabled, show all scroll-animated content */
@media (scripting: none) {
  .animate-on-scroll { opacity: 1 !important; }
  .img-fade-ready img[loading="lazy"] { opacity: 1 !important; }
}

.animate-on-scroll.animated {
  opacity: 1;
  animation-duration: 0.6s;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated.fade-up {
  animation-name: fadeInUp;
}

.animate-on-scroll.animated.fade-left {
  animation-name: fadeInLeft;
}

.animate-on-scroll.animated.scale-in {
  animation-name: scaleIn;
}

/* Stagger removed — all siblings fade in together for smoother fast-scroll behavior */

/* Word-by-word stagger on headings (opt-in: add .stagger-words) */
.stagger-words {
  opacity: 1;
}
.stagger-words > span {
  display: inline-block;
  opacity: 0;
}
.stagger-words.animated > span {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.stagger-words.animated > span:nth-child(1) { animation-delay: 0s; }
.stagger-words.animated > span:nth-child(2) { animation-delay: 0.08s; }
.stagger-words.animated > span:nth-child(3) { animation-delay: 0.16s; }
.stagger-words.animated > span:nth-child(4) { animation-delay: 0.24s; }
.stagger-words.animated > span:nth-child(5) { animation-delay: 0.32s; }
.stagger-words.animated > span:nth-child(6) { animation-delay: 0.40s; }
.stagger-words.animated > span:nth-child(7) { animation-delay: 0.48s; }
.stagger-words.animated > span:nth-child(8) { animation-delay: 0.56s; }

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-white);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header--scrolled .header__main {
  padding: 0.4rem 0;
}

.header--scrolled .text-logo {
  font-size: 1.6rem;
}

.header--scrolled .text-logo .logo-s,
.header--scrolled .text-logo .logo-e {
  font-size: 1.9rem;
}

.header__top {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-sm);
  padding: var(--space-xs) 0;
}

.header__top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.header__top a {
  color: var(--color-white);
  transition: color var(--transition-fast);
}
.header__top a:hover {
  color: var(--color-accent-light);
}

.header__contact-info {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.header__hours {
  opacity: 0.85;
}

.header__main {
  padding: var(--space-sm) 0;
}

.header__main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  padding: var(--space-xs) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover, .nav__link--active {
  color: var(--color-accent);
}

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

/* Products dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  margin-top: var(--space-xs);
  z-index: 50;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
}

.nav__dropdown a {
  display: block;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-dark-gray);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.nav__dropdown a:hover,
.nav__dropdown a:focus-visible {
  background: var(--color-off-white);
  color: var(--color-accent);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header__cta-phone {
  display: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--header-height);
  background: var(--color-primary-dark);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__video-fade {
  position: absolute;
  inset: 0;
  background: var(--color-primary-dark);
  opacity: 0;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,36,32,0.85) 0%, rgba(26,60,52,0.45) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-primary-dark), transparent);
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: heroEntrance 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

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

.hero__badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: 50px;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255,255,255,0.15);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero__subtitle {
  color: rgba(255,255,255,0.92);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}

.hero__buttons {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Outline button for dark backgrounds */
.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn--outline-light:hover,
.btn--outline-light:focus {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* --- Trust Bar --- */
.trust-bar {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: var(--space-lg) 0;
  position: relative;
}

.trust-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light), var(--color-accent));
}

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

.trust-bar__item {
  color: var(--color-white);
  cursor: default;
  user-select: none;
}

.trust-bar__number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-accent-light);
  display: block;
}

.trust-bar__label {
  font-size: var(--fs-sm);
  opacity: 0.9;
  margin-top: var(--space-xs);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--color-accent);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  transition: height var(--transition);
  z-index: 1;
}

.service-card:hover::before {
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,60,52,0.15);
}

.service-card__image {
  height: 200px;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
  filter: saturate(0.85) contrast(1.05) brightness(1.02);
}

.service-card:hover .service-card__image img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1) brightness(1);
}

.service-card__body {
  padding: var(--space-md);
}

.service-card__title {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

.service-card__text {
  font-size: var(--fs-sm);
  color: var(--color-medium-gray);
  margin-bottom: var(--space-sm);
}

.service-card__link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.service-card__link:hover {
  gap: 8px;
}

/* --- Gallery Preview --- */
.gallery-preview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.gallery-preview__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
  filter: saturate(0.85) contrast(1.05) brightness(1.02);
}

.gallery-preview__item:hover img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1) brightness(1);
}



/* --- Testimonials Carousel --- */
.testimonials__carousel {
  overflow: hidden;
  position: relative;
  margin: 0 calc(-1 * var(--space-md));
  padding: var(--space-xs) 0;
}

.testimonials__track {
  display: flex;
  gap: var(--space-md);
  animation: testimonialScroll 35s linear infinite;
  width: max-content;
  will-change: transform;
}

.testimonial-card {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

@keyframes testimonialScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  flex: 0 0 360px;
  min-width: 0;
}

.testimonial-card__stars {
  color: var(--color-accent);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.testimonial-card__text {
  font-style: italic;
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.testimonial-card__author {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-card__source {
  font-size: var(--fs-sm);
  color: var(--color-medium-gray);
}

/* --- Testimonials Dark Theme --- */
.testimonials-dark {
  background: var(--color-primary);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255,255,255,0.03) 25%, transparent 25%);
  background-size: 60px 60px;
}

.testimonials-dark h2 {
  color: var(--color-white);
}

.section-subtitle--light {
  color: rgba(255,255,255,0.75);
}

.testimonials-dark .testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.testimonials-dark .testimonial-card::before {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  opacity: 0.8;
}

.testimonials-dark .testimonial-card__stars {
  color: var(--color-accent-light);
}

.testimonials-dark .testimonial-card__text {
  color: rgba(255, 255, 255, 0.9);
}

.testimonials-dark .testimonial-card__author {
  color: var(--color-white);
}

.testimonials-dark .testimonial-card__source {
  color: rgba(255, 255, 255, 0.55);
}

/* --- Service Areas --- */
.areas__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sm);
}

.areas__item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.areas__icon {
  color: var(--color-accent);
  flex-shrink: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.cta-banner p {
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-lg);
}

.cta-banner__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.8);
  padding: var(--space-2xl) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
}

.footer__brand p {
  margin-top: var(--space-sm);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.footer h4 {
  color: var(--color-white);
  font-size: var(--fs-base);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links li {
  margin-bottom: var(--space-xs);
}

.footer__links a {
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer__links a:hover,
.footer__links a:focus {
  color: var(--color-accent-light);
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-sm);
}

.footer__contact a:hover,
.footer__contact a:focus {
  color: var(--color-accent-light);
}

.footer__bottom {
  margin-top: var(--space-xl);
  padding: var(--space-md) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: var(--fs-sm);
}

.footer__bottom a {
  color: var(--color-accent-light);
}
.footer__bottom a:hover {
  text-decoration: underline;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: var(--header-height);
  text-align: center;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.page-hero--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--space-2xl) 0 var(--space-2xl);
  min-height: 340px;
  display: flex;
  align-items: center;
}

.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,36,32,0.82) 0%, rgba(26,60,52,0.5) 100%);
}

.page-hero--photo .container {
  position: relative;
  z-index: 1;
}

.page-hero__subtitle {
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-lg);
  max-width: 650px;
  margin: 0 auto;
}

/* --- Contact Page Layout --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

/* --- Estimate Form --- */
.contact-form-wrapper {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h2 {
  margin-bottom: var(--space-xs);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-dark-gray);
  margin-bottom: var(--space-xs);
}

.required {
  color: var(--color-accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-input-border);
  border-radius: var(--radius);
  font-size: var(--fs-base);
  color: var(--color-dark-gray);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,60,52,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-medium-gray);
  opacity: 0.85;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

.form-group select:hover,
.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--color-primary-light);
}

.form-group input[type="file"] {
  padding: var(--space-sm);
  border: 2px dashed var(--color-input-border);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--color-white);
  transition: border-color var(--transition), background-color var(--transition);
}

.form-group input[type="file"]:hover {
  border-color: var(--color-primary);
  background: var(--color-off-white);
}

.form-group input[type="file"]:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A7670' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-success {
  text-align: center;
  padding: var(--space-xl);
}

.form-success__art {
  max-width: 280px;
  margin: 0 auto var(--space-md);
}

.form-success__art svg {
  width: 100%;
  height: auto;
  display: block;
}

.form-success h3 {
  color: var(--color-success);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-2xl);
}

.form-success p {
  margin: 0 auto var(--space-lg);
  font-size: var(--fs-lg);
  max-width: 480px;
}

/* --- Dedicated Success Page (success.html) --- */
.success-hero {
  background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.success-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(26, 60, 52, 0.18);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
  0%   { opacity: 0; transform: translateY(16px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.success-card__art {
  max-width: 320px;
  margin: 0 auto var(--space-md);
}

.success-card__art svg {
  width: 100%;
  height: auto;
  display: block;
}

.success-card__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.success-card__body {
  font-size: var(--fs-lg);
  color: var(--color-dark-gray);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.55;
}

.success-card__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.success-card__ctas .btn {
  flex: 0 1 auto;
}

/* --- Next Steps list (success page) --- */
.next-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  list-style: none;
  padding: 0;
  margin-top: var(--space-xl);
  counter-reset: step;
}

.next-steps li {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
}

.next-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.next-steps h3 {
  font-size: var(--fs-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.next-steps p {
  color: var(--color-medium-gray);
  font-size: var(--fs-base);
  margin: 0;
}

/* --- Form Validation Errors --- */
.form-error {
  display: block;
  color: var(--color-error);
  font-size: var(--fs-sm);
  margin-top: 4px;
  font-weight: 600;
}

.form-error[hidden] {
  display: none;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: var(--color-error);
}

.form-group input[aria-invalid="true"]:focus,
.form-group select[aria-invalid="true"]:focus,
.form-group textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
  outline-color: var(--color-error);
}

/* --- Contact Sidebar Cards --- */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.contact-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(26,60,52,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.contact-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

.contact-card__phone {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-accent);
  transition: color var(--transition-fast);
}

.contact-card__phone:hover,
.contact-card__phone:focus {
  color: var(--color-accent-dark);
}

.contact-card__email {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  font-size: var(--fs-lg);
  transition: color var(--transition-fast);
}

.contact-card__email:hover,
.contact-card__email:focus {
  color: var(--color-accent);
}

.contact-card__note {
  font-size: var(--fs-sm);
  color: var(--color-medium-gray);
  margin-top: var(--space-xs);
}

.contact-card__hours {
  font-size: var(--fs-sm);
}

.contact-card__hours li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-light-gray);
}

.contact-card__hours li:last-child {
  border-bottom: none;
}

/* --- Content Page (Accessibility, etc.) --- */
.content-page {
  max-width: 800px;
  margin: 0 auto;
}

.content-page h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.content-page h2:first-child {
  margin-top: 0;
}

.content-page ul {
  list-style: disc;
  padding-left: var(--space-lg);
  margin: var(--space-sm) 0;
}

.content-page li {
  margin-bottom: var(--space-xs);
}

.content-page a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

.content-page__date {
  margin-top: var(--space-xl);
  color: var(--color-medium-gray);
}

/* --- Product Page --- */
.product-hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  margin-top: var(--header-height);
  background-size: cover;
  background-position: center;
}

.product-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,36,32,0.92) 0%, rgba(26,60,52,0.75) 100%);
}

.product-hero__content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.product-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.product-hero p {
  color: rgba(255,255,255,0.85);
  font-size: var(--fs-lg);
}

.breadcrumb {
  font-size: var(--fs-sm);
  margin-bottom: var(--space-md);
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent-light);
}

.breadcrumb span {
  color: var(--color-accent-light);
}

.product-intro {
  max-width: 800px;
}

.product-intro h2 {
  margin-bottom: var(--space-md);
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.product-grid > * {
  flex: 0 1 calc((100% - var(--space-md) * 2) / 3);
  min-width: 280px;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
  filter: saturate(0.85) contrast(1.05) brightness(1.02);
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
  filter: saturate(1) contrast(1) brightness(1);
}

.product-card__body {
  padding: var(--space-md);
}

.product-card__body h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

.product-card__body p {
  font-size: var(--fs-sm);
  color: var(--color-medium-gray);
  margin-bottom: var(--space-sm);
}

.product-card__colors {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-primary);
}

/* Exclusive Collection — taller ratio for Catalyst product photos */
[aria-labelledby="exclusive-heading"] .product-card__image {
  aspect-ratio: 3 / 2;
}

/* --- Badges --- */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.badge--popular {
  background: var(--color-accent);
  color: var(--color-white);
}
.badge--specialty {
  background: #7A8B6F;
  color: var(--color-white);
}
.badge--special-order {
  background: var(--color-medium-gray);
  color: var(--color-white);
}

/* Financing Banner */
.financing-banner {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  border-top: none;
  border-bottom: none;
  padding: var(--space-lg) 0;
  text-align: center;
}

.financing-banner .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.financing-banner__text {
  margin: 0;
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.9);
}

.financing-banner__text strong {
  color: var(--color-white);
}

.color-options {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.color-swatch {
  text-align: center;
}

.color-swatch__sample {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-xs);
  box-shadow: var(--shadow-sm);
}

.color-swatch span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
}

/* --- About Page --- */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-content h2 {
  margin-bottom: var(--space-md);
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05) brightness(1.02);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-off-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--color-white);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(26,60,52,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xs);
}

.feature-card p {
  font-size: var(--fs-sm);
  color: var(--color-medium-gray);
}

.showroom-info {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

.showroom-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  text-align: left;
  color: var(--color-dark-gray);
}

.showroom-detail svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Services Page --- */
.services-list {
  max-width: 900px;
  margin: 0 auto;
}

.service-block {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--color-light-gray);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block__icon {
  width: 72px;
  height: 72px;
  background: rgba(26,60,52,0.08);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-block__content h2 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.service-block__content p {
  color: var(--color-medium-gray);
  margin-bottom: var(--space-md);
}

/* --- FAQ Page --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq__category {
  font-size: var(--fs-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--color-accent);
}

.faq__category:first-child {
  margin-top: 0;
}

.faq__item {
  border-bottom: 1px solid var(--color-light-gray);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--color-dark-gray);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

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

.faq__question svg {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-accent);
}

.faq__question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 0 var(--space-md);
  color: var(--color-medium-gray);
  line-height: 1.7;
}

.faq__answer ul {
  list-style: disc;
  padding-left: var(--space-md);
  margin: var(--space-sm) 0;
}

.faq__answer li {
  margin-bottom: var(--space-xs);
}

.faq__answer a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

/* --- Gallery Page --- */
.gallery__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.gallery__filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--color-dark-gray);
  background: var(--color-white);
  border: 2px solid var(--color-input-border);
  transition: all var(--transition);
  cursor: pointer;
}

.gallery__filter-btn:hover,
.gallery__filter-btn:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.gallery__filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  display: block;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition), filter var(--transition);
  filter: saturate(0.85) contrast(1.05) brightness(1.02);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.04);
  filter: saturate(1) contrast(1) brightness(1);
}

.gallery__item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xs) var(--space-sm);
  background: linear-gradient(to top, var(--color-primary) 0%, rgba(26,60,52,0.85) 60%, transparent 100%);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery__item:hover .gallery__item-label,
.gallery__item:focus-visible .gallery__item-label {
  transform: translateY(0);
}

/* --- Map --- */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* --- Interactive Extras --- */

/* Pulse animation on primary CTA */
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,101,42,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(196,101,42,0); }
}

.hero .btn--primary {
  animation: subtlePulse 3s infinite;
}

.hero .btn--primary:hover {
  animation: none;
}

/* Testimonial card accent bar */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Gallery hover overlay */
.gallery-preview__item {
  position: relative;
  cursor: pointer;
}

.gallery-preview__item::after {
  content: 'View';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,36,32,0.6);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-lg);
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius);
}

.gallery-preview__item:hover::after {
  opacity: 1;
}

/* Trust bar counter animation feel */
.trust-bar__number {
  transition: transform var(--transition);
}

.trust-bar__item:hover .trust-bar__number {
  transform: scale(1.1);
}

/* Service area item hover */
.areas__item {
  transition: all var(--transition);
}

.areas__item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-left: 3px solid var(--color-accent);
}




/* --- Image Loading Transition (JS adds .img-fade-ready) --- */
.img-fade-ready img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.img-fade-ready img[loading="lazy"].loaded {
  opacity: 1;
}

/* --- Body Text Link Hover Underlines --- */
.content-page a,
.about-content a,
.service-block__content a {
  text-decoration: none;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--transition), color var(--transition);
}

.content-page a:hover,
.about-content a:hover,
.service-block__content a:hover {
  background-size: 100% 2px;
}

/* --- Back-to-Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition);
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.back-to-top:active {
  transform: translateY(0) scale(0.95);
}

/* --- Card Hover Refinement --- */
.feature-card,
.contact-card,
.service-card,
.product-card {
  transition: transform var(--transition), box-shadow var(--transition);
}

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

/* --- Large screens / TV --- */
@media (min-width: 1600px) {
  :root {
    --fs-hero: 4rem;
    --fs-3xl: 3.25rem;
    --fs-2xl: 2.5rem;
    --fs-xl: 1.75rem;
    --max-width: 1500px;
  }
  .hero {
    min-height: calc(100vh - var(--header-height));
  }
  .service-card__image {
    height: 240px;
  }
  .testimonial-card {
    flex: 0 0 400px;
  }
}

/* --- Full HD TV (1920) --- */
@media (min-width: 1920px) {
  :root {
    --max-width: 1700px;
    --fs-hero: 4.5rem;
  }
  .hero {
    min-height: min(calc(100vh - var(--header-height)), 900px);
  }
}

/* --- 4K / very large displays (2560+) --- */
@media (min-width: 2560px) {
  :root {
    --max-width: 2000px;
    --fs-base: 1.25rem;
    --fs-hero: 5.25rem;
  }
  .service-card__image {
    height: 280px;
  }
}

/* --- Ultrawide (21:9 and wider): cap hero so it doesn't dominate --- */
@media (min-aspect-ratio: 21/9) {
  .hero {
    min-height: min(calc(100vh - var(--header-height)), 720px);
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid > * {
    flex: 0 1 calc((100% - var(--space-md)) / 2);
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .gallery-preview__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .areas__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-card {
    flex: 0 0 320px;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-hero: 2.25rem;
    --fs-3xl: 2rem;
    --fs-2xl: 1.5rem;
  }

  .header__top {
    display: none;
  }

  .hero {
    margin-top: var(--header-height-mobile);
    min-height: 62vh;
  }



  .page-hero {
    margin-top: var(--header-height-mobile);
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .contact-form-wrapper {
    padding: var(--space-lg);
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item-label {
    transform: translateY(0);
    font-size: 0.75rem;
    padding: var(--space-xs);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .service-block {
    flex-direction: column;
    gap: var(--space-md);
  }

  .showroom-info {
    flex-direction: column;
    align-items: center;
  }

  .product-hero {
    margin-top: var(--header-height-mobile);
  }

  .product-grid > * {
    flex: 0 1 100%;
  }

  .color-options {
    gap: var(--space-md);
    flex-wrap: wrap;
  }

  .color-swatch__sample {
    width: 60px;
    height: 60px;
  }

  .header__cta-phone {
    display: inline-flex;
    padding: 0.5rem;
    gap: 0;
    font-size: 0;
  }
  .header__cta-phone svg {
    width: 20px;
    height: 20px;
  }

  .text-logo {
    font-size: 1.4rem;
    letter-spacing: 1px;
  }
  .text-logo .logo-s,
  .text-logo .logo-e {
    font-size: 1.7rem;
  }
  .text-logo small {
    font-size: 0.5rem;
    letter-spacing: 2px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100dvh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
    gap: 0;
    overflow-y: auto;
  }

  .nav__list--open {
    right: 0;
  }

  .nav__link {
    display: block;
    font-size: var(--fs-base);
    padding: var(--space-sm) 0;
    width: 100%;
    border-bottom: 1px solid var(--color-light-gray);
  }
  .nav__link::after {
    display: none;
  }

  .nav__dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 var(--space-sm);
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .nav__item--dropdown.open .nav__dropdown {
    display: block;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-card {
    flex: 0 0 280px;
  }

  .areas__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .cta-banner__buttons {
    flex-direction: column;
    align-items: center;
  }

  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 480px) {
  .hero__buttons {
    flex-direction: column;
  }
  .hero__buttons .btn,
  .cta-banner__buttons .btn {
    justify-content: center;
    width: 100%;
  }
  .trust-bar__grid {
    grid-template-columns: 1fr;
  }
  .gallery-preview__grid {
    grid-template-columns: 1fr 1fr;
  }
  .areas__grid {
    grid-template-columns: 1fr;
  }
  .testimonial-card {
    flex: 0 0 260px;
    padding: var(--space-md);
  }
  .gallery__filters {
    gap: var(--space-xs);
  }
  .gallery__filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* --- Product Image Slider --- */
.product-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.product-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.product-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--transition);
  filter: saturate(0.85) contrast(1.05) brightness(1.02);
}

.product-card:hover .product-slider__slide img {
  filter: saturate(1) contrast(1) brightness(1);
}

.product-slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.85);
  color: var(--color-primary);
  font-size: var(--fs-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 2;
  padding: 0;
  line-height: 1;
}

.product-slider:hover .product-slider__btn,
.product-slider__btn:focus-visible {
  opacity: 1;
}

.product-slider__btn--prev {
  left: 6px;
}

.product-slider__btn--next {
  right: 6px;
}

.product-slider__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.product-slider__dot--active {
  background: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-accent);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
  }
  .hero__video {
    display: none;
  }
  .hero {
    background-image: url('../images/hero/hero-install-wide.jpg');
    background-size: cover;
    background-position: center;
  }
}

/* --- Print --- */
@media print {
  .header, .footer, .cta-banner, .nav__toggle, .skip-link,
  .gallery__filters, .map-wrapper, .hero__buttons, .btn {
    display: none !important;
  }
  .hero, .page-hero, .product-hero {
    margin-top: 0;
    min-height: auto;
    padding: var(--space-md) 0;
  }
  .section {
    padding: var(--space-md) 0;
  }
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  .animate-on-scroll {
    opacity: 1 !important;
  }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--color-accent);
  z-index: 1001;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}

/* --- GLightbox Overrides --- */
.gslide-description {
  background: transparent !important;
  position: absolute !important;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md) !important;
}
.gslide-title {
  color: var(--color-white) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--fs-lg);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* --- Product Card Lightbox Links --- */
.product-card__image a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-card__image a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Cursor Fix (prevent text-edit cursor on static content) --- */
body {
  cursor: default;
}
p, span, li, a, label, td, th, div {
  cursor: default;
}
a, a *, button, button *, [role="button"], input, select, textarea, .btn {
  cursor: pointer;
}
