/* ============================================================
   Gurnee Plumbing Experts — Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --accent: #FF6F00;
  --accent-dark: #E65100;
  --text: #212121;
  --light-bg: #F5F5F5;
  --white: #FFFFFF;
  --border: #DDDDDD;
  --shadow: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.18);
  --radius: 6px;
  --font-main: 'Segoe UI', Arial, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.4rem; }
h1, h2, h3, h4, h5 { line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; }

/* ---------- Utility ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.2rem; }
.section { padding: 60px 0; }
.section-alt { background: var(--light-bg); }
.text-center { text-align: center; }
.section-title { margin-bottom: 0.4rem; color: var(--primary-dark); }
.section-subtitle { color: #555; margin-bottom: 2.5rem; font-size: 1.05rem; }
.highlight { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.15rem; }

/* ---------- Phone CTA ---------- */
.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.phone-cta:hover {
  background: var(--accent-dark);
  color: var(--white);
  text-decoration: none;
}
.phone-cta::before { content: "📞"; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-dark);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.2rem;
  max-width: 1140px;
  margin: 0 auto;
  gap: 1rem;
}
.logo-area { display: flex; flex-direction: column; }
.logo-name {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.logo-tagline { font-size: 0.78rem; color: #90CAF9; letter-spacing: 0.5px; }
.header-phone { flex-shrink: 0; }

/* ---------- Navigation ---------- */
.site-nav { background: var(--primary); border-top: 2px solid rgba(255,255,255,0.1); }
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}
.nav-inner a {
  color: var(--white);
  padding: 0.75rem 1rem;
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav-inner a:hover, .nav-inner a.active {
  border-bottom-color: var(--accent);
  background: rgba(255,255,255,0.07);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero-placeholder {
  min-height: 500px;
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 760px;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.hero-placeholder h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-placeholder p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-img-note {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.7rem;
  opacity: 0.5;
  font-style: italic;
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--accent);
  color: var(--white);
  padding: 0.75rem 0;
}
.trust-bar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-bar-inner span::before { margin-right: 0.35rem; }

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.service-card h3 { color: var(--primary-dark); margin-bottom: 0.5rem; }
.service-card p { color: #555; font-size: 0.95rem; flex: 1; }
.service-card .card-link {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}
.service-card .card-link:hover { color: var(--accent-dark); }

/* ---------- Why Choose Us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.feature-item h4 { color: var(--primary-dark); margin-bottom: 0.3rem; }
.feature-item p { color: #555; font-size: 0.93rem; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.stars { color: #FFC107; font-size: 1.1rem; margin-bottom: 0.5rem; }
.testimonial-card p { font-style: italic; color: #444; font-size: 0.94rem; }
.testimonial-author {
  margin-top: 0.8rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2rem; max-width: 800px; margin-left: auto; margin-right: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  padding: 1rem 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--light-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after { content: '+'; font-size: 1.3rem; color: var(--accent); }
.faq-answer {
  padding: 1rem 1.2rem;
  color: #444;
  font-size: 0.95rem;
  background: var(--white);
}

/* ---------- Location List ---------- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.location-card:hover { transform: translateY(-3px); }
.location-card h4 { color: var(--primary-dark); margin-bottom: 0.3rem; }
.location-card p { font-size: 0.88rem; color: #666; margin: 0; }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.75rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.5rem; font-size: 1.05rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
  font-size: 0.85rem;
  color: #666;
}
.breadcrumb-inner { max-width: 1140px; margin: 0 auto; padding: 0 1.2rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 0.4rem; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 50px 1.2rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.9; font-size: 1.05rem; margin-bottom: 1.2rem; }

/* ---------- Content Page Layout ---------- */
.content-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.2rem 3rem;
}
.content-wrap h2 { color: var(--primary-dark); margin: 2rem 0 0.75rem; }
.content-wrap h3 { color: var(--primary); margin: 1.5rem 0 0.5rem; }
.content-wrap ul, .content-wrap ol { margin-bottom: 1rem; }
.content-wrap li { margin-bottom: 0.4rem; }
.inline-cta {
  background: var(--light-bg);
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}
.inline-cta strong { color: var(--primary-dark); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0A2040;
  color: #CBD5E1;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.footer-col p { font-size: 0.9rem; line-height: 1.7; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #90CAF9; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding: 1.2rem 1.2rem;
  text-align: center;
  font-size: 0.82rem;
  color: #8899AA;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Media Queries ---------- */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-inner { display: none; flex-direction: column; width: 100%; }
  .nav-inner.open { display: flex; }
  .nav-inner a { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); border-left: 3px solid transparent; }
  .nav-inner a:hover { border-left-color: var(--accent); border-bottom-color: rgba(255,255,255,0.1); }
  .hero-placeholder { min-height: 420px; }
  .trust-bar-inner { gap: 1rem; font-size: 0.82rem; }
  .header-inner { flex-wrap: wrap; }
}
@media (max-width: 400px) {
  .hero-cta-group { flex-direction: column; align-items: center; }
}

/* Cloudflare Pages polish */
.hero-placeholder {
  background-image: linear-gradient(90deg, rgba(4, 18, 34, 0.84), rgba(9, 46, 82, 0.68)), url("assets/plumber-hero.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
  isolation: isolate;
}
.hero-placeholder::before {
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 34%) !important;
  pointer-events: none;
}
.hero-label,
.hero-img-label,
.hero-img-note,
.hero-image-label {
  display: none !important;
}
.hero-content,
.hero-inner {
  z-index: 1;
}