/*
Theme Name: Viva Water Distillers
Theme URI: https://vivawaterdistillers.com
Author: WaterDistillers.com
Author URI: https://waterdistillers.com
Description: One-page brand gateway for Viva Water Distillers — value-priced countertop distillers for CPAP users and RV travelers, available exclusively through WaterDistillers.com.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: viva-water
*/

:root {
	--navy: #0b2d8f;
	--royal: #1565e0;
	--sky: #22a8f0;
	--aqua: #e8f6ff;
	--aqua-2: #d3eeff;
	--ink: #13244f;
	--muted: #4f6189;
	--line: #d9e7f7;
	--radius: 22px;
	--font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--grad: linear-gradient(135deg, var(--sky) 0%, var(--royal) 55%, var(--navy) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .45em; color: var(--navy); letter-spacing: -.015em; font-weight: 900; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 100px) 0; }
.center { text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border: 2px solid var(--aqua-2); border-radius: 999px; padding: 6px 16px; font-weight: 800; font-size: .88rem; margin-bottom: 18px; }
.pill::before { content: ""; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--sky); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-inline: auto; }

.btn { display: inline-flex; align-items: center; gap: .5em; padding: .95em 1.7em; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .15s, box-shadow .15s; font-size: 1.02rem; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(21, 101, 224, .35); }
.btn-soft { background: #fff; color: var(--navy); border: 2px solid var(--aqua-2); }
.btn-white { background: #fff; color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 78px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 62px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.header-nav a:hover { color: var(--royal); }
.header-nav .btn { color: #fff; padding: .6em 1.2em; font-size: .92rem; }
@media (max-width: 900px) { .header-nav .nav-link { display: none; } }
@media (max-width: 460px) { .header-nav .btn { padding: .55em .9em; font-size: .82rem; } }

/* Hero */
.hero { background: radial-gradient(circle at 85% 20%, var(--aqua-2) 0, transparent 45%), linear-gradient(180deg, var(--aqua) 0%, #fff 100%); position: relative; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .2em; }
.tagline { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; color: var(--navy); line-height: 1.3; margin-bottom: .6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { color: var(--muted); font-size: .95rem; }
.hero-figure { position: relative; }
.hero-figure::before { content: ""; position: absolute; inset: 8% 6%; background: var(--grad); border-radius: 50%; opacity: .14; filter: blur(10px); }
.hero-figure img { position: relative; border-radius: var(--radius); }
.wave { display: block; width: 100%; height: 60px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-figure { max-width: 460px; margin-inline: auto; } }

/* Value tiles */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; text-align: left; }
.value { background: var(--aqua); border-radius: var(--radius); padding: 28px; }
.value .ico { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.5rem; font-weight: 900; margin-bottom: 16px; }
.value p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .values { grid-template-columns: 1fr; } }

/* Feature rows (CPAP / RV / Frank) */
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature .wrap > * { min-width: 0; }
.feature.flip .media { order: 2; }
.feature .media img, .feature .media svg { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(11, 45, 143, .14); width: 100%; height: auto; }
.feature.alt { background: var(--aqua); }
.checks { list-style: none; padding: 0; margin: 0 0 26px; }
.checks li { padding-left: 34px; position: relative; margin-bottom: 12px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .8rem; font-weight: 900; display: grid; place-items: center; }
.kicker { font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--sky); display: block; margin-bottom: 10px; }
@media (max-width: 860px) { .feature .wrap { grid-template-columns: 1fr; gap: 28px; } .feature.flip .media { order: 0; } }

/* Frank */
.frank { background: var(--navy); color: #cfe0ff; }
.frank h2 { color: #fff; }
.frank .kicker { color: #7fd0ff; }
.frank .media img { box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.stat { display: flex; gap: 30px; margin: 22px 0 28px; flex-wrap: wrap; }
.stat div strong { display: block; font-size: 2.6rem; font-weight: 900; color: #fff; line-height: 1; }
.stat div span { font-size: .92rem; color: #9fc0ff; }

/* FAQ */
.faq-list { max-width: 860px; margin: 36px auto 0; text-align: left; }
.faq details { background: #fff; border: 2px solid var(--line); border-radius: 18px; margin-bottom: 12px; padding: 0 22px; }
.faq details[open] { border-color: var(--sky); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--aqua); color: var(--royal); display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; background: var(--grad); color: #fff; }
.faq summary h3 { margin: 0; font-size: 1.1rem; }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* Final CTA */
.cta { background: var(--grad); color: #fff; text-align: center; }
.cta img { width: 180px; margin: 0 auto 10px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .25)); }
.cta h2 { color: #fff; }
.cta p { color: #e3f1ff; max-width: 620px; margin-inline: auto; }
.cta .hero-actions { justify-content: center; }
.cta .btn-soft { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }

.site-footer { background: #071b57; color: #9fb4e6; padding: 30px 0; font-size: .88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #fff; }

/* Optional auto-redirect bar */
.redirect-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; background: var(--navy); color: #fff; border-radius: 16px; padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-weight: 700; }
.redirect-bar a { color: #fff; }
.redirect-bar button { font: inherit; background: #fff; color: var(--navy); border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
