/* =========================================================
   PAGE SECTIONS (LIGHT / WHITE)
========================================================= */

.section{
  padding: clamp(56px, 7vw, 96px) 0;
  color: var(--text);
  background: var(--page-bg, #fff); /* prevents “transparent over media” */
}

/* Subtle premium tint */
.section--alt{
  background:
    radial-gradient(900px 380px at 18% 0%, rgba(205, 154, 38,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.03), rgba(0,0,0,0.02));
}

.section__head{
  margin-bottom: 18px;
  max-width: 78ch;
  text-rendering: geometricPrecision;
}


/* =========================
FORM ELEMENTS (LIGHT)
========================= */
.label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 6px;
}

.input{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.16);
  background: rgba(255,255,255,0.96);
  color: var(--text);
  padding: 12px;
  outline: none;

  /* Better legibility */
  line-height: 1.35;
}

.input::placeholder{
  color: rgba(11,15,23,.45);
}

.input:focus{
  border-color: rgba(205, 154, 38,0.85);
  box-shadow: 0 0 0 4px rgba(205, 154, 38,0.18);
}

.input--area{
  resize: vertical;
  min-height: 96px;
}

.error{
  margin: 6px 0 0;
  font-size: 12px;
  color: #b00020; /* readable on white */
  min-height: 16px;
}

.hp{ display:none !important; }

/* =========================
STRIP (LIGHT)
========================= */
.strip{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,0.02);
}

.strip__inner{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  color: var(--muted);
  font-size: 13px;
}

.strip__dot{
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,0.28);
}

/* =========================
GRIDS + CARDS (LIGHT)
========================= */
.grid{ display:grid; gap: 14px; }
.grid--3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card{
  display:block;
  text-decoration:none;
  color: var(--text);
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius);
  padding: 18px;

  /* Cleaner, more premium shadow */
  box-shadow: 0 12px 30px rgba(11,15,23,.12);

  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.98);
  border-color: rgba(205, 154, 38,0.42);
  box-shadow: 0 18px 44px rgba(11,15,23,.16);
}

.card__link{
  display:inline-block;
  margin-top: 10px;
  color: rgba(123,92,12,0.98); /* deeper gold for contrast */
  font-weight: 800;
  font-size: 13px;
}

/* =========================
GALLERY (LIGHT)
========================= */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.shot{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 30px rgba(11,15,23,.12);
}

.shot:nth-child(1){ grid-column: span 6; }
.shot:nth-child(2){ grid-column: span 6; }
.shot:nth-child(3){ grid-column: span 7; }
.shot:nth-child(4){ grid-column: span 5; }

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

/* =========================
QUOTE BLOCK (LIGHT)
========================= */
.quote{
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(11,15,23,.12);
  color: var(--text);
}

.quote p{ margin: 0 0 12px; }

.quote__by{
  color: var(--muted);
  font-size: 13px;
}

/* =========================
FOOTER (LIGHT)
========================= */
.footer{
  padding: 26px 0;
  color: var(--muted);
  background: var(--page-bg, #fff);
}

.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(0,0,0,0.10);
  padding-top: 18px;
}

.footer__brand{
  color: var(--text);
  font-weight: 850;
}

.footer__meta{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer__right a{
  color: var(--muted);
  text-decoration:none;
  margin-left: 12px;
}

.footer__right a:hover{
  color: var(--text);
}

/* =========================
REVEAL (unchanged)
========================= */
[data-reveal]{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 980px){
  .hero__inner{ grid-template-columns: 1fr; }
  .grid--3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot:nth-child(3){ grid-column: span 6; }
  .shot:nth-child(4){ grid-column: span 6; }

  /* Keep hero panel from feeling too “wide” on small screens */
  .hero__content::before{ inset: -14px -14px -14px -14px; }
}

@media (max-width: 720px){
  .grid--3{ grid-template-columns: 1fr; }
  .hero__proof{ grid-template-columns: 1fr; }
  .gallery{ grid-template-columns: repeat(6, 1fr); }
  .shot:nth-child(1),
  .shot:nth-child(2),
  .shot:nth-child(3),
  .shot:nth-child(4){ grid-column: span 6; }
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
    scrollbar-gutter: stable;
  }
  [data-reveal]{
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card{ transition: none; }
}

/* =========================================================
   REVIEWS — LIGHT THEME OVERRIDES
   (keeps your structure; removes dark “bars”; makes cards readable)
========================================================= */

/* Head area */
.crReviews__sub{ color: var(--muted); }

/* CTA */
.crReviews__cta{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.86);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(11,15,23,.12);
}
.crReviews__cta:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.94);
  border-color: rgba(205, 154, 38,.35);
}

@media (max-width: 980px){
  .crReviews__head{ flex-direction:column; align-items:flex-start; }
}

/* =========================================================
   FULL-WIDTH MARQUEE (the “missing” original structure)
========================================================= */

/* Break out of container */
/* --- Tune marquee sizing + page fit --- */
.crMarquee{
  /* spacing */
  --crGap: 16px;
  --crPadX: clamp(14px, 2.6vw, 28px);
  --crFade: 72px;

  /* card sizing: slightly narrower so the row feels “designed”, not massive */
  --crCardW: clamp(360px, 32vw, 500px);
  --crCardWMobile: 86vw;

  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;

  padding: 14px 0 6px;
  scrollbar-width: none;

  width: 100%;
  max-width: 100%;
}

.crMarquee::-webkit-scrollbar{ display:none; } /* Chrome/Safari hide bar */

/* Kill any old opaque overlay fades (the black bar culprit) */
.crMarquee::before,
.crMarquee::after{
  content: none !important;
}

/* Edge fade that DOES NOT create bars */
.crMarquee{
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--crFade),
    #000 calc(100% - var(--crFade)),
    transparent 100%
  );
          mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 var(--crFade),
    #000 calc(100% - var(--crFade)),
    transparent 100%
  );
}

@media (max-width: 720px){
  .crMarquee{ --crFade: 48px; }
}

/* The track MUST be flex + no-wrap + max-content */
.crMarquee__track{
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--crGap);

  /* left/right inset so first/last card aren’t glued to screen edge */
  padding-left: calc(var(--crPadX) + env(safe-area-inset-left));
  padding-right: calc(var(--crPadX) + env(safe-area-inset-right));

  width: max-content;  /* critical: lets content be wider than viewport */
}

/* Each card fixed-width so marquee is consistent */
.crMarquee__track > .crReview{
  flex: 0 0 var(--crCardW);
}
@media (max-width: 740px){
  .crMarquee__track > .crReview{
    flex-basis: var(--crCardWMobile);
  }
}

/* Optional: if your JS adds .is-paused to .crMarquee */
.crMarquee.is-paused{
  scroll-behavior: auto;
}

/* =========================================================
   CARD STYLES (keep your Google-ish look) — FORCED READABLE
========================================================= */

.crReview{
  position:relative;
  display:flex;
  flex-direction: column;

  height: 600px;

  border-radius: 18px;

  /* FORCE light theme readability */
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(11,15,23,.12);
  color: var(--text);

  overflow:hidden;

  will-change: transform;
  backface-visibility: hidden;

  transform: translateZ(0);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.crReview:hover{
  transform: translateY(-4px);
  border-color: rgba(205, 154, 38,.42);
  box-shadow: 0 18px 50px rgba(11,15,23,.18);
}
.crReview::after{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 240px at 12% 0%, rgba(11,15,23,.06), transparent 55%);
  opacity:0;
  transition: opacity .28s ease;
  pointer-events:none;
}
.crReview:hover::after{ opacity:1; }

.crReview__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 16px 10px;
}

.crChip{
  flex:0 0 auto;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  color: var(--text);
}

/* Reviewer */
.crReviewer{
  display:flex;
  gap: 12px;
  min-width: 0;
}
.crReviewer__avatar{
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  object-fit: cover !important;
  display:block !important;
  border: 1px solid rgba(0,0,0,.12);
  flex: 0 0 auto;
}
.crReviewer__meta{ min-width:0; }
.crReviewer__nameRow{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}
.crReviewer__name{
  font-weight: 900;
  letter-spacing: -0.01em;
}
.crReviewer__row{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.crReviewer__sep{ opacity:.75; }

/* Tiny Google mark */
.crG{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  font-size: 12px;
  color: var(--text);
}
.crG__dot{ width:7px; height:7px; border-radius:99px; display:inline-block; }
.crG__dot--b{ background:#4285F4; }
.crG__dot--r{ background:#EA4335; }
.crG__dot--y{ background:#FBBC05; }
.crG__dot--g{ background:#34A853; }
.crG__txt{ opacity:.9; }

/* Stars (JS injects .crStar spans) */
.crStars{ display:inline-flex; gap: 4px; color: rgba(11,15,23,.85); }
.crStars .crStar{
  width: 14px;
  height: 14px;
  display:inline-block;
  opacity:.28;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.crStars .crStar.is-on{ opacity:.95; }

/* Project photos: tiles — FIXED CENTERING (no flex on img) */
.crReview__media.crGallery{
  padding: 0 16px 6px;
  display: flex;
  gap: 10px;
  align-items: stretch;
  justify-content: center;  /* centers single image visually */
  overflow: hidden; /* default */
}

/* Keep images crisp and centered */
.crReview__media.crGallery > img{
  display:block;
  height: auto !important;
  width: auto !important;

  /* predictable sizing */
  max-height: 400px;
  max-width: 100%;

  object-fit: cover !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0,0,0,.10);

  margin: 0 auto; /* centers if only one */
  flex: 0 0 auto !important;
}

/* If multiple images, allow internal swipe */
.crReview__media.crGallery.is-multi{
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  justify-content: flex-start;
}
.crReview__media.crGallery.is-multi::-webkit-scrollbar{ display:none; }
.crReview__media.crGallery.is-multi > img{ scroll-snap-align: start; }

/* Body */
.crReview__body{ padding: 12px 16px 14px; }

/* --- Equal-ish text blocks so card heights are consistent --- */
.crReview__text{
  margin:0;
  line-height: 1.60;
  color: rgba(11,15,23,.86);

  display: -webkit-box;
  -webkit-line-clamp: 4;     /* was 5 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* If you later add JS to expand, toggle .is-expanded on .crReview */
.crReview.is-expanded .crReview__text{
  -webkit-line-clamp: unset;
  overflow: visible;
  display: block;
}

/* Footer */
.crReview__foot{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.crReview__link{
  font-size: 12px;
  font-weight: 900;
  text-decoration:none;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  transition: transform .22s ease, background .22s ease;
}
.crReview__link:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.05);
}

/* Reveal */
.crReveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.crReveal.is-in{
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .crReview, .crReviews__cta, .crReview::after, .crReveal{ transition:none !important; }
  .crReview:hover{ transform:none; }
}

/* keep hover lift, but don’t force repaints */
@media (hover:hover){
  .crReview:hover{
    transform: translate3d(0,-4px,0);
  }
}

/* =========================================================
   REVIEWS — Mobile constraints for left-scroll marquee
   Targets:
   .crMarquee (viewport scroller)
   .crMarquee__track (moving flex row)
   .crReview (cards)
========================================================= */

/* Ensure marquee never exceeds screen width */
.crMarquee{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;          /* must be scrollable */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.crMarquee::-webkit-scrollbar{ display:none; }

/* Track must stay on one line */
.crMarquee__track{
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: max-content;        /* critical so track grows naturally */
  padding: 0 18px;           /* breathing room + helps fades */
}

/* Optional: edge fades without “black bar” */
.crMarquee{
  position: relative;
  isolation: isolate;
}
.crMarquee::before,
.crMarquee::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width: 56px;
  pointer-events:none;
  z-index: 2;
}
.crMarquee::before{
  left:0;
  background: linear-gradient(to right,
    rgba(255,255,255,1),
    rgba(255,255,255,0)
  );
}
.crMarquee::after{
  right:0;
  background: linear-gradient(to left,
    rgba(255,255,255,1),
    rgba(255,255,255,0)
  );
}

/* Review card (kept consistent with the forced readable style above) */
.crReview{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(11,15,23,.12);
  color: var(--text);
}

.crReview:hover{
  border-color: rgba(205, 154, 38,.45);
  box-shadow: 0 18px 50px rgba(11,15,23,.18);
}

.crReview::after{
  background: radial-gradient(600px 240px at 12% 0%, rgba(11,15,23,.06), transparent 55%);
}

.crChip{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  color: var(--text);
}

.crReviewer__avatar{
  border: 1px solid rgba(0,0,0,.12);
}

.crReviewer__row{ color: var(--muted); }
.crReviewer__sep{ color: var(--faint); }

/* Tiny Google mark on light */
.crG{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  color: var(--text);
}

/* Footer of review cards */
.crReview__foot{
  border-top: 1px solid rgba(0,0,0,.08);
}

.crReview__link{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  color: var(--text);
}
.crReview__link:hover{
  background: rgba(0,0,0,.05);
}

/* Gallery tiles inside review */
.crReview__media.crGallery > img{
  border: 1px solid rgba(0,0,0,.10);
}

/* Mobile fade widths */
@media (max-width: 520px){
  .crMarquee::before,
  .crMarquee::after{
    width: 44px;
  }
}


/* Readability: cap paragraph measure inside full-width cards (location pages hit 205ch) */
.card > p.muted { max-inline-size: 80ch; }
