/* ==========================================================================
   Chicago Window Trim Repair Pros — Site Stylesheet
   ========================================================================== */

:root {
  --navy: #0b2545;
  --navy-light: #143a66;
  --red: #c8102e;
  --red-dark: #a10d25;
  --blue: #1e5fa8;
  --white: #ffffff;
  --off-white: #f6f7f9;
  --gray-100: #eef0f3;
  --gray-300: #d7dbe1;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --text: #1a1f2b;
  --radius: 0;
  --shadow: 0 4px 14px rgba(11, 37, 69, 0.12);
  --shadow-lg: 0 10px 30px rgba(11, 37, 69, 0.18);
  --max-width: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.25rem; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 64px 0; }
section[id], #lead-form { scroll-margin-top: 96px; }
.section-alt { background: var(--off-white); }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--navy); margin: 0 0 16px; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--gray-700); }
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--gray-700); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red { background: var(--red); color: var(--white); box-shadow: var(--shadow); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--navy);
  border-bottom: 4px solid var(--red);
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--white);
  font-size: 1.15rem;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: #ff8a70; text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  font-weight: 800;
  color: var(--white);
  font-size: 1.05rem;
  white-space: nowrap;
}
.header-phone span { display: block; font-size: 0.68rem; color: #b9c6da; font-weight: 600; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span { width: 26px; height: 3px; background: var(--white); border-radius: 0; }

/* Mobile nav panel */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  padding: 10px 20px 20px;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav > ul > li { border-bottom: 1px solid var(--gray-100); }
.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--navy);
}
/* Sticky mobile call bar */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 600;
}
.mobile-call-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  padding: 15px;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(200,16,46,0.45);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, rgba(11,37,69,0.90) 0%, rgba(20,58,102,0.85) 100%), url("../images/hero-bg-desktop.jpg") center/cover no-repeat;
  color: var(--white);
  padding: 56px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.hero h1 { color: var(--white); }
.hero .lead { color: #d7e2f2; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Lead form card */
.lead-form-card {
  background: var(--white);
  border-radius: 0;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.lead-form-card h2 { font-size: 1.4rem; margin-bottom: 6px; }
.lead-form-card .form-sub { color: var(--gray-500); margin-bottom: 18px; font-size: 0.92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 0;
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-disclaimer { font-size: 0.75rem; color: var(--gray-500); margin-top: 10px; }
.form-success {
  text-align: center;
  padding: 30px 10px;
}
.form-success .check {
  width: 60px; height: 60px; margin: 0 auto 16px;
  background: #1c9a5b; color: #fff; border-radius: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.hidden { display: none !important; }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar { background: var(--off-white); padding: 26px 0; border-bottom: 1px solid var(--gray-300); }
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  text-align: center;
}
.trust-item { flex: 1; min-width: 150px; }
.trust-item strong { display: block; color: var(--navy); font-size: 1rem; }
.trust-item span { font-size: 0.82rem; color: var(--gray-500); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 0;
  padding: 28px;
  height: 100%;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card .icon {
  width: 52px; height: 52px;
  background: var(--off-white);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--red);
}
.card a.card-link { font-weight: 700; }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step .num {
  width: 44px; height: 44px; border-radius: 0;
  background: var(--red); color: var(--white); font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; font-size: 1.1rem;
}

/* Problem/issue chips */
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.chip {
  background: var(--off-white);
  border: 1px solid var(--gray-300);
  padding: 8px 14px;
  border-radius: 0;
  font-size: 0.88rem;
  color: var(--gray-700);
  font-weight: 600;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--gray-300);
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 30px 18px 0;
  position: relative;
  cursor: pointer;
  font-size: 1.02rem;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.4rem;
  color: var(--red);
}
.faq-item.open .faq-question::after { content: "\2212"; }
.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--gray-700);
}
.faq-item.open .faq-answer { display: block; }

/* CTA band */
.cta-band {
  background: var(--red);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #ffe3e7; }

/* Two-column content + sidebar-ish */
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.side-card {
  background: var(--off-white);
  border: 1px solid var(--gray-300);
  border-radius: 0;
  padding: 24px;
  position: sticky;
  top: 100px;
}
.side-card h3 { margin-top: 0; }
.side-card ul { list-style: none; padding: 0; margin: 0 0 18px; }
.side-card ul li { padding: 8px 0; border-bottom: 1px solid var(--gray-300); font-size: 0.92rem; }
.side-card ul li a { font-weight: 600; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 18px; }
.breadcrumb a { color: var(--gray-500); }

/* Location grid on service-areas page */
.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.location-pill {
  display: block;
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: 0;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--navy);
}
.location-pill:hover { border-color: var(--red); text-decoration: none; color: var(--red); }
.location-pill span { display: block; font-weight: 500; color: var(--gray-500); font-size: 0.82rem; margin-top: 4px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: #cfd9ea; padding: 48px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cfd9ea; font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #9fb0c9;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-disclaimer { font-size: 0.78rem; color: #8ea0bb; max-width: 700px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { background: linear-gradient(135deg, rgba(11,37,69,0.90) 0%, rgba(20,58,102,0.85) 100%), url("../images/hero-bg-tablet.jpg") center/cover no-repeat; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-phone { display: none; }
  .mobile-nav.open { display: block; }
  .mobile-call-bar { display: block; }
  body { padding-bottom: 78px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .hero { background: linear-gradient(135deg, rgba(11,37,69,0.90) 0%, rgba(20,58,102,0.85) 100%), url("../images/hero-bg-mobile.jpg") center/cover no-repeat; }
}
