/* ==========================================================================
   Design System & Styling - Landing Page Gustavo Barreto (Nutrição)
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
    /* Color Palette */
    --primary: #2c4c38;
    --primary-dark: #1b3224;
    --primary-light: #3e624c;
    --secondary: #8da890;
    --secondary-light: #a3bca5;
    --secondary-bg: #eef3ef;
    
    /* Backgrounds (Hybrid Editorial Theme) */
    --bg-light: #fcfbfa;       /* Warm Cream for Clinical sections */
    --bg-light-card: #ffffff;
    --bg-dark: #212326;        /* Deep Charcoal from main website for testimonial/footer */
    --bg-dark-card: #2a2d32;
    
    /* Typography Colors */
    --text-light: #1e2923;     /* Main text on light background */
    --text-light-muted: #5b6c61;
    --text-dark: #ffffff;      /* Main text on dark background */
    --text-dark-muted: #abb8c0;
    
    /* Accents */
    --whatsapp: #25D366;
    --whatsapp-hover: #20ba56;
    --star-gold: #f5b041;
    
    /* Structural variables */
    --border-light: #e2e8e4;
    --border-dark: #31343a;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 12px rgba(44, 76, 56, 0.04);
    --shadow-md: 0 8px 30px rgba(44, 76, 56, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Base resets & global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Common Section Styling */
section {
    padding: 80px 0;
    position: relative;
}

@media (max-width: 768px) {
    section {
        padding: 50px 0;
    }
}

.section-tag {
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }
}

.section-desc {
    color: var(--text-light-muted);
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 40px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: rgba(252, 251, 250, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-dark);
}

.logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .logo img {
        width: 48px;
        height: 48px;
    }
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light-muted);
    transition: var(--transition);
}

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

.btn-header {
    background-color: var(--primary);
    color: white !important;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    font-size: 13px !important;
    box-shadow: var(--shadow-sm);
}

.btn-header:hover {
    background-color: var(--primary-dark);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-dark);
    stroke-width: 2;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-light);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: 30px 24px;
        gap: 20px;
        transform: translateY(-120%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    background-color: var(--bg-light);
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        padding-bottom: 50px;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .hero-content {
        align-items: center;
    }
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
}

.hero-sub {
    font-size: 16px;
    color: var(--text-light-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.hero-badge-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-badge {
    background-color: var(--secondary-bg);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-title);
    letter-spacing: 0.5px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

@media (min-width: 480px) {
    .hero-cta-group {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
    
    .hero-grid:has(.hero-cta-group) {
        text-align: left;
    }
}

@media (max-width: 768px) and (min-width: 480px) {
    .hero-cta-group {
        justify-content: center;
    }
}

/* Call to Action Buttons */
.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-secondary {
    border: 1px solid var(--border-light);
    background-color: var(--bg-light-card);
    color: var(--text-light);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

/* Image styling */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.hero-image-decor {
    position: absolute;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-lg);
    z-index: 1;
    pointer-events: none;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
    display: block;
}

/* Abordagem / Diferenciais Section */
.abordagem {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.abordagem-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .abordagem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pilar-card {
    background-color: var(--bg-light-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pilar-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

.pilar-icon {
    width: 48px;
    height: 48px;
    background-color: var(--secondary-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pilar-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.pilar-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.pilar-card p {
    font-size: 14px;
    color: var(--text-light-muted);
}

/* Público-Alvo Section */
.publico {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.publico-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .publico-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.publico-card {
    background-color: var(--bg-light-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.publico-num {
    width: 32px;
    height: 32px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.publico-info h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.publico-info p {
    font-size: 13.5px;
    color: var(--text-light-muted);
    line-height: 1.5;
}

.publico-note {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: var(--text-light-muted);
}

/* Quem Sou Eu Section */
.sobre {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.sobre-image-container {
    position: relative;
    max-width: 350px;
    margin: 0 auto;
}

.sobre-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.sobre-content {
    display: flex;
    flex-direction: column;
}

.sobre-content p {
    font-size: 15px;
    color: var(--text-light-muted);
    margin-bottom: 20px;
}

.sobre-timeline {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sobre-timeline li {
    display: flex;
    gap: 16px;
}

.timeline-year {
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--primary);
    font-size: 15px;
    width: 80px;
    flex-shrink: 0;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-light);
}

/* Funcionamento das Consultas Section (Tabs) */
.consultas {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.tabs-wrapper {
    background-color: var(--bg-light-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-top: 20px;
}

.tabs-nav {
    display: flex;
    background-color: #fafaf9;
    border-bottom: 1px solid var(--border-light);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
    background-color: var(--bg-light-card);
}

.tab-panel {
    padding: 40px;
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease forwards;
}

@media (max-width: 600px) {
    .tab-panel {
        padding: 24px;
    }
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .panel-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.panel-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
    margin-bottom: 24px;
}

.flow-steps li {
    display: flex;
    gap: 16px;
}

.flow-num {
    width: 26px;
    height: 26px;
    background-color: var(--secondary-bg);
    color: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.flow-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.flow-info p {
    font-size: 13px;
    color: var(--text-light-muted);
}

.panel-sidebar {
    background-color: #fafaf9;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
}

.panel-sidebar h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.panel-sidebar ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-sidebar ul li {
    font-size: 13px;
    color: var(--text-light-muted);
    position: relative;
    padding-left: 20px;
}

.panel-sidebar ul li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Depoimentos Section (Dark Mode - Hybrid Concept) */
.depoimentos {
    background-color: var(--bg-dark);
    color: var(--text-dark);
    padding: 90px 0;
}

.depoimentos .section-tag {
    color: var(--secondary-light);
}

.depoimentos .section-title {
    color: var(--text-dark);
}

.depoimentos .section-desc {
    color: var(--text-dark-muted);
}

/* Testimonial Slider layout */
.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.testimonial-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: calc(100% - 0px);
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .testimonial-card {
        min-width: calc(50% - 12px);
    }
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.stars svg {
    width: 16px;
    height: 16px;
    fill: var(--star-gold);
}

.test-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-dark-muted);
    font-style: italic;
    margin-bottom: 30px;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--border-dark);
    padding-top: 20px;
}

.test-avatar {
    width: 48px;
    height: 48px;
    background-color: var(--primary-light);
    border-radius: 50%;
    color: white;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info h4 {
    font-size: 14px;
    color: var(--text-dark);
}

.author-info p {
    font-size: 12px;
    color: var(--text-dark-muted);
}

/* Slider Controls */
.slider-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.slider-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.slider-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

/* CTA Final Section (Light/Dark Gradient transition) */
.cta-final {
    background: linear-gradient(180deg, var(--bg-dark) 40%, var(--bg-light) 40%);
}

.cta-box {
    background-color: var(--bg-light-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
    .cta-box {
        padding: 40px 20px;
    }
}

.cta-box h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-light-muted);
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 32px auto;
}

/* Footer Section (Dark Mode) */
footer {
    background-color: var(--bg-dark);
    color: var(--text-dark-muted);
    padding: 60px 0 30px 0;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.8fr 1fr;
    }
}

.footer-brand h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand h3 img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 4px;
}

.footer-brand p {
    font-size: 13.5px;
    max-width: 280px;
    line-height: 1.5;
}

.footer-links h4, .footer-contact h4 {
    color: white;
    font-size: 15px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul a {
    font-size: 13.5px;
    transition: var(--transition);
}

.footer-links ul a:hover {
    color: var(--secondary-light);
}

.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact li {
    font-size: 13.5px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    fill: var(--secondary-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-creds {
    display: flex;
    gap: 12px;
    font-weight: bold;
}

.footer-creds span {
    border: 1px solid var(--border-dark);
    padding: 2px 8px;
    border-radius: 4px;
    background-color: var(--bg-dark-card);
    color: var(--secondary-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
