/* ============================
   PrestonClean Commercial Services
   ============================ */

:root {
  --navy: #173B54;
  --emerald: #0E7C66;
  --sand: #F1EAD9;
  --seamist: #C3DAD6;
  --ink: #2B2926;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-nav: "Quicksand", "Inter", system-ui, -apple-system, sans-serif;

  --header-height: 196px;
  --max-width: 1140px;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--sand);
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

p {
  margin: 0 0 1em;
}

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

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--sand);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-cta {
  background-color: var(--emerald);
  color: #fff;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(14, 124, 102, 0.35);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--sand);
  border-bottom: 1px solid var(--seamist);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
}

.logo-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  height: 155px;
  width: auto;
}

.logo-tagline {
  margin-top: 2px;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--sand);
  opacity: 0.7;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--emerald);
}

.header-cta {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--navy);
}

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

.hero {
  background-color: var(--navy);
  color: var(--sand);
}

.hero-inner {
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 780px;
}

.hero h1 {
  color: #fff;
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--seamist);
  max-width: 620px;
}

/* ---------- Services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: #fff;
  border: 1px solid var(--seamist);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.service-card h3 {
  color: var(--navy);
}

.service-freq {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-freq li {
  background-color: var(--seamist);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* ---------- Why Us ---------- */

.why-us {
  background-color: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.why-item h3 {
  color: var(--emerald);
}

/* ---------- Quality Callout ---------- */

.quality {
  background-color: var(--navy);
}

.quality-inner {
  max-width: 780px;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.quality h2 {
  color: #fff;
}

.quality p {
  color: var(--seamist);
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ---------- Testimonials ---------- */

.testimonials {
  background-color: #fff;
  overflow: hidden;
}

.testimonials-header {
  padding-bottom: 1rem;
  text-align: center;
}

.testimonial-viewport {
  overflow: hidden;
  width: 100%;
  padding: 0.5rem 0 3rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.testimonial-track {
  display: flex;
  width: max-content;
  animation: testimonial-scroll 40s linear infinite;
}

.testimonial-track:focus-within {
  animation-play-state: paused;
}

@media (hover: hover) and (pointer: fine) {
  .testimonial-track:hover {
    animation-play-state: paused;
  }
}

.track-group {
  display: flex;
  flex-shrink: 0;
}

.testimonial-card {
  width: 300px;
  flex-shrink: 0;
  background-color: var(--sand);
  border: 1px solid var(--seamist);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-right: 1.5rem;
}

.stars {
  color: var(--emerald);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0;
}

@keyframes testimonial-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-track {
    animation: none;
  }

  .testimonial-viewport {
    overflow-x: auto;
  }
}

/* ---------- Service Area ---------- */

.service-area {
  background-color: var(--seamist);
}

.city-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.city-list li {
  background-color: var(--navy);
  color: var(--sand);
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* ---------- How It Works ---------- */

.how-it-works {
  background-color: #fff;
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 3.5rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--emerald);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  color: var(--navy);
  margin-bottom: 0.4em;
}

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

.faq {
  background-color: var(--sand);
}

.faq-item {
  background-color: #fff;
  border: 1px solid var(--seamist);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin-bottom: 1rem;
}

.faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  cursor: pointer;
}

.faq-item summary::marker {
  color: var(--emerald);
}

.faq-item p {
  margin-top: 1rem;
  margin-bottom: 0;
}

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

.contact {
  background-color: var(--navy);
  color: var(--sand);
}

.contact .section-inner {
  text-align: center;
}

.contact h2 {
  color: #fff;
}

.contact-phone {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.contact-phone a {
  color: var(--seamist);
}

.quote-form {
  background-color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  color: var(--ink);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
}

.form-row {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--seamist);
  border-radius: 6px;
  background-color: var(--sand);
  color: var(--ink);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--emerald);
  outline-offset: 1px;
}

.form-row.radio-field {
  border: none;
  padding: 0;
}

.form-row.radio-field legend {
  padding: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

.radio-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.form-row .radio-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}

.radio-option input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--emerald);
  cursor: pointer;
}

.quote-form .btn-cta {
  width: 100%;
  margin-top: 0.5rem;
}

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

.site-footer {
  background-color: var(--navy);
  color: var(--seamist);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.footer-logo {
  height: 64px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--sand);
  opacity: 0.7;
  text-align: center;
  white-space: nowrap;
}

.footer-phone a {
  color: var(--sand);
  font-weight: 600;
}

.footer-area {
  max-width: 520px;
  font-size: 0.92rem;
}

.footer-legal {
  font-size: 0.8rem;
  color: var(--seamist);
  opacity: 0.75;
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ============================
   Responsive
   ============================ */

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 780px) {
  :root {
    --header-height: 148px;
  }

  .logo-img {
    height: 108px;
  }

  .logo-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--sand);
    border-bottom: 1px solid var(--seamist);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 300px;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .site-nav li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--seamist);
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-inner {
    padding: 3rem 1.25rem;
  }

  .footer-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.03em;
  }

  .logo-tagline {
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }
}

/* ============================
   Residential Homepage
   ============================ */

/* ---------- Hero (image) ---------- */

.hero-residential {
  position: relative;
  color: var(--sand);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23, 59, 84, 0.78) 0%, rgba(23, 59, 84, 0.62) 55%, rgba(23, 59, 84, 0.82) 100%);
  z-index: 1;
}

.hero-residential .hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-residential h1,
.hero-residential .hero-subhead {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- What's Included ---------- */

.included-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.included-list li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.4rem;
  font-size: 0.95rem;
}

.included-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

/* ---------- Estimator ---------- */

.estimator {
  background-color: #fff;
}

.price-result {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background-color: var(--seamist);
  color: var(--navy);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  text-align: center;
}

.form-confirmation {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background-color: var(--emerald);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}

.estimator-video-col {
  border-radius: 16px;
  overflow: hidden;
}

.promo-video {
  width: 100%;
  display: block;
  border-radius: 16px;
}

@media (min-width: 900px) {
  .estimator-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

/* ---------- Reviews (residential, static) ---------- */

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background-color: var(--sand);
  border: 1px solid var(--seamist);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ---------- Footer (residential) ---------- */

.site-footer h2 {
  color: var(--sand);
}

.site-footer .btn-cta {
  margin: 0.25rem 0;
}

@media (max-width: 780px) {
  body.page-residential .header-cta {
    display: inline-block;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
  }
}

/* ============================
   Ink Forward palette (site-wide)
   Applied via the shared .ink-forward class on <body>, present on both
   the residential and commercial pages, so the two stay visually in sync.
   Page-specific exceptions (section alternation order differs between
   the two page layouts) are scoped under .page-residential / .page-commercial.
   Contrast checked against WCAG AA:
     Sand on Ink   12.1:1   Sand on Navy   9.8:1
     SeaMist on Ink 9.9:1   SeaMist on Navy 8.0:1
     Ink/Navy on SeaMist  9.9:1 / 8.0:1
   ============================ */

.ink-forward {
  background-color: var(--ink);
  color: var(--seamist);
}

.ink-forward h1,
.ink-forward h2 {
  color: var(--sand);
}

.ink-forward a:not(.btn) {
  color: var(--sand);
}

/* Pre-existing intentional link colors outrank the catch-all above
   (`:not()`'s argument counts toward specificity, so it would otherwise win). */
.ink-forward .contact-phone a {
  color: var(--seamist);
}

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

.ink-forward .site-header {
  background-color: var(--ink);
  border-bottom: 1px solid rgba(241, 234, 217, 0.15);
}

.ink-forward .site-nav a {
  color: var(--seamist);
}

.ink-forward .site-nav a:hover,
.ink-forward .site-nav a:focus-visible {
  color: var(--sand);
}

.ink-forward .site-nav a[aria-current="page"] {
  color: var(--sand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.ink-forward .nav-toggle span {
  background-color: var(--sand);
}

@media (max-width: 780px) {
  .ink-forward .site-nav {
    background-color: var(--ink);
    border-bottom: 1px solid rgba(241, 234, 217, 0.15);
  }

  .ink-forward .site-nav li {
    border-bottom: 1px solid rgba(241, 234, 217, 0.12);
  }
}

/* ---------- Section backgrounds: shared sections ---------- */

.ink-forward .services {
  background-color: var(--ink);
}

.ink-forward .estimator,
.ink-forward .faq {
  background-color: var(--navy);
}

/* Service area alternates differently per page layout. */
.ink-forward.page-residential .service-area {
  background-color: var(--ink);
}

.ink-forward.page-commercial .service-area {
  background-color: var(--navy);
}

/* ---------- Section backgrounds: commercial-only sections ---------- */

.ink-forward .why-us {
  background-color: var(--navy);
  color: var(--seamist);
}

.ink-forward .why-item h3 {
  color: var(--sand);
}

.ink-forward .quality h2 {
  color: var(--sand);
}

.ink-forward .testimonials {
  background-color: var(--ink);
}

.ink-forward .how-it-works {
  background-color: var(--ink);
  color: var(--seamist);
}

.ink-forward .step h3 {
  color: var(--sand);
}

/* ---------- Cards & forms (Sea Mist) ---------- */

.ink-forward .service-card,
.ink-forward .testimonial-card,
.ink-forward .review-card {
  background-color: var(--seamist);
  border-color: var(--seamist);
  color: var(--ink);
}

.ink-forward .service-freq li {
  background-color: var(--navy);
  color: var(--sand);
}

.ink-forward .quote-form {
  background-color: var(--seamist);
  color: var(--ink);
}

/* Only the residential estimator's form lives inside a grid column. */
.estimator-grid .quote-form {
  max-width: none;
  margin: 0;
}

.ink-forward .form-row input,
.ink-forward .form-row select,
.ink-forward .form-row textarea {
  background-color: #fff;
}

.ink-forward .price-result {
  background-color: #fff;
  color: var(--navy);
}

.ink-forward .estimator-video-col {
  border: 2px solid rgba(241, 234, 217, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

/* ---------- Service area / pills ---------- */

.ink-forward .city-list li {
  background-color: var(--seamist);
  color: var(--navy);
}

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

.ink-forward .faq-item {
  background-color: var(--seamist);
  border-color: var(--seamist);
  color: var(--ink);
}

.ink-forward .faq-item summary {
  color: var(--navy);
}
