/* ============================================================
   VALLEY SUDS — styles.css
   ------------------------------------------------------------
   TABLE OF CONTENTS
     1. Design tokens (colors, fonts, spacing)
     2. Base / reset
     3. Buttons
     4. Launch special banner
     5. Sticky nav
     6. Hero
     7. Sections (shared)
     8. Services & pricing
     9. Bundles
    10. Gallery
    11. Reviews
    12. Service area
    13. About
    14. Quote form + contact
    15. Footer
    16. Reveal-on-scroll animation
    17. Responsive breakpoints
   ------------------------------------------------------------
   Brand colors are sampled directly from the logo file.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colors (sampled from assets/logo.svg) */
  --navy: #224E68;          /* logo text & ring — headings, nav */
  --navy-dark: #18394d;     /* hover / deep accents */
  --blue: #1DA4E2;          /* logo water drops — links, accents */
  --blue-light: #5EC4F3;    /* logo light arcs */
  --blue-pale: #EAF6FD;     /* tinted section backgrounds */
  --gold: #FFCC00;          /* logo sun — primary CTA buttons */
  --gold-deep: #EEB850;     /* logo trunk highlight — CTA hover */
  --ink: #2b3b46;           /* body text */
  --ink-soft: #5a6b77;      /* secondary text */
  --bg: #ffffff;
  --bg-soft: #f7fbfe;       /* very light blue-white for alt sections */
  --card-border: #e3edf4;
  --shadow: 0 2px 10px rgba(34, 78, 104, 0.08);
  --shadow-lift: 0 8px 24px rgba(34, 78, 104, 0.14);

  /* Type */
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1100px;
  --radius: 14px;
  --radius-btn: 999px;
  --header-h: 72px;
}

/* ---------- 2. Base / reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* keeps anchored sections from hiding under the sticky header */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400; /* Archivo Black is already heavy */
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: 0.5px;
}

p { margin: 0 0 1em; }
a { color: var(--blue); }
ul { padding: 0; margin: 0; list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Honeypot field — invisible to humans, visible to spam bots */
.visually-hidden-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  padding: 0.75em 1.6em;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* Primary = gold (logo sun color) with navy text for contrast */
.btn--primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--gold-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* Secondary = outlined navy */
.btn--secondary {
  background: var(--bg);
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover, .btn--secondary:focus-visible {
  background: var(--blue-pale);
  transform: translateY(-2px);
}

.btn--lg { font-size: 1.125rem; padding: 0.85em 2em; }

/* ---------- 4. Launch special banner ---------- */
.special-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  padding: 9px 44px 9px 16px;
  position: relative;
  text-align: center;
  font-size: 0.95rem;
}
.special-banner p { margin: 0; }
.special-banner strong { color: var(--gold); }
.special-banner__close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
  opacity: 0.8;
}
.special-banner__close:hover { opacity: 1; }

/* ---------- 5. Sticky nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav__logo { width: 44px; height: 44px; }
.nav__brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav__links {
  display: flex;
  gap: 26px;
}
.nav__links a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav__links a:hover, .nav__links a:focus-visible {
  color: var(--blue);
  border-bottom-color: var(--gold);
}

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta { white-space: nowrap; }

/* Hamburger (hidden on desktop) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
/* turns into an X when open */
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 50% -150px, var(--blue-pale) 0%, rgba(255,255,255,0) 70%),
    var(--bg);
  padding: 56px 0 72px;
  text-align: center;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__logo {
  width: min(270px, 60vw);
  height: auto;
  margin-bottom: 28px;
}
.hero__headline {
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  max-width: 18ch;
  margin: 0 auto 0.4em;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 1.8em;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---------- 7. Sections (shared) ---------- */
.section { padding: 76px 0; }
.section--alt { background: var(--bg-soft); }

.section__title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  text-align: center;
}
.section__title--left { text-align: left; }
.section__subtitle {
  text-align: center;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 auto 2.6em;
  font-size: 1.05rem;
}

/* ---------- 8. Services & pricing ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--blue);
  background: var(--blue-pale);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 14px;
}
.service-card__name {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}
.service-card__desc {
  color: var(--ink-soft);
  font-size: 0.97rem;
  flex-grow: 1;
}
.service-card__price {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.service-card__price strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-left: 6px;
  letter-spacing: 0.5px;
}

/* "Don't see what you need?" note */
.custom-note {
  margin-top: 40px;
  text-align: center;
  background: var(--blue-pale);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.custom-note p {
  font-weight: 600;
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 0.9em;
}

/* ---------- 9. Bundles ---------- */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  align-items: stretch;
}
/* all five bundles on one row on wide screens */
@media (min-width: 1040px) {
  .bundles-grid { grid-template-columns: repeat(5, 1fr); }
}

.bundle-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 22px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bundle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.bundle-card__name { font-size: 1.2rem; margin-bottom: 0.3em; }
.bundle-card__includes {
  color: var(--ink-soft);
  font-size: 0.93rem;
  flex-grow: 1;
}
.bundle-card__price {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.bundle-card__price strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--navy);
}

/* "Most popular" highlighted card */
.bundle-card--popular {
  border-color: var(--gold);
  border-width: 2.5px;
  box-shadow: var(--shadow-lift);
  transform: scale(1.03);
}
.bundle-card--popular:hover { transform: scale(1.03) translateY(-4px); }
.bundle-card__ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
}

/* Premium ("The Works") card gets a navy treatment */
.bundle-card--premium { background: var(--navy); border-color: var(--navy); }
.bundle-card--premium .bundle-card__name { color: var(--gold); }
.bundle-card--premium .bundle-card__includes { color: #cfe3ef; }
.bundle-card--premium .bundle-card__price { color: #cfe3ef; }
.bundle-card--premium .bundle-card__price strong { color: #fff; }

.bundles-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 28px 0 0;
}

/* ---------- 10. Gallery ---------- */
.gallery-grid {
  /* even column counts keep each Before next to its After */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); max-width: none; }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder blocks shown until real photos are added */
.gallery-item--placeholder-before { background: linear-gradient(160deg, var(--navy) 0%, #3a6f8f 100%); }
.gallery-item--placeholder-after  { background: linear-gradient(160deg, var(--gold) 0%, var(--gold-deep) 100%); }
.gallery-item__placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.gallery-item--placeholder-before .gallery-item__placeholder-text { color: #fff; }
.gallery-item--placeholder-after .gallery-item__placeholder-text { color: var(--navy); }

/* Label chip shown on real photos */
.gallery-item__label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-btn);
}

/* ---------- 11. Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 2.2em;
}

.review-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.review-card__stars {
  color: var(--gold);
  font-size: 1.15rem;
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.review-card__text {
  flex-grow: 1;
  color: var(--ink);
  font-size: 0.98rem;
}
.review-card__author {
  margin: 14px 0 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.review-card__author span {
  color: var(--ink-soft);
  font-weight: 400;
}

.reviews-cta { text-align: center; margin-top: 34px; }

/* ---------- 12. Service area ---------- */
.city-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}
.city-chips li {
  background: var(--blue-pale);
  color: var(--navy);
  border: 1px solid #cfe8f7;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  font-size: 0.98rem;
}
.city-chips li::before {
  content: "📍 ";
  font-size: 0.85em;
}

/* ---------- 13. About ---------- */
.about {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: center;
}

.about__photo img,
.about__photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.about__photo-placeholder {
  background: linear-gradient(170deg, var(--blue-pale), #d8eefb);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}
.about__photo-placeholder img {
  width: 110px;
  aspect-ratio: auto;
  box-shadow: none;
  border-radius: 0;
}

.about__text p { color: var(--ink); font-size: 1.05rem; }

.about__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.about__badges li {
  background: var(--bg);
  border: 1.5px solid var(--gold);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: var(--radius-btn);
}
.about__badges li::before { content: "✓ "; color: var(--gold-deep); }

/* ---------- 14. Quote form + contact ---------- */
.section--quote {
  /* visually distinct light-blue tint for the conversion section */
  background: linear-gradient(180deg, var(--blue-pale) 0%, #dff1fc 100%);
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
  align-items: start;
}

.quote-form {
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 32px 28px;
}

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

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.94rem;
  margin-bottom: 6px;
}
.form-field .req { color: #d23f31; }
.form-field .optional { color: var(--ink-soft); font-weight: 400; font-size: 0.85em; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 164, 226, 0.18);
}
.form-field input.is-invalid { border-color: #d23f31; }
.form-field textarea { resize: vertical; }

.form-error {
  color: #d23f31;
  font-size: 0.85rem;
  margin: 5px 0 0;
}

.quote-form__submit { width: 100%; margin-top: 6px; }

.form-status {
  margin: 16px 0 0;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
}
.form-status--success { background: #e7f7ec; color: #1c6b35; }
.form-status--error { background: #fdeceb; color: #b3261e; }

/* Direct contact card next to the form */
.direct-contact {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-lift);
}
.direct-contact h3 { color: #fff; font-size: 1.25rem; }
.direct-contact > p { color: #cfe3ef; font-size: 0.97rem; }
.direct-contact__list { margin-top: 18px; display: grid; gap: 10px; }
.direct-contact__link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  transition: background-color 0.15s ease, transform 0.15s ease;
  word-break: break-word;
}
.direct-contact__link:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ---------- 15. Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #b8cedd;
  padding: 44px 0 36px;
  text-align: center;
  font-size: 0.93rem;
}
.site-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.site-footer__logo { width: 56px; height: 56px; margin-bottom: 8px; }
.site-footer__name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.05rem;
  margin: 0;
}
.site-footer__contact { margin: 0; }
.site-footer__contact a { color: var(--blue-light); text-decoration: none; }
.site-footer__contact a:hover { text-decoration: underline; }
.site-footer__area { margin: 0; max-width: 60ch; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 10px 0 4px;
}
.site-footer__links a { color: var(--blue-light); text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__copyright { margin: 8px 0 0; opacity: 0.75; }

/* ---------- 16. Reveal-on-scroll animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* honor the user's "reduce motion" system setting */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .bundle-card, .direct-contact__link { transition: none; }
}

/* ---------- 17. Responsive breakpoints ---------- */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__photo { max-width: 320px; margin: 0 auto; width: 100%; }
  .quote-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  /* Mobile nav: hamburger + dropdown panel; quote button stays visible */
  .nav__hamburger { display: flex; }
  .nav__brand-text { display: none; }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow-lift);
    padding: 6px 0 10px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    display: block;
    padding: 13px 24px;
    border-bottom: none;
    font-size: 1.05rem;
  }

  .nav__cta { font-size: 0.9rem; padding: 0.65em 1.2em; }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero { padding: 40px 0 56px; }
  .hero__ctas .btn { width: 100%; max-width: 320px; }
  .bundle-card--popular { transform: none; }
  .bundle-card--popular:hover { transform: translateY(-4px); }
}
