/* MDR Suplementos - Style CSS */

:root {
    --primary-color: #c0392b; /* Vermelho Escuro */
    --secondary-color: #121212; /* Preto Profundo */
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: 5px;
    transition: var(--transition);
}

img:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 0;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Header */
header {
    background: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

#menu {
    display: flex;
    gap: 30px;
}

#menu a {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
}

#menu a:hover {
    color: var(--primary-color);
}

#btn-mobile {
    display: none;
}

/* Hero */
.hero {
    padding: 180px 0 100px;
    background: var(--light-bg);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    color: #555;
}

/* About */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Categories */
.categories {
    padding: 100px 0;
    background: var(--secondary-color);
    color: var(--white);
}

.categories h2 {
    color: var(--white);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    text-align: center;
    margin-top: -50px;
    margin-bottom: 50px;
    color: #888;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    background: #1a1a1a;
    padding: 40px;
    text-align: center;
    border-bottom: 5px solid var(--primary-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    background: #222;
}

.card img {
    margin-bottom: 25px;
}

.card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

/* Contact */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.details {
    margin-top: 40px;
}

.details li {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form input, .form textarea {
    padding: 18px;
    border: 2px solid #eee;
    font-family: inherit;
    background: #fcfcfc;
}

.form textarea {
    height: 160px;
}

/* Footer */
footer {
    background: #000;
    color: #555;
    padding: 50px 0;
    text-align: center;
}

.footer-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container, .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 { font-size: 3rem; }
    .hero-image { order: -1; }
    .about-image { order: -1; }
}

@media (max-width: 768px) {
    #btn-mobile {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }
    
    #hamburger {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--secondary-color);
        position: relative;
    }
    
    #hamburger::before, #hamburger::after {
        content: '';
        display: block;
        width: 25px;
        height: 2px;
        background: var(--secondary-color);
        position: absolute;
        transition: 0.3s;
    }
    
    #hamburger::before { top: -8px; }
    #hamburger::after { bottom: -8px; }
    
    #nav.active #hamburger { background: transparent; }
    #nav.active #hamburger::before { transform: rotate(135deg); top: 0; }
    #nav.active #hamburger::after { transform: rotate(-135deg); bottom: 0; }
    
    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: 80px;
        right: 0;
        background: var(--white);
        height: 0;
        transition: 0.6s;
        z-index: 1000;
        visibility: hidden;
        overflow-y: hidden;
    }
    
    #nav.active #menu {
        height: calc(100vh - 80px);
        visibility: visible;
        overflow-y: auto;
    }
    
    #menu li {
        padding: 1.5rem 0;
        margin: 0 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
}
