/* ============================================================
   Cessnock Laundromat — styles.css
   Palette pulled from the logo: deep navy, bubble blues, foam.
   ============================================================ */

:root {
  --navy:       #1B2668;   /* logo navy */
  --navy-deep:  #121A4A;
  --blue:       #2A41A8;
  --sky:        #A9DCF5;   /* logo bubble blue */
  --sky-light:  #CDEAF8;
  --foam:       #EFF8FD;   /* near-white section background */
  --white:      #FFFFFF;
  --sun:        #FFC93C;   /* CTA accent — detergent yellow */
  --sun-deep:   #F0AE00;
  --ink:        #20254A;   /* body text on light */
  --ink-soft:   #5A6080;
  --star:       #FBBC04;   /* Google review gold */
  --radius:     22px;
  --shadow:     0 12px 32px rgba(27, 38, 104, 0.12);
  --shadow-lg:  0 20px 48px rgba(27, 38, 104, 0.18);
  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body:    "Nunito", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; color: var(--navy); }

h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.4em; }

.section-kicker {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--sky-light);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-intro { max-width: 640px; color: var(--ink-soft); font-size: 1.08rem; }

.container { width: min(1140px, 92vw); margin: 0 auto; position: relative; z-index: 2; }

section { padding: 88px 0; position: relative; }

a { color: var(--blue); }

/* ---------- Floating bubbles canvas (suds!) ---------- */
#bubbles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

main, header.site-header, footer { position: relative; z-index: 1; }

/* ---------- Drip scroll progress (right edge) ---------- */
.drip-track {
  position: fixed;
  top: 0; right: 14px;
  width: 4px; height: 100vh;
  background: rgba(169, 220, 245, 0.35);
  border-radius: 2px;
  z-index: 50;
}
.drip-drop {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 16px; height: 16px;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  border-radius: 50% 0 50% 50%;
  box-shadow: 0 4px 10px rgba(42, 65, 168, 0.4);
  transition: top 0.08s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 18px rgba(27, 38, 104, 0.08);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.1;
}

.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.98rem;
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 3px;
  border-radius: 2px;
  background: var(--sun);
  transition: width 0.25s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-3px); }

.btn-sun {
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(240, 174, 0, 0.35);
}
.btn-navy { background: var(--navy); color: var(--white); box-shadow: var(--shadow); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(169, 220, 245, 0.25), transparent 60%),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 45%, var(--blue) 100%);
  color: var(--white);
  padding: 110px 0 150px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  margin-bottom: 0.35em;
}
.hero h1 .wavy { color: var(--sky); }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--sky-light);
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 34px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.hero-badges li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(169, 220, 245, 0.35);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-logo-wrap { display: grid; place-items: center; position: relative; }
.hero-logo-wrap img {
  width: min(380px, 80%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.35));
  animation: bubble-float 6s ease-in-out infinite;
  background: radial-gradient(circle at 32% 28%, #FFFFFF 60%, var(--sky-light) 100%);
  border: 3px solid rgba(205, 234, 248, 0.9);
  box-shadow: inset -10px -14px 30px rgba(169, 220, 245, 0.55);
  border-radius: 50%;
  padding: 28px;
  will-change: transform;
}

/* Drifts around like a soap bubble */
@keyframes bubble-float {
  0%, 100% { transform: translate(0, 0) rotate(-2deg) scale(1); }
  25%      { transform: translate(12px, -20px) rotate(1.5deg) scale(1.025); }
  50%      { transform: translate(-10px, -34px) rotate(-1deg) scale(0.985); }
  75%      { transform: translate(-16px, -12px) rotate(2.5deg) scale(1.015); }
}

/* Pops when you scroll down… */
.hero-logo-wrap img.popped { animation: bubble-pop 0.45s ease-out forwards; }
@keyframes bubble-pop {
  0%   { transform: scale(1); opacity: 1; }
  55%  { transform: scale(1.22); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* …and re-forms when you scroll back up */
.hero-logo-wrap img.reforming { animation: bubble-reform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes bubble-reform {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Burst particles spawned by main.js on pop */
.pop-bubble {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), rgba(169, 220, 245, 0.45));
  pointer-events: none;
  animation: burst 0.8s ease-out forwards;
}
@keyframes burst {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to   { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.25); }
}

/* ---------- Tide waves (roll back and forth like water) ---------- */
.wave-wrap {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 110px;
  overflow: hidden;
  pointer-events: none;
}
.wave-layer {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%;
  height: 100%;
  will-change: transform;
}
.wave-front { animation: tide-front 7s ease-in-out infinite alternate; }
.wave-back  { animation: tide-back 11s ease-in-out infinite alternate; }

@keyframes tide-front {
  from { transform: translateX(0) translateY(0); }
  to   { transform: translateX(-25%) translateY(5px); }
}
@keyframes tide-back {
  from { transform: translateX(-25%) translateY(4px); }
  to   { transform: translateX(0) translateY(0); }
}

/* ---------- Rates / services ---------- */
.rates { background: var(--white); }

.rate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}

.rate-card {
  background: var(--foam);
  border: 2px solid var(--sky-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.rate-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sky);
}
.rate-card .emoji { font-size: 2.4rem; display: block; margin-bottom: 10px; }
.rate-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.rate-card .price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--blue);
}
.rate-card .price small { font-size: 0.95rem; color: var(--ink-soft); font-weight: 700; }
.rate-card p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 8px; }

.rates-note {
  margin-top: 30px;
  background: var(--sky-light);
  border-radius: var(--radius);
  padding: 18px 24px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---------- Why us ---------- */
.why { background: var(--foam); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 44px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.why-card .icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--sky-light), var(--sky));
  margin-bottom: 16px;
}
.why-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why-card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Reviews ---------- */
.reviews { background: var(--navy); color: var(--white); }
.reviews h2, .reviews .section-kicker { color: var(--white); }
.reviews .section-kicker { background: rgba(169, 220, 245, 0.18); color: var(--sky); }
.reviews .section-intro { color: var(--sky-light); }

.stars { color: var(--star); letter-spacing: 3px; font-size: 1.25rem; }

/* 6th card: overall Google rating (keeps the grid a uniform 3×2) */
.rating-card {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  background: rgba(255, 201, 60, 0.10);
  border-color: rgba(255, 201, 60, 0.45);
}
.rating-card .big-rating {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: var(--sun);
  line-height: 1;
}
.rating-card a { color: var(--sky); font-weight: 800; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.review-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(169, 220, 245, 0.25);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-card .review-head { display: flex; align-items: center; gap: 12px; }
.review-card img.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--sky);
  background: var(--sky-light);
}
.review-card .avatar-fallback {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky); color: var(--navy);
  font-weight: 800; font-size: 1.1rem;
  border: 2px solid var(--sky-light);
}
.review-card .who { font-weight: 800; }
.review-card .when { font-size: 0.82rem; color: var(--sky-light); }
.review-card blockquote { font-size: 0.98rem; color: #E8F4FB; }

.reviews-cta {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.reviews-fallback {
  margin-top: 36px;
  text-align: center;
  color: var(--sky-light);
}

/* ---------- FAQ ---------- */
.faq { background: var(--white); }

.faq-list { margin-top: 40px; display: grid; gap: 14px; }

.faq-item {
  background: var(--foam);
  border: 2px solid var(--sky-light);
  border-radius: 18px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--blue);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- Find us ---------- */
.find-us { background: var(--foam); }

.find-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  margin-top: 44px;
  align-items: stretch;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 420px;
  border: 4px solid var(--white);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.info-card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.info-card address { font-style: normal; color: var(--ink-soft); }
.info-card a { font-weight: 700; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-bottom: 1px dashed var(--sky-light); }
.hours-table td:last-child { text-align: right; font-weight: 800; color: var(--navy); }
.hours-table tr.closed td:last-child { color: #C44; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--sky-light);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}
.site-footer h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.site-footer a { color: var(--sky); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-logo { height: 84px; width: auto; background: var(--white); border-radius: 50%; padding: 8px; margin-bottom: 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 10px; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(169, 220, 245, 0.15);
  font-size: 1.2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--blue); transform: translateY(-3px); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(169, 220, 245, 0.2);
  padding-top: 22px;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive card grids (always even rows: 3 → 2 → 1) ---------- */
@media (max-width: 980px) {
  .rate-grid, .why-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .rate-grid, .why-grid, .review-grid { grid-template-columns: 1fr; }
}

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  section { padding: 64px 0; }
  .hero { padding: 70px 0 130px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-badges { justify-content: center; }
  .hero-logo-wrap { order: -1; }
  .hero-logo-wrap img { width: min(240px, 60%); }
  .find-grid { grid-template-columns: 1fr; }
  .drip-track { display: none; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 22px;
    box-shadow: 0 18px 30px rgba(27, 38, 104, 0.15);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #bubbles, .drip-track, .pop-bubble { display: none; }
  .hero-logo-wrap img, .wave-layer { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
