/* ============================================================
   ENCINAS DETAILING — styles.css
   Colors from logo:  pink #D91F6E  ·  coral #D94040
   Cream background:  #FAF8F5
   Animated topographic SVG hero
   ============================================================ */

:root {
  --pink:       #D91F6E;
  --pink-dk:    #B5195C;
  --coral:      #D94040;
  --coral-dk:   #b83535;
  --bg:         #FAF8F5;
  --bg2:        #F3F0EC;
  --card:       #FFFFFF;
  --border:     #E4E0DB;
  --text:       #1C1C1C;
  --text-muted: #7a7370;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-red { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn-red:hover { background: var(--pink-dk); border-color: var(--pink-dk); }
.btn-outline-dark { background: transparent; color: var(--text); border-color: #C0B8B0; }
.btn-outline-dark:hover { border-color: var(--pink); color: var(--pink); }
.btn-big { padding: .85rem 2rem; font-size: 1rem; }
.btn-sm  { padding: .5rem 1.1rem; font-size: .85rem; }

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FAF8F5;
  border-bottom: 1px solid var(--border);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .7rem;
  padding-bottom: .7rem;
  gap: 1rem;
}
.header-logo { height: 50px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.header-phone {
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  border: 1.5px solid var(--border);
  padding: .5rem 1rem;
  border-radius: 6px;
  transition: border-color .2s, color .2s;
}
.header-phone:hover { border-color: var(--pink); color: var(--pink); }

/* ────────────────────────────────────────────
   HERO — full-screen with diagonal lines
──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* Each line bobs independently via JS-set animation-delay */
@keyframes line-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-35px); }
}

/* Hero content sits above the SVG */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3.5rem 1.25rem;
  max-width: 720px;
  width: 100%;
}

.hero-logo-art {
  width: clamp(180px, 32vw, 300px);
  height: auto;
  margin: 0 auto 1.6rem;
  /* Blend white bg away on cream background */
  mix-blend-mode: multiply;
}

.hero-eyebrow {
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 1.1rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-btns { display: flex; gap: .85rem; flex-wrap: wrap; justify-content: center; }

/* ── Trust Bar ── */
.trust-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
}
.trust-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 2.5rem;
  justify-content: center;
}
.trust-item { color: var(--text-muted); font-size: .85rem; font-weight: 600; letter-spacing: .05em; }

/* ── Section labels ── */
.section-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .4rem;
}

/* ── Stats ── */
.stats { padding: 3.5rem 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-num {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--pink);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: .5rem;
}


/* ── How It Works ── */
.how-it-works { padding: 5rem 0; background: var(--bg2); }
.how-it-works h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 2.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-num { font-size: 4rem; font-weight: 800; color: var(--pink); opacity: .18; line-height: 1; margin-bottom: .4rem; }
.step h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.step p  { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ── Availability toast ── */
.avail-toast {
  position: fixed;
  bottom: -140px;
  right: 1.5rem;
  z-index: 300;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.13);
  transition: bottom .55s cubic-bezier(.34,1.56,.64,1);
  max-width: 330px;
}
.avail-toast.show { bottom: 1.5rem; }
.avail-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #22c55e; flex-shrink: 0;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
  50%      { box-shadow: 0 0 0 7px rgba(34,197,94,.08); }
}
.avail-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.avail-text strong { font-size: .88rem; color: var(--text); }
.avail-text span   { font-size: .76rem; color: var(--text-muted); }
.avail-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 1.25rem; line-height: 1; padding: 0;
}
.avail-close:hover { color: var(--text); }

/* ── Services ── */
.services { padding: 5rem 0; background: var(--bg); }
.services h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.service-card:hover {
  border-color: var(--pink);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(217,31,110,.12);
}
.service-img-wrap { width: 100%; aspect-ratio: 16/10; overflow: hidden; background: #f0eee9; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.service-card:hover .service-img-wrap img { transform: scale(1.05); }
.service-body { padding: 1.35rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.08rem; font-weight: 700; color: var(--text); margin-bottom: .9rem; }
.service-list { flex: 1; margin-bottom: 1.25rem; }
.service-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .38rem 0;
  font-size: .88rem;
  color: var(--text-muted);
  border-bottom: 1px solid #F0EDE8;
}
.service-list li:last-child { border-bottom: none; }
.service-list li span { font-weight: 700; color: var(--text); white-space: nowrap; margin-left: .75rem; }

/* ── Reviews ── */
.reviews { padding: 5rem 0; background: var(--bg2); }
.reviews h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; color: var(--text); margin-bottom: 1.5rem; }
.google-summary { display: flex; align-items: center; gap: .6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.g-score { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.g-stars  { color: #E8A400; font-size: 1.2rem; }
.g-count  { font-size: .85rem; color: var(--text-muted); }
/* Marquee container — full width, clips overflow */
.review-marquee {
  overflow: hidden;
  padding: .5rem 0 2rem;
  /* Fade edges so scroll feels seamless */
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.review-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: review-scroll 40s linear infinite;
}

@keyframes review-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  width: 340px;
  flex-shrink: 0;
}
.review-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem; flex-shrink: 0;
}
.reviewer-info { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.reviewer-name { font-weight: 700; color: var(--text); font-size: .9rem; }
.reviewer-meta { font-size: .78rem; color: var(--text-muted); }
.g-badge { flex-shrink: 0; }
.review-stars { color: #E8A400; font-size: 1rem; margin-bottom: .6rem; }
.review-card p { font-size: .9rem; color: #555; line-height: 1.65; }

/* ────────────────────────────────────────────
   CONTACT FORM
──────────────────────────────────────────── */
.contact { padding: 5rem 0; background: var(--bg); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: .75rem;
}
.contact-sub {
  font-size: .96rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.contact-sub a { color: var(--pink); font-weight: 600; }
.contact-sub a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
  letter-spacing: .03em;
}

.form-group input,
.form-group textarea {
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(217,31,110,.1);
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: var(--coral);
}

.field-err {
  font-size: .78rem;
  color: var(--coral);
  margin-top: .25rem;
  min-height: 1em;
}

.form-submit { width: 100%; margin-top: .5rem; }
.form-submit:disabled { opacity: .65; cursor: not-allowed; }

.form-success {
  text-align: center;
  color: #2a7a2a;
  font-weight: 600;
  font-size: .95rem;
  margin-top: 1rem;
  padding: .75rem;
  background: #edfaed;
  border-radius: 7px;
  border: 1px solid #b8e6b8;
}

/* ── Booking CTA ── */
.booking-cta { background: var(--pink); padding: 3.5rem 0; }
.booking-cta-wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.booking-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: #fff; margin-bottom: .35rem; }
.booking-cta p { color: rgba(255,255,255,.85); font-size: 1rem; }
.booking-cta .btn-red { background: #fff; color: var(--pink); border-color: #fff; font-size: 1rem; }
.booking-cta .btn-red:hover { background: #f5f5f5; }

/* ── Footer ── */
.footer {
  background: #1C1C1C;
  border-top: 1px solid #2a2a2a;
  padding: 3rem 0 2rem;
  text-align: center;
}
.footer-logo {
  height: 60px; width: auto; object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: 8px; padding: 4px 10px;
  background: rgba(255,255,255,.08);
}
.footer p { color: #666; font-size: .88rem; margin-bottom: .4rem; }
.footer a { color: #888; transition: color .2s; }
.footer a:hover { color: var(--pink); }
.copy { color: #444 !important; font-size: .78rem !important; margin-top: 1rem !important; }

/* ── Responsive ── */
@media (max-width: 860px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 860px) {
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .header-phone { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .service-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .booking-cta-wrap { flex-direction: column; text-align: center; }
  .avail-toast { right: 1rem; left: 1rem; max-width: 100%; }
}

/* ── Gallery ── */
.gallery-section { padding: 5rem 0; background: #111; }
.gallery-section .wrap { text-align: center; margin-bottom: 2.5rem; }
.gallery-section h2 { color: #fff; }
.gallery-section .section-label { color: var(--pink); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 6px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
}
.gallery-large {
  grid-column: span 2;
  grid-row: span 1;
}
.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-large img { height: 420px; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(217, 31, 110, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-hover { opacity: 1; }

@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-large { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-large { grid-column: span 1; }
  .gallery-item img, .gallery-large img { height: 240px; }
}
