/* ===================================
   SaúdeTotal - Green Health Theme CSS
   =================================== */

/* CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #2E8B57;
    --primary-dark: #246B43;
    --primary-light: #4CAF50;
    --secondary: #8FD14F;
    --accent: #F9A825;
    --dark: #1A1A2E;
    --gray: #666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --text: #333333;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--dark);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 140px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--light-gray);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--light-gray);
}

.section-title {
    font-size: 2.2rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.tool-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.tool-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.tool-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
}

.article-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-light) 100%);
}

.article-content {
    padding: 25px;
}

.article-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.article-content h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.article-content p {
    color: var(--gray);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.feature-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 120px 0 60px;
    text-align: center;
}

.page-subtitle {
    opacity: 0.9;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255,255,255,0.7);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 10px;
    font-size: 0.8rem !important;
    line-height: 1.5;
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
}

.info-item h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-note {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin-top: 30px;
}

.contact-form-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-success {
    text-align: center;
    padding: 40px;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

/* About Page */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 50px;
}

.about-block h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-block p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.team-list {
    list-style: disc;
    padding-left: 25px;
}

.team-list li {
    margin-bottom: 12px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.value-card {
    text-align: center;
    padding: 25px;
    background: var(--light-gray);
    border-radius: var(--radius);
}

.value-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 15px;
}

.value-card h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.about-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 50px;
}

.about-cta h2 {
    color: var(--white) !important;
}

.about-cta p {
    margin-bottom: 20px;
}

/* FAQ Page */
.faq-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.faq-question:hover {
    background: var(--light-gray);
}

.faq-icon {
    font-size: 0.8rem;
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px;
    color: var(--gray);
    line-height: 1.7;
}

/* Sitemap Page */
.sitemap-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.sitemap-section {
    margin-bottom: 40px;
}

.sitemap-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.sitemap-list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.sitemap-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.loading {
    color: var(--gray);
    font-style: italic;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-block {
    margin-bottom: 40px;
}

.legal-block h2 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-block p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-block ul {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 15px;
}

.legal-block li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.medical-disclaimer {
    background: #FFF3CD;
    border: 2px solid #FFC107;
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.medical-disclaimer h2 {
    color: #856404;
    margin-bottom: 15px;
}

.medical-disclaimer p {
    color: #856404;
    margin-bottom: 10px;
}

.medical-disclaimer strong {
    color: #721C24;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-container {
        order: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
