/* css/styles.css — Sixto Soto Painting */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--sz-base);
  color: var(--clr-dark);
  background-color: var(--clr-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* <picture> wraps <img> for WebP delivery; make it layout-transparent so the
   img inherits sizing from its container exactly as before. */
picture {
  display: contents;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ================================================================
   Layout
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  font-size: var(--sz-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--r);
  transition:
    background-color var(--dur) var(--ease),
    transform       var(--dur) var(--ease),
    box-shadow      var(--dur) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

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

.btn--primary {
  background-color: var(--clr-accent);
  color: var(--clr-white);
}

.btn--primary:hover {
  background-color: var(--clr-accent-hov);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn--ghost {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--clr-white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--sz-lg);
}

/* Outline button for light backgrounds (e.g. Back to Home on subpages) */
.btn--outline {
  background-color: transparent;
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-accent);
}

.btn--outline:hover {
  background-color: var(--clr-accent-lite);
  transform: translateY(-2px);
}

/* ================================================================
   Typography Helpers
   ================================================================ */
.eyebrow {
  display: block;
  font-size: calc(var(--sz-xs) * 2.1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-3);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.65);
}

.section-header {
  margin-bottom: var(--sp-12);
}

.section-header h1,
.section-header h2 {
  font-size: clamp(var(--sz-3xl), 4vw, var(--sz-5xl));
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--sp-4);
}

.section-sub {
  font-size: var(--sz-lg);
  color: var(--clr-muted);
  max-width: 540px;
  line-height: 1.6;
}

/* Full-width variant — lets the intro span the whole container */
.section-sub--wide {
  max-width: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--sz-sm);
  font-weight: 600;
  color: var(--clr-accent);
  transition: gap var(--dur) var(--ease);
}

.link-arrow:hover {
  gap: var(--sp-3);
}

/* ================================================================
   Site Header (utility bar + navbar — both fixed)
   ================================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Utility Bar */
.utility-bar {
  background-color: var(--clr-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--sz-xs);
}

.utility-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  gap: var(--sp-4);
}

.utility-bar a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--dur) var(--ease);
}

.utility-bar a:hover {
  color: var(--clr-white);
}

.utility-bar__phone {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Navbar — solid (no backdrop-filter). A blurred fixed element repaints its
   strip on every scroll frame, which caused visible scroll jank; a near-opaque
   solid bar composites once and scrolls smoothly. */
.navbar {
  position: relative;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--dur) var(--ease);
}

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

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav-links a {
  font-size: var(--sz-sm);
  font-weight: 500;
  color: var(--clr-muted);
  transition: color var(--dur) var(--ease);
}

.nav-links a:hover {
  color: var(--clr-dark);
}

.nav-cta.nav-cta {
  background-color: var(--clr-accent);
  color: var(--clr-white);
  padding: 10px 22px;
  border-radius: var(--r);
  font-weight: 600;
  transition:
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.nav-cta.nav-cta:hover {
  background-color: var(--clr-accent-hov);
  color: var(--clr-white);
  transform: translateY(-1px);
}

/* Always-visible Free Quote button, shown only at the mobile breakpoint */
.nav-cta--mobile {
  display: none;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--clr-dark);
  border-radius: 2px;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) 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(-7px) rotate(-45deg);
}

/* ================================================================
   Hero
   ================================================================ */

/* combined height: utility-bar(40) + navbar(72) = 112px */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/painting_image_2.jpg'); /* fallback */
  background-image: -webkit-image-set(
    url('../assets/painting_image_2.webp') type('image/webp'),
    url('../assets/painting_image_2.jpg') type('image/jpeg')
  );
  background-image: image-set(
    url('../assets/painting_image_2.webp') type('image/webp'),
    url('../assets/painting_image_2.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    108deg,
    rgba(8, 18, 45, 0.82) 0%,
    rgba(8, 18, 45, 0.58) 50%,
    rgba(8, 18, 45, 0.20) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-24) 0;
  max-width: 620px;
  color: var(--clr-white);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: var(--sp-6);
}

.hero__content h1 {
  font-size: clamp(var(--sz-4xl), 5.5vw, var(--sz-6xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--sp-6);
}

.hero__content h1 em {
  font-style: normal;
  color: var(--clr-accent-light);
}

.hero__sub {
  font-size: var(--sz-lg);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: var(--sp-10);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ================================================================
   Trust Strip
   ================================================================ */
.trust-strip {
  background-color: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-8) var(--sp-4);
  gap: var(--sp-1);
  text-align: center;
  border-right: 1px solid var(--clr-border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-item strong {
  font-size: var(--sz-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--clr-accent);
  line-height: 1;
}

.trust-item span {
  font-size: var(--sz-xs);
  font-weight: 500;
  color: var(--clr-muted);
  letter-spacing: 0.02em;
}

/* ================================================================
   Services
   ================================================================ */
.services {
  padding: var(--sp-24) 0;
  background-color: var(--clr-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.service-card {
  background-color: var(--clr-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

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

.service-card__image {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slide) var(--ease);
}

.service-card:hover .service-card__image img {
  transform: scale(1.06);
}

.service-card__body {
  padding: var(--sp-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-icon {
  font-size: 28px;
  margin-bottom: var(--sp-4);
  line-height: 1;
}

.service-card__body h3 {
  font-size: var(--sz-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.service-card__body p {
  font-size: var(--sz-sm);
  color: var(--clr-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--sp-6);
}

/* ================================================================
   Why Us (dark section)
   ================================================================ */
.why-us {
  padding: var(--sp-24) 0;
  background-color: var(--clr-charcoal);
  color: var(--clr-white);
}

.why-us__header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto var(--sp-16);
}

.why-us__header h2 {
  font-size: clamp(var(--sz-3xl), 4vw, var(--sz-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  color: var(--clr-white);
}

.why-us__header p {
  font-size: var(--sz-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.why-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  transition: background-color var(--dur) var(--ease);
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.09);
}

.why-card__icon {
  font-size: 36px;
  margin-bottom: var(--sp-5);
  line-height: 1;
}

.why-card h3 {
  font-size: var(--sz-base);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.why-card p {
  font-size: var(--sz-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ================================================================
   Locations
   ================================================================ */
.locations {
  padding: var(--sp-24) 0;
  background-color: var(--clr-bg);
}

.locations__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.locations__text h2 {
  font-size: clamp(var(--sz-3xl), 4vw, var(--sz-5xl));
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}

.locations__text > p {
  font-size: var(--sz-base);
  color: var(--clr-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}

.locations__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3) var(--sp-6);
  margin-bottom: var(--sp-10);
  list-style: none;
}

.locations__list li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--sz-sm);
  font-weight: 600;
  color: var(--clr-dark);
}

.locations__list li::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--clr-accent);
  flex-shrink: 0;
}

.locations__map {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 3;
  background-color: var(--clr-bg);
}

.locations__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  display: block;
}

/* ================================================================
   Gallery Slideshow
   ================================================================ */
.gallery {
  padding: var(--sp-24) 0;
  background-color: var(--clr-white);
}

.slideshow {
  position: relative;
  user-select: none;
}

.slideshow:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 4px;
}

.slideshow__track-wrapper {
  overflow: hidden;
  border-radius: var(--r-xl);
  background-color: var(--clr-dark);
  box-shadow: var(--sh-lg);
}

.slideshow__track,
.reviews-slider__track {
  display: flex;
  transition: transform var(--dur-slide) var(--ease);
  will-change: transform;
}

.slideshow__track {
  cursor: grab;
}

.slideshow__track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.slideshow__slide {
  /* Definite basis (matches .reviews-slide) — not just a min floor. With an auto
     basis the slide could stay wider than the viewport below the image's intrinsic
     width, desyncing the translate and showing two images in one frame. */
  flex: 0 0 100%;
  min-width: 0;
}

.slideshow__slide img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* Prev / Next buttons */
.slideshow__btn,
.reviews-slider__btn {
  position: absolute;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-dark);
  z-index: 2;
}

.slideshow__btn {
  top: calc(50% - 30px);
  width: 48px;
  height: 48px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  transition:
    background-color var(--dur) var(--ease),
    box-shadow      var(--dur) var(--ease),
    transform       var(--dur) var(--ease);
}

.slideshow__btn:hover {
  background: var(--clr-white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.slideshow__btn:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

.slideshow__btn--prev { left:  var(--sp-4); }
.slideshow__btn--next { right: var(--sp-4); }

.slideshow__btn svg,
.reviews-slider__btn svg {
  width: 20px;
  height: 20px;
}

.slideshow__btn svg {
  flex-shrink: 0;
}

/* Footer: dots + counter */
.slideshow__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

.slideshow__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

.slideshow__dot,
.reviews-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    width            var(--dur) var(--ease);
}

.slideshow__dot {
  background-color: #d1d5db;
}

.slideshow__dot.active,
.reviews-slider__dot.active {
  background-color: var(--clr-accent);
  width: 24px;
}

.slideshow__dot:focus-visible,
.reviews-slider__dot:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

.slideshow__counter {
  font-size: var(--sz-xs);
  font-weight: 600;
  color: var(--clr-muted);
  letter-spacing: 0.05em;
  min-width: 36px;
}

/* ── Homepage gallery preview (links to the full gallery page) ── */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

.gallery-preview__item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.gallery-preview__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  display: block;
  transition: opacity var(--dur) var(--ease);
}

/* Hover: dim the photo and reveal the prompt overlay */
.gallery-preview__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  text-align: center;
  font-weight: 700;
  font-size: var(--sz-lg);
  color: var(--clr-dark);
  background-color: rgba(255, 255, 255, 0.38);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.gallery-preview__item:hover img,
.gallery-preview__item:focus-visible img {
  opacity: 0.55;
}

.gallery-preview__item:hover .gallery-preview__overlay,
.gallery-preview__item:focus-visible .gallery-preview__overlay {
  opacity: 1;
}

.gallery-preview__item:hover,
.gallery-preview__item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.gallery-preview__item:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

.gallery-preview__cta {
  margin-top: var(--sp-10);
  text-align: center;
}

/* Standalone gallery page — CTAs under the full slideshow */
.gallery-page__cta {
  margin-top: var(--sp-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

/* Subpages without a hero (gallery, estimate) — clear the fixed header */
.subpage-main {
  padding-top: var(--header-height);
}

.subpage-main > section:first-child {
  padding-top: var(--sp-12);
}

/* ================================================================
   Reviews — rotating 5-star testimonial carousel
   ================================================================ */
.reviews {
  padding: var(--sp-24) 0;
  background-color: var(--clr-charcoal);
  color: var(--clr-white);
}

.reviews__header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto var(--sp-16);
}

.reviews__header h2 {
  color: var(--clr-white);
}

.reviews__sub {
  font-size: var(--sz-base);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  margin: 0 auto;
}

.reviews-slider {
  position: relative;
  /* one review at a time — keep the column narrow so text reads in a thinner,
     taller block rather than stretching across the full width */
  max-width: 680px;
  margin: 0 auto;
}

.reviews-slider__track-wrapper {
  overflow: hidden;
}

.reviews-slide {
  /* definite basis (not just a min floor) so the card has a width to wrap text against */
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  padding: var(--sp-1);
}

.review-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 360px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: var(--sp-10);
  margin: 0;
}

.review-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-5);
}

.review-card__stars svg {
  width: 18px;
  height: 18px;
  fill: var(--clr-star);
  flex-shrink: 0;
}

.review-card__quote {
  margin: 0 0 var(--sp-6);
  font-size: var(--sz-base);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  /* push author block to the bottom so cards align */
  flex-grow: 1;
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review-card__name {
  font-weight: 700;
  font-size: var(--sz-base);
  color: var(--clr-white);
}

.review-card__meta {
  font-size: var(--sz-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

/* Prev / Next buttons */
.reviews-slider__btn {
  top: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  transition:
    background-color var(--dur) var(--ease),
    transform       var(--dur) var(--ease);
}

.reviews-slider__btn:hover {
  background: var(--clr-white);
  transform: translateY(-50%) scale(1.08);
}

.reviews-slider__btn:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

.reviews-slider__btn--prev { left:  calc(-1 * var(--sp-5)); }
.reviews-slider__btn--next { right: calc(-1 * var(--sp-5)); }

.reviews-slider__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
}

.reviews-slider__dot {
  background-color: rgba(255, 255, 255, 0.25);
}

/* ================================================================
   Contact
   ================================================================ */
.contact {
  padding: var(--sp-24) 0;
  background-color: var(--clr-bg);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact__text h1,
.contact__text h2 {
  font-size: clamp(var(--sz-3xl), 3.5vw, var(--sz-4xl));
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}

.contact__text > p {
  font-size: var(--sz-base);
  color: var(--clr-muted);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
}

.contact__checklist {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact__checklist li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--sz-sm);
  font-weight: 500;
  color: var(--clr-dark);
}

.contact__checklist li::before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--clr-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  background-color: var(--clr-white);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group label {
  font-size: var(--sz-sm);
  font-weight: 600;
  color: var(--clr-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: var(--sz-sm);
  color: var(--clr-dark);
  background-color: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r);
  padding: 12px 16px;
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow  var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a1aabb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  background-color: var(--clr-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

/* Honeypot — visually hidden from real users, invisible to screen readers via aria-hidden */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Inline form error (server or network failure) */
.form-error {
  font-size: var(--sz-sm);
  color: #dc2626;
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--r);
  display: none;
  line-height: 1.5;
}

.form-error.visible {
  display: block;
}

/* Form disclaimer above submit button */
.form-disclaimer {
  font-size: var(--sz-xs);
  color: var(--clr-muted);
  line-height: 1.6;
  text-align: center;
  margin-bottom: calc(var(--sp-5) * -0.5);
}

.form-disclaimer a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--dur) var(--ease);
}

.form-disclaimer a:hover {
  color: var(--clr-accent-hov);
}

/* Direct contact details */
.contact__direct {
  margin-top: var(--sp-10);
  padding-top: var(--sp-8);
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.contact__direct-label {
  font-size: var(--sz-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: var(--sp-1);
}

.contact__phone {
  font-size: var(--sz-xl);
  font-weight: 700;
  color: var(--clr-accent);
  letter-spacing: -0.02em;
  transition: color var(--dur) var(--ease);
}

.contact__phone:hover {
  color: var(--clr-accent-hov);
}

.contact__email {
  font-size: var(--sz-sm);
  color: var(--clr-muted);
  transition: color var(--dur) var(--ease);
  word-break: break-all;
}

.contact__email:hover {
  color: var(--clr-accent);
}

/* Form success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-16) var(--sp-8);
  background-color: var(--clr-white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--clr-border);
}

.form-success.visible {
  display: flex;
}

.form-success__icon {
  font-size: 52px;
  line-height: 1;
}

.form-success h3 {
  font-size: var(--sz-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-success p {
  font-size: var(--sz-sm);
  color: var(--clr-muted);
  line-height: 1.7;
  max-width: 300px;
}

/* ================================================================
   Estimate CTA band (homepage lead-in to the estimate page)
   ================================================================ */
.estimate-cta {
  padding: var(--sp-20) 0;
  background-color: var(--clr-accent-lite);
}

.estimate-cta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.estimate-cta__inner h2 {
  font-size: var(--sz-4xl);
  margin-bottom: var(--sp-4);
}

.estimate-cta__inner > p {
  font-size: var(--sz-lg);
  color: var(--clr-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-8);
}

.estimate-cta__direct {
  margin-top: var(--sp-6);
  font-size: var(--sz-sm);
  color: var(--clr-muted);
}

.estimate-cta__direct a {
  color: var(--clr-accent);
  font-weight: 600;
  text-decoration: none;
}

.estimate-cta__direct a:hover {
  text-decoration: underline;
}

/* ================================================================
   Footer
   ================================================================ */
footer {
  background-color: var(--clr-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--sp-20) 0 var(--sp-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--sp-4);
}

.footer-brand p {
  font-size: var(--sz-sm);
  line-height: 1.75;
  max-width: 280px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
  font-size: var(--sz-xs) !important;
  font-style: italic;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-top: var(--sp-2);
}

.footer-links h3,
.footer-contact h3 {
  font-size: var(--sz-xs);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer-links a {
  font-size: var(--sz-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--clr-white);
}

.footer-contact {
  display: flex;
  flex-direction: column;
}

.footer-contact a {
  font-size: var(--sz-sm);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--sp-3);
  transition: color var(--dur) var(--ease);
}

.footer-contact a:hover {
  color: var(--clr-white);
}

.footer-contact address {
  font-style: normal;
  font-size: var(--sz-xs);
  color: rgba(255, 255, 255, 0.35);
  margin-top: var(--sp-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--sz-xs);
  flex-wrap: wrap;
  gap: var(--sp-3);
  color: rgba(255, 255, 255, 0.35);
}

/* ================================================================
   Responsive — Tablet (≤ 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  .why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }
}

/* ================================================================
   Responsive — Mobile (≤ 768px)
   ================================================================ */
@media (max-width: 768px) {
  /* Hide email from utility bar on tablet — too long to fit */
  .utility-bar__email {
    display: none;
  }

  /* Shrink the logo so the row fits the persistent CTA + hamburger */
  .nav-logo img {
    height: 48px;
  }

  /* Lay the persistent CTA and hamburger side by side */
  .navbar nav {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-shrink: 0;
  }

  /* Hamburger visible */
  .nav-toggle {
    display: flex;
  }

  /* Persistent Free Quote button, compact to sit beside the hamburger.
     Extra specificity so the in-drawer .nav-cta rule below doesn't override it. */
  .navbar .nav-cta--mobile.nav-cta--mobile {
    display: inline-block;
    padding: 9px 16px;
    font-size: var(--sz-sm);
    border-radius: var(--r);
    white-space: nowrap; /* keep the label on one line; never let it break in two */
  }

  /* Show the full bilingual label by default at this breakpoint; the short
     label takes over on small phones (≤ 480px) where the full one won't fit. */
  .nav-cta--mobile .nav-cta__short {
    display: none;
  }

  /* Mobile nav drawer */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.99);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-2) var(--pad-x) var(--sp-4);
    box-shadow: var(--sh-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--clr-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
    padding-top: var(--sp-3);
  }

  .nav-links a {
    display: block;
    padding: var(--sp-4) 0;
    font-size: var(--sz-base);
    color: var(--clr-dark);
  }

  .nav-cta.nav-cta {
    display: block;
    text-align: center;
    border-radius: var(--r);
    padding: 12px 22px;
  }

  /* Hero */
  .hero {
    align-items: flex-end;
    padding-bottom: var(--sp-16);
  }

  .hero__content {
    padding-top: var(--sp-12);
    padding-bottom: 0;
  }

  .hero__sub {
    font-size: var(--sz-base);
  }

  /* Trust strip */
  .trust-strip__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: none;
  }

  .trust-item:nth-child(1),
  .trust-item:nth-child(2) {
    border-bottom: 1px solid var(--clr-border);
  }

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

  /* Why Us */
  .why-us__grid {
    grid-template-columns: 1fr;
  }

  /* Gallery slideshow */
  .slideshow__slide img {
    height: 340px;
  }

  /* Homepage gallery preview — stack images vertically */
  .gallery-preview {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  /* Estimate CTA band — tighten heading on smaller screens */
  .estimate-cta__inner h2 {
    font-size: var(--sz-3xl);
  }

  /* Gallery — hide arrows on mobile; swipe + dots remain */
  .slideshow__btn {
    display: none;
  }

  /* Reviews — hide arrows (swipe + dots remain), trim card padding */
  .reviews-slider__btn {
    display: none;
  }

  .review-card {
    padding: var(--sp-8);
  }

  /* Locations */
  .locations__inner {
    grid-template-columns: 1fr;
  }

  .locations__map {
    aspect-ratio: 16 / 9;
  }

  /* Contact */
  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================================
   Responsive — Small Mobile (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
  /* Small phones: the bilingual label is too wide for one line beside the logo
     and hamburger, so swap to the compact English-only label. */
  .navbar .nav-cta--mobile .nav-cta__full {
    display: none;
  }

  .navbar .nav-cta--mobile .nav-cta__short {
    display: inline;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

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

  .slideshow__slide img {
    height: 240px;
  }

  .utility-bar__email {
    display: none;
  }
}

/* ================================================================
   Reduced motion — disable carousel sliding for sensitive users
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .slideshow__track,
  .reviews-slider__track {
    transition: none;
  }
}

/* ================================================================
   Client-side field validation (toggled by js/main.js showError /
   clearError). Replaces former inline styles — keep minimal.
   ================================================================ */
.contact-form .is-invalid {
  border-color: #dc2626;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 4px;
}

/* ================================================================
   Skip link — visible only on keyboard focus, jumps to <main>
   ================================================================ */
.skip-link {
  position: absolute;
  top: 0;
  left: var(--sp-4);
  z-index: 2000;
  transform: translateY(-150%);
  padding: 10px 18px;
  background-color: var(--clr-accent);
  color: var(--clr-white);
  font-size: var(--sz-sm);
  font-weight: 600;
  border-radius: 0 0 var(--r) var(--r);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Programmatic focus target shouldn't show a persistent outline */
#main-content:focus {
  outline: none;
}

/* Hamburger toggle — match the accent focus ring used elsewhere */
.nav-toggle:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

/* Footer legal links — replaces former inline styles */
.footer-legal-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
