/* assets/css/main.css */
/* Bruna Franco — base styles. Colors/fonts come from the WL :root block injected by includes/seo.php;
   the defaults below only apply when that block is missing (e.g. 500.php). */

:root {
    --accent: #a65a43;
    --accent-rgb: 166, 90, 67;
    --bg: #f5f7fa;
    --bg-2: #ffffff;
    --bg-3: #eef0f4;
    --text: #1a1e28;
    --text-muted: #5d6472;
    --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;

    --border: rgba(26, 30, 40, 0.08);
    --border-strong: rgba(26, 30, 40, 0.16);
    --tint: rgba(var(--accent-rgb), 0.07);
    --tint-strong: rgba(var(--accent-rgb), 0.14);
    --radius: 18px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(26, 30, 40, 0.05), 0 2px 8px rgba(26, 30, 40, 0.04);
    --shadow: 0 2px 6px rgba(26, 30, 40, 0.05), 0 12px 32px rgba(26, 30, 40, 0.07);
    --shadow-lg: 0 20px 60px rgba(26, 30, 40, 0.12);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--text);
    color: var(--bg-2);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
                transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.34); filter: brightness(1.05); }
.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.6; pointer-events: none; }
.btn-wa-solid { background: #1f8f4e; color: #fff; }
.btn-wa-solid:hover { background: #197a42; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
/* Blur on a pseudo-element: backdrop-filter on the header itself would become the containing block
   of the fixed mobile menu (drawer clipped to header height). */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(245, 247, 250, 0.82);
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.nav-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.nav-logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1;
}
.nav-logo-text { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 500; white-space: nowrap; }

.nav-links ul { display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: inline-block;
    padding: 8px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--tint); }
.nav-link.active { color: var(--accent); }
.nav-cta-item { margin-left: 8px; }
.nav-lang {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    margin-left: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
    color: var(--text-muted);
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-lang:hover { border-color: var(--accent); color: var(--accent); }

.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    background: var(--bg-2);
    cursor: pointer;
}
.nav-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { display: none; }

@media (max-width: 1140px) {
    .nav-burger { display: inline-flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 86vw);
        padding: calc(var(--header-h) + 12px) 20px 24px;
        background: var(--bg-2);
        box-shadow: var(--shadow-lg);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
        z-index: 99;
        overflow-y: auto;
    }
    .nav-links.open { transform: translateX(0); visibility: visible; transition: transform 0.3s var(--ease), visibility 0s; }
    .nav-links ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { display: block; padding: 12px 14px; font-size: 1.05rem; }
    .nav-cta-item { margin: 12px 0 0; }
    .nav-cta { width: 100%; }
    .nav-lang { margin: 12px 0 0; }
    .nav-burger { position: relative; z-index: 101; }
    .nav-overlay.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(26, 30, 40, 0.35);
        z-index: 98;
    }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.page-hero {
    padding: 72px 0 48px;
    background:
        radial-gradient(900px 320px at 85% -10%, rgba(var(--accent-rgb), 0.12), transparent 70%),
        radial-gradient(600px 260px at 0% 120%, rgba(var(--accent-rgb), 0.06), transparent 70%);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 780px; }
.page-hero p { max-width: 620px; color: var(--text-muted); font-size: 1.08rem; margin-bottom: 0; }
.page-section { padding: 24px 0 96px; }

/* ---------- Cards ---------- */
.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

/* ---------- Forms ---------- */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-group { margin-bottom: 18px; min-width: 0; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border-strong);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.form-group select {
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-2);
    box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14);
}
.form-group .is-invalid { border-color: #c2413b; }
.form-check { display: flex; gap: 12px; align-items: flex-start; }
.form-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.form-check label { font-weight: 400; font-size: 0.9rem; color: var(--text-muted); margin: 0; }
.form-check a { color: var(--accent); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 0.95rem; }
.form-msg-success { background: rgba(31, 143, 78, 0.1); color: #17663a; border: 1px solid rgba(31, 143, 78, 0.25); }
.form-msg-error { background: rgba(194, 65, 59, 0.08); color: #9d2f2a; border: 1px solid rgba(194, 65, 59, 0.25); }

/* ---------- Video facade (live + portfolio) ---------- */
.video-facade {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 30% 20%, rgba(var(--accent-rgb), 0.35), transparent 55%),
        linear-gradient(160deg, #2a2320, #14161c);
    color: #fff;
    box-shadow: var(--shadow);
}
.video-16x9 { aspect-ratio: 16 / 9; }
.video-9x16 { aspect-ratio: 9 / 16; }
.video-1x1  { aspect-ratio: 1 / 1; }
.video-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade-btn {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    border: 0;
    background: transparent;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
.play-icon {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s var(--ease);
}
.play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 12px 0 12px 19px;
    border-color: transparent transparent transparent var(--accent);
}
.video-facade-btn:hover .play-icon { transform: scale(1.06); }
.video-facade-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    margin: 0;
    padding: 0 16px;
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    pointer-events: none;
}
.video-facade.is-playing .video-facade-note { display: none; }

/* ---------- Prose ---------- */
.prose { font-size: 1.06rem; }
.prose p { color: var(--text); }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose a { color: var(--accent); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-tagline { color: var(--text-muted); margin-top: 14px; max-width: 320px; }
.footer-heading { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 14px; }
.footer-nav li, .footer-contact li { margin-bottom: 8px; }
.footer-nav a, .footer-contact a { text-decoration: none; color: var(--text); transition: color 0.2s var(--ease); word-break: break-word; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Error pages ---------- */
.error-page { padding: 96px 0 120px; }
.error-inner { text-align: center; max-width: 620px; }
.error-code {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(4.5rem, 14vw, 7.5rem);
    line-height: 1;
    color: var(--accent);
    margin-bottom: 16px;
}
.error-inner h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.error-inner p { color: var(--text-muted); }
.error-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .play-icon { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .section { padding: 64px 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .video-16x9 { aspect-ratio: 4 / 3; }
    .play-icon { width: 58px; height: 58px; }
    .video-facade-note { font-size: 0.72rem; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0; }
    .card { padding: 22px; }
    .page-hero { padding: 48px 0 32px; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }
    .btn { white-space: normal; text-align: center; }
}

/* ---------- Uploaded logo ---------- */
.nav-logo-img { display: block; height: 56px; width: auto; max-width: 240px; object-fit: contain; }
.footer-logo .nav-logo-img { height: 72px; max-width: 280px; }
@media (max-width: 640px) {
    .nav-logo-img { height: 46px; max-width: 180px; }
}

/* ---------- Floating WhatsApp button (includes/footer.php; on/off in Configurações → Contato) ---------- */
.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    background: #1f8f4e;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.wa-float:hover { background: #197a42; transform: translateY(-2px); }
.wa-float:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
body.pf-lock .wa-float { display: none; }
@media (max-width: 640px) {
    .wa-float { right: 14px; bottom: 14px; padding: 13px; }
    .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-float { transition: none; }
}
@media print {
    .wa-float { display: none; }
}
