/* ============================================
   ClearForce Washing - Landing Page Styles
   ============================================ */

/* ---------- Custom Properties ---------- */
:root {
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #DBEAFE;
  --color-text: #1F2937;
  --color-text-light: #6B7280;
  --color-text-lighter: #9CA3AF;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F9FAFB;
  --color-bg-dark: #111827;
  --color-border: #E5E7EB;
  --color-star: #F59E0B;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;

  --container-max: 1200px;
  --section-padding: 5rem 0;
  --header-height: 72px;
}


/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

ul {
  list-style: none;
}


/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

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


/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-md);
}


/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.navbar {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.logo:hover {
  color: var(--color-text);
}

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

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

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

.nav-cta {
  background-color: var(--color-primary);
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  background-color: var(--color-primary-dark) !important;
  color: #fff !important;
}

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 10;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
}

.hamburger {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger::before {
  content: '';
  top: -8px;
}

.hamburger::after {
  content: '';
  top: 8px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: 100%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-cta {
    margin-top: 1rem;
    text-align: center;
  }

  .nav-toggle:checked ~ .nav-links {
    transform: translateX(0);
  }

  /* Animate hamburger to X */
  .nav-toggle:checked ~ .nav-toggle-label .hamburger {
    background-color: transparent;
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle:checked ~ .nav-toggle-label .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }
}


/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/hero.png') center / cover no-repeat;
  margin-top: var(--header-height);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 2rem 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.5;
}


/* ============================================
   SERVICES
   ============================================ */
.services {
  background-color: var(--color-bg-alt);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.5;
}


/* ============================================
   BEFORE & AFTER (RESULTS)
   ============================================ */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.result-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--color-bg);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.result-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.result-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.result-card figcaption {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem;
  color: var(--color-text);
}


/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background-color: var(--color-bg-alt);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.25s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.stars {
  color: var(--color-star);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-style: normal;
}

.testimonial-author cite {
  font-weight: 600;
  font-style: normal;
  color: var(--color-text);
}

.testimonial-location {
  color: var(--color-text-lighter);
  font-size: 0.875rem;
}

.testimonial-location::before {
  content: '\2022';
  margin-right: 0.5rem;
}


/* ============================================
   SERVICE AREAS
   ============================================ */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.area-badge {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 0.625rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.area-badge:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.area-badge--muted {
  background-color: transparent;
  border-style: dashed;
  color: var(--color-text-light);
}

.areas-note {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--color-text-light);
}


/* ============================================
   CONTACT / QUOTE FORM
   ============================================ */
.contact {
  background-color: var(--color-bg-alt);
}

.quote-form {
  max-width: 720px;
  margin: 0 auto;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-lighter);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.quote-form .btn {
  width: 100%;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .quote-form {
    padding: 1.5rem;
  }
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-brand .logo {
  color: #fff;
  font-size: 1.25rem;
}

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

.footer-tagline {
  font-size: 0.875rem;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.social-link:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}


/* ============================================
   RESPONSIVE REFINEMENTS
   ============================================ */
@media (max-width: 480px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero {
    min-height: 80vh;
  }

  .services-grid,
  .results-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .services-grid,
  .results-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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