/* ===== Fontes ===== */
@font-face {
    font-family: 'CSRockyRegular';
    src: url('../font/CSRockyRegular.ttf');
}

@font-face {
    font-family: 'OpenSans';
    src: url('../font/OpenSans-Italic-VariableFont_wdth,wght.ttf');
}

/* ===== Reset / Base ===== */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: OpenSans, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #161617;
    color: #fff;
}

h1 {
    font-family: OpenSans, sans-serif;
}

h1.display-4 {
    text-shadow: 2px 2px 8px rgba(197, 188, 188, 0.3);
}

a {
    text-decoration: none;
}

.input-dark::placeholder {
    color: #b5b5b5 !important;
    /* tom mais claro */
    opacity: 1;
    /* garante que a cor seja aplicada totalmente */
}

/* ===== Navbar ===== */
.navbar {
    background-color: #161617;
    /* Cor escura para o fundo */
    border-bottom: 2px solid #ffba00;
    /* Linha dourada para dar destaque */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Sombra suave */
}

.navbar .navbar-brand img {
    transition: transform 0.3s ease;
}

/* Logo com animação ao passar o mouse */
.navbar .navbar-brand:hover img {
    transform: scale(1.1);
}

.navbar-nav .nav-item .nav-link {
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

/* Efeito de hover nos links da navbar */
.navbar-nav .nav-item .nav-link:hover {
    color: #ffba00;
    transform: translateY(-2px);
    /* Leve movimento para cima */
    text-shadow: 0 2px 6px rgba(255, 186, 0, 0.3);
    /* Sombra dourada suave */
}


/* Adicionando a cor dourada para o item ativo */
.navbar-nav .nav-item .nav-link.active {
    color: #ffba00;
}

/* Apenas ícones dentro de botões cinza */
.btn-gray-hover i,
.btn-gray-mini i {
    color: #888;
    /* mesma cor da borda do botão cinza */
}


.small-text {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}

.text-gold {
    color: #ffba00;
}

.text-gold:hover {
    color: #FFD700;
}

/* ========================================== INDEX.PHP ========================================== */
/* ===== Estrutura das Seções ===== */
section {
    width: 100%;
    padding: 4rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container {
    background-color: #1e1e1f;
    padding-top: 70px;
    /* altura da navbar */
    padding-bottom: 70px;
    /* altura do footer */
    min-height: calc(100vh - 140px);
    /* total da viewport menos navbar+footer */
    display: flex;
    justify-content: center;
    align-items: flex-start;
}



/* ===== Início ===== */
.ini {
    background-image: url('../img/Components/tv.jpg');
    background-size: cover;
    background-position: center;
}

/* ===== Serviços ===== */
.serv {
    background: #0c0c0c;
    color: #fff;
    text-align: center;
}

.service-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    transition: all 0.4s ease;
    position: relative;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.service-img:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.service-img:hover img {
    transform: scale(1.15);
}

.serv h5 {
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.service-img:hover+h5 {
    color: #FFD700;
    transform: scale(1.05);
}

/* ===== App ===== */
.app {
    background-color: #161617;
}

/* ===== Localização ===== */
.location-section {
    background-color: #0c0c0c;
    padding: 4rem 2rem;
    min-height: 100vh;
    text-align: center;
}

.location-section h2 {
    color: #ffba00;
}

.info-box p {
    font-size: 1.25rem;
    line-height: 1.6;
}

.map-wrapper iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* ===== FAQ Accordion ===== */
.accordion-item {
    background-color: #161617 !important;
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-btn {
    background: transparent;
    color: #ffba00;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 0.5rem;
    position: relative;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 2px #ffba00;
    overflow: hidden;
    z-index: 1;
}

.faq-btn i {
    color: #ffba00;
    transition: color 0.3s ease;
}

.faq-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(25deg);
    transition: all 0.6s ease;
    z-index: 0;
}

.faq-btn:hover::before {
    left: 130%;
}

.faq-btn:hover,
.faq-btn:not(.collapsed) {
    background: #ffba00;
    color: #000000;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.faq-btn:hover i,
.faq-btn:not(.collapsed) i {
    color: #000000;
}

.accordion-body {
    background: rgba(255, 186, 0, 0.05);
    border-left: 3px solid #ffba00;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.25rem;
}

/* ===== Footer ===== */
.footer {
    background-color: #0c0c0c;
    border-top: 2px solid #ffba00;
}

.footer-logo {
    max-width: 180px;
}

.footer h5 {
    font-size: 1.2rem;
}

.footer-link {
    color: #ccc;
    transition: color 0.3s ease;
    display: block;
    margin: 0.25rem 0;
}

.footer-link:hover {
    color: #ffba00;
    text-decoration: underline;
}

.footer .social-icons a {
    font-size: 1.5rem;
    color: #ccc;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer .social-icons a:hover {
    color: #ffba00;
    transform: scale(1.15);
}

.footer-bottom {
    background-color: #161617;
    border-top: 1px solid rgba(255, 186, 0, 0.3);
}

.input-dark {
    background-color: #2c2c2c;
    color: #fff;
    border: 1px solid #444;
}

.input-dark:focus {
    background-color: #333;
    border-color: #D4AF37;
    box-shadow: none;
    color: #fff;
}

#image-frame img.object-fit-cover {
    object-fit: cover;
}

.png-padding {
    padding: 20px;
    box-sizing: border-box;
    /* importante para padding não ultrapassar o container */
}

.alert-warning-outline {
    --bs-alert-color: #d4af37;
    /* texto dourado */
    --bs-alert-bg: transparent;
    --bs-alert-border-color: #d4af37;
    /* borda dourada */
    color: var(--bs-alert-color);
    background-color: var(--bs-alert-bg);
    border: 1px solid var(--bs-alert-border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.alert-warning-outline svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    fill: var(--bs-alert-color);
}

/* Opcional: muda o background preto levemente ao passar o mouse */
.alert-warning-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* ========================================== LOGIN.PHP ========================================== */
/* ===== Login (compacto) ===== */
.login-section {
    background-color: #161617;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-box {
    background: #0c0c0c;
    border: 1px solid rgba(255, 186, 0, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    width: 100%;
    max-width: 360px;
    /* 🔑 largura ideal sem ocupar muito */
}

.login-logo {
    max-width: 120px;
}

.footer-link {
    color: #aaa;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffba00;
}

/* ===== Galeria ===== */
.gallery-card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #1a1a1b;
}

.gallery-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img {
    transform: scale(1.1);
}

/* ===== Destaques horizontais ===== */
.d-flex.product-card {
    background-color: #1a1a1b;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.d-flex.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7);
}

.d-flex.product-card img {
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

.d-flex.product-card p.text-gold {
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.d-flex.product-card p.text-white {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ===== Textos e títulos ===== */
h4 {
    color: #ffba00;
    text-shadow: 1px 1px 4px rgba(255, 186, 0, 0.3);
    margin-bottom: 2rem;
}

/* Galeria */
.gallery-img {
    height: 200px;
    /* altura fixa */
    width: auto;
    /* largura proporcional */
    object-fit: contain;
    /* mantém a imagem inteira sem cortar */
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Preview de upload */
#preview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* Galeria do portfólio */
.gallery-img {
    width: 100%;
    /* ocupa toda a largura da coluna */
    height: 200px;
    /* altura fixa para todas ficarem iguais */
    object-fit: cover;
    /* mantém proporção e corta apenas o necessário */
    border-radius: 8px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* Preview das imagens novas */
#preview-container .preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin: 2px;
}


/* Galeria pública sem cards */
.portfolio-gallery-img {
    width: 100%;
    /* ocupa toda a coluna */
    aspect-ratio: 1 / 1;
    /* altura igual à largura */
    object-fit: cover;
    /* preenche área, cortando se necessário */
    border-radius: 8px;
    cursor: pointer;
    /* indica que é clicável */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
}

/* Hover para indicar interatividade */
.portfolio-gallery-img:hover {
    transform: scale(1.05);
    /* leve zoom */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    /* sombra mais intensa */
    filter: brightness(1.1);
    /* leve clareamento */
}

/* ===== Checkbox Customizado ===== */
.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.custom-checkbox {
    appearance: none;
    /* Remove o estilo padrão */
    width: 22px;
    height: 22px;
    border: 2px solid #ffba00;
    /* Borda dourada */
    border-radius: 4px;
    background-color: #1e1e1f;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    outline: none;
}

.custom-checkbox:hover {
    box-shadow: 0 0 8px rgba(255, 186, 0, 0.5);
    transform: scale(1.05);
}

.custom-checkbox:checked {
    background-color: #ffba00;
    /* Fundo dourado ao marcar */
    border-color: #ffba00;
}

.custom-checkbox:checked::after {
    content: "✔";
    color: #161617;
    /* Cor do check (preto para contraste) */
    font-size: 16px;
    position: absolute;
    top: -2px;
    left: 3px;
    font-weight: bold;
}

.form-check-label {
    font-size: 1rem;
    user-select: none;
    cursor: pointer;
}


/* ===== Responsividade Botões & Geral ===== */

/* Tablets: até 991px */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
    }

    .navbar .navbar-brand img {
        max-width: 140px;
    }

    section {
        padding: 3rem 1rem;
    }
}

/* Smartphones: até 767px */
@media (max-width: 767.98px) {
    .logo {
        max-width: 150px;
    }

    .location-section h2 {
        font-size: 1.8rem;
    }

    .info-box p {
        font-size: 1rem;
    }

    .map-wrapper iframe {
        height: 250px;
    }

    .service-img {
        width: 100px;
        height: 100px;
    }

    .app h1 {
        font-size: 2rem;
    }

    .app h2 {
        font-size: 1.3rem;
    }

    .app p {
        font-size: 0.95rem;
    }

    .ini {
        background-position: top center;
        background-attachment: scroll;
    }

    .app-phone {
        display: none;
    }

    .navbar-nav .nav-item .nav-link {
        font-size: 0.95rem;
    }

    /* Botões grandes */
    .btn-gold-hover,
    .btn-gray-hover,
    .btn-red-hover {
        width: 100%;
        min-width: unset;
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    /* Botões mini */
    .btn-gold-mini,
    .btn-gray-mini,
    .btn-red-mini {
        min-width: 36px;
        height: 36px;
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }

    /* Ajuste hover menos agressivo em mini */
    .btn-gold-mini:hover,
    .btn-gray-mini:hover,
    .btn-red-mini:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
}

/* Smartphones pequenos: até 576px */
@media (max-width: 575.98px) {

    .gallery-img,
    .preview-img {
        height: 120px;
    }

    .d-flex.product-card {
        flex-direction: column;
    }

    .d-flex.product-card img {
        border-radius: 1rem 1rem 0 0;
        width: 100%;
        height: 150px;
    }

    .d-flex.product-card .p-3 {
        text-align: center;
    }

    /* Botões grandes ocupam toda largura */
    .btn-gold-hover,
    .btn-gray-hover,
    .btn-red-hover {
        width: 100%;
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* Botões mini ainda menores para caber no layout */
    .btn-gold-mini,
    .btn-gray-mini,
    .btn-red-mini {
        min-width: 32px;
        height: 32px;
        padding: 0.25rem 0.35rem;
        font-size: 0.75rem;
    }

    .custom-checkbox {
        width: 20px;
        height: 20px;
    }

    .form-check-label {
        font-size: 0.9rem;
    }
}

/* ===== Checkbox como botão com ícone de olho ===== */
.custom-visibility-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.custom-visibility-toggle input[type="checkbox"] {
    display: none;
    /* Esconde o checkbox padrão */
}

.custom-visibility-toggle i.bi {
    font-size: 1.5rem;
    border: 2px solid #ffba00;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: #ffba00;
    background-color: #1e1e1f;
}

/* Ícone com hover */
.custom-visibility-toggle i.bi:hover {
    box-shadow: 0 0 10px rgba(255, 186, 0, 0.6);
    transform: scale(1.1);
}

/* Quando marcado (visível) — olho aberto */
.custom-visibility-toggle input:checked+i.bi {
    content: "\f33e";
    /* Código para olho aberto */
    background-color: #ffba00;
    color: #161617;
    border-color: #ffba00;
}

/* Quando desmarcado (oculto) — olho fechado */
.custom-visibility-toggle input:not(:checked)+i.bi {
    content: "\f33f";
    /* Código para olho fechado */
}

/* ===== Cards de Planos ===== */
.plan-card {
    background-color: #161617;
    border: 2px solid #ffba00;
    border-radius: 1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
    /* altura uniforme */
    padding: 2rem 1.5rem;
}

.plan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7);
    background-color: #1f1f20;
}

.plan-card h4 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.plan-card p {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0 auto 1.5rem auto;
    max-width: 100%;
}

.plan-card ul li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.plan-card ul li::before {
    content: "✔";
    color: #ffba00;
    margin-right: 8px;
}

.featured-plan {
    border-width: 3px;
    background-color: #1e1e1f;
    transform: scale(1.05);
}

.plan-card .btn {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
}

/* ===== Responsividade ===== */
@media (max-width: 991px) {
    .plan-card {
        min-height: 420px;
        padding: 1.8rem 1rem;
    }

    .plan-card h4 {
        font-size: 1.6rem;
    }

    .plan-card p {
        font-size: 1.15rem;
    }

    .plan-card ul li {
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .plan-card {
        min-height: auto;
        padding: 1.5rem 1rem;
    }

    .plan-card h4 {
        font-size: 1.4rem;
    }

    .plan-card p {
        font-size: 1rem;
    }

    .plan-card ul li {
        font-size: 0.9rem;
    }
}

.bg-success {
    background-color: #ffba00 !important;
}

.bg-warning {
    background-color: #888 !important;
}

.bg-danger {
    background-color: #ff4d4d !important;
}