/* ADA 2026-10-28 CTA contrast: accent darkened for WCAG 1.4.3 */
/* Auto-generated for Beaumont Septic Tanks — palette + typography from SITE-SPEC.yaml.
 * Font family lists hardcoded to safe web-font stacks; Google Fonts imported inline
 * to prevent broken font-family syntax from spec data. */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --primary: #0E3A53;
  --accent: #9A3412;
  --bg: #F5F7F6;
  --text: #1A2429;
  --muted: #666;
  --card-bg: #fff;
  --border: #e2e0d8;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--primary);
  line-height: 1.25;
  margin-top: 1.6em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.55rem; border-bottom: 2px solid var(--accent); padding-bottom: 0.35em; }
h3 { font-size: 1.2rem; }
p { margin: 0.6em 0 1em; }
a { color: var(--primary); }
a:hover { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.site-header .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-weight: 700; font-size: 1.15rem; }
.site-header .brand img { width: 72px; height: 72px; border-radius: 6px; }
.site-header nav.primary a { margin-left: 18px; text-decoration: none; font-weight: 600; }
.site-header nav.primary a.cta { background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }

/* Services dropdown in nav */
.site-header nav.primary { display: flex; align-items: center; gap: 18px; }
.site-header nav.primary a { margin-left: 0; }
.site-header nav.primary a.contact-cta { border: 2px solid var(--accent); color: var(--primary); padding: 6px 14px; border-radius: 6px; }
.site-header nav.primary a.contact-cta:hover { background: var(--accent); color: #fff; }
.nav-services { position: relative; }
.nav-services > summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--primary); padding: 4px 0; }
.nav-services > summary::-webkit-details-marker { display: none; }
.nav-services[open] > summary { color: var(--accent); }
.nav-services > ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 8px 0;
  margin: 6px 0 0;
  list-style: none;
  z-index: 100;
}
.nav-services > ul > li { margin: 0; }
.nav-services > ul > li > a {
  display: block;
  padding: 8px 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-services > ul > li > a:hover { background: var(--bg); color: var(--accent); }

@media (max-width: 720px) {
  .nav-services > ul { position: static; box-shadow: none; border: none; padding-left: 12px; }
}

section { padding: 24px 0; }
section + section:not(.cta-final) { padding-top: 0; }
section:nth-of-type(even) { background: #fff; }
/* Kill the default H2 top-margin when H2 is the first child of a section — the section already provides the vertical rhythm. */
section > h2:first-child, section > h3:first-child { margin-top: 0; }

.hero { padding: 60px 0 40px; }
.hero h1 { margin-top: 0; }
.hero .lede { font-size: 1.15rem; max-width: 720px; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; }
.btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.primary:hover { background: transparent; color: var(--accent); }
.btn.secondary { background: transparent; color: var(--primary); border-color: var(--primary); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.card h3 { margin-top: 0; }

.cost-table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; }
.cost-table th, .cost-table td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.cost-table th { background: var(--primary); color: #fff; }

.area-list { columns: 2; margin: 20px 0; padding-left: 20px; }
@media (min-width: 640px) { .area-list { columns: 3; } }

.entity-list, .steps { padding-left: 24px; }
.entity-list li, .steps li { margin-bottom: 10px; }

.faq details { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; color: var(--primary); }

.cta-final { background: var(--accent); color: #fff; padding: 56px 0; }
.cta-final .wrap { padding: 0 40px; }
.cta-final h2 { color: #fff; border-bottom-color: rgba(255,255,255,0.4); margin-top: 0; }
.cta-final p { color: #fff; }
.cta-final .cta-row { margin-top: 24px; }
@media (max-width: 720px) { .cta-final { padding: 40px 0; } .cta-final .wrap { padding: 0 24px; } }
/* Force dark text INSIDE the form so labels/inputs remain readable on the accent band. */
.cta-final .callback-form { background: #fff; color: var(--text); padding: 22px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.cta-final .callback-form label,
.cta-final .callback-form .disclaimer { color: var(--text); }

.callback-form { max-width: 520px; margin: 22px auto; position: relative; }
.callback-form label { display: block; margin-bottom: 12px; font-weight: 600; color: var(--text); }
.callback-form input[type="text"],
.callback-form input[type="tel"],
.callback-form input[type="email"],
.callback-form select,
.callback-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  margin-top: 4px;
}
.callback-form textarea { min-height: 90px; resize: vertical; }
.callback-form label.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.92rem; line-height: 1.5; margin-top: 6px; padding: 12px; background: #FAF7F0; border-left: 3px solid var(--accent); border-radius: 4px; color: var(--text); }
.callback-form label.consent input[type="checkbox"] { width: auto; margin-top: 4px; }
.callback-form .submit-row { margin-top: 14px; }
.callback-form .disclaimer { color: var(--muted); margin-top: 12px; font-size: 0.85rem; line-height: 1.5; }
.callback-form .disclaimer a { color: var(--primary); text-decoration: underline; }


.page { max-width: 1080px; margin: 0 auto; padding: 20px; background: #fff; }
.page > header { margin-bottom: 30px; }
.page.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }

.site-footer { background: var(--primary); color: #fff; padding: 40px 0; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.site-footer h4 { color: var(--accent); margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer .col { min-width: 0; }
.site-footer .col p, .site-footer .col a { overflow-wrap: anywhere; word-break: break-word; }
.site-footer .col.fullwidth { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 20px; margin-top: 10px; }
.site-footer .footer-keywords { color: rgba(255,255,255,0.55); font-size: 0.75rem; line-height: 1.6; margin: 0 0 14px; }
.site-footer .legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; font-size: 0.9rem; }
.site-footer .legal-links a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer .legal-links a:hover { color: #fff; text-decoration: underline; }

.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
/* Only split into two columns when there's actually a hero image to fill the right side */
@media (min-width: 900px) { .hero .wrap:has(.hero__media) { grid-template-columns: 1.15fr 1fr; } }
.hero__media { width: 100%; }
.hero__media img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.hero__media--placeholder { width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--bg) 0%, var(--accent) 100%); border-radius: 6px; opacity: 0.35; }
.pool-image { margin: 30px auto; max-width: 1080px; padding: 0 20px; text-align: center; }
.pool-image img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.page .hero__media { margin: 20px 0 30px; }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 20px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.4fr 1fr; } }
.contact-form-col { background: #fff; padding: 24px; border-radius: 8px; border: 1px solid var(--border); }
.contact-info-col { display: flex; flex-direction: column; gap: 16px; }
.contact-card { background: #fff; padding: 18px; border-radius: 8px; border: 1px solid var(--border); }
.contact-card h3 { margin: 0 0 8px; font-size: 1rem; }
.contact-card p { margin: 4px 0; }
.contact-card .phone-big { font-size: 1.4rem; font-weight: 700; margin: 6px 0; }
.contact-card .phone-big a { text-decoration: none; }

/* Sticky mobile action bar — mobile only */
.mobile-action-bar { display: none; }
@media (max-width: 720px) {
  .mobile-action-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid var(--border); z-index: 50;
    box-shadow: 0 -4px 14px rgba(0,0,0,0.08); gap: 0;
  }
  .mobile-action-bar .mab-btn {
    flex: 1; padding: 14px 8px; text-align: center; text-decoration: none;
    font-weight: 700; font-size: 0.95rem;
  }
  .mobile-action-bar .mab-call { background: var(--primary); color: #fff; }
  .mobile-action-bar .mab-quote { background: var(--accent); color: #fff; }
  body { padding-bottom: 60px; }  /* prevent bar overlapping footer content */
}
/* APM-v3 nav-menu dropdowns */
.nav-menu{position:relative;display:inline-block}
.nav-menu>ul{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #e2ddd4;border-radius:10px;padding:10px 16px;min-width:220px;box-shadow:0 10px 28px rgba(0,0,0,.14);list-style:none;margin:6px 0 0;z-index:60;text-align:left}
.nav-menu>ul li{margin:6px 0}
.nav-menu:hover>ul,.nav-menu:focus-within>ul,.nav-menu.open>ul{display:block}
.nav-toggle{background:none;border:0;font:inherit;color:inherit;cursor:pointer;padding:0}

/* APM-v4 bigger images */
.wrap{max-width:1200px}
@media (min-width:900px){.hero .wrap:has(.hero__media){grid-template-columns:1fr 1fr}}
main img[src*="assets/images/"]{width:100%;height:auto;display:block;border-radius:6px;box-shadow:0 6px 20px rgba(0,0,0,.08);margin:18px 0}

/* ADA 2026-10-28 contrast + skip */
.cta-final .btn.secondary, .cta-final a.btn.secondary { color: #fff !important; background: transparent; border: 2px solid #fff; }
.cta-final .btn.secondary:hover { background: rgba(255,255,255,0.12); color: #fff !important; }
.site-footer h4, footer h4, .site-footer .col > h4 { color: #fff !important; }
a.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 10000; }
a.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; padding: 10px 14px; background: #000; color: #fff; overflow: visible; }

.footer-heading, .site-footer .footer-heading { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; }
.site-footer h4, footer h4 { color: #fff !important; }
