/* Window Cleaning Website — Design System */


:root {
  --ink: #0f172a;
  --slate: #334155;
  --sky: #0284c7;
  --cream: #f8fafc;
  --surface: #ffffff;
  --sun: #d97706;
  --sun-wash: #fffbeb;
  --success: #059669;
  --border: #e2e8f0;
  --error: #dc2626;
  --eggshell: #B2B4AD;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--cream);
  color: var(--slate);
  -webkit-font-smoothing: antialiased;
  line-height: var(--leading-snug);
}

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

a {
  color: var(--sky);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Typography */
h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: var(--leading-tight);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.text-5xl { font-size: var(--text-5xl); }
.text-4xl { font-size: var(--text-4xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-xl  { font-size: var(--text-xl); }
.text-lg  { font-size: var(--text-lg); }
.text-base { font-size: var(--text-base); }
.text-sm  { font-size: var(--text-sm); }
.text-xs  { font-size: var(--text-xs); }

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  background: rgba(15, 23, 42, 0.3);
  border-bottom: 1px solid transparent;
}

.site-nav.is-scrolled {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--eggshell);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  text-decoration: none;
}

.logo-text {
  position: relative;
  display: inline-block;
}

.logo-text::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--sun);
  transform: translateX(-50%);
  transition: width 0.3s ease-out;
}

.logo:hover .logo-text::after {
  width: 100%;
}

.logo:hover {
  text-decoration: none;
  color: #FEFBEB;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: var(--sky);
  color: var(--sun);
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Molle', cursive;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  padding-top: 0.125rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--eggshell);
}

.nav-links a {
  color: currentColor;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #FEFBEB;
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.35);
}

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

.btn-secondary {
  background-color: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.05);
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  margin-top: -4.5rem;
  padding-top: 4.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.55) 50%,
    rgba(15, 23, 42, 0.25) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 640px;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: 2rem;
  line-height: var(--leading-normal);
}

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

/* Sections */
.section {
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--sky) 35%, var(--border));
  box-shadow: 0 24px 32px -12px rgb(15 23 42 / 0.12), 0 8px 12px -8px rgb(15 23 42 / 0.06);
}

/* 9:16 portrait image header */
.service-media {
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
  background: var(--border);
}

.service-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-img {
  transform: scale(1.05);
}

/* Card body */
.service-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--sky);
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-size: var(--text-xl);
  line-height: var(--leading-tight);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--slate);
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.service-link span {
  transition: transform 0.25s ease;
}

.service-card:hover .service-link {
  color: var(--sky);
  gap: 0.65rem;
}

.price-tag {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.price-note {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--cream);
  border-left: 3px solid var(--sky);
  font-size: var(--text-sm);
  color: var(--slate);
  border-radius: 0 0.375rem 0.375rem 0;
}

/* Deals */
.deals-section {
  background: var(--sun-wash);
}

.deals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.deal-card {
  background: var(--surface);
  border-left: 4px solid var(--sun);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

.deal-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--sun);
  color: #fff;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  animation: subtle-pulse 2.5s ease-in-out infinite;
}

@keyframes subtle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.deal-card h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.deal-card p {
  font-size: var(--text-sm);
  color: var(--slate);
  margin: 0;
}

/* Quote Form */
.quote-form-card {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  background: var(--surface);
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.form-group {
  margin-bottom: 1.25rem;
}

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

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

label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
}

.helper-text {
  font-size: var(--text-xs);
  color: var(--slate);
  margin-top: 0.25rem;
  display: block;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: var(--error);
}

input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.error-message {
  font-size: var(--text-sm);
  color: var(--error);
  margin-top: 0.375rem;
  display: none;
}

.error-message.is-visible {
  display: block;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 0;
}

.radio-label input[type="radio"] {
  width: auto;
  min-height: auto;
  accent-color: var(--sky);
}

/* Success state */
.success-state {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.success-state.is-visible {
  display: block;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.success-state h3 {
  color: var(--success);
  margin-bottom: 0.5rem;
}

.success-state p {
  color: var(--slate);
  margin: 0;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.testimonial-card {
  background: var(--surface);
  border-top: 4px solid var(--sky);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

.stars {
  color: var(--sun);
  font-size: var(--text-base);
  margin-bottom: 0.75rem;
}

.testimonial-card p {
  font-size: var(--text-base);
  color: var(--slate);
  margin-bottom: 1rem;
  line-height: var(--leading-normal);
}

.testimonial-card footer {
  font-size: var(--text-sm);
  color: var(--slate);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: var(--text-lg);
  margin-bottom: 0.5rem;
}

.site-footer p {
  font-size: var(--text-sm);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: var(--text-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: #fff;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

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

.phone-link {
  font-weight: 700;
  color: var(--eggshell);
  font-size: 1.125rem;
}

.phone-link:hover {
  color: #FEFBEB;
  text-decoration: none;
}

/* Trust bar */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate);
}

.trust-badge .icon {
  color: var(--sun);
}

/* Card icon utility */
.card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--sky);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Why us section */
.why-section {
  background: var(--surface);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  padding: 1.25rem;
}

.why-card h3 {
  font-size: var(--text-lg);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.before-after {
  position: relative;
}

/* Add-ons table */
.addons-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.addons-table th,
.addons-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.addons-table th {
  color: var(--ink);
  font-weight: 600;
  background: var(--cream);
}

.addons-table td:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

/* Service areas */
.service-areas-section {
  background: var(--surface);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  color: var(--slate);
  font-weight: 500;
}

/* FAQ */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-base);
  font-family: var(--font-sans);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 1.25rem 1rem;
  color: var(--slate);
  margin: 0;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

/* Footer phone */
.footer-phone {
  margin-top: 0.5rem;
  font-weight: 600;
}

.footer-phone a {
  color: rgba(255, 255, 255, 0.9);
}

.footer-phone a:hover {
  color: #fff;
}

/* Utility */
.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;
}

.text-center {
  text-align: center;
}

.full-width {
  width: 100%;
}
