/* =========================================================
   MobiPneus — Stylesheet
   Paleta inspirada no mockup React:
   - brand-red:      oklch(42% .22 25)  ≈ #c01e26
   - brand-charcoal: oklch(18% .005 285) ≈ #1f2024
   - off-white:      oklch(96% .002 285) ≈ #f3f3f4
   - border:         oklch(90% .004 285) ≈ #e1e1e3
   ========================================================= */

:root {
    --brand-red: #c01e26;
    --brand-red-dark: #9b1a20;
    --brand-red-soft: rgba(192, 30, 38, 0.10);
    --brand-charcoal: #1f2024;
    --brand-charcoal-soft: #2a2b30;
    --whatsapp: #25D366;
    --whatsapp-dark: #1da851;

    --text-primary: #1f2024;
    --text-secondary: #4a4a52;
    --text-muted: #7a7a82;
    --text-light: #ffffff;

    --bg-white: #ffffff;
    --bg-soft: #f3f3f4;
    --bg-softer: #f9f9fa;
    --border: #e1e1e3;
    --border-soft: #ededee;

    --font-display: 'Montserrat', sans-serif;
    --font-body: 'Nunito Sans', sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);
    --shadow-red: 0 8px 24px rgba(192, 30, 38, 0.25);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.6em;
    color: var(--text-primary);
}

p { margin: 0 0 1em; }

a {
    color: var(--brand-red);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--brand-red-dark); }

img { max-width: 100%; height: auto; display: block; }

ul { padding: 0; margin: 0; list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 96px 0; }

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 0;
}

.section-head {
    text-align: center;
    margin-bottom: 64px;
}

.section-head.section-head-left {
    text-align: left;
}
.section-head.section-head-left .section-subtitle { margin-left: 0; }

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-align: center;
    border: 2px solid transparent;
    line-height: 1;
}

.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

.btn-primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.btn-primary:hover {
    background: var(--brand-red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(192, 30, 38, 0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}
.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: all 0.25s ease;
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.logo:hover { color: var(--text-primary); }
.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    display: inline-block;
    flex-shrink: 0;
}
.logo-mark-lg { width: 56px; height: 56px; }
.logo-text-accent { color: var(--brand-red); }
.logo-light, .logo-light .logo-text { color: #fff; }

.main-nav {
    display: flex;
    gap: 32px;
}
.main-nav a {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 6px 0;
}
.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.main-nav a:hover { color: var(--brand-red); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}
.header-phone:hover { color: var(--brand-red); }
.header-phone i { color: var(--brand-red); }

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    color: var(--text-primary);
    font-size: 18px;
    align-items: center;
    justify-content: center;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 16px 24px 24px;
    background: #fff;
    border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 12px 8px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
}
.mobile-nav a:hover { background: var(--bg-soft); color: var(--brand-red); }
.mobile-nav .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 80px;
    color: #fff;
    overflow: hidden;
    background: var(--brand-charcoal);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg,
            rgba(31, 32, 36, 0.94) 0%,
            rgba(31, 32, 36, 0.78) 45%,
            rgba(31, 32, 36, 0.35) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--brand-red-soft);
    border: 1px solid rgba(192, 30, 38, 0.40);
    border-radius: 999px;
    margin-bottom: 28px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: #ff7d83;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
    position: relative;
}
.hero-badge .dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--brand-red);
    opacity: 0.6;
    animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hero h1 {
    font-size: clamp(40px, 7vw, 84px);
    font-weight: 900;
    line-height: 0.95;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero h1 .accent { color: var(--brand-red); display: block; }

.hero-subtitle {
    font-size: clamp(16px, 1.4vw, 19px);
    color: rgba(255, 255, 255, 0.82);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-stats {
    margin-top: 56px;
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
}
.hero-stat-label {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-weight: 600;
}
.hero-stat-value {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    color: #fff;
}

/* ---------- Services ---------- */
.services {
    background: var(--bg-white);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover {
    border-color: var(--brand-red);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.service-card .price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-red);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--brand-red-soft);
    color: var(--brand-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    background: var(--brand-red);
    color: #fff;
}
.service-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}
.service-card p {
    color: var(--text-secondary);
    font-size: 14.5px;
    margin: 0;
}

/* ---------- Why Us ---------- */
.why {
    background: var(--bg-soft);
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.why-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-red-soft);
    color: var(--brand-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
}
.why-card h4 {
    font-size: 17px;
    margin-bottom: 10px;
}
.why-card p {
    color: var(--text-secondary);
    font-size: 14.5px;
    margin: 0;
}

/* ---------- Pricing ---------- */
.pricing {
    background: var(--brand-charcoal);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pricing::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(192, 30, 38, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.pricing .section-eyebrow { color: var(--brand-red); }
.pricing .section-title { color: #fff; }
.pricing .section-subtitle { color: rgba(255, 255, 255, 0.7); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}
.price-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}
.price-card:hover {
    border-color: rgba(192, 30, 38, 0.5);
    background: rgba(255, 255, 255, 0.06);
}
.price-card h4 {
    color: var(--brand-red);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-card h4::before {
    content: "";
    width: 28px;
    height: 3px;
    background: var(--brand-red);
}
.price-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.price-row:last-child { border-bottom: none; padding-bottom: 0; }
.price-name {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 15px;
}
.price-dots { flex: 1; }
.price-value {
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    font-size: 17px;
    white-space: nowrap;
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13.5px;
    font-style: italic;
}

.pricing-cta {
    margin-top: 56px;
    background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
    border-radius: var(--radius-xl);
    padding: 56px 32px;
    text-align: center;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 50px rgba(192, 30, 38, 0.35);
}
.pricing-cta h4 {
    color: #fff;
    font-size: clamp(22px, 3vw, 30px);
    margin-bottom: 14px;
}
.pricing-cta p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
    font-size: 16px;
}
.pricing-cta .btn {
    background: #fff;
    color: var(--brand-red);
}
.pricing-cta .btn:hover {
    background: var(--bg-soft);
    color: var(--brand-red-dark);
}

/* ---------- Partners ---------- */
.partners {
    background: #fff;
    padding: 64px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.partners-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 32px;
}
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.partner-card {
    min-width: 140px;
    padding: 18px 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
}
.partner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    color: var(--brand-red);
    border-color: var(--brand-red);
}

/* ---------- Contact ---------- */
.contact {
    background: var(--bg-soft);
}
.contact-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}
.contact-info { padding: 56px; }
.contact-info h3 {
    font-size: clamp(26px, 3vw, 38px);
    margin-bottom: 14px;
}
.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 36px;
}
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.contact-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contact-row-icon {
    width: 46px;
    height: 46px;
    background: var(--brand-red-soft);
    color: var(--brand-red);
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}
.contact-row-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.contact-row-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--text-muted);
    font-weight: 700;
}
.contact-row-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}
.contact-row-value a { color: var(--text-primary); }
.contact-row-value a:hover { color: var(--brand-red); }

.contact-map {
    min-height: 480px;
    background: var(--bg-softer);
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(0.4) contrast(1.05);
    transition: filter 0.5s ease;
}
.contact-map iframe:hover { filter: grayscale(0); }

/* ---------- Footer ---------- */
.site-footer {
    background: #14151a;
    color: rgba(255, 255, 255, 0.7);
    padding: 72px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr;
    gap: 40px;
    margin-bottom: 56px;
}
.footer-col h5 {
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    font-weight: 800;
}
.footer-col ul li { margin-bottom: 12px; font-size: 14.5px; }
.footer-col ul a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--brand-red); }

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14.5px;
    max-width: 320px;
    line-height: 1.6;
    margin-top: 18px;
    margin-bottom: 0;
}

.footer-contacts li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-contacts i {
    color: var(--brand-red);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.45);
}
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-links a[href*="admin"] { color: rgba(255, 255, 255, 0.18); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    z-index: 60;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.whatsapp-float:hover {
    color: #fff;
    transform: scale(1.08);
}
.whatsapp-float .whatsapp-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--whatsapp);
    opacity: 0.35;
    animation: wapulse 2s ease-out infinite;
    z-index: -1;
}
@keyframes wapulse {
    0% { transform: scale(1); opacity: 0.45; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-phone { display: none; }
    /* Botão "Pedir Orçamento" só no menu hamburger em mobile */
    .header-cta .btn { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    section { padding: 64px 0; }
    .hero { min-height: auto; padding-top: calc(var(--header-h) + 60px); padding-bottom: 72px; }
    .hero-stats { gap: 24px; }
    .contact-card { grid-template-columns: 1fr; }
    .contact-info { padding: 36px 28px; }
    .contact-map { min-height: 320px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
    .footer-bottom { justify-content: center; text-align: center; }
    .header-cta .btn-sm span { display: none; }
    .pricing-cta { padding: 40px 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .logo-text { font-size: 18px; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--brand-charcoal);
    color: #fff;
    border-top: 3px solid var(--brand-red);
    box-shadow: 0 -10px 32px rgba(0,0,0,0.30);
    animation: cookieSlideUp 0.4s ease;
}
/* CRÍTICO: HTML5 [hidden] devia ser display:none, mas .cookie-modal
   tem display:flex que sobrescreve. Forçamos com !important para
   garantir que hidden funciona sempre. */
.cookie-banner[hidden],
.cookie-modal[hidden] {
    display: none !important;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
}
.cookie-banner-text h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 6px;
}
.cookie-banner-text p {
    margin: 0;
    color: rgba(255,255,255,0.78);
    font-size: 13.5px;
    line-height: 1.5;
    max-width: 720px;
}
.cookie-banner-text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.30);
}
.btn-ghost-light:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-color: rgba(255,255,255,0.55);
}

@media (max-width: 760px) {
    .cookie-banner-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 20px;
    }
    .cookie-banner-actions {
        flex-wrap: wrap;
    }
    .cookie-banner-actions .btn {
        flex: 1 1 auto;
        min-width: 90px;
    }
}

/* ============ COOKIE MODAL ============ */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.cookie-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,21,26,0.65);
    backdrop-filter: blur(4px);
}
.cookie-modal-card {
    position: relative;
    background: #fff;
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,0.30);
}
.cookie-modal-head {
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-soft);
}
.cookie-modal-head h3 {
    margin: 0;
    font-size: 19px;
}
.cookie-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: none;
    cursor: pointer;
}
.cookie-modal-close:hover { background: var(--border); }
.cookie-modal-body {
    padding: 22px 26px;
    overflow-y: auto;
    flex: 1;
}
.cookie-modal-intro {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 18px;
}

.cookie-cat {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
}
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}
.cookie-cat-head h5 {
    margin: 0 0 4px;
    font-size: 15px;
}
.cookie-cat-head p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}
.cookie-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.cookie-pill-locked {
    background: var(--bg-soft);
    color: var(--text-muted);
}

/* Toggle switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 4px;
}
.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d0d0d4;
    border-radius: 999px;
    transition: 0.2s;
}
.cookie-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.cookie-switch input:checked + .cookie-slider { background: var(--brand-red); }
.cookie-switch input:checked + .cookie-slider::before { transform: translateX(20px); }

.cookie-modal-foot {
    padding: 18px 26px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-soft);
    border-color: var(--text-muted);
}

/* ============ LEGAL PAGES ============ */
.legal-page {
    padding-top: calc(var(--header-h) + 60px);
    padding-bottom: 80px;
    background: var(--bg-soft);
    min-height: calc(100vh - 200px);
}
.legal-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 56px;
    box-shadow: var(--shadow-sm);
}
.legal-wrap h1 {
    font-size: clamp(28px, 4vw, 38px);
    margin-bottom: 8px;
}
.legal-wrap .legal-date {
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 32px;
}
.legal-wrap h2 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--brand-red);
}
.legal-wrap p, .legal-wrap li {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}
.legal-wrap ul {
    padding-left: 22px;
    margin: 0 0 16px;
    list-style: disc;
}
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 24px;
    font-size: 14px;
}
.legal-wrap th, .legal-wrap td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
}
.legal-wrap th {
    background: var(--bg-soft);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}
.legal-wrap td { color: var(--text-secondary); }
@media (max-width: 600px) {
    .legal-wrap { padding: 32px 24px; }
}

/* ============================================================
   CONTACTO — nova grid: info à esquerda, form à direita
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-card,
.contact-form-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.contact-info-card h3,
.contact-form-card h3 {
    font-size: clamp(22px, 2.4vw, 28px);
    margin-bottom: 8px;
}
.contact-info-card > p,
.form-intro {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.contact-info-card .contact-list {
    margin-bottom: 28px;
}
.contact-info-card .contact-row {
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
}
.contact-info-card .contact-row-link:hover {
    background: var(--bg-soft);
}
.contact-info-card .contact-row-whatsapp .contact-row-icon {
    background: rgba(37, 211, 102, 0.12);
    color: var(--whatsapp);
}
.contact-info-card .contact-map {
    margin-top: 8px;
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 220px;
    border: 1px solid var(--border-soft);
}
.contact-info-card .contact-map iframe {
    min-height: 220px;
}

/* ============================================================
   FORMULÁRIOS (mp-form)
   ============================================================ */
.mp-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 540px) {
    .mp-form-row { grid-template-columns: 1fr; }
}

.mp-field { display: flex; flex-direction: column; gap: 6px; }
.mp-field label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.mp-field .req { color: var(--brand-red); }
.mp-field input[type="text"],
.mp-field input[type="email"],
.mp-field input[type="tel"],
.mp-field select,
.mp-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14.5px;
    background: #fff;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mp-field input:focus,
.mp-field select:focus,
.mp-field textarea:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(192,30,38,0.12);
}
.mp-field textarea { resize: vertical; min-height: 100px; }

/* Input date (mesmo estilo dos outros inputs) */
.mp-field input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14.5px;
    background: #fff;
    color: var(--text-primary);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mp-field input[type="date"]:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(192,30,38,0.12);
}

/* Horário: períodos (radio buttons estilizados) */
.horario-opcoes { margin-top: 4px; }
.horario-periodos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
@media (max-width: 480px) {
    .horario-periodos { grid-template-columns: 1fr; }
}
.horario-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: #fff;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    font-size: 14px;
    color: var(--text-primary);
}
.horario-check:hover {
    border-color: var(--brand-red);
    background: rgba(192, 30, 38, 0.03);
}
.horario-check input[type="radio"] {
    accent-color: var(--brand-red);
    width: 16px;
    height: 16px;
    margin: 0;
}
.horario-check input[type="radio"]:checked + span {
    font-weight: 700;
}
.horario-check small {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Dropdown de hora específica */
#hora-especifica-wrap select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 14.5px;
    background: #fff;
    color: var(--text-primary);
}
#hora-especifica-wrap select:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(192,30,38,0.12);
}

/* Dia-hint (Sábado, Domingo, etc.) */
#dia-hint.hint-aviso { color: var(--brand-red); font-weight: 600; }

/* Section title dentro do form */
.form-section-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-red);
    margin: 10px 0 4px;
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title i { font-size: 14px; }

/* Checkbox grid (serviços) */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 4px;
}
.checkbox-card {
    position: relative;
    cursor: pointer;
}
.checkbox-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.checkbox-card span {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text-primary);
    background: #fff;
    transition: all 0.15s ease;
}
.checkbox-card span i { color: var(--text-muted); }
.checkbox-card input:checked + span {
    border-color: var(--brand-red);
    background: var(--brand-red-soft);
    color: var(--brand-red);
}
.checkbox-card input:checked + span i { color: var(--brand-red); }
.checkbox-card:hover span { border-color: var(--text-muted); }

/* Honeypot field (escondido) */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Feedback do form */
.mp-form-feedback {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.5;
    margin-top: 4px;
}
.mp-form-feedback.is-success {
    background: rgba(34, 139, 34, 0.10);
    color: #1c6b1c;
    border-left: 3px solid #1c6b1c;
}
.mp-form-feedback.is-error {
    background: rgba(192, 30, 38, 0.08);
    color: var(--brand-red-dark);
    border-left: 3px solid var(--brand-red);
}

.mp-form-legal {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}
.mp-form-legal a { color: var(--text-secondary); text-decoration: underline; }

.btn-block { display: flex; width: 100%; }

/* ============================================================
   MODAL DE ORÇAMENTO
   ============================================================ */
.quote-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.quote-modal[hidden] { display: none !important; }
.quote-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,21,26,0.72);
    backdrop-filter: blur(6px);
    cursor: pointer;
}
.quote-modal-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0,0,0,0.40);
    overflow: hidden;
    animation: quoteModalIn 0.3s ease;
}
@keyframes quoteModalIn {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.quote-modal-head {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    background: var(--bg-soft);
}
.quote-modal-head h3 {
    margin: 4px 0 0;
    font-size: 22px;
}
.quote-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.quote-modal-close:hover { background: var(--bg-soft); border-color: var(--text-muted); }
.quote-modal-body {
    padding: 28px;
    overflow-y: auto;
}
@media (max-width: 540px) {
    .quote-modal { padding: 0; }
    .quote-modal-card { max-height: 100vh; border-radius: 0; }
    .quote-modal-head { padding: 20px; }
    .quote-modal-body { padding: 20px; }
}

/* ============================================================
   FOOTER (atualizado: iOSYS branding, sem admin)
   ============================================================ */
.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-bottom-left p {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-display);
    font-weight: 600;
}
.footer-bottom-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12.5px;
}
.footer-bottom-links a:hover { color: var(--brand-red); }

.footer-credit {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
}
.footer-credit-link {
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    transition: all 0.2s ease;
}
.footer-credit-link i {
    color: var(--brand-red);
    font-size: 13px;
}
.footer-credit-link:hover {
    color: #fff;
    background: var(--brand-red);
    border-color: var(--brand-red);
}
.footer-credit-link:hover i {
    color: #fff;
}

@media (max-width: 720px) {
    .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ============================================================
   COOKIE FAB (botão flutuante, canto inferior esquerdo)
   ============================================================ */
.cookie-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand-charcoal);
    border: 1px solid var(--border);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 60;
    transition: all 0.2s ease;
}
.cookie-fab:hover {
    background: var(--brand-charcoal);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(0,0,0,0.20);
}
.cookie-fab:hover i { color: var(--brand-red); }

@media (max-width: 540px) {
    .cookie-fab { width: 44px; height: 44px; font-size: 17px; bottom: 18px; left: 18px; }
    .whatsapp-float { width: 54px; height: 54px; font-size: 24px; }
}

/* ============================================================
   MATRÍCULA — 3 campos pequenos com separadores
   ============================================================ */
.matricula-input {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.matricula-input:focus-within {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(192,30,38,0.12);
}
.matricula-input input {
    width: 48px !important;
    text-align: center;
    border: 1px solid var(--border-soft) !important;
    border-radius: 4px !important;
    padding: 8px 4px !important;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--bg-softer) !important;
    box-shadow: none !important;
}
.matricula-input input:focus {
    border-color: var(--brand-red) !important;
    background: #fff !important;
    box-shadow: none !important;
}
.matricula-sep {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    user-select: none;
}

/* ============================================================
   MEDIDA DE PNEU — 5 campos com separadores tipográficos
   ============================================================ */
.tire-size-input {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
    flex-wrap: wrap;
}
.tire-size-input:focus-within {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(192,30,38,0.12);
}
.tire-size-input input {
    text-align: center;
    border: 1px solid var(--border-soft) !important;
    border-radius: 4px !important;
    padding: 8px 4px !important;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px !important;
    background: var(--bg-softer) !important;
    box-shadow: none !important;
}
.tire-size-input input:focus {
    border-color: var(--brand-red) !important;
    background: #fff !important;
    box-shadow: none !important;
}
.tire-size-input input[name="med_largura"] { width: 54px !important; }
.tire-size-input input[name="med_perfil"]  { width: 44px !important; }
.tire-size-input input[name="med_aro"]     { width: 44px !important; }
.tire-size-input input[name="med_carga"]   { width: 54px !important; }
.tire-size-input input[name="med_vel"]     { width: 44px !important; }
.tire-sep {
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    user-select: none;
}
.tire-sep-space {
    width: 6px;
    border-left: 1px dashed var(--border);
    height: 18px;
    margin: 0 4px;
}

@media (max-width: 540px) {
    .tire-size-input { gap: 4px; padding: 6px 8px; }
    .tire-size-input input { font-size: 14px !important; padding: 7px 3px !important; }
    .tire-size-input input[name="med_largura"] { width: 46px !important; }
    .tire-size-input input[name="med_perfil"]  { width: 38px !important; }
    .tire-size-input input[name="med_aro"]     { width: 38px !important; }
    .tire-size-input input[name="med_carga"]   { width: 46px !important; }
    .tire-size-input input[name="med_vel"]     { width: 36px !important; }
}

/* datetime-local: melhorar aparência */
input[type="datetime-local"] {
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--text-primary);
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s;
}
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Scroll suave para anchors + margem para o header sticky não tapar conteúdo */
html { scroll-behavior: smooth; }
section[id],
[id="topo"] {
    scroll-margin-top: calc(var(--header-h, 76px) + 12px);
}

/* =========================================================
   [REPOSTO] GALERIA — Carrossel auto-scroll + lightbox
   ========================================================= */
.galeria {
    padding: 64px 0 72px;
    background: var(--bg-soft);
    overflow: hidden;
}
.galeria .section-head { margin-bottom: 32px; }
.galeria-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.galeria-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: galeria-scroll 50s linear infinite;
    will-change: transform;
}
@keyframes galeria-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.galeria-marquee:hover .galeria-track { animation-play-state: paused; }
.galeria-item {
    flex: 0 0 auto;
    width: 240px;
    height: 170px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    background: var(--border-soft);
    cursor: pointer;
    text-decoration: none;
    display: block;
    transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s ease;
}
.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
@media (hover: hover) {
    .galeria-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.18); }
    .galeria-item:hover img { transform: scale(1.10); }
}
.galeria-item-legenda {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 12px 10px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease;
}
@media (hover: hover) {
    .galeria-item:hover .galeria-item-legenda { opacity: 1; transform: translateY(0); }
}
@media (hover: none) {
    .galeria-item-legenda { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .galeria-track { animation: none; }
    .galeria-item:hover { transform: none; }
}
@media (max-width: 768px) {
    .galeria-item { width: 200px; height: 140px; }
    .galeria-track { animation-duration: 35s; }
}

/* Lightbox */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(15,15,17,0.95);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    z-index: 9999; display: none;
    align-items: center; justify-content: center;
    padding: 60px 20px;
}
.lightbox.open { display: flex; animation: lb-fade-in .25s ease; }
@keyframes lb-fade-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content { position: relative; max-width: 1100px; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox-img-wrap { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 0; }
.lightbox-img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 25px 70px rgba(0,0,0,0.6); animation: lb-zoom-in .35s cubic-bezier(.23,1,.32,1); }
@keyframes lb-zoom-in { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-caption { color: rgba(255,255,255,0.95); font-size: 15px; font-weight: 500; margin-top: 18px; padding: 0 20px; text-align: center; max-width: 800px; min-height: 1.2em; }
.lightbox-counter { color: rgba(255,255,255,0.55); font-size: 13px; margin-top: 8px; font-family: var(--font-display); letter-spacing: 0.05em; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.10); color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    width: 52px; height: 52px; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    z-index: 2;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--brand-red); border-color: var(--brand-red); }
.lightbox-close:hover { transform: scale(1.08); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 768px) {
    .lightbox { padding: 50px 12px; }
    .lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 1.1rem; }
    .lightbox-prev { left: 8px; width: 42px; height: 42px; font-size: 1.1rem; }
    .lightbox-next { right: 8px; width: 42px; height: 42px; font-size: 1.1rem; }
    .lightbox-img { max-height: 70vh; }
}

/* Logos parceiros */
.partner-card .partner-logo {
    max-width: 140px; height: 32px; width: auto; display: block;
    filter: grayscale(100%) brightness(0.6); opacity: 0.7;
    transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.partner-card:hover .partner-logo { filter: grayscale(0%) brightness(1); opacity: 1; transform: translateY(-2px); }
@media (max-width: 768px) { .partner-card .partner-logo { max-width: 110px; height: 26px; } }

/* Galeria no admin */
.galeria-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.galeria-admin-item { background: #fff; border: 1px solid var(--border, #e1e1e3); border-radius: 12px; overflow: hidden; transition: box-shadow .2s ease; }
.galeria-admin-item:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.galeria-admin-item.inativa { opacity: 0.55; }
.galeria-admin-thumb { position: relative; width: 100%; aspect-ratio: 4/3; background: #f3f3f4; overflow: hidden; }
.galeria-admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galeria-admin-badge { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.75); color: #fff; padding: 3px 9px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }
.galeria-admin-info { padding: 0.7rem; }
.galeria-admin-form input[type="text"] { width: 100%; padding: 0.45rem 0.6rem; border: 1px solid var(--border, #e1e1e3); border-radius: 6px; font-size: 13px; margin-bottom: 0.4rem; font-family: inherit; }
.galeria-admin-form input[type="text"]:focus { outline: none; border-color: var(--brand-red, #c01e26); box-shadow: 0 0 0 3px rgba(192,30,38,0.10); }
.galeria-admin-check { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary, #4a4a52); margin-bottom: 0.5rem; cursor: pointer; }
.galeria-admin-actions { display: flex; gap: 4px; margin-top: 0.5rem; }
.galeria-admin-actions a, .galeria-admin-actions span.btn-icon { flex: 1; display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 6px; text-decoration: none; font-size: 12px; }
.galeria-admin-actions .btn-icon.disabled { opacity: 0.3; cursor: not-allowed; }

/* Cobertura 3 linhas no hero */
.hero-stat-value small { display: block; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-top: 2px; letter-spacing: 0; }
.hero-stat-value { display: block; line-height: 1.25; }

/* Hero stats: 3 items na mesma linha */
.hero-stats { gap: 24px; }
.hero-stats > div { flex: 1 1 0; min-width: 0; }
.hero-stat-value { font-size: 20px; }
@media (max-width: 768px) {
    .hero-stats > div { flex: 1 1 100%; }
    .hero-stat-value { font-size: 18px; }
}

/* Rodapé: Livro de Reclamações + Ecovalor */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}
.footer-reclamacoes {
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity .2s ease;
}
.footer-reclamacoes:hover { opacity: 1; }
.footer-reclamacoes img {
    display: block;
    height: 28px;
    width: auto;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
}
.footer-ecovalor {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    margin: 0;
}
.footer-ecovalor i {
    color: rgba(255, 255, 255, 0.35);
    margin-right: 4px;
}
@media (max-width: 768px) {
    .footer-legal { flex-direction: column; align-items: flex-start; gap: 10px; }
}
