/* ===== IMPORT FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;600&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #334155;
    background-color: #ffffff;
}

/* ===== CSS VARIABLES ===== */
:root {
    /* Colors from logo */
    --primary-color: #1e3a8a;
    --secondary-color: #14b8a6;
    --accent-color: #3b82f6;
    --text-color: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #06b6d4);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --section-padding-mobile: 3rem 0;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== UTILITIES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: var(--section-padding-mobile);
}

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

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section__subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav__logo {
    height: 2.5rem;
    width: auto;
}

.nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--white);
    padding: 2rem;
    transition: var(--transition);
}

.nav__menu.show-menu {
    right: 0;
}

.nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.nav__link {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--primary-color);
}

.nav__close,
.nav__toggle {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/banner-mask.png') center right no-repeat;
    background-size: contain;
    opacity: 0.23; /* Transparência do banner */
    pointer-events: none;
    z-index: 1;
}

.hero__container, .hero__content, .hero__title, .hero__description, .hero__buttons {
    position: relative;
    z-index: 2;
}

.hero__container {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.hero__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.hero__title-highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image-bg {
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--white);
}

.about__content-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: stretch;
}

.about__text {
    font-size: 1.125rem;
    line-height: 1.7;
}

.about__features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .about__content-grid {
        flex-direction: row;
        gap: 4rem;
    }
    .about__text {
        flex: 1.2;
    }
    .about__features-grid {
        flex: 1;
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
    }
    .about__features-grid .feature {
        min-width: 220px;
        max-width: 270px;
    }
}

.about__features-grid .feature {
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px 0 rgb(30 58 138 / 0.04);
    transition: box-shadow 0.2s;
}
.about__features-grid .feature:hover {
    box-shadow: 0 8px 24px 0 rgb(30 58 138 / 0.10);
    transform: translateY(-4px) scale(1.03);
}
.about__features-grid .feature__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.about__features-grid .feature__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}
.about__features-grid .feature__description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
}

.about__text p {
    margin-bottom: 1.5rem;
}

.about__features {
    display: grid;
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: 1rem;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature__description {
    color: var(--text-light);
}

/* ===== ARTICLES SECTION ===== */
.articles {
    background: var(--gray-50);
}

.articles__grid {
    display: grid;
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.article-card__image {
    height: 200px;
    overflow: hidden;
}

.article-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    opacity: 0.1;
}

.article-card__content {
    padding: 1.5rem;
}

.article-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-card__excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-card__link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.article-card__link:hover {
    color: var(--secondary-color);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter {
    background: var(--gradient-primary);
    color: var(--white);
}

.newsletter__container {
    text-align: center;
}

.newsletter__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter__description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter__form {
    display: flex;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
    flex-direction: column;
}

.newsletter__input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    outline: none;
}

.newsletter__button {
    padding: 0.875rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--white);
}

.contact__content {
    display: grid;
    gap: 3rem;
}

.contact__info {
    display: grid;
    gap: 2rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 1rem;
}

.contact__icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-secondary);
    border-radius: 50%;
}

.contact__details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.contact__details a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact__details a:hover {
    color: var(--secondary-color);
}

.contact__form {
    display: grid;
    gap: 1.5rem;
}

.form__group {
    display: grid;
    gap: 0.5rem;
}

.form__input,
.form__textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__logo {
    height: 2rem;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.footer__description {
    opacity: 0.8;
    line-height: 1.6;
}

.footer__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer__links,
.footer__contact {
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.footer__links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer__links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer__contact li {
    opacity: 0.8;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (min-width: 768px) {
    .section {
        padding: var(--section-padding);
    }
    
    .section__title {
        font-size: 3rem;
    }
    
    .nav__menu {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
    }
    
    .nav__list {
        flex-direction: row;
        gap: 2rem;
        margin-top: 0;
    }
    
    .nav__close,
    .nav__toggle {
        display: none;
    }
    
    .hero__container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .hero__title {
        font-size: 3.5rem;
    }
    
    .hero__buttons {
        flex-wrap: nowrap;
    }
    
    .about__content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .about__features {
        grid-template-columns: 1fr;
    }
    
    .articles__grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
    
    .newsletter__form {
        flex-direction: row;
    }
    
    .contact__content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .footer__content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
}

@media screen and (min-width: 1024px) {
    .hero__title {
        font-size: 4rem;
    }
    
    .about__features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .articles__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== ANIMATIONS ===== */
@media (prefers-reduced-motion: no-preference) {
    .hero__content,
    .about__text,
    .feature,
    .article-card {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 0.6s ease-out forwards;
    }
    
    .hero__content {
        animation-delay: 0.2s;
    }
    
    .feature:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .feature:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .feature:nth-child(3) {
        animation-delay: 0.3s;
    }
    
    .article-card:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .article-card:nth-child(2) {
        animation-delay: 0.2s;
    }
    
    .article-card:nth-child(3) {
        animation-delay: 0.3s;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav__link:focus,
.form__input:focus,
.form__textarea:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #0066cc;
        --text-color: #000000;
        --text-light: #333333;
    }
}

