/* ================================
   Organizações Maglemik - Website
   CSS Moderno e Responsivo
   ================================ */

/* ----- Variables ----- */
:root {
    /* Colors */
    --color-primary: #b91c1c;
    --color-primary-dark: #991b1b;
    --color-primary-light: #dc2626;
    --color-secondary: #fbbf24;
    --color-secondary-dark: #f59e0b;

    --color-dark: #1f2937;
    --color-text: #374151;
    --color-text-light: #6b7280;
    --color-white: #ffffff;
    --color-bg: #f9fafb;
    --color-bg-alt: #f3f4f6;

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
}

/* ----- Utilities ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.highlight {
    color: var(--color-secondary);
}

.logo-highlight {
    color: var(--color-secondary);
    font-weight: 600;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.btn--full {
    width: 100%;
}

/* ----- Section Headers ----- */
.section__header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section__header--light .section__title,
.section__header--light .section__subtitle {
    color: var(--color-white);
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
}

/* ================================
   HEADER
   ================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    padding: var(--spacing-sm) 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
}

.nav__list {
    display: flex;
    gap: var(--spacing-lg);
}

.nav__link {
    color: var(--color-white);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    padding: var(--spacing-xs);
}

.header__toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* ================================
   HERO SECTION
   ================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: var(--spacing-3xl) 0;
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-white);
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.about__text h3 {
    font-size: 1.75rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-md);
}

.about__text p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.about__stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-bg-alt);
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat__label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.about__values {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.value-card {
    background-color: var(--color-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.value-card__icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.value-card h4 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
}

.value-card p {
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

/* ================================
   SERVICES SECTION
   ================================ */
.services {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-primary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card__icon {
    width: 80px;
    height: 80px;
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--color-primary);
}

.service-card__title {
    font-size: 1.375rem;
    color: var(--color-dark);
    margin-bottom: var(--spacing-sm);
}

.service-card__text {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.service-card__features {
    text-align: left;
    padding-left: var(--spacing-md);
}

.service-card__features li {
    position: relative;
    padding-left: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text);
    font-size: 0.9375rem;
}

.service-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* ================================
   BRANDS SECTION
   ================================ */
.brands {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg);
}

.brands__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.brand-card {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-card__logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto var(--spacing-sm);
    object-fit: contain;
}

.brand-card__name {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 0.875rem;
}

.brands__partners {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-bg-alt);
}

.brands__partners p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.partners-logos {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xl);
}

.partner {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ================================
   CONTACT SECTION
   ================================ */
.contact {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-dark);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-2xl);
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.contact-item__icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-item__text h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.contact-item__text p,
.contact-item__text a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.contact-item__text a:hover {
    color: var(--color-secondary);
}

/* Contact Form */
.contact__form {
    background-color: var(--color-white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem var(--spacing-sm);
    border: 1px solid var(--color-bg-alt);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ================================
   FOOTER
   ================================ */
.footer {
    background-color: var(--color-primary-dark);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.footer__brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.8;
}

.footer__links h4,
.footer__contact h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer__links a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer__contact p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-xs);
}

.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
}

.footer__bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.75rem;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brands__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .about__stats {
        justify-content: flex-start;
    }

    .footer__content {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: span 2;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header__toggle {
        display: flex;
    }

    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-primary-dark);
        padding: var(--spacing-3xl) var(--spacing-lg);
        transition: var(--transition);
        z-index: 1001;
    }

    .header__nav.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav__link {
        font-size: 1.25rem;
    }

    .hero {
        min-height: 100vh;
        padding-top: 100px;
    }

    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .section__title {
        font-size: 2rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .brands__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer__brand {
        grid-column: 1;
    }

    .about__stats {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }

    .partners-logos {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.75rem;
    }

    .brands__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-sm);
    }

    .service-card {
        padding: var(--spacing-lg);
    }

    .contact__form {
        padding: var(--spacing-md);
    }
}

/* ----- Animations ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Overlay for mobile menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}
