/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== VARIÁVEIS DE COR ==================== */
:root {
    --byd-dark: #1A1A1A;
    --byd-gray: #2D2D2D;
    --byd-medium-gray: #3D3D3D;
    --byd-light-gray: #E0E0E0;
    --byd-text: #E0E0E0;
    --byd-white: #FFFFFF;
    --byd-highlight: #F5F5F5;
}

/* ==================== TIPOGRAFIA ==================== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--byd-dark);
    color: var(--byd-text);
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background-color: var(--byd-gray);
    color: var(--byd-text);
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    display: flex;
    justify-content: flex-end;
}

.top-bar a {
    color: var(--byd-text);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--byd-white);
}

/* ==================== HEADER E MENU ==================== */
header {
    background-color: var(--byd-gray);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--byd-medium-gray);
    position: relative;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: absolute;
    top: 1.5rem;
    right: 1rem;
    z-index: 1001;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--byd-text);
    border-radius: 10px;
    transition: all 0.3s;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 0.5rem;
    position: relative;
}

nav ul li a {
    color: var(--byd-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0.8rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-left: 5px;
    font-size: 0.8rem;
}

nav ul li a:hover {
    color: var(--byd-white);
}

nav ul li.active a {
    color: var(--byd-white);
    font-weight: bold;
}

nav ul li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--byd-highlight);
}

/* Submenu styles */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children:hover .sub-menu {
    display: block;
}

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--byd-gray);
    min-width: 200px;
    z-index: 1000;
    border: 1px solid var(--byd-medium-gray);
    border-radius: 4px;
    padding: 0.5rem 0;
}

.sub-menu li {
    margin: 0;
    width: 100%;
}

.sub-menu li a {
    padding: 0.8rem 1rem;
    display: block;
    white-space: nowrap;
}

.sub-menu li a:hover {
    background-color: var(--byd-medium-gray);
}

/* ==================== HERO ==================== */
.hero {
    background-color: var(--byd-gray);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--byd-medium-gray);
}

.hero h1 {
    color: var(--byd-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    color: var(--byd-text);
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

/* ==================== MODELOS ==================== */
.models-section {
    padding: 3rem 2rem;
    background-color: var(--byd-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--byd-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--byd-text);
    max-width: 700px;
    margin: 0 auto;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.model-card {
    background-color: var(--byd-gray);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--byd-medium-gray);
    transition: transform 0.3s, box-shadow 0.3s;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: var(--byd-highlight);
}

.model-image {
    height: 200px;
    overflow: hidden;
    background-color: var(--byd-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.model-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
}

.model-card:hover .model-image img {
    transform: scale(1.05);
}

.model-info {
    padding: 1.5rem;
    border-top: 1px solid var(--byd-medium-gray);
}

.model-info h3 {
    color: var(--byd-white);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.model-price {
    color: var(--byd-white);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.model-specs {
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.spec-item i {
    color: var(--byd-highlight);
    margin-right: 8px;
    width: 20px;
    text-align: center;
}

/* ==================== BOTÕES ==================== */
.btn {
    display: inline-block;
    background-color: var(--byd-medium-gray);
    color: var(--byd-white);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--byd-highlight);
    color: var(--byd-dark);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--byd-light-gray);
    color: var(--byd-light-gray);
    margin-left: 0.5rem;
}

.btn-outline:hover {
    background-color: var(--byd-light-gray);
    color: var(--byd-dark);
}

/* ==================== TECNOLOGIA ==================== */
.technology-section {
    background-color: var(--byd-gray);
    padding: 3rem 2rem;
    border-top: 1px solid var(--byd-medium-gray);
    border-bottom: 1px solid var(--byd-medium-gray);
}

.tech-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background-color: var(--byd-dark);
    border-radius: 5px;
    padding: 1.5rem;
    width: 350px;
    border: 1px solid var(--byd-medium-gray);
    transition: border-color 0.3s;
}

.tech-card:hover {
    border-color: var(--byd-highlight);
}

.tech-card h3 {
    color: var(--byd-white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tech-card p {
    margin-bottom: 1.5rem;
    color: var(--byd-text);
}

/* ==================== DOCUMENTOS (MANUAIS & FICHAS) ==================== */
.documents-section {
    padding: 4rem 2rem;
    background-color: var(--byd-dark);
    max-width: 1200px;
    margin: 0 auto;
}

.documents-section .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.documents-section .section-title h2 {
    color: var(--byd-white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.documents-section .section-title p {
    color: var(--byd-text);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.document-card {
    background-color: var(--byd-gray);
    border-radius: 8px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--byd-medium-gray);
}

.document-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--byd-highlight);
}

.document-icon {
    font-size: 2.8rem;
    color: var(--byd-highlight);
    margin-bottom: 1rem;
}

.document-card h3 {
    color: var(--byd-white);
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-card .btn {
    width: 100%;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

/* Diferenciação opcional por tipo */
.document-card.manual .document-icon {
    color: #4CAF50; /* Verde para manuais */
}

.document-card.ficha .document-icon {
    color: #2196F3; /* Azul para fichas */
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--byd-gray);
    color: var(--byd-text);
    padding: 3rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h3 {
    color: var(--byd-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--byd-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--byd-white);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--byd-medium-gray);
    text-align: center;
    color: var(--byd-text);
    font-size: 0.9rem;
}

.footer-bottom p.disclaimer {
    max-width: 800px;
    margin: 0 auto 1rem;
    font-size: 0.8rem;
    color: var(--byd-light-gray);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.social-icons a {
    color: var(--byd-text);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--byd-white);
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 1024px) {
    nav ul li {
        margin: 0 0.3rem;
    }
    nav ul li a {
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .top-bar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    .menu-toggle {
        display: flex;
    }
    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
    }
    nav.active {
        max-height: 100vh;
        overflow-y: auto;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 1rem 0;
    }
    nav ul li {
        margin: 0;
        width: 100%;
    }
    nav ul li a {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--byd-medium-gray);
        position: relative;
    }
    .menu-item-has-children > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        position: absolute;
        right: 1.5rem;
        transition: transform 0.3s;
    }
    .menu-item-has-children.active > a::after {
        transform: rotate(180deg);
    }
    .menu-item-has-children .sub-menu {
        position: static;
        display: none;
        width: 100%;
        background-color: var(--byd-medium-gray);
        padding-left: 1.5rem;
        animation: fadeIn 0.3s ease-in;
    }
    .menu-item-has-children.active .sub-menu {
        display: block;
    }
    .sub-menu li a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    nav ul li.active > a {
        background-color: var(--byd-medium-gray);
        color: var(--byd-white);
    }
    .hero {
        padding: 3rem 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .models-grid {
        grid-template-columns: 1fr;
    }
    .tech-card {
        width: 100%;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-bar a {
        margin-left: 0.8rem;
        font-size: 0.7rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .section-title h2 {
        font-size: 1.6rem;
    }
    .logo-text {
        font-size: 24px;
    }
    nav ul li a {
        padding: 1rem;
    }
}

/* ==================== ANIMAÇÕES ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==================== ACESSIBILIDADE ==================== */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle .bar,
    nav {
        transition: none;
    }
}

/* ==================== TELAS GRANDES ==================== */
@media (min-width: 1600px) {
    header {
        padding: 1rem 5%;
    }

    .pdf-svg {
    color: #D32F2F;
    margin: 0 auto;
}

.pdf-icon {
    width: 60px;
    height: 60px;
    background-color: #D32F2F; /* Vermelho do PDF */
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pdf-icon {
    font-family: 'Poppins', sans-serif;
}

}