/*
Theme Name: Durastill Gateway SEO
Theme URI: https://durastill-water-distillers.com
Author: WaterDistillers.com
Author URI: https://waterdistillers.com
Description: One-page gateway site for Durastill water distillers. Every product and button links through to WaterDistillers.com.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: durastill-gateway
*/

:root {
	--navy: #0b2a4a;
	--blue: #1565c0;
	--blue-dark: #0d4a8f;
	--sky: #e8f2fc;
	--steel: #5b6b7c;
	--ink: #1a2533;
	--line: #dbe4ee;
	--bg: #ffffff;
	--radius: 14px;
	--shadow: 0 6px 24px rgba(11, 42, 74, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--ink);
	background: var(--bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { padding: clamp(56px, 8vw, 96px) 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue); margin-bottom: .75em; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--steel); max-width: 640px; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .9em 1.6em; border-radius: 999px;
	font-weight: 700; text-decoration: none; font-size: 1rem;
	transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(21, 101, 192, .35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border: 2px solid currentColor; color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); 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: 68px; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--navy); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--blue); }
.brand img { max-height: 44px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.header-nav a:hover { color: var(--blue); }
.header-phone { font-weight: 700; color: var(--navy) !important; white-space: nowrap; }
@media (max-width: 860px) { .header-nav .nav-link { display: none; } }

/* Hero */
.hero { background: linear-gradient(160deg, var(--sky) 0%, #fff 70%); padding-top: clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; color: var(--steel); font-size: .92rem; font-weight: 600; }
.hero-badges li::before { content: "✓ "; color: var(--blue); }
.hero .wrap > * { min-width: 0; }
.hero-img img { width: 100%; }
.hero-img { background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-img { max-width: 420px; margin-inline: auto; } }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.benefit { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.benefit-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--sky); color: var(--blue); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.benefit p { color: var(--steel); margin: 0; font-size: .95rem; }
@media (max-width: 960px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* Capacity chooser */
.capacity { background: var(--navy); color: #fff; }
.capacity h2, .capacity h3 { color: #fff; }
.capacity .lead { color: #b9c8d8; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.cap-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; color: #fff; text-decoration: none; transition: background .15s, transform .15s; }
.cap-card:hover { background: rgba(255, 255, 255, .11); transform: translateY(-2px); }
.cap-num { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.cap-num small { font-size: .9rem; font-weight: 600; color: #9fc3ea; margin-left: 4px; }
.cap-card p { color: #c9d6e3; margin: 12px 0 20px; flex: 1; }
.cap-card .more { font-weight: 700; color: #9fc3ea; }
@media (max-width: 860px) { .cap-grid { grid-template-columns: 1fr; } }

/* Products */
.products { background: #f6f9fc; }
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.prod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.prod:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.prod-img { aspect-ratio: 1; padding: 16px; background: #fff; display: grid; place-items: center; }
.prod-img img { max-height: 100%; object-fit: contain; }
.prod-body { padding: 16px 18px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; flex: 1; }
.prod-tag { font-size: .75rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.prod h3 { margin: 4px 0 6px; font-size: 1.05rem; }
.prod p { color: var(--steel); font-size: .9rem; margin: 0 0 12px; flex: 1; }
.prod-price { font-weight: 800; color: var(--navy); }
.prod-price s { color: var(--steel); font-weight: 500; margin-left: 6px; font-size: .9rem; }
.prod-cta { margin-top: 10px; font-weight: 700; color: var(--blue); font-size: .92rem; }
.shop-all { margin-top: 36px; }
@media (max-width: 1000px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .prod-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .prod-grid { grid-template-columns: 1fr; } }

/* Quiz CTA */
.quiz .wrap { background: linear-gradient(120deg, var(--blue) 0%, var(--navy) 100%); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.quiz h2 { color: #fff; margin-bottom: .25em; }
.quiz p { color: #d5e4f5; margin: 0; max-width: 560px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 36px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { margin: 0; font-size: 1.08rem; }
.faq details p { color: var(--steel); margin: 0 0 18px; }

/* Contact / footer */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.contact-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-item strong { display: block; color: var(--navy); margin-bottom: 4px; }
.contact-item a { font-weight: 700; text-decoration: none; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

.site-footer { background: var(--navy); color: #b9c8d8; padding: 32px 0; font-size: .88rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: #fff; }
