/* ==========================================================================
   Paley's Pressure Washing & Pool Deck Restoration
   Palette: slate gray + dignified navy/red accent, veteran-owned framing
   Type: Oswald (condensed, bold headings) + Karla (body)
   Mobile-first, min-width breakpoints at 560px / 768px / 1080px
   ========================================================================== */

:root {
  --slate-950: #14181c;
  --slate-900: #1b2126;
  --slate-800: #262e35;
  --slate-700: #3a444d;
  --slate-500: #6b7580;
  --slate-300: #aeb8c2;
  --slate-100: #e7eaed;
  --slate-050: #f4f5f6;
  --navy-900: #16273f;
  --navy-700: #1f3a5f;
  --red-600: #9c2b2b;
  --red-700: #822323;
  --red-500: #b6392f;
  --white: #ffffff;
  --ink: #1c2226;
  --ink-soft: #4d5760;

  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;

  --radius: 6px;
  --shadow-card: 0 10px 30px -14px rgba(20, 24, 28, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--slate-950);
  line-height: 1.12;
  margin: 0 0 0.6em;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }

.h2-light { color: var(--white); }

section {
  padding: 3rem 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red-600);
  margin-bottom: 0.6rem;
}

.eyebrow-light { color: #e2a6a0; }

.section-lede {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section-lede-light { color: var(--slate-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-red {
  background: var(--red-600);
  color: var(--white);
}
.btn-red:hover { background: var(--red-700); }

.btn-lg { padding: 0.9rem 1.7rem; font-size: 1.02rem; }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--slate-950);
  color: var(--slate-100);
  font-size: 0.85rem;
}

.topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.topbar-badge {
  background: var(--red-600);
  color: var(--white);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.topbar-hours { color: var(--slate-300); }

.topbar-phone {
  font-weight: 700;
  text-decoration: none;
  color: var(--white);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--slate-100);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--slate-950);
}

.brand-mark {
  color: var(--red-600);
  flex-shrink: 0;
  display: inline-flex;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  text-transform: uppercase;
  line-height: 1.05;
}

.brand-line1 { font-size: 1.05rem; font-weight: 700; }
.brand-line2 { font-size: 0.82rem; font-weight: 500; color: var(--slate-700); letter-spacing: 0.03em; }

.main-nav { display: none; }
.main-nav ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  color: var(--slate-800);
  padding: 0.5rem 0;
}
.main-nav a:hover { color: var(--red-600); }

.header-cta { display: none; }

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--slate-950);
  position: relative;
  transition: transform 0.2s ease;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  background: var(--slate-950);
  transition: max-height 0.25s ease;
}
.mobile-nav.open { max-height: 480px; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  color: var(--slate-100);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
  border-bottom: 1px solid var(--slate-800);
}
.mobile-nav li:last-child a { border-bottom: none; padding-top: 0.5rem; }
.mobile-nav .btn { width: 100%; margin-top: 0.4rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(155deg, var(--slate-950) 0%, var(--navy-900) 65%, var(--navy-700) 100%);
  color: var(--white);
  padding: 3rem 0 2.5rem;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2a6a0;
  margin-bottom: 0.8rem;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.9rem, 6vw, 3rem);
  max-width: 18ch;
}

.hero .lede {
  color: var(--slate-300);
  font-size: 1.08rem;
  max-width: 56ch;
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1rem 0.75rem;
  text-align: center;
}

.stat-block strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--white);
}

.stat-block span {
  display: block;
  font-size: 0.78rem;
  color: var(--slate-300);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.2rem;
}

.stat-block-accent {
  background: rgba(156, 43, 43, 0.22);
  border-color: rgba(182, 57, 47, 0.45);
}
.stat-block-accent strong { color: #f0b3ac; }

/* ---------- Marquee strip ---------- */
.marquee-strip {
  background: var(--red-600);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.6rem 0;
}
.marquee-track {
  display: inline-flex;
  gap: 0.75rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  font-weight: 500;
  animation: marquee 26s linear infinite;
  padding-left: 100%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; padding-left: 0; }
}

/* ---------- About ---------- */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-copy p { color: var(--ink-soft); }

.about-card {
  background: var(--slate-050);
  border-left: 4px solid var(--red-600);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.about-card h3 {
  font-size: 1.15rem;
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--red-600);
  font-weight: 700;
}

/* ---------- Services (slate section + React tabs) ---------- */
.section-slate {
  background: var(--slate-900);
  color: var(--slate-100);
}

.ppw-tabs { margin-top: 1.75rem; }

.ppw-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ppw-tab-btn {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate-100);
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ppw-tab-btn-active,
.ppw-tab-btn:hover {
  background: var(--red-600);
  border-color: var(--red-600);
  color: var(--white);
}

.ppw-tab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ppw-tab-card {
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.ppw-tab-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.ppw-tab-card p {
  color: var(--slate-300);
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.review-card {
  margin: 0;
  background: var(--slate-050);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.review-card p {
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 0.9rem;
}
.review-card footer {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.78rem;
  color: var(--red-600);
  font-weight: 600;
}

/* ---------- Service area / map ---------- */
.section-navy {
  background: var(--navy-900);
  color: var(--white);
}

.area-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.area-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.area-list li {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.88rem;
}

.map-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Contact ---------- */
.section-alt { background: var(--slate-050); }

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-list .label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--red-600);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.contact-list a {
  text-decoration: none;
  font-weight: 700;
  color: var(--slate-950);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  color: var(--slate-700);
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--red-500);
  outline-offset: 1px;
}
.contact-form .btn { align-self: flex-start; margin-top: 0.25rem; }

.contact-alt {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 1.1rem;
}
.contact-alt a {
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-300);
  padding: 2.5rem 0 1.25rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.footer-grid p { margin: 0.25rem 0; }
.footer-grid a { text-decoration: none; color: var(--slate-300); }
.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--slate-500);
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 560px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
  section { padding: 4.5rem 0; }

  .about-grid {
    flex-direction: row;
    align-items: flex-start;
  }
  .about-copy { flex: 1.3; }
  .about-card { flex: 1; position: sticky; top: 90px; }

  .area-grid { flex-direction: row; align-items: center; }
  .area-grid > div:first-child { flex: 1; }
  .map-frame { flex: 1; aspect-ratio: 4 / 3; }

  .contact-grid { flex-direction: row; }
  .contact-grid .contact-card { flex: 1; }

  .footer-grid { flex-direction: row; justify-content: space-between; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .ppw-tab-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .main-nav { display: block; }
  .header-cta { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }

  .hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-copy { flex: 1.4; }
  .hero-stats {
    flex: 1;
    grid-template-columns: 1fr;
    max-width: 240px;
  }

  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .ppw-tab-grid { grid-template-columns: repeat(3, 1fr); }
  .area-list { grid-template-columns: repeat(2, 1fr); max-width: 360px; }
}
