/*
Theme Name: Marlene Ruivo - Nutricionista
Theme URI: https://clinicadotempo.com/mruivo
Description: Tema profissional para nutricionista especializada em saúde intestinal e dieta FODMAP
Version: 1.0.0
Author: Marlene Ruivo
Author URI: https://marleneruivo.pt
License: GPL v2 or later
Requires at least: 4.0
Requires PHP: 5.6
*/

/* ============================================================================
   RESET E ESTILOS BASE
   ============================================================================ */

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

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #555555;
    line-height: 1.6;
    background-color: #ffffff;
}

a {
    color: #4a9b7f;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #7fb3d5;
}

h1, h2, h3, h4, h5, h6 {
    margin: 1rem 0;
    color: #1a3a3a;
    font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin: 1rem 0;
    line-height: 1.8;
}

/* ============================================================================
   CONTAINER
   ============================================================================ */

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

/* ============================================================================
   HEADER E NAVEGAÇÃO
   ============================================================================ */

.site-header {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 1.3rem;
    color: #1a3a3a;
    margin: 0;
    font-weight: 700;
}

.site-description {
    font-size: 0.85rem;
    color: #999999;
    margin: 0;
}

/* Menu Principal */
.main-navigation {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #555555;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
    color: #4a9b7f;
    border-bottom-color: #4a9b7f;
}

/* ============================================================================
   CONTEÚDO PRINCIPAL
   ============================================================================ */

.site-content {
    min-height: calc(100vh - 300px);
}

.page-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f5 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: #1a3a3a;
    margin: 0;
}

.page-description {
    font-size: 1.1rem;
    color: #555555;
    margin: 1rem 0 0 0;
}

/* Seções */
.section {
    padding: 4rem 0;
}

.section.light-bg {
    background-color: #f5f7fa;
}

.section.dark-bg {
    background-color: #1a3a3a;
    color: white;
}

.section.dark-bg h2,
.section.dark-bg h3 {
    color: white;
}

.section.dark-bg a {
    color: #7fb3d5;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #555555;
    margin-bottom: 3rem;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0f5 100%);
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text .highlight {
    color: #4a9b7f;
}

.hero-text p {
    font-size: 1.05rem;
    color: #555555;
    margin-bottom: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #4a9b7f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.btn:hover {
    background-color: #7fb3d5;
}

.btn.btn-secondary {
    background-color: transparent;
    color: #4a9b7f;
    border: 2px solid #4a9b7f;
}

.btn.btn-secondary:hover {
    background-color: #4a9b7f;
    color: white;
}

/* ============================================================================
   CARDS
   ============================================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #4a9b7f;
}

.card h3 {
    color: #4a9b7f;
    margin-top: 0;
}

/* ============================================================================
   LABELS E BADGES
   ============================================================================ */

.label {
    display: inline-block;
    background-color: #e8f0f5;
    color: #4a9b7f;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    background-color: #4a9b7f;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background: #1a3a3a;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-widget h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-widget a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ============================================================================
   FORMULÁRIOS
   ============================================================================ */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #1a3a3a;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4a9b7f;
    box-shadow: 0 0 0 3px rgba(74, 155, 127, 0.1);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================================================
   RESPONSIVO
   ============================================================================ */

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation {
        gap: 1rem;
        font-size: 0.9rem;
        justify-content: center;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .section {
        padding: 2rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .main-navigation {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .site-title {
        font-size: 1rem;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }

    .btn {
        width: 100%;
        padding: 0.7rem 1rem;
        text-align: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }
}
