/* Explain: Styles for UI components like top bar, header, buttons, and hero contact section. */
/* ---------- Top bar ---------- */
.top-bar {
    background: var(--deep);
    color: #d9e4ed;
    padding: 9px 0;
    font-size: 13px;
}

.top-bar .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--navy);
    box-shadow: 0 4px 22px rgba(16, 43, 70, 0.07);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 12px;
    background: transparent;
}

.brand img {
    display: block;
    width: auto;
    height: 40px;
}

.main-nav {
    display: flex;
    gap: 25px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.main-nav a {
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--yellow);
}

/* ---------- Buttons ---------- */
.btn-ideal {
    display: inline-block;
    border-radius: 9px;
    background: var(--yellow);
    color: #132b40;
    padding: 14px 19px;
    font-weight: 800;
    line-height: 1.2;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-ideal:hover {
    transform: translateY(-2px);
}

.btn-ideal.is-dark {
    background: var(--navy);
    color: var(--white);
}

.btn-ghost {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 9px;
    color: var(--white);
    padding: 13px 18px;
    font-weight: 700;
    line-height: 1.2;
    transition: background 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    border: 1px solid #e6edf2;
    border-radius: 15px;
    background: var(--white);
    padding: 24px;
}

.feature .icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff5ce;
    color: var(--yellow-dark);
    font-size: 21px;
}

.feature h3 {
    margin: 16px 0 8px;
    color: var(--navy);
    font-size: 17px;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Products ---------- */
.products-sub {
    max-width: 740px;
    margin: -18px auto 26px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    text-align: center;
}

.products-sub.is-spaced {
    margin: 46px auto 26px;
}

.products {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(232px, 256px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 20px;
    scrollbar-width: thin;
    scrollbar-color: #c9d6e2 transparent;
}

.products::-webkit-scrollbar {
    height: 8px;
}

.products::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: #c9d6e2;
}

.product {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6edf2;
    border-radius: 18px;
    background: var(--white);
    scroll-snap-align: start;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.product:hover,
.product:focus-within,
.product:active {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--yellow);
    box-shadow: 0 20px 45px rgba(16, 43, 70, 0.18);
}

.product-img {
    position: relative;
    height: 190px;
    background: #eef2f5;
    padding: 12px;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-shadow: inset 0 -18px 46px rgba(16, 43, 70, 0.09);
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
    filter: drop-shadow(0 8px 14px rgba(16, 43, 70, 0.28));
    transition: transform 0.4s ease;
}

/* Cards com foto (linha pesada, agrícolas, estacionárias, nobreak e solar) */
.product-img-photo img {
    object-fit: cover;
    border-radius: 12px;
    filter: none;
}

/* Card com bateria recortada sobre fundo em degradê */
.product-img-cutout img {
    filter: drop-shadow(0 10px 18px rgba(16, 43, 70, 0.34));
    transform: scale(1);
}

/* Fundo azul com brilho da foto, sem a parte branca */
.product-img-ambient.product-img-tint .product-img-blur {
    opacity: 0.55;
    filter: blur(42px) saturate(2.1) brightness(0.85);
}

.product-img-ambient.product-img-tint {
    background: linear-gradient(160deg, #4f9fe0 0%, #2f7ec9 52%, #14528f 100%) !important;
}

/* Fundo do card gerado a partir da própria foto da bateria */
.product-img-ambient .product-img-blur {
    position: absolute;
    top: -35%;
    left: -35%;
    z-index: 0;
    width: 170%;
    height: 170%;
    object-fit: cover;
    border-radius: 0;
    filter: blur(38px) saturate(1.9);
    opacity: 0.95;
    pointer-events: none;
}

.product-img-ambient .product-img-main {
    position: relative;
    z-index: 1;
}

.product:hover .product-img img,
.product:active .product-img img {
    transform: scale(1.06);
}

.product:hover .product-img-cutout img,
.product:active .product-img-cutout img {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .product,
    .product-img img {
        transition: none;
    }
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.product .tag {
    color: var(--yellow-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.product h3 {
    margin: 8px 0;
    color: var(--navy);
    font-size: 17px;
}

.product p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.product .btn-ideal {
    display: block;
    margin-top: auto;
    padding: 11px;
    font-size: 13px;
    text-align: center;
    border-radius: 12px;
}

/* ---------- About / stat ---------- */
.stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--navy), #1d5079);
    padding: 35px;
    color: var(--white);
}

.stat .eyebrow {
    color: #d5a000;
}

.stat strong {
    color: var(--yellow);
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 900;
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
}

.checks b {
    color: #b98700;
}

/* ---------- CTA band ---------- */
.cta {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0;
}

.cta .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cta h2 {
    margin: 0 0 8px;
}

.cta p {
    margin: 0;
    color: #d3e0e9;
}

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.panel {
    border-radius: 15px;
    background: var(--paper);
    padding: 27px;
}

.panel h3 {
    margin-top: 0;
    color: var(--navy);
}

.panel .item {
    margin: 19px 0;
    color: #506274;
    line-height: 1.55;
}

.panel .item i {
    color: var(--yellow-dark);
}

.panel .item b {
    display: block;
    color: var(--navy);
}

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 330px;
    border: 0;
    border-radius: 15px;
}

/* ---------- Store photo (Sobre nós) ---------- */
.store-photo {
    position: relative;
    overflow: hidden;
    margin-top: 48px;
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(16, 43, 70, 0.18);
}

.store-photo img {
    display: block;
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center;
}

.store-photo figcaption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 22px 26px;
    background: linear-gradient(0deg, rgba(9, 27, 45, 0.94) 0%, rgba(9, 27, 45, 0.55) 55%, rgba(9, 27, 45, 0) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.4;
}

.store-photo figcaption i {
    color: var(--yellow);
    font-size: 17px;
}

@media (max-width: 650px) {
    .store-photo {
        margin-top: 28px;
    }

    .store-photo img {
        height: 240px;
    }

    .store-photo figcaption {
        padding: 16px 18px;
        font-size: 13.5px;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: #071827;
    color: #bdcbd7;
    padding: 25px 0;
    font-size: 13px;
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
}

.site-footer b {
    color: var(--white);
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 40px;
    background: #20c768;
    color: var(--white);
    padding: 14px 19px;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.wa-float:hover {
    transform: translateY(-2px);
}

/* ---------- Faixa de contatos em destaque (hero) ---------- */
.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.hero-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 13px 24px 13px 16px;
    color: var(--white);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-contact-item:hover {
    transform: translateY(-3px);
}

.hero-contact-item.is-whats {
    background: linear-gradient(135deg, #25d366 0%, #128c4b 100%);
}

.hero-contact-item.is-whats:hover {
    background: linear-gradient(135deg, #2ee26f 0%, #14a558 100%);
}

.hero-contact-item.is-phone {
    background: linear-gradient(135deg, #3b7fb5 0%, #1d5079 100%);
}

.hero-contact-item.is-phone:hover {
    background: linear-gradient(135deg, #4a90c6 0%, #24608f 100%);
}

.hero-contact-ic {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 22px;
}

.hero-contact-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-contact-txt small {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-contact-txt b {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

@media (max-width: 650px) {
    .hero-contact {
        width: 100%;
    }

    .hero-contact-item {
        width: 100%;
    }
}

/* ---------- After-hours urgent card ---------- */
.feature-urgent {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 0;
    background: linear-gradient(135deg, #ffc928 0%, #ffb300 100%);
    padding: 26px 30px;
    color: #132b40;
    box-shadow: 0 16px 40px rgba(255, 201, 40, 0.35);
    animation: urgentPulse 2.2s ease-in-out infinite;
}

.feature-urgent:hover {
    transform: translateY(-4px);
}

.feature-urgent .icon {
    flex: 0 0 auto;
    background: var(--navy);
    color: var(--yellow);
}

.feature-urgent-text {
    min-width: 0;
}

.feature-urgent h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 900;
}

.feature-urgent p {
    margin: 0;
    color: #3a4f61;
    font-size: 15px;
    line-height: 1.5;
}

.feature-urgent p b {
    color: var(--navy);
}

.feature-urgent .btn-ideal.is-urgent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
    background: var(--navy);
    color: var(--white);
    padding: 14px 22px;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(16, 43, 70, 0.28);
}

.feature-urgent .btn-ideal.is-urgent:hover {
    background: #1d5079;
}

@keyframes urgentPulse {
    0%,
    100% {
        box-shadow: 0 16px 40px rgba(255, 201, 40, 0.35);
    }

    50% {
        box-shadow: 0 16px 48px rgba(255, 201, 40, 0.75);
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-urgent {
        animation: none;
    }
}

@media (max-width: 650px) {
    .feature-urgent {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }

    .feature-urgent .btn-ideal.is-urgent {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}