/* ============================================================
   Lake Villa Plumbing Pros — styles.css
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --accent: #FF6F00;
  --accent-dark: #E65100;
  --text: #212121;
  --light-bg: #F5F5F5;
  --white: #FFFFFF;
  --gray: #757575;
  --border: #E0E0E0;
  --shadow: 0 2px 8px rgba(0,0,0,0.12);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.18);
  --radius: 6px;
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5 { line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p { margin-bottom: 1rem; }
section { padding: 60px 0; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* --- Utility --- */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}
.btn-lg { padding: 16px 38px; font-size: 1.1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.9rem; }

/* --- Phone CTA --- */
.phone-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 22px;
  border-radius: var(--radius);
  transition: background var(--transition);
  white-space: nowrap;
}
.phone-cta:hover { background: var(--accent-dark); color: var(--white); }

/* --- Top Bar --- */
.top-bar {
  background: var(--primary-dark);
  color: #B3C9F0;
  font-size: 0.85rem;
  padding: 7px 0;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: #CFD9F5; font-weight: 600; }
.top-bar a:hover { color: var(--white); }

/* --- Sticky Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1140px;
  margin: 0 auto;
  gap: 16px;
  flex-wrap: wrap;
}
.logo a {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.logo span { color: var(--accent); }
.logo small { display: block; font-size: 0.78rem; font-weight: 400; color: var(--gray); }

/* --- Navigation --- */
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--light-bg);
  color: var(--primary);
}

/* Dropdown */
.nav-item { position: relative; }
.nav-item > a::after { content: " ▾"; font-size: 0.7rem; }
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--light-bg); }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  background: var(--light-bg);
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--gray);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: var(--gray); }
.breadcrumbs a { color: var(--primary); }

/* --- Hero --- */
.hero-placeholder {
  min-height: 500px;
  background: linear-gradient(135deg, #1565C0, #0D47A1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  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; max-width: 720px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 5px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.hero-placeholder h1 {
  color: var(--white);
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3rem);
}
.hero-placeholder p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 28px;
}
.hero-cta-group { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-note { font-size: 0.85rem; opacity: 0.75; margin-top: 14px; }

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { color: var(--primary-dark); margin-bottom: 10px; }
.section-header p { color: var(--gray); max-width: 620px; margin: 0 auto; }
.divider {
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.service-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.1rem; }
.service-card p { color: var(--gray); font-size: 0.93rem; flex: 1; }
.service-card .btn { margin-top: 18px; align-self: flex-start; }

/* --- Why Choose Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}
.why-item {
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.why-icon { font-size: 2.5rem; margin-bottom: 14px; }
.why-item h3 { color: var(--primary); font-size: 1rem; margin-bottom: 8px; }
.why-item p { color: var(--gray); font-size: 0.88rem; margin: 0; }

/* --- Testimonials --- */
.testimonials-section { background: var(--light-bg); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.stars { color: #FFC107; font-size: 1.1rem; margin-bottom: 10px; }
.testimonial-card blockquote {
  font-style: italic;
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 14px;
  line-height: 1.65;
}
.reviewer-name { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.reviewer-location { font-size: 0.82rem; color: var(--gray); }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  font-size: 0.97rem;
}
.faq-question::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; }
.faq-answer {
  padding: 0 20px 18px;
  color: var(--gray);
  font-size: 0.93rem;
  display: none;
  background: var(--white);
}
.faq-item.open .faq-question::after { content: "−"; }
.faq-item.open .faq-answer { display: block; }

/* --- CTA Band --- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { opacity: 0.88; margin-bottom: 26px; font-size: 1.05rem; }
.cta-band .btn-primary { font-size: 1.15rem; padding: 16px 38px; }

/* --- Service Page Content --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { opacity: 0.88; max-width: 640px; margin: 0 auto 22px; }
.content-section { padding: 50px 0; }
.content-section h2 { color: var(--primary-dark); margin-bottom: 14px; }
.content-section h3 { color: var(--primary); margin: 22px 0 8px; }
.content-section ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1rem;
  color: var(--gray);
}
.content-section ul li { margin-bottom: 6px; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.sidebar-cta {
  background: var(--light-bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  position: sticky;
  top: 90px;
}
.sidebar-cta h3 { color: var(--primary-dark); margin-bottom: 10px; }
.sidebar-cta p { font-size: 0.9rem; color: var(--gray); margin-bottom: 18px; }
.sidebar-cta .phone-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}

/* --- Footer --- */
.site-footer {
  background: var(--primary-dark);
  color: #B3C9F0;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
.footer-brand .logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.65; }
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links li { margin-bottom: 7px; }
.footer-links a {
  color: #B3C9F0;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: #CFD9F5; }

/* --- Badges row --- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 30px 0;
}
.badge {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  text-align: center;
  min-width: 120px;
  box-shadow: var(--shadow);
}
.badge strong { display: block; font-size: 1rem; color: var(--primary); }
.badge span { font-size: 0.78rem; color: var(--gray); }

/* --- Location cards --- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.location-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition);
}
.location-card:hover { transform: translateY(-3px); }
.location-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.05rem; }
.location-card p { color: var(--gray); font-size: 0.88rem; margin-bottom: 14px; }

/* --- Media Queries --- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sidebar-cta { position: static; }
}

@media (max-width: 700px) {
  .main-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px 20px;
    z-index: 999;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 14px; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary);
    border-radius: 0;
    margin-left: 14px;
    margin-top: 4px;
  }
  .nav-item > a::after { content: ""; }
  .nav-toggle { display: flex; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .hero-placeholder { min-height: 380px; }
  .hero-cta-group { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
  .top-bar .container { justify-content: center; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}


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