/* Shared polish: subtle reveal motion, Google reviews and privacy page. */

/* Use the new transparent Curbside Detailing logo anywhere the shared header/footer logo appears. */
.brand img,
.footer-logo {
  content: url('/images/Curbside%20Detailing%20Logo.png');
}

/* Give the full header a little breathing room from the top edge. */
.topbar {
  padding: 22px 0 12px;
}

/* The new artwork fills much more of its canvas than the old logo. Keep the
   header logo compact and reserve enough room for the navigation. */
.nav {
  min-width: 0;
}

.brand {
  min-width: 0;
  max-width: 30%;
  flex: 0 0 auto;
}

.brand img {
  width: 260px;
  max-width: 100%;
  max-height: 90px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  min-width: 0;
  flex: 0 1 auto;
}

/* Give the homepage intro clear vertical separation from the header logo. */
.hero-content {
  padding-top: 190px;
}

.footer-logo {
  width: 128px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Homepage quick-scroll control. */
.scroll-top-button {
  position: fixed;
  top: 24px;
  left: 24px;
  right: auto;
  z-index: 60;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99,212,255,.28);
  border-radius: 50%;
  background: var(--accent, #00aeef);
  color: #00141c;
  box-shadow: 0 12px 30px rgba(0,174,239,.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, box-shadow .2s ease;
}

.scroll-top-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-button:hover {
  box-shadow: 0 16px 36px rgba(0,174,239,.42);
  transform: translateY(-2px);
}

.scroll-top-button:focus-visible {
  outline: 3px solid rgba(99,212,255,.55);
  outline-offset: 3px;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, var(--reveal-y, 14px), 0);
  transition:
    opacity .58s cubic-bezier(.2,.7,.2,1),
    transform .58s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-ready [data-reveal-delay="1"] { transition-delay: .05s; }
.reveal-ready [data-reveal-delay="2"] { transition-delay: .10s; }
.reveal-ready [data-reveal-delay="3"] { transition-delay: .15s; }

.reviews-section {
  position: relative;
  overflow: hidden;
}

.reviews-section::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -180px;
  top: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,.12), transparent 68%);
  pointer-events: none;
}

.reviews-layout {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 18px;
  align-items: stretch;
}

.google-review-badge,
.google-review-copy {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, #151a20, #0f1317);
  box-shadow: var(--shadow);
}

.google-review-badge {
  min-height: 285px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.google-review-mark {
  width: 66px;
  height: 66px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(0,174,239,.11);
  border: 1px solid rgba(99,212,255,.18);
  color: var(--accent-2);
}

.google-review-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.google-review-badge strong {
  display: block;
  margin-top: 26px;
  font-size: 1.45rem;
  letter-spacing: -.025em;
}

.google-review-badge p,
.google-review-copy p {
  color: var(--muted);
}

.google-review-copy {
  padding: 38px;
  display: grid;
  align-content: center;
}

.google-review-copy h3 {
  margin: 8px 0 12px;
  max-width: 660px;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.google-review-copy p {
  max-width: 690px;
  margin: 0 0 24px;
  font-size: 1.02rem;
}

.google-review-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.google-review-note {
  color: var(--muted);
  font-size: .86rem;
}

.privacy-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 175px 0 66px;
  background:
    linear-gradient(90deg, rgba(5,8,10,.96), rgba(5,8,10,.72) 58%, rgba(5,8,10,.30)),
    linear-gradient(180deg, rgba(5,8,10,.08), #090b0d 100%),
    url('/images/IMG_3322.jpeg') center/cover no-repeat;
}

.privacy-hero h1 {
  max-width: 820px;
  margin: 18px 0 14px;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.05em;
}

.privacy-hero h1 span { color: var(--accent); }
.privacy-hero p { max-width: 720px; color: #d2d8df; font-size: 1.05rem; }

.privacy-section { padding: 76px 0 92px; }
.privacy-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 24px; align-items: start; }

.privacy-summary,
.privacy-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, #151a20, #0f1317);
  box-shadow: var(--shadow);
}

.privacy-summary {
  padding: 28px;
  position: sticky;
  top: 24px;
}

.privacy-summary p,
.privacy-card p,
.privacy-card li { color: var(--muted); }
.privacy-summary strong { display: block; margin-bottom: 8px; font-size: 1.15rem; }

.privacy-card { padding: 34px; }
.privacy-card section + section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.privacy-card h2 { margin: 0 0 10px; font-size: 1.45rem; letter-spacing: -.02em; }
.privacy-card p { margin: 0 0 12px; }
.privacy-card ul { margin: 10px 0 0; padding-left: 22px; }
.privacy-card a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.footer-privacy-link {
  margin-left: 14px;
  color: #98a1ab;
}

@media (max-width: 900px) {
  .brand {
    max-width: calc(100% - 62px);
  }

  .brand img {
    width: min(220px, calc(100vw - 120px));
    max-height: 78px;
  }

  .hero-content {
    padding-top: 180px;
  }

  .reviews-layout,
  .privacy-layout { grid-template-columns: 1fr; }
  .privacy-summary { position: static; }
}

@media (max-width: 620px) {
  .topbar {
    padding-top: 18px;
  }

  .brand img {
    width: min(190px, calc(100vw - 108px));
    max-height: 68px;
  }

  .hero-content {
    padding-top: 175px;
  }

  .scroll-top-button {
    top: 16px;
    left: 16px;
    right: auto;
    width: 46px;
    height: 46px;
  }

  .scroll-top-button svg {
    width: 21px;
    height: 21px;
  }

  .google-review-badge,
  .google-review-copy { border-radius: 19px; }
  .google-review-badge { min-height: 235px; padding: 25px; }
  .google-review-copy { padding: 26px; }
  .privacy-hero { min-height: 390px; padding: 175px 0 54px; }
  .privacy-hero h1 { font-size: 3rem; }
  .privacy-section { padding: 56px 0 78px; }
  .privacy-summary,
  .privacy-card { padding: 22px; border-radius: 19px; }
  .footer-privacy-link { display: inline-block; margin: 8px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-top-button {
    transition: none;
  }
}
