/* =============================================
   Ingleside Plumbing Co — styles.css
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --accent: #FF6F00;
  --accent-hover: #E65100;
  --text: #212121;
  --text-light: #555555;
  --light-bg: #F5F5F5;
  --white: #FFFFFF;
  --border: #DDDDDD;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 6px 24px rgba(0,0,0,0.15);
  --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: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
strong { font-weight: 700; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.section { padding: 60px 0; }
.section-alt { background: var(--light-bg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-align: center;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-hover);
  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: 18px 40px; font-size: 1.15rem; }

/* ---------- Phone CTA ---------- */
.phone-cta {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.5px;
}
.phone-cta:hover { color: var(--accent-hover); }
.phone-cta-sm {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.phone-cta-sm:hover { color: var(--accent-hover); }

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.9rem;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.top-bar a { color: var(--white); }
.top-bar a:hover { color: #FFD54F; }
.top-bar-phone { font-weight: 700; font-size: 1rem; }

/* ---------- Header ---------- */
header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}
.logo {
  display: flex;
  flex-direction: column;
}
.logo-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}
.logo-tagline {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
}
.header-phone {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
}
.header-phone:hover { color: var(--accent-hover); }

/* ---------- Navigation ---------- */
nav { background: var(--primary); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  display: block;
  color: var(--white);
  padding: 13px 16px;
  font-size: 0.93rem;
  font-weight: 600;
  transition: background var(--transition);
}
nav a:hover, nav a.active { background: var(--primary-dark); color: var(--white); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 16px;
  color: var(--white);
  font-size: 1.5rem;
}
.nav-menu { display: flex; flex-wrap: wrap; }

/* ---------- 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;
}
.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.03'%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; max-width: 800px; }
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-placeholder h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-sub {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 14px;
}

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { color: var(--primary); margin-bottom: 10px; }
.section-header p { color: var(--text-light); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }
.section-header .underline {
  width: 60px; height: 4px;
  background: var(--accent);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ---------- Service Cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  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.4rem;
  margin-bottom: 14px;
}
.service-card h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }
.service-card .btn { margin-top: 16px; align-self: flex-start; padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Why Choose Us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-item h4 { color: var(--primary); margin-bottom: 4px; }
.feature-item p { font-size: 0.95rem; color: var(--text-light); margin: 0; }

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--primary);
  color: var(--white);
  padding: 22px 0;
}
.trust-items {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 1.9rem;
  color: var(--white);
}
.trust-item span { font-size: 0.88rem; opacity: 0.85; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.stars { color: #FFB300; font-size: 1.1rem; margin-bottom: 10px; }
.testimonial-card p { font-size: 0.94rem; color: var(--text-light); font-style: italic; }
.reviewer { margin-top: 12px; font-weight: 700; font-size: 0.92rem; color: var(--primary); }
.reviewer span { font-weight: 400; color: var(--text-light); }

/* ---------- 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 {
  background: var(--light-bg);
  padding: 16px 20px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
}
.faq-answer {
  padding: 16px 20px;
  font-size: 0.96rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  background: var(--white);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}
.cta-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 28px; font-size: 1.05rem; }
.cta-banner .phone-cta { font-size: 2rem; color: #FFD54F; display: block; margin-bottom: 20px; }
.cta-banner .btn-accent { font-size: 1.1rem; padding: 16px 36px; }

/* ---------- Service Area ---------- */
.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.pill {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
}
.pill:hover { background: var(--primary); color: var(--white); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--light-bg);
  padding: 10px 0;
  font-size: 0.88rem;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs .container { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { color: #999; }

/* ---------- 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); font-size: 2.1rem; margin-bottom: 10px; }
.page-hero p { opacity: 0.9; font-size: 1.05rem; margin-bottom: 20px; }
.page-hero .phone-cta { color: #FFD54F; font-size: 1.6rem; }

.page-body { padding: 50px 0; }
.page-body h2 { color: var(--primary); margin: 32px 0 14px; }
.page-body h3 { color: var(--primary-dark); margin: 24px 0 10px; }
.page-body ul { list-style: disc; padding-left: 24px; margin-bottom: 1rem; }
.page-body ul li { margin-bottom: 6px; color: var(--text-light); }
.page-body .side-cta {
  background: var(--light-bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}
.page-body .side-cta h3 { color: var(--primary); margin-bottom: 8px; }
.page-body .side-cta .phone-cta { display: block; margin: 12px 0; font-size: 1.6rem; }

/* ---------- Two Column Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}
.sticky-sidebar { position: sticky; top: 90px; }
.sidebar-card {
  background: var(--light-bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.sidebar-card h4 { color: var(--primary); margin-bottom: 10px; }
.sidebar-card .phone-cta { display: block; font-size: 1.5rem; margin: 10px 0; }
.sidebar-card .btn { width: 100%; }

/* ---------- Footer ---------- */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}
footer ul li { margin-bottom: 8px; font-size: 0.92rem; }
footer ul li a { color: rgba(255,255,255,0.8); transition: color var(--transition); }
footer ul li a:hover { color: #FFD54F; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer-desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; }
.footer-phone { font-size: 1.2rem; font-weight: 700; color: #FFD54F; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- 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: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
}

@media (max-width: 700px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero-placeholder { min-height: 400px; }
  .hero-placeholder h1 { font-size: 1.9rem; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 22px; }
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-menu.open { display: flex; }
  .nav-inner { flex-wrap: wrap; }
  nav a { width: 100%; border-top: 1px solid rgba(255,255,255,0.1); }
  .cta-banner .phone-cta { font-size: 1.5rem; }
  .page-hero h1 { font-size: 1.7rem; }
  .header-inner { padding: 12px 16px; }
  .header-phone { font-size: 1.05rem; }
  .top-bar .container { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; }
}

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