/*
Theme Name: Aerosono
Description: Tema de página única para a loja Aerosono (suporte de cabeça com máscara 3D para viagem). Feito para WooCommerce.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aerosono
License: GPLv2 or later
*/

:root {
	--bg: #0D1422;
	--bg-alt: #111A2B;
	--surface: #162033;
	--surface-hi: #1C2840;
	--line: #2A3650;
	--line-hi: #3A4766;
	--text: #F1ECE2;
	--text-soft: #CDD2DB;
	--muted: #B8BFCC;
	--faint: #9AA3B2;
	--accent: #F0A458;
	--accent-ink: #1A1206;
	--serif: 'Instrument Serif', Georgia, serif;
	--sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: #F6C28E; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.band { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tipografia */
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.display { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7vw, 92px); line-height: 1; }
.display em, .h2 em { color: var(--accent); }
.h2 { margin: 0 0 48px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1.05; }
.lead { margin: 28px 0 0; max-width: 540px; color: var(--text-soft); font-size: 20px; }
.small { color: var(--faint); font-size: 15px; }
.center { text-align: center; }

/* Botões */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 14px 28px; border-radius: 999px;
	font-weight: 700; font-size: 18px; text-decoration: none; line-height: 1.2;
	border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #F6B474; color: var(--accent-ink); }
.btn-ghost { border-color: var(--line-hi); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-outline { border-color: var(--accent); color: var(--text); }
.btn-outline:hover { color: var(--text); background: rgba(240,164,88,.08); }
.btn-sm { min-height: 44px; padding: 10px 22px; font-size: 16px; }

/* Cabeçalho */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand span { font-family: var(--serif); font-size: 30px; line-height: 1; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 16px; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--text); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 460px; min-width: 0; }
.hero-media { flex: 1 1 420px; min-width: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.trust { margin: 22px 0 0; }

/* Problema */
.problem { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 96px; padding-bottom: 96px; }
.problem .h2 { flex: 1 1 360px; margin: 0; }
.problem-text { flex: 1 1 480px; min-width: 0; color: var(--text-soft); font-size: 20px; }
.problem-text p { margin: 0 0 20px; }
.problem-text strong { color: var(--text); }

/* Como funciona */
.section { padding-top: 104px; padding-bottom: 104px; }
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.step { flex: 1 1 300px; min-width: 0; }
.step img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; background: #fff; }
.step .num { margin: 24px 0 6px; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--accent); }
.step h3 { margin: 0 0 8px; font-size: 22px; }
.step p { margin: 0; color: var(--muted); }
.img-top { object-position: 50% 12%; }

/* Galeria */
.gallery { display: flex; flex-wrap: wrap; gap: 16px; }
.gallery-main { flex: 2 1 420px; min-width: 0; background: #fff; border-radius: 18px; padding: 24px; display: flex; align-items: center; }
.gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.gallery-side { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.gallery-side figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.gallery-side img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-side figcaption { padding: 12px 16px; color: var(--text-soft); font-size: 16px; }
.specs { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px; }
.spec { flex: 1 1 200px; min-width: 0; border-top: 1px solid var(--line-hi); padding-top: 14px; }
.spec p { margin: 0; }
.spec .label { color: var(--faint); font-size: 15px; }
.spec .value { margin-top: 2px; font-size: 20px; font-weight: 700; }

/* Kits */
.kits { max-width: 860px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.kit { flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.kit.featured { background: var(--surface-hi); border: 2px solid var(--accent); }
.kit-media { position: relative; background: #fff; border-radius: 16px; padding: 16px; }
.kit-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.kit-media .qty { position: absolute; top: 12px; right: 12px; background: var(--bg); color: var(--text); font-family: var(--serif); font-size: 30px; line-height: 1; padding: 8px 14px; border-radius: 12px; }
.kit-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.kit h3 { margin: 0; font-size: 24px; }
.kit p { margin: 0; }
.kit .desc { color: var(--muted); }
.kit .price { margin-top: 4px; font-family: var(--serif); font-size: 52px; line-height: 1; }
.kit .btn { margin-top: auto; width: 100%; }
.badge { background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.notice { margin: 32px auto 0; max-width: 860px; border: 1px solid var(--line-hi); border-radius: 18px; padding: 22px 26px; display: flex; gap: 16px; align-items: flex-start; }
.notice svg { flex: none; margin-top: 3px; }
.notice p { margin: 0; color: var(--text-soft); font-size: 17px; }
.notice strong { color: var(--text); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 20px; font-weight: 700; min-height: 44px; display: flex; align-items: center; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; padding-left: 16px; color: var(--accent); font-family: var(--serif); font-size: 32px; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* CTA final */
.cta-final { background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 72px 32px; text-align: center; }
.cta-final .h2 { margin: 0 auto 36px; max-width: 760px; font-size: clamp(40px, 5vw, 64px); }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); color: var(--faint); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer nav a { color: var(--muted); }

/* Páginas internas (carrinho, checkout, políticas) */
.page-content { padding-top: 64px; padding-bottom: 96px; }
.page-content h1 { margin: 0 0 32px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 56px); line-height: 1.05; }
.page-content h2, .page-content h3 { font-family: var(--sans); }
.entry { color: var(--text-soft); }
.entry a { color: var(--accent); }

/* WooCommerce em tema escuro */
.woocommerce, .woocommerce-page { color: var(--text-soft); }
.woocommerce h2, .woocommerce h3, .woocommerce-page h2, .woocommerce-page h3 { color: var(--text); }
.woocommerce form .form-row label, .woocommerce-page form .form-row label { color: var(--text); }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-page form .form-row select,
.woocommerce .select2-container .select2-selection,
.woocommerce .quantity .qty,
.woocommerce #coupon_code {
	background: var(--surface); color: var(--text); border: 1px solid var(--line-hi); border-radius: 10px; padding: 12px 14px; min-height: 48px; font-size: 16px;
}
.woocommerce .select2-container .select2-selection__rendered { color: var(--text) !important; line-height: 22px !important; }
.select2-dropdown { background: var(--surface); color: var(--text); border-color: var(--line-hi); }
.select2-results__option--highlighted { background: var(--accent) !important; color: var(--accent-ink) !important; }
.woocommerce table.shop_table, .woocommerce-page table.shop_table { border-color: var(--line); border-radius: 14px; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--line) !important; color: var(--text-soft); }
.woocommerce-checkout-review-order, .woocommerce #payment, .woocommerce-page #payment { background: var(--surface) !important; border-radius: 14px; color: var(--text-soft); }
.woocommerce #payment div.payment_box { background: var(--surface-hi) !important; color: var(--text-soft) !important; }
.woocommerce #payment div.payment_box::before { border-bottom-color: var(--surface-hi) !important; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce #place_order {
	background: var(--accent) !important; color: var(--accent-ink) !important; border-radius: 999px !important; font-weight: 700 !important; padding: 14px 28px !important; min-height: 48px;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--surface) !important; color: var(--text) !important; border-top-color: var(--accent) !important; }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent) !important; }
.woocommerce span.onsale { background: var(--accent); color: var(--accent-ink); }
.woocommerce div.product .product_title { font-family: var(--serif); font-weight: 400; color: var(--text); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--accent); }

@media (max-width: 640px) {
	body { font-size: 17px; }
	.hero { padding-top: 48px; gap: 36px; }
	.section, .problem { padding-top: 72px; padding-bottom: 72px; }
	.site-nav { gap: 16px; }
	.site-nav .nav-link { display: none; }
	.kit { padding: 22px; }
	.cta-final { padding: 56px 20px; }
}
