/* SCH Site Design — global layer for septiccarehub.com
   Design tokens from the redesign spec: white / #F5F5F7 sections,
   ink #1D1D1F, secondary #6E6E73, accent #0071E3, borders #E8E8ED. */

:root{
  --sch-ink:#1D1D1F;
  --sch-sub:#6E6E73;
  --sch-blue:#0071E3;
  --sch-grey:#F5F5F7;
  --sch-line:#E8E8ED;
  /* WordPress layout sizes: 760px reading column, 1120px wide */
  --wp--style--global--content-size:760px;
  --wp--style--global--wide-size:1120px;
}

body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--sch-ink);
  -webkit-font-smoothing:antialiased;
}

main p, main li{ font-size:17px; line-height:1.65; }
main h1, main h2, main h3, main h4{
  color:var(--sch-ink);
  letter-spacing:-0.03em;
  line-height:1.12;
  font-weight:700;
}
main h1{ font-size:clamp(38px,6vw,56px); }
main h2{ font-size:clamp(28px,4vw,38px); margin-top:1.4em; }
main h3{ font-size:clamp(21px,3vw,26px); }
main a{ color:var(--sch-blue); }
main img{ border-radius:20px; }

/* ---------- Frosted sticky header (all pages; selectors proven on the homepage) ---------- */
.site-header{ position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.82) !important;
  -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--sch-line);
}
.site-header a, .site-header .wp-block-site-title,
.site-header .wp-block-navigation-item__content{ color:var(--sch-ink) !important; }
.site-header .wp-block-site-title{ font-weight:700; letter-spacing:-0.02em; }
.site-header .wp-block-navigation-item__content{ font-size:14px; font-weight:500; }
.site-header .hostinger-ai-menu,
.site-header .hostinger-ai-menu.has-page-background-background-color{
  background:transparent !important;
}
.site-header *, .site-header *::before, .site-header *::after{
  background:transparent !important; box-shadow:none !important;
}
.site-header .hostinger-ai-menu a,
.site-header .hostinger-ai-menu .wp-block-site-title a{ color:var(--sch-ink) !important; }

/* ---------- Full-bleed sections use 100vw, which overflows by the
   scrollbar width and forces a horizontal scrollbar. Clip it. ------- */
html, body{ overflow-x:clip; }

/* ---------- Theme footer renders untranslated "trans-*" placeholders;
   hide it site-wide — the clean footer below replaces it. ---------- */
.site-footer{ display:none !important; }

.sch-gfooter{
  background:var(--sch-grey);
  border-top:1px solid var(--sch-line);
  margin-top:72px;
  padding:40px 20px 48px;
  font-family:'Inter',-apple-system,sans-serif;
}
.sch-gfooter-inner{ max-width:1120px; margin:0 auto; }
.sch-gfooter-brand{ font-weight:700; font-size:17px; color:var(--sch-ink); margin:0 0 10px; }
.sch-gfooter-nav{ display:flex; gap:22px; flex-wrap:wrap; margin-bottom:14px; }
.sch-gfooter .sch-gfooter-nav a{ color:var(--sch-blue) !important; text-decoration:none; font-size:15px; }
.sch-gfooter .sch-gfooter-brand{ color:var(--sch-ink) !important; }
.sch-gfooter .sch-gfooter-copy{ color:var(--sch-sub) !important; }
.sch-gfooter-nav a:hover{ text-decoration:underline; }
.sch-gfooter-copy{ color:var(--sch-sub); font-size:13px; margin:0; }

/* ---------- Tables: rounded box, scrolls sideways on phones ---------- */
main table{
  border-collapse:separate; border-spacing:0;
  border:1px solid var(--sch-line); border-radius:16px; overflow:hidden;
  width:100%; font-size:15.5px; line-height:1.5;
}
main table th, main table thead th, main .wp-block-table th{
  background:var(--sch-grey) !important; color:var(--sch-ink) !important;
  text-align:left; font-weight:600;
}
main table th, main table td{ padding:12px 14px; border-bottom:1px solid var(--sch-line); vertical-align:top; }
main table tr:last-child td{ border-bottom:none; }
@media (max-width:720px){
  main table{ display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
}

/* ---------- Buttons ---------- */
.wp-block-button__link{
  border-radius:980px !important;
  background:var(--sch-blue) !important;
  color:#fff !important;
  font-weight:600;
  padding:12px 24px !important;
  min-height:44px;
}

/* Tap targets in the header nav */
.site-header .wp-block-navigation-item__content{ padding:10px 4px; }

/* fix 2026-11-30: theme hover state faded menu text to near-white; keep it readable, blue on hover */ html body .site-header a:hover, html body .site-header a:focus, html body .site-header .wp-block-navigation-item__content:hover, html body .site-header .wp-block-navigation-item__content:focus, html body .site-header .wp-block-navigation-item:hover > a, html body .site-header .wp-block-navigation-item:hover .wp-block-navigation-item__label{ color:var(--sch-blue) !important; -webkit-text-fill-color:var(--sch-blue) !important; opacity:1 !important; filter:none !important; } html body .site-header .wp-block-navigation-item__content:hover::before, html body .site-header .wp-block-navigation-item__content:hover::after{ background-color:var(--sch-blue) !important; } /* white page background site-wide (theme default was beige) */ html, body, body .wp-site-blocks, body main{ background:#fff !important; background-color:#fff !important; }
/* fix 2026-11-30 (v1.0.4): the theme's Global Styles still carry the old
   Hostinger teal (#0E4A4A) for headings, table heads, buttons and the
   calculator frame/verdict — higher-specificity rules than the plugins'.
   Neutralize them here so the whole site renders in the design system. */
main h1, main h2, main h3, main h4, main h5, main h6{ color:var(--sch-ink) !important; }
body .sx-calc{ border:1px solid var(--sch-line) !important; background-color:#fff !important; }
body .sx-calc .sx-verdict-num{ color:var(--sch-blue) !important; }
body .sx-calc .sx-table thead th, body .sx-table thead th{ background-color:var(--sch-ink) !important; color:#fff !important; }
body .sx-cta{ background-color:var(--sch-blue) !important; color:#fff !important; }
body .sx-cta:hover{ background-color:#0058B3 !important; }
body .wp-block-button__link{ background-color:var(--sch-blue) !important; color:#fff !important; }

/* fix 2026-11-30 (v1.0.5): force the content column and page heroes white —
   visual checks kept reporting a teal hero band on inner pages that no
   stylesheet rule accounts for; pin the whole chain explicitly. */
.wp-site-blocks, main, .entry-content, .wp-block-post-content,
.schp, .schp-hero, .schp-hero-grid{ background:#fff !important; background-color:#fff !important; }

/* fix 2026-11-30 (v1.0.6): mobile header — the theme's grid menu wrapper
   squeezed the site title into a narrow column so "Septic Care Hub"
   stacked one word per line and ate the first screen. One line, smaller,
   tighter header on phones. */
@media (max-width: 820px){
  .site-header .hostinger-ai-menu-wrapper{
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    padding-top: 10px !important; padding-bottom: 10px !important;
  }
  .site-header .wp-block-site-title{
    white-space: nowrap !important; font-size: 19px !important;
    line-height: 1.1 !important; margin: 0 !important;
  }
  .site-header .wp-block-site-title a{ white-space: nowrap !important; }
}
