/* Hesperia Window Cleaning - site styles
   Palette derived from competitor research (High Desert + national window
   cleaning sites reviewed): deep navy base for trust, warm amber accent for
   the desert setting and CTA contrast. Distinct from any single reference. */

:root {
  --navy: #16324f;
  --navy-dark: #0d2036;
  --navy-darker: #081526;
  --amber: #f0a202;
  --amber-dark: #cf8b00;
  --bg-light: #f7f8fa;
  --white: #ffffff;
  --text-dark: #1f2a37;
  --text-muted: #5b6b7c;
  --border: #e2e7ed;
  --success: #2e7d4f;
  --error: #b3261e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

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

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

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

h1, h2, h3 {
  line-height: 1.2;
  color: var(--navy-dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 16px; }
h3 { font-size: 1.2rem; margin-bottom: 8px; }

p { margin-bottom: 16px; }

section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-light);
}

/* ---------- HEADER ---------- */
.site-header {
  background: var(--navy-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}

.logo img { height: 38px; width: 38px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover { color: var(--amber); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.call-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: var(--navy-darker);
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.call-badge .icon-circle {
  background: var(--navy-darker);
  color: var(--amber);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.call-badge .call-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.call-badge .call-label {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
}

.call-badge .call-number {
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8,21,38,0.92) 0%, rgba(8,21,38,0.72) 40%, rgba(8,21,38,0.35) 75%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  padding-bottom: 60px;
  max-width: 720px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero-badges span {
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.hero .subhead {
  font-size: 1.15rem;
  margin-bottom: 26px;
  color: #dbe4ee;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-darker);
}

.btn-primary:hover { background: var(--amber-dark); }

.btn-phone {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}

.btn-phone .icon-circle {
  background: var(--white);
  color: var(--navy-dark);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-phone:hover { background: rgba(255,255,255,0.12); }

/* ---------- CONTENT + FORM TWO-COLUMN ---------- */
.content-form-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.content-col h2 {
  color: var(--navy);
}

.content-col p strong,
.service-body p strong {
  color: var(--navy-dark);
}

.form-col {
  position: sticky;
  top: 90px;
}

.quote-form-card {
  border: 2px solid var(--amber);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 6px 24px rgba(15,36,54,0.12);
}

.quote-form-banner {
  background: var(--navy);
  color: var(--white);
  padding: 16px 20px;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
}

.quote-form {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quote-form label {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
  display: block;
  color: var(--navy-dark);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.quote-form textarea { resize: vertical; min-height: 80px; }

.quote-form button {
  background: var(--amber);
  color: var(--navy-darker);
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.quote-form button:hover { background: var(--amber-dark); }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.form-status {
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  display: none;
}

.form-status.success { display: block; color: var(--success); }
.form-status.error { display: block; color: var(--error); }

/* ---------- INLINE PHOTOS ---------- */
.inline-photo {
  width: 100%;
  border-radius: 10px;
  margin: 24px 0;
  overflow: hidden;
}

.inline-photo-float {
  float: right;
  width: 320px;
  max-width: 45%;
  margin: 6px 0 20px 24px;
  border-radius: 10px;
  overflow: hidden;
}

.photo-placeholder {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(45deg, #dde3ea, #dde3ea 14px, #ced7e0 14px, #ced7e0 28px);
  border: 1px dashed #9fb0c0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.inline-photo-float .photo-placeholder {
  aspect-ratio: 4 / 5;
}

.inline-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.inline-photo-float img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

/* ---------- SERVICES SECTION ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15,36,54,0.06);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(15,36,54,0.18);
  border-color: var(--amber);
}

.service-card-image .photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
}

.service-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

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

.service-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.service-card p { color: var(--text-muted); margin-bottom: 14px; }

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--amber-dark);
}

.service-card .arrow { display: inline-block; transition: transform 0.18s ease; }
.service-card:hover .arrow, .service-card:focus-visible .arrow { transform: translateX(4px); }

/* ---------- TRUST SECTION ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.trust-item {
  background: var(--white);
  border-left: 4px solid var(--amber);
  padding: 18px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(15,36,54,0.06);
}

.trust-item h3 { color: var(--navy); font-size: 1.05rem; }
.trust-item p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item h3 { color: var(--navy); margin-bottom: 8px; }
.faq-item p { margin-bottom: 0; color: var(--text-muted); }

/* ---------- SERVICE PAGE SECTIONS ---------- */
.service-body section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service-body section:last-of-type { border-bottom: none; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 48px 0;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: #dbe4ee; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-darker);
  color: #cdd8e2;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.site-footer a {
  color: #cdd8e2;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #93a3b3;
}

/* ---------- SERVICE HERO (smaller than homepage hero) ---------- */
.service-hero {
  min-height: 420px;
}

.service-hero .container { max-width: 760px; }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .main-nav .nav-links { display: none; }
  .menu-toggle { display: block; }

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

  .form-col {
    order: -1;
    position: static;
  }

  .content-col {
    order: 0;
  }

  .inline-photo-float {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
  }

  .inline-photo-float .photo-placeholder {
    aspect-ratio: 16/10;
  }

  .hero { min-height: 460px; }
}

@media (max-width: 600px) {
  .call-badge .call-label { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}

/* ---------- MOBILE NAV PANEL ---------- */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  padding: 12px 20px 20px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 600;
}
