/* ============================================================
   Spotfree Window Cleaning & House Wash — Styles
   Mobile-first. Base = 375px. Scale up.
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --primary: #0A7B83;
  --primary-dark: #06565C;
  --primary-deeper: #062F36;
  --primary-light: #E4F5F5;
  --accent: #F2994A;
  --accent-dark: #D9832E;
  --text: #1A2E35;
  --text-light: #4A7178;
  --text-on-dark: #E8F4F4;
  --white: #FFFFFF;
  --bg-alt: #F4F9F9;
  --border: #D4E5E7;
  --shadow-sm: 0 1px 3px rgba(6, 47, 54, 0.08);
  --shadow-md: 0 4px 16px rgba(6, 47, 54, 0.10);
  --shadow-lg: 0 12px 40px rgba(6, 47, 54, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --nav-height: 64px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}
button { cursor: pointer; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.625rem; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
.text-light { color: var(--text-light); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-dark {
  background: var(--primary-deeper);
  color: var(--text-on-dark);
}
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}
.section-header {
  margin-bottom: 2.5rem;
}
.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.section-dark .section-header .label {
  color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 48px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(242, 153, 74, 0.4);
}
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--primary-deeper);
}
.btn-white:hover {
  background: var(--primary-light);
}
.btn-phone {
  background: var(--primary);
  color: var(--white);
}
.btn-phone:hover {
  background: var(--primary-dark);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--transition);
}
.nav.transparent {
  background: transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  z-index: 1001;
  transition: color var(--transition);
}
.nav-logo span {
  color: var(--accent);
}
.nav.scrolled .nav-logo {
  color: var(--primary-deeper);
}
.nav-links {
  display: none;
}
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav.scrolled .nav-toggle span {
  background: var(--primary-deeper);
}
.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);
}
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--primary-deeper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--accent);
}
.nav-mobile .nav-phone {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--white);
  font-size: 1.1rem;
}

/* Interior page nav — dark by default */
.nav-interior .nav-logo {
  color: var(--primary-deeper);
}
.nav-interior .nav-toggle span {
  background: var(--primary-deeper);
}
.nav-interior:not(.scrolled) {
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

/* --- Hero (Homepage) --- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(6, 47, 54, 0.2) 0%,
    rgba(6, 47, 54, 0.1) 40%,
    rgba(6, 47, 54, 0.55) 70%,
    rgba(6, 47, 54, 0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 3;
  margin-top: auto;
  padding: 2rem 1.25rem calc(2rem + env(safe-area-inset-bottom));
}
.hero-content h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.hero-content p {
  color: rgba(232, 244, 244, 0.9);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(232, 244, 244, 0.75);
}
.hero-trust .stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 1px;
}

/* --- Hero (Interior Pages) --- */
.hero-interior {
  position: relative;
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
  overflow: hidden;
  min-height: 340px;
}
.hero-interior .hero-img {
  opacity: 0.15;
}
.hero-interior .hero-overlay {
  background: var(--bg-alt);
}
.hero-interior .hero-content {
  margin-top: 0;
  padding: 0 1.25rem;
}
.hero-interior h1 {
  color: var(--text);
  font-size: 2rem;
}
.hero-interior p {
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 540px;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card-img {
  height: 220px;
  overflow: hidden;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img {
  transform: scale(1.05);
}
.service-card-body {
  padding: 1.5rem;
}
.service-card-body h3 {
  margin-bottom: 0.5rem;
}
.service-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  transition: gap var(--transition);
}
.service-card-link:hover {
  gap: 0.6rem;
}

/* --- Feature list (services detail pages) --- */
.feature-list {
  display: grid;
  gap: 1.5rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.feature-item h4 {
  margin-bottom: 0.25rem;
}
.feature-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* --- Stats / Numbers --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.section-dark .stat-number {
  color: var(--accent);
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}
.section-dark .stat-label {
  color: var(--text-on-dark);
}

/* --- Reviews --- */
.reviews-grid {
  display: grid;
  gap: 1.25rem;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.review-card .stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}
.review-card blockquote {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
}
.review-card .review-author {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary-dark);
}
.review-card .review-source {
  font-size: 0.8rem;
  color: var(--text-light);
}
.review-featured {
  border-left: 4px solid var(--accent);
  padding-left: 1.75rem;
}
.review-featured blockquote {
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
}

/* --- About preview (homepage) --- */
.about-preview {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about-preview-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.about-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Image with text layout --- */
.split-section {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 3.5rem 1.25rem;
}
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(232, 244, 244, 0.85);
  max-width: 480px;
  margin: 0 auto 1.5rem;
}
.cta-banner .btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 123, 131, 0.12);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-row {
  display: grid;
  gap: 1.25rem;
}
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}
.form-success.show {
  display: block;
}
.form-success h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* --- Footer --- */
.footer {
  background: var(--primary-deeper);
  color: var(--text-on-dark);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.footer p,
.footer a {
  font-size: 0.9rem;
  color: rgba(232, 244, 244, 0.75);
  line-height: 1.6;
}
.footer a:hover {
  color: var(--accent);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-phone {
  font-size: 1.15rem !important;
  font-weight: 700;
  color: var(--white) !important;
}
.footer-bottom {
  border-top: 1px solid rgba(232, 244, 244, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(232, 244, 244, 0.45);
}

/* --- Sticky mobile CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0.625rem 1rem calc(0.625rem + env(safe-area-inset-bottom));
  display: flex;
  gap: 0.625rem;
}
.sticky-cta .btn {
  flex: 1;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  min-height: 44px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Give pages body padding for sticky CTA */
body {
  padding-bottom: 72px;
}

/* ============================================================
   TABLET — 768px
   ============================================================ */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.375rem; }

  .container { padding: 0 2rem; }
  .section { padding: 5rem 0; }

  .hero-content {
    padding: 3rem 2rem calc(3rem + env(safe-area-inset-bottom));
  }
  .hero-content h1 { font-size: 2.75rem; }
  .hero-cta {
    flex-direction: row;
  }

  .hero-interior {
    min-height: 380px;
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
  }
  .hero-interior .hero-content {
    padding: 0 2rem;
  }

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

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

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .about-preview {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .split-section {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .split-section.reverse .split-img {
    order: -1;
  }

  .cta-banner .btn-group {
    flex-direction: row;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .sticky-cta {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

/* ============================================================
   DESKTOP — 1024px
   ============================================================ */
@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.25rem; }

  .container { padding: 0 2.5rem; }
  .section { padding: 6rem 0; }

  /* Desktop nav */
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
  .nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    transition: color var(--transition);
    padding: 0.25rem 0;
    position: relative;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition);
  }
  .nav-links a:hover::after,
  .nav-links a.active::after {
    transform: scaleX(1);
  }
  .nav.scrolled .nav-links a {
    color: var(--text);
  }
  .nav-links .btn-phone {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
  }
  .nav-links .btn-phone::after {
    display: none;
  }
  .nav-interior .nav-links a {
    color: var(--text);
  }

  .hero-content h1 { font-size: 3rem; max-width: 600px; }
  .hero-content p { font-size: 1.15rem; }

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

  .hero-interior {
    min-height: 420px;
  }
  .hero-interior h1 {
    font-size: 2.75rem;
  }
}

/* ============================================================
   LARGE DESKTOP — 1280px
   ============================================================ */
@media (min-width: 1280px) {
  .container { max-width: 1200px; padding: 0 3rem; }

  .hero-content {
    padding: 4rem 3rem calc(4rem + env(safe-area-inset-bottom));
  }
}
