/* 
========================================================================
   TERAPEUTA DOUGLAS OLIVER - MAIN CSS (DESIGN SYSTEM & BASE STYLING)
========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette (Wellness & Apple-like) */
    --color-primary: #2D3E32;         /* Deep desaturated moss green (Sophistication & Healing) */
    --color-primary-light: #3D5243;   /* Lighter moss green */
    --color-secondary: #4A5F51;       /* Olive green for subtitles and secondary accents */
    --color-accent: #A99260;          /* Elegant gold/bronze for high-end CTAs */
    --color-accent-hover: #958052;    /* Elegant gold hover state */
    --color-bg-light: #FAF9F6;        /* Warm off-white background */
    --color-bg-card: #F2EFE9;         /* Soft warm sand for structural blocks */
    --color-text-dark: #1E221F;       /* Charcoal for premium high readability */
    --color-text-muted: #637267;      /* Muted desaturated sage for secondary descriptions */
    --color-white: #FFFFFF;
    --color-glass: rgba(250, 249, 246, 0.85); /* Apple-like translucent glass bg */
    --border-color: rgba(45, 62, 50, 0.08);   /* Elegant thin border */

    /* Typography */
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Shadows & Border Radii */
    --shadow-sm: 0 4px 12px rgba(45, 62, 50, 0.03);
    --shadow-md: 0 12px 36px rgba(45, 62, 50, 0.06);
    --shadow-lg: 0 24px 48px rgba(45, 62, 50, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;

    /* Transitions & Animations */
    --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Layout */
    --container-max-width: 1200px;
    --header-height: 80px;
}

/* ========================================================================
   RESET & BASE STYLES
   ======================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

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

.section {
    padding: 6rem 0;
    position: relative;
}

.section-bg-alt {
    background-color: var(--color-bg-card);
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background-color: rgba(74, 95, 81, 0.08);
    color: var(--color-secondary);
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

/* ========================================================================
   HEADER (GLASSMORPHISM)
   ======================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--color-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-fast);
}

.header-scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
}

.header .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: -0.01em;
}

.logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-top: -2px;
}

.nav {
    display: none; /* Mobile first, hidden on mobile */
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 1020; /* Sit above the mobile drawer menu */
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background-color: var(--color-primary);
    transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg-light);
    z-index: 1010; /* Sit above the header */
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    list-style: none;
    margin-bottom: 3rem;
}

.mobile-nav-link {
    font-family: var(--font-headings);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-primary);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--color-accent);
    padding-left: 10px;
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-bg-light);
    padding: 5rem 0 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h3, .footer h4 {
    color: var(--color-bg-light);
    font-family: var(--font-headings);
}

.footer h3 {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.footer-logo .logo-main {
    font-family: var(--font-headings);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-bg-light);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.footer-logo .logo-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-top: -2px;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 30px;
    height: 1px;
    background-color: var(--color-accent);
}

.footer p {
    color: rgba(250, 249, 246, 0.7);
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    max-width: 320px;
    margin-top: 1rem;
}

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

.footer-links a {
    color: rgba(250, 249, 246, 0.7);
}

.footer-links a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
}

.footer-info svg {
    flex-shrink: 0;
    margin-top: 4px;
    stroke: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(250, 249, 246, 0.08);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.8rem;
    color: rgba(250, 249, 246, 0.5);
}

.footer-socials {
    display: flex;
    gap: 1.25rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(250, 249, 246, 0.05);
    border-radius: 50%;
    color: var(--color-bg-light);
    border: 1px solid rgba(250, 249, 246, 0.05);
}

.social-icon:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* ========================================================================
   ANIMATION CLASSROOMS
   ======================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* ========================================================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ======================================================================== */
@media (max-width: 767px) {
    /* Hide CTA in header on mobile to prevent squishing the layout */
    .header-actions #header-whatsapp-cta {
        display: none !important;
    }
}

@media (max-width: 480px) {
    /* Fluid smaller h1 for small viewports */
    h1 {
        font-size: 2.1rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .mobile-nav {
        padding: 4rem 1.5rem 2rem;
    }
    
    .mobile-nav-list {
        gap: 1.5rem;
    }
    
    .mobile-nav-link {
        font-size: 1.65rem;
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.6rem;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1.5fr;
        gap: 4rem;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .nav {
        display: block;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-nav {
        display: none;
    }
}
