/* ========================================
   VARIÁVEIS E RESET
   ======================================== */
:root {
    /* Paleta de Cores - Despertar Sereno */
    --primary-color: #1A365D;
    --secondary-color: #F6E05E;
    --accent-color: #ED8936;
    --neutral-light: #F7FAFC;
    --neutral-dark: #2D3748;
    --white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Tipografia */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --font-accent: 'Montserrat', sans-serif;
    
    /* Tamanhos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transições */
    --transition-smooth: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--neutral-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ========================================
   HEADER / NAVEGAÇÃO
   ======================================== */
#mainNav {
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2C5282 100%);
    box-shadow: 0 2px 20px var(--shadow);
    transition: var(--transition-smooth);
}

#mainNav.scrolled {
    padding: 0.5rem 0;
    background: var(--primary-color);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
    transition: var(--transition-smooth);
}

.navbar-brand i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 1.8rem;
    vertical-align: middle;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400;
    padding: 0.5rem 1rem !important;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.search-input {
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.5rem 1rem;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(246, 224, 94, 0.25);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.9) 0%, rgba(44, 82, 130, 0.8) 100%),
                url('https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920') center/cover;
    position: relative;
    padding-top: 80px;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-divider {
    width: 120px;
    height: 4px;
    background: var(--secondary-color);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
}

.btn-hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, #DD6B20 100%);
    color: var(--white);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(237, 137, 54, 0.4);
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(237, 137, 54, 0.6);
    background: linear-gradient(135deg, #DD6B20 0%, var(--accent-color) 100%);
}

/* Animações Hero */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--secondary-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   SEÇÕES GERAIS
   ======================================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    font-weight: 300;
}

/* ========================================
   FRASES SECTION
   ======================================== */
.frases-section {
    background: var(--neutral-light);
    padding: var(--spacing-xl) 0;
}

.phrase-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.phrase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.phrase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.phrase-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.phrase-text {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--primary-color);
    line-height: 1.8;
    flex-grow: 1;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
}

.phrase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.btn-share,
.btn-favorite {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0.5rem 1rem;
}

.btn-share:hover {
    color: var(--accent-color);
}

.btn-favorite:hover {
    color: #E53E3E;
}

.btn-favorite.active {
    color: #E53E3E;
}

.btn-favorite.active i::before {
    content: "\f475"; /* heart-fill */
}

/* ========================================
   ARTIGOS SECTION
   ======================================== */
.articles-section {
    padding: var(--spacing-xl) 0;
}

.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.article-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-choices {
    background: var(--accent-color);
}

.category-purpose {
    background: #805AD5;
}

.article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #718096;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #4A5568;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.btn-read-more {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-read-more:hover {
    color: var(--primary-color);
    gap: 0.8rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2C5282 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(246, 224, 94, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    outline: none;
}

.btn-cta {
    background: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 0 50px 50px 0;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-cta:hover {
    background: #DD6B20;
    transform: scale(1.05);
}

.newsletter-form .form-text {
    display: block;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: #1A202C;
    color: rgba(255, 255, 255, 0.8);
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-title i {
    color: var(--secondary-color);
}

.footer-text {
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-heading {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--secondary-color);
}

.footer-contact .email-link {
    color: inherit;
    text-decoration: none;
}

.footer-contact .email-link:hover {
    color: var(--secondary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-link-small {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-link-small:hover {
    color: var(--secondary-color);
}

/* ========================================
   SCROLL TO TOP
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 20px rgba(237, 137, 54, 0.4);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(237, 137, 54, 0.6);
}

/* ========================================
   BOTÕES GERAIS
   ======================================== */
.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: #2C5282;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.4);
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .phrase-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn-hero {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    .phrase-card {
        padding: 1.5rem;
    }
    
    .article-image {
        height: 200px;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .newsletter-form .form-control,
    .btn-cta {
        border-radius: 15px;
        width: 100%;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575px) {
    body {
        font-size: 16px;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .phrase-text {
        font-size: 1rem;
    }
    
    .article-title {
        font-size: 1.2rem;
    }
}