/* Canterbury Cleaners — Premium Public Website Polish V2
   Visual-only layer. Existing content, pricing, forms, SEO and backend remain authoritative. */
:root {
  --cc-navy: #082744;
  --cc-navy-deep: #041b31;
  --cc-blue: #0b5f9b;
  --cc-blue-bright: #1386c7;
  --cc-green: #2f9b37;
  --cc-ink: #13293d;
  --cc-muted: #5d7080;
  --cc-surface: #ffffff;
  --cc-soft: #f5f8fb;
  --cc-soft-blue: #eef6fb;
  --cc-line: rgba(8, 39, 68, .11);
  --cc-shadow-sm: 0 10px 30px rgba(8, 39, 68, .08);
  --cc-shadow-md: 0 20px 52px rgba(8, 39, 68, .13);
  --cc-shadow-lg: 0 30px 80px rgba(4, 27, 49, .18);
  --cc-radius-sm: 14px;
  --cc-radius: 22px;
  --cc-radius-lg: 30px;
  --cc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: border-box; }
body {
  color: var(--cc-ink);
  background: var(--cc-surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection { background: rgba(19, 134, 199, .18); color: var(--cc-navy-deep); }

/* Keyboard access */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(19, 134, 199, .36) !important;
  outline-offset: 3px !important;
  border-radius: 10px;
}

/* Header: refined glass, same structure */
.site-header,
.site-header.cc-final-header {
  transition: background-color .34s var(--cc-ease), box-shadow .34s var(--cc-ease),
              border-color .34s var(--cc-ease), transform .34s var(--cc-ease) !important;
}
.site-header.cc-final-header.cc-is-scrolled,
body.cc-premium-scrolled .site-header {
  background: rgba(255, 255, 255, .94) !important;
  border-color: rgba(8, 39, 68, .09) !important;
  box-shadow: 0 16px 42px rgba(8, 39, 68, .11) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}
.site-header nav a,
.cc-desktop-nav a {
  position: relative;
  transition: color .25s ease, transform .25s var(--cc-ease), background-color .25s ease !important;
}
.site-header nav a:not(.cc-phone-pill)::after,
.cc-desktop-nav a:not(.cc-phone-pill)::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%; bottom: -5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cc-blue), var(--cc-green));
  transition: left .28s var(--cc-ease), right .28s var(--cc-ease), opacity .28s ease;
  opacity: 0;
}
.site-header nav a:not(.cc-phone-pill):hover::after,
.cc-desktop-nav a:not(.cc-phone-pill):hover::after { left: 12%; right: 12%; opacity: .9; }

/* Hero: same image/content, more depth */
.premium-hero,
.hero {
  position: relative;
  isolation: isolate;
}
.premium-hero::before,
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 26%, rgba(73, 183, 238, .15), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 34%);
}
.premium-hero .hero-content,
.hero .hero-copy,
.hero .hero-media { position: relative; z-index: 1; }
.premium-hero h1,
.hero h1 {
  text-wrap: balance;
  text-shadow: 0 12px 32px rgba(4, 27, 49, .16);
}
.premium-hero p,
.hero-copy > p { text-wrap: pretty; }
.hero-media {
  overflow: hidden;
  border-radius: var(--cc-radius-lg) !important;
  box-shadow: var(--cc-shadow-lg);
  transition: transform .5s var(--cc-ease), box-shadow .5s var(--cc-ease);
}
@media (hover:hover) and (pointer:fine) {
  .hero-media:hover { transform: translateY(-3px) scale(1.006); box-shadow: 0 34px 88px rgba(4,27,49,.22); }
}

/* Page-load sequence, enabled only after JS confirms motion is allowed */
.cc-motion-ready .cc-hero-item {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}
.cc-motion-ready.cc-hero-loaded .cc-hero-item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity .62s var(--cc-ease), transform .62s var(--cc-ease);
  transition-delay: var(--cc-hero-delay, 0ms);
}

/* Grouped scroll reveals; content remains visible when JS is absent */
.cc-motion-ready .cc-reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity .52s var(--cc-ease), transform .52s var(--cc-ease);
  transition-delay: var(--cc-reveal-delay, 0ms);
  will-change: opacity, transform;
}
.cc-motion-ready .cc-reveal.cc-reveal-scale { transform: translate3d(0, 12px, 0) scale(.985); }
.cc-motion-ready .cc-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Section rhythm */
main > .section,
main > section.section,
.services-section,
.packages-section,
.google-reviews-section,
.signature-section,
.quote-section,
.process-section,
.areas-section,
.faq-section,
.contact-section {
  position: relative;
  scroll-margin-top: 120px;
}
.services-section,
.google-reviews-section,
.process-section,
.faq-section { background-image: linear-gradient(180deg, rgba(238,246,251,.42), rgba(255,255,255,0)); }
.packages-section,
.quote-section { background-image: radial-gradient(circle at 10% 0%, rgba(19,134,199,.07), transparent 28%); }

/* Premium cards */
.service-card,
.premium-why-card,
.package-card,
.review-card,
.testimonial-card,
.process-card,
.process-step,
.detail-grid > *,
.intro-grid > * {
  border-color: var(--cc-line) !important;
  box-shadow: var(--cc-shadow-sm) !important;
  transition: transform .32s var(--cc-ease), box-shadow .32s var(--cc-ease),
              border-color .32s ease, background-color .32s ease !important;
  backface-visibility: hidden;
}
@media (hover:hover) and (pointer:fine) {
  .service-card:hover,
  .premium-why-card:hover,
  .package-card:hover,
  .review-card:hover,
  .testimonial-card:hover,
  .process-card:hover,
  .process-step:hover,
  .detail-grid > *:hover,
  .intro-grid > *:hover {
    transform: translateY(-4px);
    border-color: rgba(19, 134, 199, .22) !important;
    box-shadow: var(--cc-shadow-md) !important;
  }
  .service-card:hover svg,
  .premium-why-card:hover svg,
  .package-card:hover svg { transform: translateY(-2px); }
}
.service-card svg,
.premium-why-card svg,
.package-card svg { transition: transform .3s var(--cc-ease); }

/* Buttons */
.button,
.btn,
button[type="submit"],
input[type="submit"] {
  transition: transform .22s var(--cc-ease), box-shadow .22s var(--cc-ease),
              background-color .22s ease, border-color .22s ease, color .22s ease !important;
  transform: translateZ(0);
}
@media (hover:hover) and (pointer:fine) {
  .button:hover,
  .btn:hover,
  button[type="submit"]:hover,
  input[type="submit"]:hover { transform: translateY(-2px); }
}
.button:active,
.btn:active,
button[type="submit"]:active,
input[type="submit"]:active { transform: translateY(0) scale(.985) !important; }

/* Trust / why */
.premium-why-section { position: relative; }
.premium-why-section::before {
  content: "";
  position: absolute;
  inset: 10% 4% auto auto;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(19,134,199,.055);
  filter: blur(18px);
  pointer-events: none;
}

/* Reviews */
.google-reviews-section,
.reviews-section {
  background-color: #f8fbfd !important;
}
.google-reviews-section .review-card,
.reviews-section .review-card,
.testimonial-card { background: rgba(255,255,255,.94) !important; }
.google-reviews-section [class*="star"],
.reviews-section [class*="star"] { filter: drop-shadow(0 3px 6px rgba(209,153,0,.12)); }

/* Calculator / quote */
.quote-section {
  isolation: isolate;
}
.quote-section::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  right: -160px; top: 40px;
  border-radius: 50%;
  background: rgba(19,134,199,.07);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}
.quote-section form,
.quote-section .estimate-card,
.quote-section .quote-estimate,
.quote-section aside {
  border-color: var(--cc-line) !important;
  box-shadow: var(--cc-shadow-sm) !important;
}
input,
select,
textarea {
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease !important;
}
input:hover,
select:hover,
textarea:hover { border-color: rgba(11,95,155,.25) !important; }
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(11,95,155,.62) !important;
  box-shadow: 0 0 0 4px rgba(19,134,199,.10) !important;
}
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--cc-ink);
  box-shadow: 0 0 0 1000px #f8fbfd inset !important;
}
#visit-price,
#monthly-price,
#base-price,
#addon-total-price,
#ongoing-visit-price { display: inline-block; }
.cc-price-updated { animation: ccPriceUpdate .34s var(--cc-ease); }
@keyframes ccPriceUpdate {
  0% { opacity: .62; transform: translate3d(0, 6px, 0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* CTA + footer */
.contact-section,
.cta {
  position: relative;
  overflow: hidden;
}
.contact-section::after,
.cta::after {
  content: "";
  position: absolute;
  inset: auto -8% -55% auto;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(73,183,238,.08);
  pointer-events: none;
}
.site-footer {
  background: linear-gradient(145deg, var(--cc-navy-deep), var(--cc-navy)) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.03);
}
.site-footer a { transition: color .22s ease, opacity .22s ease, transform .22s var(--cc-ease); }
@media (hover:hover) and (pointer:fine) { .site-footer a:hover { transform: translateY(-1px); } }

/* Floating social */
.floating-facebook,
.floating-contact-buttons a {
  transition: transform .25s var(--cc-ease), box-shadow .25s var(--cc-ease), filter .25s ease !important;
}
@media (hover:hover) and (pointer:fine) {
  .floating-facebook:hover,
  .floating-contact-buttons a:hover { transform: translateY(-3px) scale(1.025); filter: saturate(1.06); }
}

/* Secondary service pages */
body .topline { letter-spacing: .01em; }
body > .site-header { border-bottom-color: rgba(8,39,68,.08); }
body > main > .hero {
  border-bottom: 1px solid rgba(8,39,68,.06);
}
body > main > .trust-strip { box-shadow: 0 12px 30px rgba(8,39,68,.05); }
body > main > .section { scroll-margin-top: 110px; }


/* Responsive integrity: neutralise historical content-box overflow in legacy sections. */
.trust-band,
.eco-premium-final,
.signature-banner,
.contact-section {
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.eco-premium-final > *,
.eco-premium-final .eco-copy,
.eco-premium-final .eco-benefits,
.eco-premium-final .eco-benefit {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.eco-premium-final .eco-benefit strong,
.eco-premium-final .eco-benefit span,
.eco-premium-final h2,
.eco-premium-final .eco-lede {
  max-width: 100% !important;
  overflow-wrap: anywhere;
}
#quote input,
#quote select,
#quote textarea,
#quote button {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.cc-final-header .cc-mobile-menu a {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 1100px) {
  .trust-band, .signature-banner { width: 100% !important; }
}
@media (max-width: 768px) {
  .eco-section.eco-premium-final {
    width: calc(100% - 24px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .signature-banner { width: 100% !important; padding-left: 16px !important; padding-right: 16px !important; }
  .contact-section { width: calc(100% - 16px) !important; margin-left: auto !important; margin-right: auto !important; }
  .cc-final-header .cc-mobile-menu { left: 10px !important; right: 10px !important; max-width: calc(100vw - 20px) !important; }
}

/* Mobile menu and compact screens */
@media (max-width: 768px) {
  .cc-mobile-menu,
  .mobile-slide-menu {
    transition: opacity .28s var(--cc-ease), transform .28s var(--cc-ease), visibility .28s ease !important;
  }
  .premium-hero,
  .hero { min-height: auto !important; }
  .premium-hero .hero-content,
  .hero-copy { max-width: 100% !important; }
  .service-card,
  .premium-why-card,
  .package-card,
  .review-card,
  .testimonial-card { transform: none; }
  .floating-facebook,
  .floating-contact-buttons { z-index: 40 !important; }
}

@media (max-width: 430px) {
  body { min-width: 0; }
  .section, main > section { max-width: 100%; }
  .button, .btn, button[type="submit"] { min-height: 46px; }
  .floating-contact-buttons { right: 12px !important; bottom: 12px !important; }
}
@media (max-width: 390px) {
  .premium-hero h1, .hero h1 { text-wrap: pretty; }
  input, select, textarea { max-width: 100%; }
}
@media (max-width: 375px) {
  .button, .btn { max-width: 100%; }
  .hero-actions { gap: 10px !important; }
}
@media (max-width: 360px) {
  .premium-hero .hero-content, .hero-copy { padding-inline: 0 !important; }
  .floating-contact-buttons a { width: 50px !important; height: 50px !important; }
}
@media (max-width: 320px) {
  .site-header.cc-final-header { padding-left: 8px !important; padding-right: 8px !important; }
  .premium-hero h1, .hero h1 { font-size: 1.65rem !important; }
  .button, .btn, button[type="submit"] { font-size: .9rem; padding-left: 14px !important; padding-right: 14px !important; }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .cc-reveal,
  .cc-hero-item { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   GOOGLE-STYLE REVIEW CARDS V2.1
   Familiar Google review-card structure. Review content only;
   pricing, forms, SEO and booking logic remain untouched.
   ========================================================= */
.google-reviews-section.manual-google-reviews {
  background: #f8f9fa !important;
}
.google-reviews-section.manual-google-reviews .reviews-shell {
  max-width: 1180px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.google-reviews-section.manual-google-reviews .reviews-shell::before { display: none !important; }
.google-reviews-section.manual-google-reviews .premium-review-highlights { margin-bottom: 28px !important; }
.google-reviews-section.manual-google-reviews .manual-review-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  align-items: stretch !important;
  margin-top: 24px !important;
}
.google-reviews-section.manual-google-reviews .google-style-review-card {
  min-width: 0 !important;
  padding: 22px 22px 24px !important;
  border-radius: 12px !important;
  background: #fff !important;
  border: 1px solid #dadce0 !important;
  box-shadow: 0 1px 2px rgba(60,64,67,.08), 0 1px 3px rgba(60,64,67,.08) !important;
  text-align: left !important;
  overflow: visible !important;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease !important;
}
.google-reviews-section.manual-google-reviews .google-style-review-card::before { display: none !important; }
@media (hover:hover) and (pointer:fine) {
  .google-reviews-section.manual-google-reviews .google-style-review-card:hover {
    transform: translateY(-2px) !important;
    border-color: #c9cdd2 !important;
    box-shadow: 0 3px 8px rgba(60,64,67,.16), 0 1px 3px rgba(60,64,67,.10) !important;
  }
}
.google-reviews-section.manual-google-reviews .review-card-top {
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) 26px !important;
  align-items: start !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}
.google-reviews-section.manual-google-reviews .review-avatar {
  position: relative !important;
  width: 46px !important;
  height: 46px !important;
  flex: 0 0 46px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #5f6368 !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.28rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}
.google-reviews-section.manual-google-reviews .review-avatar.zelda-avatar { background: #7b1fa2 !important; }
.google-reviews-section.manual-google-reviews .review-avatar.local-guide:not(.zelda-avatar) { background: #0b8043 !important; }
.google-reviews-section.manual-google-reviews .local-guide-badge {
  position: absolute !important;
  right: -2px !important;
  bottom: -2px !important;
  width: 15px !important;
  height: 15px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc04 0 75%, #ea4335 0) !important;
  color: #fff !important;
  font-size: 7px !important;
  line-height: 1 !important;
}
.google-reviews-section.manual-google-reviews .reviewer-details { min-width: 0 !important; padding-top: 1px !important; }
.google-reviews-section.manual-google-reviews .review-card-top h3 {
  margin: 0 !important;
  color: #202124 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: 0 !important;
}
.google-reviews-section.manual-google-reviews .review-card-top .review-meta {
  margin: 2px 0 0 !important;
  color: #5f6368 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}
.google-reviews-section.manual-google-reviews .review-menu-dots {
  width: 26px !important;
  height: 26px !important;
  display: inline-flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  color: #5f6368 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  user-select: none !important;
}
.google-reviews-section.manual-google-reviews .review-rating-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  min-height: 22px !important;
  margin: 2px 0 12px !important;
}
.google-reviews-section.manual-google-reviews .review-rating-row .review-stars {
  display: inline-block !important;
  margin: 0 !important;
  color: #fbbc04 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  filter: none !important;
  text-shadow: none !important;
}
.google-reviews-section.manual-google-reviews .review-age {
  color: #5f6368 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
}
.google-reviews-section.manual-google-reviews .google-style-review-card .review-copy {
  margin: 0 !important;
  color: #3c4043 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 980px) {
  .google-reviews-section.manual-google-reviews .manual-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .google-reviews-section.manual-google-reviews .manual-review-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .google-reviews-section.manual-google-reviews .google-style-review-card { padding: 18px !important; border-radius: 10px !important; }
  .google-reviews-section.manual-google-reviews .review-card-top { grid-template-columns: 42px minmax(0, 1fr) 24px !important; gap: 10px !important; }
  .google-reviews-section.manual-google-reviews .review-avatar { width: 42px !important; height: 42px !important; flex-basis: 42px !important; font-size: 1.16rem !important; }
  .google-reviews-section.manual-google-reviews .review-card-top h3 { font-size: 15px !important; }
  .google-reviews-section.manual-google-reviews .google-style-review-card .review-copy { font-size: 14.5px !important; line-height: 1.52 !important; }
}
