/* Common Styles for All Pages */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Responsive Variables */
:root {
    --header-height: 143px;
    --header-padding: 20px;
    --primary-color: #233b63;
    --secondary-color: #364153;
    --accent-color: #f2f7ff;
    --text-color: #333;
    --light-text: #868686;
    --border-color: #d1d5dc;
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --header-padding: 15px;
    }

    .logo{
        width: 60px !important;
        height: 60px !important;
    }
}

/* Header */
.header {
    background: white;
    box-shadow: 0 13.537px 20.306px -4.061px rgba(0, 0, 0, 0.15), 0 5.415px 8.122px -5.415px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
}

.header-container {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    height: var(--header-height);
}

.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 100%;
}

.logo {
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-box {
    background: #f2f7ff;
    border-radius: 22px;
    padding: 15px 20px;
    max-width: 480px;
    text-align: center;
    /* permitir encolher para não empurrar o layout */
    flex: 0 1 420px;
    min-width: 220px;
}

.quote-text {
    font-style: italic;
    font-size: clamp(12px, 2vw, 18px);
    color: #333;
    margin-bottom: 5px;
    line-height: 1.4;
    /* truncar para evitar quebra do layout */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.quote-verse {
    font-size: 14px;
    color: #868686;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: flex;
    align-items: center;
    flex-direction: column;
    /* gap: 20px; */ 
}

.top-links, .bottom-links{
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    width: 100%;
}

.nav a {
    text-decoration: none;
    color: #364153;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    background: #233b63;
    color: white;
}

.contact-btn {
    background: #233b63 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 34px !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    padding: 10px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle .bar + .bar {
    margin-top: 5px;
}

.mobile-menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Main Content */
.main-content {
    margin-top: var(--header-height);
    padding: 60px 0;
    min-height: calc(100vh - var(--header-height));
}

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

/* Page Header */
.page-header {
    text-align: center;
    /* margin-bottom: 50px; */
}

.page-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto 30px;
}

.divider {
    width: 130px;
    height: 5px;
    background: #FBBC04;
    border-radius: 50px;
    margin: 20px auto;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, #15223a, #091220);
    color: #d2d2d2;
    padding: 40px 0;
    text-align: center;
    z-index: 1;
    position: relative;
}

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

.footer-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-logo-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.4))
            drop-shadow(0 0 60px rgba(255, 255, 255, 0.3));
    transition: all 0.3s ease;
}

.footer-logo-image:hover {
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.7)) 
            drop-shadow(0 0 60px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 90px rgba(255, 255, 255, 0.5));
    transform: scale(1.05);
}

.footer-nav-section {
    flex: 1;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #d2d2d2;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-nav a:hover {
    color: white;
    text-decoration: underline;
}

.footer-separator {
    color: #6a7282;
    margin: 0 15px;
    pointer-events: none;
}

.footer-copyright {
    font-size: 16px;
    color: #6a7282;
}

/* Hide quote-box on smaller screens */
@media (max-width: 1360px) {
    .quote-box {
        display: none;
    }
}

/* Animação de entrada para itens do menu mobile */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 520px;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 520px;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 1100px) {
    .header-container {
        padding: 0 15px;
        justify-content: space-between;
    }

    .logo-section {
        gap: 15px;
    }

    .nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        gap: 12px;
        align-items: stretch;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav.active {
        max-height: 580px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .top-links,
    .bottom-links {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav.active .top-links a,
    .nav.active .bottom-links a {
        animation: slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
    }

    .nav.active .top-links a:nth-child(1) { animation-delay: 0.1s; }
    .nav.active .top-links a:nth-child(2) { animation-delay: 0.15s; }
    .nav.active .top-links a:nth-child(3) { animation-delay: 0.2s; }
    .nav.active .top-links a:nth-child(4) { animation-delay: 0.25s; }

    .nav.active .bottom-links a:nth-child(1) { animation-delay: 0.3s; }
    .nav.active .bottom-links a:nth-child(2) { animation-delay: 0.35s; }
    .nav.active .bottom-links a:nth-child(3) { animation-delay: 0.4s; }
    .nav.active .bottom-links a:nth-child(4) { animation-delay: 0.45s; }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        margin-left: auto;
    }

    .nav a {
        padding: 12px 15px;
        text-align: center;
        width: 100%;
        font-size: 14px;
    }

    .nav a.contact-btn {
        width: 100%;
    }

    .footer-nav {
        flex-direction: row;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .footer-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-container {
        gap: 15px;
    }

    .logo {
        width: 50px;
        height: 50px;
        font-size: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-logo-image {
        width: 60px;
        height: 60px;
    }
}

/* Animações para Page Headers (baseado no TypeScript) */
[data-animate] {
    opacity: 0;
    animation-fill-mode: both;
}

.page-header h1[data-animate],
.page-title[data-animate] {
    animation-delay: 0.2s;
}

.page-header .divider[data-animate] {
    animation-delay: 0.4s;
}

.page-header p[data-animate],
.page-subtitle[data-animate] {
    animation-delay: 0.6s;
    opacity: 0;
    animation-fill-mode: both;
}

.page-header p[data-animate]:not(.in-view),
.page-subtitle[data-animate]:not(.in-view) {
    opacity: 0;
}

/* Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active states */
.in-view[data-animate="fade-up"] {
    animation: fadeUp 0.8s ease-out forwards;
}
