/* ===== Beaumont Drainage Solutions — Global Styles ===== */

:root {
  --primary: #1a5fb4;
  --primary-dark: #0d3b7a;
  --primary-light: #e8f0fe;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f3f4f6;
  --bg-dark: #111827;
  --border: #e5e7eb;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --max-width: 1140px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ===== Utility ===== */
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== Header ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.logo span { color: var(--text); }

/* Nav */
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--primary);
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: .6rem 1.25rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background .2s;
}
.header-cta:hover { background: var(--accent-hover); color: #fff; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: .3s;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  opacity: .9;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  transition: background .2s, transform .2s;
}
.hero-cta:hover { background: var(--accent-hover); color: #fff; transform: translateY(-2px); }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-light); }
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .75rem;
}
.section-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Cards Grid ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--text-light); font-size: .95rem; }

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--bg-light);
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: center;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}
.trust-item svg { color: var(--primary); flex-shrink: 0; }

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 3.5rem 0;
}
.cta-banner h2 { font-size: 1.75rem; margin-bottom: .75rem; }
.cta-banner p { opacity: .9; margin-bottom: 1.5rem; }

/* ===== Two Column ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col--reverse .two-col__text { order: 2; }
.two-col__img {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .9rem;
}
.two-col__text h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.two-col__text p { color: var(--text-light); margin-bottom: 1rem; }

/* ===== Checklist ===== */
.checklist { padding-left: 0; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.checklist li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 1.25rem; color: var(--primary); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: .75rem; color: var(--text-light); }

/* ===== Contact Form ===== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .35rem;
  font-size: .95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,95,180,.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: var(--primary-dark); }

/* ===== Contact Info ===== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.contact-block h3 { font-size: 1rem; margin-bottom: .25rem; }
.contact-block p { color: var(--text-light); font-size: .95rem; }
.contact-block a { font-weight: 600; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark);
  color: #9ca3af;
  padding: 3rem 0 1.5rem;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.site-footer p { margin-bottom: .5rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: .75rem; }
.site-footer ul li { margin-bottom: .4rem; }
.site-footer a { color: #9ca3af; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
}

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: .75rem; color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ===== Social Proof ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  text-align: center;
  padding: 2.5rem 0;
}
.stat-item { min-width: 140px; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label {
  font-size: .9rem;
  color: var(--text-light);
  margin-top: .25rem;
}

/* ===== Privacy Note ===== */
.privacy-note {
  font-size: .8rem;
  color: rgba(255,255,255,.7);
  margin-top: .75rem;
}
.privacy-note--dark {
  color: var(--text-light);
}

/* ===== Honeypot ===== */
.ohnohoney { opacity: 0; position: absolute; top: 0; left: 0; height: 0; width: 0; z-index: -1; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .75rem; }
  .header-cta { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .two-col--reverse .two-col__text { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3rem 0; }
  .trust-items { gap: 1.5rem; }
}
