/* ─────────────────────────────────────────
   CLEARVIEW WINDOW CLEANING – styles.css
   ───────────────────────────────────────── */

:root {
  /* Brand reds — from the ClearView logo script */
  --red:         #c81b1b;
  --red-dark:    #a51515;
  --red-light:   #fdf0f0;
  /* Brand blue — from the "Window Cleaning" text in the logo */
  --blue:        #1e78c2;
  --blue-dark:   #1558a0;
  --blue-light:  #e8f2fd;
  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-300:    #cbd5e1;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --green:       #16a34a;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.15);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--gray-700); background: var(--white); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary  { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-light); }
.btn-call     { background: var(--blue); color: var(--white); padding: 10px 20px; font-size: .9rem; }
.btn-call:hover { background: var(--blue-dark); }
.btn-call-hero { background: rgba(255,255,255,.18); color: var(--white); border: 2px solid rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-call-hero:hover { background: rgba(255,255,255,.28); }
.btn-submit { width: 100%; justify-content: center; font-size: 1.05rem; padding: 16px; }

/* ── SECTION TITLES ── */
.section-title { font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; }
.section-sub   { color: var(--gray-500); font-size: 1.05rem; margin-bottom: 48px; }

/* ────────────────────────────────
   NAVBAR
──────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 100px; width: auto; display: block; }
.logo-accent { color: var(--blue); }
.footer-logo { height: 70px; width: auto; margin-bottom: 10px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--gray-700); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--red); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--gray-700); }
.mobile-menu { display: none; flex-direction: column; gap: 12px; padding: 16px 24px; background: var(--white); border-top: 1px solid var(--gray-100); }
.mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--gray-700); }
.mobile-menu.open { display: flex; }

/* ────────────────────────────────
   HERO
──────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #c81b1b 0%, #8a1010 55%, #3a0606 100%);
  overflow: hidden;
}
/* Decorative bubbles */
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  top: -200px; right: -150px;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: rgba(30,120,194,.15);
  border-radius: 50%;
  bottom: -150px; left: -100px;
}
.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 680px;
  padding: 80px 24px;
}
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .03em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero-sub { font-size: 1.15rem; opacity: .85; margin-bottom: 36px; line-height: 1.6; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ────────────────────────────────
   TRUST BAR
──────────────────────────────── */
.trust-bar { background: var(--red-dark); padding: 18px 0; }
.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 40px;
}
.trust-item { color: var(--white); font-size: .95rem; font-weight: 600; }

/* ────────────────────────────────
   SERVICES
──────────────────────────────── */
.services { padding: 90px 0; background: var(--gray-50); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border-top: 4px solid var(--red);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.badge-anytime {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
}
.service-icon { font-size: 2.2rem; margin-bottom: 14px; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.service-card p  { color: var(--gray-500); line-height: 1.65; font-size: .95rem; }

/* ────────────────────────────────
   WHY US
──────────────────────────────── */
.why-us { padding: 90px 0; background: var(--white); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.why-list { list-style: none; display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.why-list strong { display: block; font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.why-list p { color: var(--gray-500); line-height: 1.6; font-size: .95rem; }
.why-image-placeholder {
  background: var(--red-light);
  border-radius: 16px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--red);
  border: 2px dashed var(--red);
}
.why-image-placeholder span { font-size: 3rem; }
.why-image-placeholder p { font-weight: 600; font-size: .95rem; }

/* ────────────────────────────────
   BOOKING FORM
──────────────────────────────── */
.booking { padding: 90px 0; background: var(--gray-50); }
.booking .section-title,
.booking .section-sub { text-align: center; }

/* Tabs */
.form-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; flex-wrap: wrap; }
.tab-btn {
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--red);
  background: var(--white);
  color: var(--red);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.tab-btn.active, .tab-btn:hover { background: var(--red); color: var(--white); }

/* Form */
.booking-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--gray-700); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--gray-900);
  transition: border-color .15s, box-shadow .15s;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200,27,27,.12);
}
.form-note { text-align: center; color: var(--gray-500); font-size: .875rem; margin-top: 16px; }
.form-note a { color: var(--red); font-weight: 600; }

/* Hidden appointment-only fields */
.appointment-only { transition: opacity .2s; }
.appointment-only.hidden { display: none; }

/* Minimum price banner */
.min-price-banner {
  background: #fffbea;
  border: 1.5px solid #f0c040;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: .925rem;
  color: var(--gray-700);
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Checkbox grid */
.label-sub { font-weight: 400; color: var(--gray-500); font-size: .8rem; margin-left: 6px; }
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .925rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: border-color .15s, background .15s;
  user-select: none;
}
.checkbox-item:hover { border-color: var(--red); background: var(--red-light); }
.checkbox-item input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--red); flex-shrink: 0; cursor: pointer; }
.checkbox-item:has(input:checked) { border-color: var(--red); background: var(--red-light); }
.checkbox-error { color: var(--red); font-size: .85rem; margin-top: 6px; font-weight: 600; }

/* Gutter list note */
.gutter-note {
  background: var(--blue-light);
  border: 1.5px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .925rem;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Success */
.form-success {
  display: none;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.form-success.show { display: block; }
.success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.form-success h3 { font-size: 1.6rem; font-weight: 800; color: var(--gray-900); margin-bottom: 10px; }
.form-success p { color: var(--gray-500); line-height: 1.6; }
.form-success a { color: var(--red); font-weight: 600; }

/* ────────────────────────────────
   FOOTER
──────────────────────────────── */
.footer { background: var(--gray-900); color: var(--gray-300); padding: 60px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo-text { color: var(--white); font-size: 1.1rem; font-weight: 800; }
.footer-brand p { margin-top: 12px; font-size: .9rem; line-height: 1.6; max-width: 280px; }
.footer h4 { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 14px; }
.footer-contact p { font-size: .9rem; margin-bottom: 8px; }
.footer-contact a { color: var(--gray-300); transition: color .15s; }
.footer-contact a:hover { color: var(--white); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .9rem; color: var(--gray-300); transition: color .15s; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 18px;
  font-size: .85rem;
  color: var(--gray-500);
}

/* ────────────────────────────────
   FLOATING CALL BUTTON (mobile)
──────────────────────────────── */
.float-call-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--red);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
}
.float-call-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(0,0,0,.28); }

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 900px) {
  .why-inner { grid-template-columns: 1fr; }
  .why-image { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .booking-form { padding: 28px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .float-call-btn { display: flex; align-items: center; gap: 8px; }
  .section-title { font-size: 1.6rem; }
}
