/* Matura Psicologia Clínica - Landing Page Styles */
/* Color Palette: Instagram gradient + Brand teal/gold */

:root {
    /* Instagram gradient colors */
    --gradient-start: #405DE6;
    --gradient-mid-1: #5851DB;
    --gradient-mid-2: #833AB4;
    --gradient-mid-3: #C13584;
    --gradient-mid-4: #E1306C;
    --gradient-mid-5: #FD1D1D;
    --gradient-end: #F77737;
    
    /* Brand colors from logo */
    --brand-teal: #4A9BA8;
    --brand-teal-light: #5FB8C7;
    --brand-teal-dark: #3A7A85;
    --brand-gold: #C9A961;
    --brand-gold-light: #D4BC7A;
    
    /* Neutral colors */
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --black: #1A1A2E;
    
    /* Gradients */
    --gradient-instagram: linear-gradient(135deg, var(--gradient-start), var(--gradient-mid-2), var(--gradient-mid-4), var(--gradient-end));
    --gradient-brand: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-light));
    --gradient-hero: linear-gradient(180deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
    
    /* Typography */
    --font-primary: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: Georgia, 'Times New Roman', serif;
    
    /* Spacing */
    --section-padding: 5rem 1.5rem;
    --container-max: 1100px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.3;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible,
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brand-teal);
    letter-spacing: 0.05em;
}

.logo-subtitle {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--brand-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-instagram);
    transition: width var(--transition-smooth);
}

.nav-link:hover {
    color: var(--brand-teal);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--dark-gray);
    transition: var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 6rem 1.5rem 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--brand-teal-dark);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    background: var(--brand-gold-light);
    color: var(--black);
}

.hero-decoration {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200px;
    background: var(--white);
    border-radius: 50%;
}

/* Sections */
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--brand-teal-dark);
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-instagram);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-text {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 1.05rem;
}

/* Sobre Section */
.sobre {
    padding: var(--section-padding);
    background: var(--white);
}

/* Serviços Section */
.servicos {
    padding: var(--section-padding);
    background: var(--off-white);
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.servico-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border-top: 3px solid transparent;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top-color: var(--brand-teal);
}

.servico-title {
    font-size: 1.25rem;
    color: var(--brand-teal-dark);
    margin-bottom: 1rem;
    transition: color var(--transition-fast);
}

.servico-card:hover .servico-title {
    color: var(--brand-teal);
}

.servico-desc {
    color: var(--gray);
    font-size: 0.95rem;
}

.modalidades {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modalidade {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.modalidade-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-brand);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.modalidade p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Horários Section */
.horarios {
    padding: var(--section-padding);
    background: var(--white);
}

.horarios-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.horario-item {
    text-align: center;
    padding: 2rem 3rem;
    background: var(--off-white);
    border-radius: 10px;
    min-width: 200px;
    transition: var(--transition-smooth);
}

.horario-item:hover {
    background: var(--brand-teal);
}

.horario-item:hover .dia,
.horario-item:hover .hora {
    color: var(--white);
}

.dia {
    display: block;
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.hora {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--brand-teal-dark);
    transition: color var(--transition-fast);
}

.endereco {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
    color: var(--gray);
}

/* Contato Section */
.contato {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
}

.contato-intro {
    text-align: center;
    color: var(--gray);
    margin-bottom: 2rem;
}

.form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(74, 155, 168, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-brand);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(74, 155, 168, 0.4);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.95rem;
}

.form-message.error {
    background: #fee2e2;
    color: #dc2626;
}

.form-message.success {
    background: #d1fae5;
    color: #059669;
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo .logo-text {
    color: var(--white);
}

.footer-logo .logo-subtitle {
    color: var(--brand-gold);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-decoration {
        height: 100px;
        bottom: -50px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .horarios-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .horario-item {
        width: 100%;
        max-width: 300px;
    }
}

/* Hover effects for text elements */
.section-title:hover {
    color: var(--brand-teal);
    transition: color var(--transition-smooth);
}

.hero-title:hover {
    text-shadow: 0 4px 30px rgba(255, 255, 255, 0.3);
    transition: text-shadow var(--transition-smooth);
}

.servico-desc:hover {
    color: var(--dark-gray);
    transition: color var(--transition-fast);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .hero-decoration,
    .btn-primary,
    .btn-submit {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem;
        background: none;
    }
    
    .hero-title,
    .hero-subtitle {
        color: black;
    }
}