/*
Theme Name: ie psicologias
Theme URI: http://iepsicologias.com.br
Author: Antigravity - UX/UI Senior
Description: Tema autêntico baseado no Manual da Marca IE Psicologias - "Imergir para Emergir"
Version: 4.0
Text Domain: ie-psicologias
*/

/* ============================================
   BRAND COLORS - FROM OFFICIAL MANUAL
   ============================================ */
:root {
    /* Primary Palette */
    --ie-primary: #745E59;
    /* Dark Brown/Mauve - Primary text */
    --ie-medium: #94857B;
    /* Medium Brown */
    --ie-gold: #B79677;
    /* Muted Gold - Highlights, CTAs */
    --ie-beige: #C2B19D;
    /* Soft Beige - Accents */
    --ie-light-beige: #D3C3B2;
    /* Light Beige */
    --ie-background: #F6F3EE;
    /* Off-White - Main background */
    --ie-white: #FFFFFF;

    /* Typography - Approximations for web */
    --font-heading: 'EB Garamond', 'Playfair Display', Georgia, serif;
    /* Approximates Bagilean */
    --font-body: 'Nunito Sans', 'Nexa', 'Montserrat', sans-serif;
    /* Approximates Nexa */

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 100px;
    --space-xxl: 140px;

    /* Border Radius - Brand uses soft rounded corners */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

/* ============================================
   BASE RESET & TYPOGRAPHY
   ============================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--ie-background);
    color: var(--ie-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Headings - Bagilean-inspired elegance */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ie-primary);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-style: italic;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-style: italic;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
    color: var(--ie-medium);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.35s ease;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.section {
    padding: var(--space-xxl) 0;
}

/* Section Background Colors - Brand Palette */
.bg-white {
    background-color: var(--ie-white);
}

.bg-cream {
    background-color: var(--ie-background);
}

.bg-light-beige {
    background-color: var(--ie-light-beige);
}

.bg-beige {
    background-color: var(--ie-beige);
}

.bg-primary {
    background-color: var(--ie-primary);
    color: var(--ie-background);
}

.bg-primary h2,
.bg-primary h3 {
    color: var(--ie-background);
}

.bg-primary p {
    color: var(--ie-light-beige);
}

/* Manifesto Grid */
.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.manifesto-item {
    text-align: center;
    padding: var(--space-md);
}

.manifesto-item h3 {
    color: var(--ie-gold);
    margin-bottom: var(--space-sm);
}

.manifesto-item p {
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .manifesto-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   HEADER - Minimal & Elegant
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background 0.4s ease;
}

.site-header.scrolled {
    background: rgba(246, 243, 238, 0.95);
    backdrop-filter: blur(10px);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-style: italic;
    color: var(--ie-primary);
    letter-spacing: 0.05em;
}

.site-logo span {
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ie-medium);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ie-gold);
    transition: width 0.35s ease;
}

.nav-links a:hover {
    color: var(--ie-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION - Brand Authentic
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-xxl) 0;
    background-color: var(--ie-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Hero with background image overlay */
.hero.has-bg-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F6F3EE;
    opacity: var(--hero-overlay-opacity, 0.75);
    z-index: 1;
}

.hero.has-bg-image .container {
    position: relative;
    z-index: 2;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-content {
    padding-right: var(--space-lg);
}

.hero-label {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--ie-gold);
    margin-bottom: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--ie-gold);
    border-radius: var(--radius-full);
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--ie-beige);
    margin-bottom: var(--space-lg);
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--ie-beige) 0%, var(--ie-light-beige) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid var(--ie-beige);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.hero-image-text {
    font-family: var(--font-heading);
    font-size: 6rem;
    font-style: italic;
    color: var(--ie-background);
    opacity: 0.5;
}

/* ============================================
   BUTTONS - Brand Style
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.35s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--ie-primary);
    color: var(--ie-background);
}

.btn-primary:hover {
    background: var(--ie-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(116, 94, 89, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--ie-primary);
    color: var(--ie-primary);
}

.btn-outline:hover {
    background: var(--ie-primary);
    color: var(--ie-background);
}

.btn .arrow {
    transition: transform 0.3s ease;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* ============================================
   ABOUT / PROPOSTA SECTION
   ============================================ */
.proposta {
    background: var(--ie-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.proposta-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.proposta h2 {
    margin-bottom: var(--space-md);
}

.proposta p {
    font-size: 1.1rem;
    line-height: 1.9;
}

/* ============================================
   SERVICES / FRENTES DE ATUAÇÃO
   ============================================ */
.services {
    padding: var(--space-xxl) 0;
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.services-header h2 {
    margin-bottom: var(--space-sm);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.service-card {
    background: var(--ie-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-icon {
    color: var(--ie-gold);
    margin-bottom: var(--space-sm);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(116, 94, 89, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ie-gold);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-style: italic;
    color: var(--ie-light-beige);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.service-card h3 {
    margin-bottom: var(--space-xs);
    color: var(--ie-primary);
}

.service-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--ie-gold);
    margin-bottom: var(--space-sm);
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.service-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ie-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    color: var(--ie-gold);
}

/* ============================================
   METHODOLOGY SECTION
   ============================================ */
.methodology {
    background: linear-gradient(180deg, var(--ie-background) 0%, var(--ie-white) 100%);
    padding: var(--space-xxl) 0;
}

.methodology-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.methodology-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    position: relative;
}

.methodology-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--ie-light-beige);
}

.method-step {
    text-align: center;
    flex: 1;
    max-width: 300px;
    position: relative;
}

.step-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--ie-white);
    border: 2px solid var(--ie-beige);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--ie-gold);
    position: relative;
    z-index: 1;
    transition: all 0.35s ease;
}

.method-step:hover .step-circle {
    background: var(--ie-gold);
    color: var(--ie-white);
    border-color: var(--ie-gold);
}

.method-step h3 {
    margin-bottom: var(--space-xs);
}

.method-step p {
    font-size: 0.9rem;
}

/* ============================================
   ABOUT / QUEM SOMOS
   ============================================ */
.about {
    padding: var(--space-xxl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--ie-beige);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content .section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--ie-gold);
    margin-bottom: var(--space-sm);
}

.about-content h2 {
    margin-bottom: var(--space-md);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--ie-primary);
    color: var(--ie-background);
    padding: var(--space-xxl) 0;
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: var(--space-xl);
}

.cta-section h2 {
    color: var(--ie-background);
    margin-bottom: var(--space-sm);
}

.cta-section p {
    color: var(--ie-light-beige);
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.cta-section .btn {
    background: var(--ie-background);
    color: var(--ie-primary);
}

.cta-section .btn:hover {
    background: var(--ie-gold);
    color: var(--ie-white);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--ie-primary);
    color: var(--ie-background);
    padding: var(--space-lg) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(246, 243, 238, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--ie-light-beige);
}

.footer-links a:hover {
    color: var(--ie-background);
}

.footer-copy {
    font-size: 0.75rem;
    color: var(--ie-beige);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .methodology-steps {
        flex-direction: column;
        align-items: center;
    }

    .methodology-steps::before {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 48px;
        --space-xl: 80px;
        --space-xxl: 100px;
    }

    .site-header {
        padding: var(--space-sm) var(--space-md);
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}