/* ============================== */
/*         CONFIGURAÇÕES          */
/* ============================== */

:root {
    --primary: #e30613;
    --primary-dark: #bd0010;

    --dark: #10141c;
    --dark-light: #1a202b;

    --text: #20242c;
    --text-light: #69707c;

    --background: #f5f6f8;
    --background-light: #ffffff;

    --border: #e4e6ea;

    --radius: 16px;

    --shadow:
        0 10px 35px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    background: var(--background);
    color: var(--text);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ============== */
/*      HEADER    */
/* ============== */

.header {
    background: var(--white);

    border-bottom:
        1px solid var(--border);
    
        position: sticky;
    top: 0;

    z-index: 1000;
}

.header-content {
    height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    display: block;
    
    width: auto;
    max-width: 180px;
    max-height: 58px;
}

.nav {
    display: flex;
    align-items: center;

    gap: 32px;
}

.nav a {
    font-size: 15px;
    font-weight: 600;

    transition: 0.2s;
}

.nav a:hover {
    color: var(--primary);
}

.menu-button {
    display: none;

    border: 0;
    background: transparent;

    font-size: 28px;
}

/* ===================== */
/*      VIDEOS           */
/* ===================== */

.video-section {
    padding: 55px 0;
    background: var(--white);
}

.video-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 14fr)
        minmax(320px, 0.8fr);

    gap: 45px;

    align-items: start;
}

.video-box {
    background: #000;

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);

    aspect-ratio: 16 / 9;
}

.video-box video {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    background: #000;
}

.main-video h1 {
    margin-top: 22px;

    font-size: clamp(26px, 4vw, 38px);

    line-height: 1.1;
}

.main-video p {
    color: var(--text-light);

    margin-top: 10px;

    line-height: 1.6;
}

.video-list {
    background: var(--white);

    border:
        1px solid var(--border);
    
    border-radius: var(--radius);

    padding: 25px;

    box-shadow: var(--shadow);
}

.video-list h2 {
    font-size: 20px;

    margin-bottom: 18px;
}

.video-item {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 16px;

    padding: 12px;

    border:
        1px solid transparent;

    border-radius: 12px;

    background: transparent;

    text-align: left;

    transition: 0.2s;
}

.video-item + .video-item {
    margin-top: 8px;
}

.video-item:hover {
    background: #f7f7f8;
}

.video-item.active {
    border-color:
        rgba(227, 6, 19, 0.3);
    
    background: 
        rgba(227, 6, 19, 0.06);
}

.video-thumbnail {
    width: 92px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: #d9dce1;

    color: var(--dark);

    font-size: 22px;
}

.video-item strong {
    display: block;

    margin-bottom: 5px;
}

.video-item span {
    color: var(--text-light);
    font-size: 13px;
}

/* ========================== */
/*            TITULOS         */
/* ========================== */

.section-heading {
    max-width: 680px;

    margin: 0 auto 38px;

    text-align: center;
}

.section-heading > span {
    display: inline-block;

    color: var(--primary);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 1.4px;

    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 
        clamp(28px, 4vw, 40px);

    line-height: 1.15;
}

.section-heading p {
    color: var(--text-light);
    
    margin-top: 12px;

    line-height: 1.6;
}

/*==========================
            PLANOS
==========================*/

.plans-section {
    padding: 75px 0;
}

.plans-grid {
    display: grid;

    grid-template-columns: 
        repeat(4, 1fr);

    gap: 18px;
}

.plan-card {
    position: relative;

    background: var(--white);

    border: 
        1px solid var(--radius);

    border-radius: var(--radius);

    padding: 30px 24px;

    box-shadow: var(--shadow);

    transition:
        transform 0.25s,
        box-shadow 0.25s;
}

.plan-card.featured {
    border:
        2px solid var(--primary)
}

.recommended {
    position: absolute;

    top: -13px;
    left: 50%;

    transform: translateX(-50%);

    background: var(--primary);
    color: var(--white);

    padding: 6px 14px;

    border-radius: 100px;

    white-space: nowrap;

    font-size: 11px;
    font-weight: 800;
}

.plan-tag {
    display: inline-block;

    background:
        rgba(227, 6, 19, 0.08);

    color: var(--primary);

    padding: 6px 10px;

    border-radius: 100px;

    font-size: 11px;
    font-weight: 800;
}

.plan-card h3 {
    min-height: 48px;

    margin-top: 20px;

    font-size: 23px;
}

.plan-description {
    min-height: 48px;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.5;
}

.plan-price {
    display: flex;
    align-items: baseline;

    gap: 4px;

    line-height: 22px;
}

.plan-price span {
    font-size: 13px;
}

.plan-price strong {
    color: var(--primary);

    font-size: 32px;
}

.plan-price small {
    color: var(--text-light);
}

.plan-note {
    margin-top: 8px;

    color: var(--text-light);

    font-size: 12px;
}

.plan-button {
    width: 100%;

    margin-top: 25px;

    padding: 13px;

    border: 0;

    border-radius: 9px;

    background: var(--primary);
    color: var(--white);

    font-weight: 700;

    transition: 0.2s;
}

.plan-button:hover {
    background: var(--primary-dark);
}

/* =========================
   LOCAIS / PDV
========================= */

.locations-section {
    padding: 75px 0;

    background: var(--white);
}


.locations-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;
}


.location-card {
    display: flex;

    gap: 5px;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    padding: 25px;

    background: var(--white);

    box-shadow:
        0 6px 25px
        rgba(0, 0, 0, 0.05);
}


.location-icon {
    width: 70px;
    height: 70px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f0f1f3;

    font-size: 30px;
}


.location-info {
    flex: 1;
}


.location-info h3 {
    font-size: 20px;

    margin-bottom: 9px;
}


.location-info p {
    color: var(--text-light);

    margin-top: 5px;

    font-size: 14px;
}


.location-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}


.location-actions button,
.location-actions a {
    border: 0;

    border-radius: 8px;

    padding: 10px 14px;

    font-size: 13px;
    font-weight: 700;
}


.location-actions button {
    background: var(--primary);
    color: var(--white);
}


.location-actions a {
    background: #8589929c;
}


/* =========================
   MAPA
========================= */

.map-section {
    padding: 75px 0;
}


.map-placeholder {
    min-height: 330px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px;

    border-radius: var(--radius);

    border:
        1px solid var(--border);

    background:
        repeating-linear-gradient(
            45deg,
            #f1f2f4,
            #f1f2f4 10px,
            #f7f7f8 10px,
            #f7f7f8 20px
        );
}


.map-placeholder span {
    display: block;

    font-size: 50px;

    margin-bottom: 15px;
}


.map-placeholder p {
    max-width: 500px;

    margin: 10px auto 0;

    color: var(--text-light);

    line-height: 1.5;
}


/* =========================
   CONTATO
========================= */

.contact-section {
    padding: 30px 0 75px;
}


.contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 45px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            var(--dark),
            var(--dark-light)
        );

    color: var(--white);
}


.contact-small {
    color: #ff525d;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.contact-box h2 {
    margin-top: 10px;
    color: #ebe8e8;
    font-size:
        clamp(25px, 4vw, 38px);
}


.contact-box p {
    margin-top: 10px;

    color: #bfc4cd;
}


.contact-button {
    flex-shrink: 0;

    padding: 15px 24px;

    border: 0;

    border-radius: 10px;

    background: var(--primary);
    color: var(--white);

    font-weight: 800;
}


/* =========================
   FOOTER
========================= */

.footer {
    background: #090c12;

    color: var(--white);
}


.footer-content {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap: 50px;

    padding-top: 55px;
    padding-bottom: 55px;
}


.footer-brand img {
    max-width: 170px;
    max-height: 65px;

    object-fit: contain;
}


.footer-brand p {
    max-width: 350px;

    color: #9ca3ad;

    margin-top: 18px;

    line-height: 1.6;
}


.footer-links h3 {
    margin-bottom: 18px;
}


.footer-links a,
.footer-links button {
    display: block;

    margin-top: 10px;

    border: 0;

    background: transparent;

    color: #b8bdc5;

    text-align: left;
}


.footer-links a:hover,
.footer-links button:hover {
    color: var(--white);
}


.footer-bottom {
    border-top:
        1px solid #202630;

    padding: 20px;

    text-align: center;

    color: #858c97;

    font-size: 13px;
}


/* =========================
   WHATSAPP FLUTUANTE
========================= */

.whatsapp-floating {
    position: fixed;

    right: 22px;
    bottom: 22px;

    width: 58px;
    height: 58px;

    border: 0;

    border-radius: 50%;

    background: #25d366;
    color: white;

    font-size: 25px;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.2);

    z-index: 900;
}


/* =========================
   TABLET
========================= */

@media (max-width: 950px) {

    .video-layout {
        grid-template-columns: 1fr;
    }


    .plans-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .nav {
        display: none;

        position: absolute;

        top: 82px;
        left: 0;
        right: 0;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 15px 20px;

        background: var(--white);

        border-bottom:
            1px solid var(--border);
    }


    .nav.open {
        display: flex;
    }


    .nav a {
        padding: 14px 0;
    }


    .menu-button {
        display: block;
    }

}


/* =========================
   CELULAR
========================= */

@media (max-width: 650px) {

    .container {
        width:
            min(100% - 28px, 1180px);
    }


    .video-section {
        padding: 30px 0 45px;
    }


    .video-list {
        padding: 15px;
    }


    .video-thumbnail {
        width: 75px;
        height: 50px;
    }


    .plans-grid,
    .locations-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }


    .plan-card h3,
    .plan-description {
        min-height: auto;
    }


    .location-card {
        flex-direction: column;
    }


    .contact-box {
        flex-direction: column;

        align-items: flex-start;

        padding: 30px 25px;
    }


    .contact-button {
        width: 100%;
    }


    .footer-content {
        gap: 30px;
    }

}

.plans-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1050px) {
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

.video-item {
    cursor: pointer;
}

.video-item:focus-visible {
    outline: 3px solid #e30613;
    outline-offset: 2px;
}

.video-item strong,
.video-item span {
    overflow-wrap: anywhere;
}

#mainVideoDescription {
    margin-top: 10px;
    color: #68707c;
    line-height: 1.6;
}

/* PDVs dinâmicos */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.location-card {
    background: #fff;
    border: 1px solid #e4e6ea;
    border-radius: 16px;
    padding: 26px;
}

.location-card h3 {
    margin-bottom: 18px;
}

.location-card p {
    margin-bottom: 12px;
    color: #68707c;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.location-actions a {
    display: inline-block;
    background: #e30613;
    color: #fff;
    padding: 12px 18px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.location-actions a:last-child {
    background: #10141c;
}

@media (max-width: 650px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   CORREÇÃO DOS CARDS DE PDV - CARRERA
========================================= */

.locations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.locations-grid .location-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;

    min-width: 0;
    width: 100%;
    padding: 28px;

    background: #ffffff;
    border: 1px solid #e4e7ed;
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.locations-grid .location-card h3 {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    
    color: #10141c;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
}

.locations-grid .location-card p {
    display: block;
    width: 100%;
    margin: 0 0 14px;

    color: #68707c;
    font-size: 18px;
    line-height: 1.3;

    overflow-wrap: anywhere;
    word-break: normal;
}

.locations-grid .location-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;

    width: 100%;
    margin-top: auto;
    padding-top: 20px;
}

.locations-grid .location-actions a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;

    border-radius: 9px;
    text-decoration: none;
    text-align: center;

    color: #ffffff;
    background: #e30613;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;

    transition: background 0.2s, transform 0.2s;
}

.locations-grid .location-actions a:hover {
    background: #bd0010;
    transform: translateY(-2px);
}

.locations-grid .location-actions a:last-child {
    background: #111722;
}

.locations-grid .location-actions a:last-child:hover {
    background: #2c3545;
}

/* TABLETS */

@media (max-width: 950px) {
    .locations-grid {
        grid-template-columns: 1fr;
    }
}

/* CELULARES */

@media (max-width: 480px) {
    .locations-grid .location-card {
        padding: 22px;
    }

    .locations-grid .location-card h3 {
        font-size: 20px;
    }

    .locations-grid .location-actions {
        grid-template-columns: 1fr;
    }
}


/* =====================================
   INFORMAÇÕES INSTITUCIONAIS
===================================== */

.company-info-section {
    padding: 70px 0;
    background: #fff;
}

.company-info-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 55px;
}

.company-info-content h2 {
    font-size: 30px;
    color: #10141c;
    margin-bottom: 18px;
}

.company-info-content h3 {
    font-size: 19px;
    margin-bottom: 18px;
}

.company-info-content p {
    color: #68707c;
    line-height: 1.8;
    margin-bottom: 12px;
}

.company-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.company-social-links a {
    display: inline-block;
    padding: 11px 15px;
    background: #f1f3f6;
    color: #20242c;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.company-social-links a:hover {
    background: #e30613;
    color: #fff;
}

.company-extra-contacts {
    margin-top: 22px;
}

.company-extra-contacts a {
    color: #e30613;
    text-decoration: none;
    overflow-wrap: anywhere;
}

@media (max-width: 750px) {
    .company-info-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .company-info-content h2 {
        font-size: 25px;
    }
}


/* =====================================
   PLANOS DINÂMICOS - HOME
===================================== */

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.plans-grid .plan-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.plans-grid .plan-card h3 {
    overflow-wrap: anywhere;
}

.plans-grid .plan-description {
    line-height: 1.6;
    color: #68707c;
}

.plans-grid .plan-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.plans-grid .plan-price strong {
    font-size: 29px;
    color: #e30613;
}

.plans-grid .plan-price span {
    color: #68707c;
    font-size: 13px;
}

.plans-grid .plan-details {
    font-size: 13px;
    line-height: 1.6;
    color: #68707c;
}

.plans-grid .plan-details p {
    margin-bottom: 6px;
}

.plans-grid .plan-button {
    margin-top: auto;
    width: 100%;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .plans-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}


/* ======================================
   VÍDEOS DINÂMICOS - HOME
====================================== */

#homeVideoList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

#homeVideoList .video-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 7px;
    width: 100%;
    padding: 18px;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    background: #fff;
    color: #20242c;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}

#homeVideoList .video-item:hover {
    border-color: #e30613;
}

#homeVideoList .video-item.active {
    border-color: #e30613;
    background: #fff4f5;
}

#homeVideoList .video-item strong {
    font-size: 15px;
}

#homeVideoList .video-item span {
    font-size: 13px;
    color: #68707c;
    line-height: 1.5;
}

#mainVideo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #10141c;
    border-radius: 12px;
}

@media (max-width: 650px) {
    #homeVideoList .video-item {
        padding: 14px;
    }
}


/* ======================================
   MINIATURAS REAIS DOS VÍDEOS
====================================== */

.video-thumbnail {
    position: relative;
    width: 92px;
    min-width: 92px;
    height: 62px;
    overflow: hidden;
    border-radius: 8px;
    background: #20242c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 13px;
    pointer-events: none;
}

.video-item:hover .video-play-icon,
.video-item.active .video-play-icon {
    background: #e30613;
}

/* Mantém miniatura e texto lado a lado */
#publicVideoList .video-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    text-align: left;
}

#publicVideoList .video-item > div:last-child {
    min-width: 0;
    flex: 1;
}

@media (max-width: 480px) {
    .video-thumbnail {
        width: 80px;
        min-width: 80px;
        height: 54px;
    }
}


/* ======================================
   CENTRALIZAÇÃO DOS PLANOS
====================================== */

#plansGrid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 20px;

    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Tamanho uniforme dos cards */
#plansGrid .plan-card {
    box-sizing: border-box;
    flex: 0 1 280px;
    width: 280px;
    max-width: 100%;
}

/* Responsividade para celulares */
@media (max-width: 600px) {
    #plansGrid {
        gap: 16px;
    }

    #plansGrid .plan-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 380px;
    }
}


/* ======================================
   SELO MAIS ESCOLHIDO
====================================== */

/* Permite posicionar o selo sobre o card */
#plansGrid .plan-card {
    position: relative;
}

/* Reserva espaço para o selo no card destacado */
#plansGrid .plan-card.featured {
    margin-top: 18px;
}

/* Selo acima do card */
#plansGrid .plan-card.featured .recommended {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: max-content;
    max-width: 90%;
    padding: 9px 20px;

    background: #000000;
    color: #ffffff;

    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;

    box-shadow: 0 5px 14px rgba(227, 6, 19, 0.25);

    z-index: 2;
}


/* ==========================================
   CARRERA TELECOM - LISTA DE VÍDEOS COM SCROLL
========================================== */

.video-layout {
    align-items: start;
}

.video-list {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
}

/* Lista interna com rolagem vertical */
#publicVideoList {
    display: flex;
    flex-direction: column;
    gap: 8px;

    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #e30613 #f1f1f1;
}

/* Mantém o título fixo e os vídeos roláveis */
.video-list h2 {
    flex-shrink: 0;
}

/* Barra de rolagem personalizada */
#publicVideoList::-webkit-scrollbar {
    width: 7px;
}

#publicVideoList::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#publicVideoList::-webkit-scrollbar-thumb {
    background: #e30613;
    border-radius: 10px;
}

/* Itens não devem encolher */
#publicVideoList .video-item {
    flex-shrink: 0;
}

/* Celulares e tablets */
@media (max-width: 950px) {
    .video-list {
        max-height: none;
    }

    #publicVideoList {
        max-height: 350px;
    }
}
