/* ---------------------------------------------------------------
 * SafeWater per-site skin. Loaded via config 'custom_css'.
 * Bar: EWG Tap Water Database (ewg.org/tapwater) — deep teal field,
 * white type, wide-tracked caps kicker, tall condensed caps for places
 * and numbers, pale aqua bands, thin rules, near-square corners.
 * Top section copies EWG's layout: full-bleed water photo, centered
 * spaced caps, giant outlined word (ours, "SOFT" -- never EWG's
 * "WATER" mark or logo), rounded white search bar, state link.
 * Avoid: EWG name/logo, cream, droplet emoji, glossy SaaS gradients.
 * --------------------------------------------------------------- */

/* Jost 600, static subset of just "SOFT" (SIL OFL). The variable Google
 * Fonts file draws overlapping strokes inside the outlined F. */
@font-face { font-family: "SW Outline"; src: url("/assets/safewater-outline.woff2") format("woff2"); font-weight: 600; font-display: block; }

:root { --sw-deep: #042425; --sw-teal: #0B6569; --sw-aqua: #C3DBDC; --sw-mist: #E9F4F4; --sw-green: #009A4E; --sw-rule: #C3DBDC; }

/* Near-square corners everywhere. Pills read as a SaaS template. */
.btn, .tile, .card, .chip, .pkg, .searchbox:not(.hero .searchbox), .searchbox button,
.nav a.nav-cta, .trust-icon, .tile .t-icon, .avatar, .card-media, .owner-panel,
.ad-slot, .notice, .form-grid input, .form-grid select, .form-grid textarea {
    border-radius: 2px !important;
}

h1, h2, h3, .section-title { font-weight: 500; letter-spacing: -0.01em; color: var(--sw-deep); }

/* ---- top bar ---- */
.topbar { background: var(--sw-deep); }
.brand { font-weight: 600; font-size: 1.3rem; letter-spacing: 0.01em; display: inline-flex; align-items: center; }
.brand::before {                                   /* concentric-ring mark, not a droplet */
    content: ""; width: 22px; height: 22px; margin-right: 10px; border-radius: 50%;
    border: 2px solid #fff; box-shadow: inset 0 0 0 4px var(--sw-deep), inset 0 0 0 6px #fff;
}
.nav a { text-transform: uppercase; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; }
.nav a.nav-cta { box-shadow: none; background: var(--sw-green); }
.nav a.nav-cta:hover { transform: none; filter: brightness(1.08); }

/* ---- buttons ---- */
.btn, .searchbox button { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; font-size: 0.85rem; }

/* ---- hero: EWG-style full-bleed photo, everything centered ---- */
.hero.hero-photo {
    background-color: var(--sw-teal); background-size: cover; background-position: center;
    text-align: center; padding: 0; min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
    display: flex; align-items: center;
}
.hero.hero-photo::before { background: linear-gradient(180deg, rgba(4,36,37,0.30) 0%, rgba(4,36,37,0.18) 50%, rgba(4,36,37,0.45) 100%); }
.hero-inner { display: flex; flex-direction: column; align-items: center; width: 100%; padding: 64px 0; }
.hero h1 {                                          /* the spaced-caps kicker */
    order: 1; margin: 0; max-width: none; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,0.25);
    font-family: "Jost", sans-serif; font-weight: 600; text-transform: uppercase;
    font-size: clamp(1.1rem, 2.6vw, 2.1rem); letter-spacing: 0.24em; line-height: 1.2;
}
.hero-inner::before {                               /* giant outlined word, ours */
    content: "SOFT"; order: 2; display: block;
    font-family: "SW Outline", "Jost", sans-serif; font-weight: 600; line-height: 0.95;
    font-size: clamp(6rem, 21vw, 17rem); letter-spacing: 0.06em; margin: 0 0 34px 0.06em;
    color: transparent; -webkit-text-stroke: 3px #fff; text-shadow: none;
}
.hero p {                                           /* kept for SEO + readers, hidden like EWG */
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hero .searchbox {
    order: 3; width: 100%; max-width: 440px; margin: 0; padding: 4px 6px 4px 0;
    background: #fff; border: 0; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}
.hero .searchbox input { padding: 14px 22px; font-size: 0.95rem; border-radius: 999px; }
.hero .searchbox button {
    padding: 0 20px; background: transparent; color: var(--sw-teal); border-radius: 999px;
    font-size: 0.78rem; letter-spacing: 0.12em;
}
.hero-link {
    order: 4; margin-top: 30px; color: #fff; text-transform: uppercase; font-weight: 600;
    font-size: 0.82rem; letter-spacing: 0.16em; text-decoration: none; border-bottom: 2px solid #fff; padding-bottom: 3px;
}
.hero-link:hover { opacity: 0.85; }
.hero-stats {
    order: 5; justify-content: center; gap: 0; margin-top: 44px; text-shadow: 0 1px 6px rgba(0,0,0,0.3); opacity: 1;
}
.hero-stats > * { padding: 0 24px; border-right: 1px solid rgba(255,255,255,0.4); color: #fff; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; }
.hero-stats > *:last-child { border-right: 0; }
.hero-stats strong {
    display: block; font-family: "Oswald", "Arial Narrow", sans-serif; font-weight: 500;
    font-size: 1.6rem; letter-spacing: 0.02em; color: #fff; line-height: 1.1;
}

/* ---- review-gap band + trust points ---- */
.rg-home-band { background: var(--sw-mist); border-bottom: 1px solid var(--sw-rule); }
.trust-point { text-align: left; padding: 8px 0; border-top: 2px solid var(--sw-teal); padding-top: 18px; }
.trust-icon {
    width: auto; height: auto; background: none; margin-bottom: 10px;
    font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 1.9rem; color: var(--sw-teal);
}
.trust-point h3 { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.92rem; }

/* ---- welcome ---- */
.welcome { text-align: left; background: var(--sw-mist); padding: 48px 0; margin-top: 24px; }
.welcome h2 { font-size: 1.8rem; font-weight: 500; }
.welcome p { margin: 0; max-width: 760px; color: #3D4B4C; }

/* ---- tiles: thin rule cards, condensed caps for place names ---- */
.tile { border: 1px solid var(--sw-rule); box-shadow: none; }
.tile:hover { transform: none; box-shadow: none; border-color: var(--sw-teal); background: var(--sw-mist); }
.tile .t-icon:empty { display: none; }
.tile .t-name { font-weight: 500; }
.tile .t-count { color: var(--sw-teal); }
.section-title { font-size: 1.7rem; }
.more-link a { color: var(--sw-teal); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; }

/* place names on city / state pages */
.page-head h1, .city-head h1, .breadcrumbs + h1 {
    font-family: "Oswald", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 500;
}

/* ---- footer ---- */
.site-footer { background: var(--sw-deep); }

@media (max-width: 640px) {
    .hero-inner { padding: 48px 0; }
    .hero-inner::before { -webkit-text-stroke-width: 2px; margin-bottom: 26px; }
    .hero .searchbox { max-width: 92%; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .hero-stats > * { padding: 0; border: 0; font-size: 0.66rem; letter-spacing: 0.08em; }
    .hero-stats strong { font-size: 1.35rem; }
}
