/* Ken Evans Plumbing & Heating Ltd — site.css */
/* mobile responsiveness guardrails: no horizontal scroll, all sections stack cleanly at 640px and below */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #1a2d4a;
  --blue: #2e6da4;
  --orange: #d4641c;
  --light: #f5f7fa;
  --white: #ffffff;
  --text: #1e1e1e;
  --muted: #5a6a7a;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--light); line-height: 1.6; }

/* HEADER */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: var(--shadow);
}
.header-brand { color: var(--white); font-weight: 700; font-size: 1.1rem; text-decoration: none; padding: 1rem 0; }
.header-nav { display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.header-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.9rem; padding: 0.6rem 0.9rem; border-radius: var(--radius); transition: background 0.2s; }
.header-nav a:hover { background: rgba(255,255,255,0.12); }
.header-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--orange); color: var(--white);
  padding: 0.55rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; text-decoration: none;
  transition: background 0.2s;
}
.header-cta:hover { background: #b85016; }

/* HERO */
.hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero img.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(26,45,74,0.82) 0%, rgba(46,109,164,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 5rem 2rem 4rem;
  width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  color: var(--white); padding: 0.35rem 0.85rem;
  border-radius: 50px; font-size: 0.82rem; margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,0.25);
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; max-width: 700px; margin-bottom: 1rem; }
.hero p { color: rgba(255,255,255,0.88); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 560px; margin-bottom: 2rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--orange); color: var(--white);
  padding: 0.8rem 1.6rem; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none;
  transition: background 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { background: #b85016; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(4px);
  color: var(--white); padding: 0.8rem 1.6rem;
  border-radius: var(--radius); font-weight: 600;
  font-size: 1rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.35);
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }

/* PROOF BAR */
.proof-bar {
  background: var(--navy); color: var(--white);
  padding: 1rem 2rem;
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center;
  align-items: center;
}
.proof-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.proof-icon { color: var(--orange); font-size: 1.1rem; }

/* SECTIONS */
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-label { color: var(--orange); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.section-title { color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 2rem; line-height: 1.2; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--white); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  border-top: 3px solid var(--blue);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
.service-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.service-card h3 { color: var(--navy); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* PROOF */
.proof-section { background: var(--white); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.proof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat-card { background: var(--light); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.stat-number { color: var(--navy); font-size: 2rem; font-weight: 800; }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 0.25rem; }
.proof-image { width: 100%; border-radius: var(--radius); object-fit: cover; max-height: 320px; }

/* REVIEWS */
.reviews-section { background: var(--light); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); position: relative; }
.review-card::before { content: '\201C'; color: var(--orange); font-size: 4rem; line-height: 1; position: absolute; top: 0.5rem; left: 1rem; opacity: 0.4; font-family: Georgia, serif; }
.review-stars { color: #f5a623; font-size: 0.95rem; margin-bottom: 0.6rem; letter-spacing: 2px; }
.review-text { color: var(--text); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.review-author { color: var(--navy); font-weight: 700; font-size: 0.88rem; }
.review-badge { display: inline-flex; align-items: center; gap: 0.3rem; background: #e8f4e8; color: #2d7a2d; padding: 0.25rem 0.65rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; margin-top: 0.5rem; }

/* LOCATION */
.location-section { background: var(--white); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.location-info h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 1rem; }
.info-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.92rem; }
.info-icon { color: var(--orange); font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.location-info a { color: var(--blue); text-decoration: none; }
.location-info a:hover { text-decoration: underline; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours-table tr { border-bottom: 1px solid #e5e7eb; }
.hours-table td { padding: 0.4rem 0; font-size: 0.9rem; }
.hours-table td:first-child { color: var(--muted); width: 45%; }
.hours-table td:last-child { color: var(--text); font-weight: 500; }
.map-embed { width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid #e5e7eb; }
.map-embed iframe { width: 100%; height: 360px; border: none; display: block; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 760px; }
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq-question { width: 100%; background: none; border: none; padding: 1.1rem 1.25rem; text-align: left; font-size: 0.97rem; font-weight: 700; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font); transition: background 0.2s; }
.faq-question:hover { background: #f0f4f8; }
.faq-toggle { color: var(--orange); font-size: 1.2rem; flex-shrink: 0; transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 1.25rem 1.1rem; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }

/* CTA BANNER */
.cta-banner { background: var(--navy); color: var(--white); padding: 4rem 2rem; text-align: center; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* FOOTER */
footer { background: #111827; color: rgba(255,255,255,0.6); padding: 2rem; text-align: center; font-size: 0.85rem; }
footer a { color: rgba(255,255,255,0.75); text-decoration: none; }
footer a:hover { color: var(--white); }

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .proof-grid, .location-grid { grid-template-columns: 1fr; }
  .map-embed iframe { height: 280px; }
}
@media (max-width: 640px) {
  header { flex-wrap: wrap; gap: 0.5rem; padding: 0.75rem 1rem; }
  .header-nav { display: none; }
  .hero { min-height: 60vh; }
  .hero-content { padding: 3rem 1.25rem 3rem; }
  .section { padding: 3rem 1.25rem; }
  .proof-bar { padding: 1rem; gap: 1rem; }
}
