/* ================================================
   More Power Pressure Washing — Main Stylesheet
   Colors: Navy #1B2A6B | Red #CC1C2E | White #FFFFFF
   ================================================ */

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

:root {
  --red:    #CC1C2E;
  --navy:   #1B2A6B;
  --white:  #FFFFFF;
  --light:  #F4F6FA;
  --dark:   #111111;
  --gray:   #666666;
  --radius: 8px;
  --shadow: 0 4px 18px rgba(0,0,0,0.10);
  --font:   'Segoe UI', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utility ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  border: none;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-red   { background: var(--red);   color: var(--white); }
.btn-navy  { background: var(--navy);  color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }

/* ── Top bar ── */
.topbar {
  background: var(--navy);
  color: var(--white);
  font-size: .9rem;
  padding: 8px 0;
  text-align: center;
}
.topbar a { color: var(--white); font-weight: 600; }
.topbar a:hover { text-decoration: underline; }

/* ── Nav ── */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,.10);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; }

/* Nav logo — white bg blends into the white header naturally */
.nav-logo {
  height: 56px;
  width: auto;
  display: block;
}

/* Footer logo — white box so it reads on the dark background */
.footer-logo-wrap {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius);
  padding: 6px 10px;
  margin-bottom: 14px;
}
.footer-logo {
  height: 60px;
  width: auto;
  display: block;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--dark);
  transition: color .2s;
}
.nav-links a:hover { color: var(--red); }
.nav-cta { background: var(--red); color: var(--white) !important; padding: 10px 22px; border-radius: var(--radius); }
.nav-cta:hover { background: #a51525 !important; color: var(--white) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1d4f 100%);
  color: var(--white);
  padding: 80px 20px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Dark tint over the background image so text stays readable */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
}

/* Keep hero content above the tint */
.hero .container { position: relative; z-index: 2; }

/* ── Progressive background pan animation ── */
/*
 * Trapezoid velocity curve:
 *   0–10%  : ease-in  (accelerate to full speed)
 *   10–90% : linear   (hold constant speed)
 *   90–100%: ease-out (decelerate to stop)
 *
 * Position values derived from a trapezoid integral so the constant-speed
 * segment is truly linear (no perceived lurch at the transitions).
 *   At t=10%:  position = 5.56%  (≈ ½ × 10% × full-speed fraction)
 *   At t=90%:  position = 94.44% (mirror)
 */
@keyframes pbg-pan {
  0%   { background-position: 0% center;      animation-timing-function: ease-in; }
  10%  { background-position: 5.56% center;   animation-timing-function: linear; }
  90%  { background-position: 94.44% center;  animation-timing-function: ease-out; }
  100% { background-position: 100% center; }
}

/* Target only layers inside .hero — leaves the script generic */
.hero .pbg-stack > div {
  background-size: auto 100% !important;
  /* Duration is overridden by JS (data-pbg-speed) to stay pixel-consistent.
     40s is only the fallback if JS hasn't run yet. */
  animation: pbg-pan 40s linear infinite alternate;
}
.hero-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.hero h1 span { color: var(--red); }
.hero-sub {
  font-size: 1.15rem;
  opacity: .85;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Contact strip in hero */
.hero-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}
.hero-contact-item {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.hero-contact-item:hover { background: rgba(255,255,255,0.20); }
.hero-contact-item .icon { font-size: 1.5rem; }
.hero-contact-item .label { font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .05em; }
.hero-contact-item .value { font-size: 1.15rem; font-weight: 700; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Divider strip ── */
.strip {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 18px 20px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ── Services ── */
.services { padding: 80px 0; background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--light);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  border-bottom: 4px solid transparent;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.service-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.service-card:hover .service-img {
  transform: scale(1.05);
}
.service-body { padding: 24px 20px; }
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  margin: 0 auto 14px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.15rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.service-card p { font-size: .93rem; color: var(--gray); }

/* ── Reviews strip (homepage) ── */
.reviews-strip { padding: 80px 0; background: var(--light); }
.reviews-strip .section-header { text-align: center; margin-bottom: 48px; }
.stars { color: #F5A623; font-size: 1.2rem; margin-bottom: 8px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.review-card::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--red);
  opacity: .18;
  position: absolute;
  top: 10px;
  left: 18px;
  line-height: 1;
  font-family: Georgia, serif;
}
.reviewer { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reviewer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
}
.reviewer-name { font-weight: 700; font-size: .95rem; }
.reviewer-date { font-size: .8rem; color: var(--gray); }
.review-text { font-size: .93rem; color: var(--dark); line-height: 1.7; }
.review-source { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .8rem; color: var(--gray); }

/* ── Service areas ── */
.areas { padding: 80px 0; background: var(--navy); color: var(--white); }
.areas .section-title { color: var(--white); }
.areas .section-subtitle { color: rgba(255,255,255,.7); }
.areas-header { text-align: center; margin-bottom: 48px; }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.area-pill {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 40px;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
  transition: background .2s, border-color .2s;
}
.area-pill:hover { background: var(--red); border-color: var(--red); }
.area-pill .area-icon { margin-right: 6px; }

/* ── Contact section ── */
.contact { padding: 80px 0; background: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-details h2 { font-size: 1.9rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.contact-details p { color: var(--gray); margin-bottom: 28px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-item-icon {
  width: 46px; height: 46px; min-width: 46px;
  background: var(--light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-item-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gray); margin-bottom: 2px; }
.contact-item-value { font-weight: 700; font-size: 1rem; color: var(--navy); }
.contact-item-value a { color: var(--navy); }
.contact-item-value a:hover { color: var(--red); }

.contact-form-box {
  background: var(--light);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form-box h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy); margin-bottom: 22px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d0d5e8;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select[multiple]::-webkit-scrollbar { display: none; }

.checkbox-group {
  width: 100%;
  padding: 2px 0;
  border: 1.5px solid #d0d5e8;
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.checkbox-group label {
  display: flex !important;
  align-items: center;
  font-weight: 400 !important;
  color: var(--dark) !important;
  font-size: .95rem !important;
  margin-bottom: 0 !important;
  padding: 2px 12px;
  cursor: pointer;
  transition: background-color 0.1s;
}
.checkbox-group label:hover {
  background-color: var(--light);
}
.checkbox-group input[type="checkbox"] {
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 8px 0 0 !important;
  border: none !important;
  flex-shrink: 0;
  appearance: auto !important;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; }

/* Alert messages */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-weight: 600;
  font-size: .93rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Footer ── */
footer {
  background: #0d1a3f;
  color: rgba(255,255,255,.75);
  padding: 50px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand p { font-size: .88rem; margin-top: 14px; line-height: 1.7; color: rgba(255,255,255,.6); }
.footer-col h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .83rem;
}

/* ── Gallery Page ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0f1d4f 100%);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 10px; }
.page-hero p  { font-size: 1.05rem; opacity: .8; }

.gallery-section { padding: 70px 0; }
.gallery-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 9px 22px;
  border-radius: 30px;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn.active,
.filter-btn:hover { background: var(--navy); color: var(--white); }
.filter-btn.active-red { background: var(--red); border-color: var(--red); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--light);
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(27,42,107,.65);
  display: flex; align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 700; font-size: .95rem; }

/* Placeholder for images without src */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8eaf6 0%, #dde1f0 100%);
  color: var(--navy);
  gap: 8px;
}
.img-placeholder .ph-icon { font-size: 2.5rem; opacity: .5; }
.img-placeholder span { font-size: .8rem; opacity: .6; font-weight: 600; }

/* ── Reviews Page ── */
.reviews-page { padding: 70px 0; background: var(--light); }
.reviews-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.overall-rating {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}
.rating-number { font-size: 4rem; font-weight: 900; color: var(--navy); line-height: 1; }
.rating-stars  { font-size: 2rem; color: #F5A623; margin: 8px 0; }
.rating-count  { color: var(--gray); font-size: .95rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .contact-inner  { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.4rem; }
  .hamburger { display: flex; z-index: 1000; }
  .hero { padding: 60px 16px 50px; }
  .hero-contact-item { padding: 12px 18px; }
  .services-grid  { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
