/* ============================================
   Spotfree Window Cleaning & House Wash
   Mobile-first responsive stylesheet
   ============================================ */

:root {
  --primary: #0EA5E9;
  --primary-dark: #0369A1;
  --primary-darker: #0C4A6E;
  --primary-light: #E0F2FE;
  --primary-lightest: #F0F9FF;
  --accent: #10B981;
  --accent-dark: #059669;
  --text: #1E293B;
  --text-light: #64748B;
  --text-lighter: #94A3B8;
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--primary-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- HEADER / NAV ---- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.transparent {
  background: transparent;
}

.site-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color var(--transition);
}

.logo span {
  color: var(--primary-light);
  transition: color var(--transition);
}

.scrolled .logo {
  color: var(--primary-darker);
}

.scrolled .logo span {
  color: var(--primary);
}

/* Page headers (non-transparent) */
.site-header.solid {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.solid .logo {
  color: var(--primary-darker);
}

.solid .logo span {
  color: var(--primary);
}

.solid .nav-links a {
  color: var(--text);
}

.solid .nav-links a:hover {
  color: var(--primary);
}

.solid .nav-toggle span {
  background: var(--text);
}

.nav-links {
  display: none;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  padding: 8px 0;
  display: block;
  transition: color var(--transition);
}

.scrolled .nav-links a {
  color: var(--text);
}

.scrolled .nav-links a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.scrolled .nav-toggle span {
  background: var(--text);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-darker);
  z-index: 999;
  padding: 100px 24px 40px;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-nav.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
}

.mobile-nav a {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 16px 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a:hover {
  color: var(--primary-light);
}

.mobile-nav .nav-phone {
  margin-top: auto;
  color: var(--primary-light);
  font-size: 1.25rem;
  font-weight: 600;
  border-bottom: none;
}

/* ---- HERO ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12, 74, 110, 0.15) 0%,
    rgba(12, 74, 110, 0.4) 40%,
    rgba(12, 74, 110, 0.85) 70%,
    rgba(12, 74, 110, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 60px;
  width: 100%;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

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

.hero .hero-sub {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.5;
  max-width: 480px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  min-height: 52px;
}

.hero-cta:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---- TRUST BAR ---- */

.trust-bar {
  background: var(--primary-darker);
  padding: 20px 0;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-light);
  font-size: 0.9375rem;
  font-weight: 500;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: #FBBF24;
  flex-shrink: 0;
}

.trust-stars {
  display: flex;
  gap: 2px;
}

.trust-stars svg {
  width: 16px;
  height: 16px;
  color: #FBBF24;
}

/* ---- SECTIONS (general) ---- */

.section {
  padding: 60px 0;
}

.section-alt {
  background: var(--primary-lightest);
}

.section-dark {
  background: var(--primary-darker);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

.section-dark .section-subtitle {
  color: rgba(255,255,255,0.7);
}

/* ---- SERVICES GRID ---- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 24px;
}

.service-card h3 {
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary-dark);
}

.service-card .card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.service-card:hover .card-link svg {
  transform: translateX(4px);
}

/* ---- FEATURED REVIEW ---- */

.featured-review {
  padding: 60px 0;
  background: var(--primary-lightest);
}

.featured-review-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.review-quote-large {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
}

.review-quote-large::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: -12px;
  font-style: normal;
}

.review-author {
  font-weight: 600;
  color: var(--primary-dark);
}

.review-source {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* ---- HOW IT WORKS ---- */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--text-light);
  font-size: 0.9375rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ---- REVIEWS GRID ---- */

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.review-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.review-card .stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-card .stars svg {
  width: 16px;
  height: 16px;
  color: #FBBF24;
}

.review-card blockquote {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
  font-style: italic;
}

.review-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary-dark);
}

.review-card .review-date {
  font-size: 0.8125rem;
  color: var(--text-lighter);
}

/* ---- SERVICE AREA ---- */

.service-area-section {
  position: relative;
  padding: 60px 0;
  background: var(--primary-darker);
  overflow: hidden;
}

.service-area-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.service-area-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.service-area-content h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.service-area-content p {
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin: 0 auto 28px;
  font-size: 1.0625rem;
}

/* ---- CTA BAND ---- */

.cta-band {
  padding: 60px 0;
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: 1.0625rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  border: none;
  cursor: pointer;
  min-height: 48px;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--primary-dark);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid var(--primary);
  transition: all var(--transition);
  cursor: pointer;
  min-height: 48px;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--primary-darker);
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  min-height: 48px;
}

.btn-white:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ---- CONTACT FORM ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-detail svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 2px;
  font-weight: 500;
}

.contact-detail a,
.contact-detail span {
  font-size: 1rem;
  color: var(--text);
}

.contact-form {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.form-submit {
  width: 100%;
}

.form-success {
  display: none;
  text-align: center;
  padding: 32px;
}

.form-success.show {
  display: block;
}

.form-success svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin: 0 auto 12px;
}

.form-success h3 {
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-light);
}

/* ---- SERVICE PAGE HERO ---- */

.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 80px;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(12, 74, 110, 0.2) 0%,
    rgba(12, 74, 110, 0.75) 60%,
    rgba(12, 74, 110, 0.9) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px 40px;
  width: 100%;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  max-width: 560px;
}

/* ---- SERVICE PAGE CONTENT ---- */

.service-content {
  padding: 40px 0;
}

.service-content h2 {
  margin-bottom: 16px;
}

.service-content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-content ul {
  list-style: none;
  margin-bottom: 24px;
}

.service-content ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 1rem;
}

.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.service-img-block {
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-img-block img {
  width: 100%;
  height: auto;
}

/* ---- ABOUT PAGE ---- */

.about-intro {
  padding: 40px 0;
}

.about-intro p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.value-item {
  padding: 24px;
  background: var(--primary-lightest);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.value-item h3 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.value-item p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* ---- FOOTER ---- */

.site-footer {
  background: var(--primary-darker);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-col p {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-col .footer-phone {
  color: var(--primary-light);
  font-size: 1.125rem;
  font-weight: 600;
  display: block;
  margin-top: 8px;
}

.footer-logo {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-logo span {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ---- STICKY PHONE BAR (mobile) ---- */

.sticky-phone {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--accent);
  z-index: 900;
  padding: 0;
}

.sticky-phone a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  color: var(--white);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  min-height: 52px;
}

.sticky-phone svg {
  width: 20px;
  height: 20px;
}

/* ---- ANIMATIONS ---- */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- PRIVACY PAGE ---- */

.legal-content {
  padding: 40px 0 60px;
}

.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content ul li {
  margin-bottom: 6px;
}

/* ============================================
   RESPONSIVE — TABLET (768px)
   ============================================ */

@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.375rem; }

  .container { padding: 0 32px; }

  .section { padding: 80px 0; }

  .hero h1 {
    font-size: 3rem;
  }

  .hero .hero-sub {
    font-size: 1.25rem;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

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

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .review-quote-large {
    font-size: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

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

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

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .contact-form {
    padding: 40px 32px;
  }
}

/* ============================================
   RESPONSIVE — DESKTOP (1024px)
   ============================================ */

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .nav-links a:hover {
    color: var(--primary-light);
  }

  .scrolled .nav-links a:hover {
    color: var(--primary);
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .section { padding: 100px 0; }

  .service-card img {
    height: 220px;
  }

  .featured-review {
    padding: 100px 0;
  }

  .sticky-phone {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* ============================================
   RESPONSIVE — LARGE DESKTOP (1280px)
   ============================================ */

@media (min-width: 1280px) {
  .container {
    padding: 0 40px;
  }

  .hero h1 {
    font-size: 4rem;
  }

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* Bottom padding for sticky phone bar on mobile */
@media (max-width: 1023px) {
  body {
    padding-bottom: 52px;
  }

  .site-footer {
    padding-bottom: 72px;
  }
}
