/*
Theme Name: Prius Hybrid SEO Theme
Theme URI: https://priushbr.com
Author: Prius Hybrid Revivals
Description: Lightweight, WooCommerce-ready theme for Prius Hybrid Revivals, Albany, OR.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: prius-theme
*/

:root {
	--green: #0f6b4f;
	--green-dark: #0a4a37;
	--accent: #f2a900;
	--ink: #1b2430;
	--muted: #5b6672;
	--bg: #ffffff;
	--bg-alt: #f3f6f5;
	--border: #dde3e1;
	--radius: 8px;
	--max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p, ul, ol { margin: 0 0 1.1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 0; }
.plain { list-style: none; padding: 0; margin: 0; }

/* Top bar + header */
.topbar { background: var(--green-dark); color: #fff; font-size: .9rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand-text { font-weight: 800; font-size: 1.25rem; color: var(--green-dark); text-decoration: none; }
.site-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--green); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 14px; font: inherit; cursor: pointer; }

@media (max-width: 800px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; gap: 12px; }
	.header-inner { position: relative; }
}

/* Buttons */
.btn { display: inline-block; padding: 13px 24px; border-radius: var(--radius); font-weight: 700; text-decoration: none; border: 2px solid transparent; margin: 4px 8px 4px 0; }
.btn-primary { background: var(--accent); color: #1b1b1b; }
.btn-primary:hover { background: #ffbd2e; color: #1b1b1b; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; padding: 72px 0; }
.hero h1 { color: #fff; max-width: 18em; }
.hero p.lead { font-size: 1.2rem; max-width: 40em; opacity: .95; }
.hero .badges { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-weight: 600; }
.hero .badges li::before { content: "✓ "; color: var(--accent); }
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 44px 0; }
.page-hero h1 { margin: 0; }

/* Sections */
.section { padding: 60px 0; }
.section.alt { background: var(--bg-alt); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 a { text-decoration: none; }

.compare { width: 100%; border-collapse: collapse; background: #fff; }
.compare th, .compare td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
.compare th { background: var(--green); color: #fff; }

.warranty-box { border: 2px solid var(--accent); background: #fffaf0; border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.warranty-box h3 { color: var(--green-dark); }
.cta-band { background: var(--green-dark); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { color: #fff; }

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

/* Content */
.entry { max-width: 780px; margin: 0 auto; }
.content-narrow { max-width: 780px; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 14px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; margin-top: 4px; }
.contact-form .hp { position: absolute; left: -9999px; }
.notice { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; }
.notice.ok { background: #e6f5ee; border: 1px solid #9fd3b9; }
.notice.err { background: #fdecec; border: 1px solid #f0a8a8; }
.map-embed iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: #121a22; color: #c7d0d8; padding-top: 48px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #e6ecf1; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-bottom { border-top: 1px solid #2a3540; margin-top: 32px; padding-top: 18px; padding-bottom: 24px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* WooCommerce */
.woocommerce-page .site-main > .container { padding-top: 40px; padding-bottom: 60px; }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--green); color: #fff; border-radius: var(--radius); font-weight: 700; padding: .8em 1.4em;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce button.button.alt:hover { background: var(--green-dark); color: #fff; }
.woocommerce span.onsale { background: var(--accent); color: #1b1b1b; }
.woocommerce .price, .woocommerce ul.products li.product .price { color: var(--green-dark); font-weight: 700; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--green); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--green); }
