/* Texas Wash and Haul — site stylesheet ("Bubble Pop" theme).
   Hand-rolled, no framework. Mobile-first; desktop rules under min-width queries.
   Sky blue + sunshine yellow + deep navy; rounded everything, soap-bubble motif.
   The accent slots are --sky (primary) and --sun (secondary) — swap those two
   custom properties to try a different accent. */

:root {
  --sky: #2aa7e8;
  --sky-dark: #1b86c2;
  --sky-deep: #16739f;
  --sun: #c8202f;
  --sun-dark: #a51b28;
  --sun-deep: #8f1622;
  --navy: #143a56;
  --navy-dark: #0d2a41;
  --paper: #f2f8fd;
  --tint: #eaf4fd;
  --white: #ffffff;
  --ink: #143a56;
  --ink-soft: #4a7089;
  --line: #d5e6f4;
  --radius: 24px;
  --radius-sm: 14px;
  --pill: 999px;
  --shadow: 0 4px 16px rgba(20, 58, 86, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Rounded MT Bold", "Segoe UI", system-ui, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  /* keep content clear of the fixed mobile call bar */
  padding-bottom: 3.5rem;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--sky-deep); }
a:hover { color: var(--sky-dark); }

ul { padding-left: 1.2em; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: var(--pill);
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--sky);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(42, 167, 232, 0.35);
}
.btn-primary:hover {
  background: var(--sky-dark);
  color: var(--white);
}

.btn-outline {
  background: var(--sun);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--sun-dark);
  color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--white);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.brand-logo {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-name {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.brand-name b { color: var(--sky); }

.site-nav {
  display: none;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--sun);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1.1rem;
}

.phone-link {
  text-decoration: none;
  text-align: right;
  line-height: 1.2;
}
.phone-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.phone-number {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
}

/* Mobile nav: CSS-only checkbox toggle */
.nav-toggle { display: none; }

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle-label span {
  width: 24px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 1rem 1.25rem 1.25rem;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: var(--shadow);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.mobile-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { margin-top: 0.75rem; border-bottom: none; color: var(--white); }

.nav-toggle:checked ~ .mobile-nav { display: flex; }

@media (min-width: 900px) {
  .site-nav { display: flex; }
  .header-actions { display: flex; }
  .nav-toggle-label, .mobile-nav { display: none !important; }
  body { padding-bottom: 0; }
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 100%);
  color: var(--ink);
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

/* soap bubble field (elements come from Bubbles.astro) */
.bubble-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bubble-field i {
  position: absolute;
  left: var(--left);
  bottom: var(--bottom);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95), rgba(42, 167, 232, 0.14) 60%, rgba(42, 167, 232, 0.26));
  border: 1px solid rgba(42, 167, 232, 0.25);
  opacity: 0.55;
}

.hero .container { position: relative; z-index: 1; }

.hero h1 { color: var(--navy); }
.hero h1 em {
  font-style: normal;
  color: var(--sky);
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.95rem;
}
.hero-points li::before {
  content: "\25CF\0020";
  color: var(--sun);
}

/* ---------- Sections ---------- */

.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-alt {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
}
.section-navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}
.section-navy h2 { color: var(--white); }

.section-intro {
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--sky-dark);
  margin-bottom: 0.5rem;
}
.section-navy .eyebrow { color: #ff9ba3; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--tint);
  border: none;
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}

/* alternate cards get the red tint */
.card-grid > .card:nth-child(even) { background: #fdeeee; }

.card .btn { margin-top: auto; align-self: flex-start; }

.card-service h3 {
  font-size: 1.45rem;
}

.card ul {
  margin: 0 0 1.25rem;
  padding-left: 0;
  list-style: none;
  color: var(--ink-soft);
}
.card ul li {
  margin-bottom: 0.4em;
  padding-left: 1.3em;
  position: relative;
}
.card ul li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--sky);
  font-weight: 800;
}
.card-grid > .card:nth-child(even) ul li::before { color: var(--sun-deep); }

.card-trust {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}
.card-trust h3 { color: var(--white); font-size: 1.05rem; }
.card-trust p { color: rgba(255, 255, 255, 0.75); margin: 0; font-size: 0.95rem; }
.card-grid > .card-trust:nth-child(even) { background: rgba(255, 255, 255, 0.08); }

/* ---------- Area sections ---------- */

.area-block {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.area-block h3 { font-size: 1.3rem; }
.area-split { display: grid; gap: 1rem; margin-top: 0.75rem; }
@media (min-width: 700px) {
  .area-split { grid-template-columns: 1fr 1fr; }
}
.area-split h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky-dark);
  margin-bottom: 0.3rem;
}
.area-split p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }

.area-more { margin: 0.9rem 0 0; font-size: 0.92rem; font-weight: 700; }

/* ---------- Price tables (cost guides) ---------- */

.price-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 1.5rem 0 1rem;
}

.price-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table tr:last-child td { border-bottom: none; }

.price-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  background: var(--tint);
}

.price-table td:first-child { font-weight: 700; color: var(--navy); }

.price-range {
  font-weight: 800;
  color: var(--sky-deep);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-table td:last-child { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 1.5rem; }

.faq-list details {
  background: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.faq-list summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}

.faq-list details[open] summary { margin-bottom: 0.5rem; }
.faq-list details p { margin: 0; color: var(--ink-soft); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(255, 255, 255, 0.8); margin-bottom: 1.25rem; }
.cta-band a:not(.btn) { color: #7fd0f5; }
.cta-band .btn-navy {
  background: var(--sun);
  color: var(--white);
}
.cta-band .btn-navy:hover { background: var(--sun-dark); color: var(--white); }
.cta-band .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.cta-band .phone-big {
  color: #7fd0f5;
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  align-self: center;
}

/* ---------- Forms ---------- */

.quote-form {
  background: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  max-width: 44rem;
}

.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.form-required { color: var(--sky-dark); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: var(--tint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid var(--sky);
  outline-offset: 1px;
  border-color: var(--sky);
}

.quote-form button.btn { border: none; cursor: pointer; font: inherit; font-weight: 800; }

.form-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.contact-info {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-info h3 { color: var(--white); }
.contact-info a { color: #7fd0f5; font-weight: 700; text-decoration: none; }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.contact-info li:last-child { border-bottom: none; }
.contact-info .contact-phone-big {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin: 0.25rem 0 0.75rem;
}

/* ---------- Page title strip ---------- */

.page-title {
  background: linear-gradient(180deg, #dceefb, var(--tint));
  color: var(--ink);
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  position: relative;
  overflow: hidden;
}
.page-title::after {
  content: "";
  position: absolute;
  width: 7rem;
  height: 7rem;
  right: 8%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.95), rgba(42, 167, 232, 0.12) 60%, rgba(42, 167, 232, 0.22));
  border: 1px solid rgba(42, 167, 232, 0.22);
  pointer-events: none;
}
.page-title .container { position: relative; z-index: 1; }
.page-title-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

.service-badge {
  display: none;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
@media (min-width: 700px) {
  .service-badge { display: block; }
}

.page-title h1 { color: var(--navy); margin-bottom: 0.25em; }
.page-title p {
  color: var(--ink-soft);
  max-width: 46rem;
  margin: 0;
  font-size: 1.1rem;
}
.page-title a { color: var(--sky-deep); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: clamp(2.5rem, 5vw, 3.75rem);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.footer-logo {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.footer-logo b { color: #7fd0f5; }

.footer-crest {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  width: fit-content;
  margin: 0.5rem 0 1rem;
}
.footer-crest img { display: block; }

.footer-col h3 {
  color: var(--white);
  font-family: var(--font);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.footer-col li { padding: 0.22rem 0; }
.footer-col a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p { margin: 0; }

/* ---------- Motion ----------
   Entrance effects (one-time fades/slides) run for everyone — brief,
   single-shot motion is low-risk and matches mainstream marketing sites.
   Continuous/looping motion (bubble drift) stays gated behind
   prefers-reduced-motion. Scroll reveals are opt-in via a .reveal class
   the inline script applies at runtime, so with JS disabled nothing is
   ever hidden. Only opacity/transform animate. */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.hero h1,
.page-title h1 { animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) backwards; }
.hero-lede,
.page-title .container > p,
.page-title .eyebrow { animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s backwards; }
.hero .hero-ctas { animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.24s backwards; }
.hero .hero-points { animation: rise-in 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.36s backwards; }

/* Looping ambient motion — only for users who allow it.
   Bubbles continuously rise from their resting spot: fade in, float up
   with a per-bubble sway, fade out, loop. Negative delays desynchronize.
   Reduced-motion users see the field statically at rest instead. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes field-rise {
    0% { transform: translate(0, 60px) scale(0.85); opacity: 0; }
    10% { opacity: 0.85; }
    50% { transform: translate(var(--sway), -220px) scale(1); opacity: 0.85; }
    85% { opacity: 0.7; }
    100% { transform: translate(calc(var(--sway) * -0.6), -520px) scale(1.1); opacity: 0; }
  }

  .bubble-field i {
    animation: field-rise var(--dur) linear infinite;
    animation-delay: var(--delay);
  }

  @keyframes bubble-rise-sm {
    0% { transform: translate(0, 180px) scale(0.8); opacity: 0; }
    14% { opacity: 1; }
    50% { transform: translate(14px, -20px) scale(1); opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(-10px, -230px) scale(1.1); opacity: 0; }
  }

  .page-title::after { animation: bubble-rise-sm 18s linear infinite -10s; }
}

/* ---------- Mobile sticky call bar ---------- */

.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--sun);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  text-decoration: none;
  padding: 0.9rem 1rem;
  box-shadow: 0 -2px 10px rgba(13, 42, 65, 0.25);
}
.mobile-call-bar:hover { color: var(--white); background: var(--sun-dark); }

@media (min-width: 900px) {
  .mobile-call-bar { display: none; }
}
