/* ==========================================================================
   shared.css — Estilos partilhados por todas as páginas
   ========================================================================== */

/* Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0f0b3e;
    --secondary-bg: #1a1550;
    --accent-color: #d4ff00;
    --brand-purple: #2f237a;
    --text-primary: #111111;
    --text-secondary: #4a4a4a;
    --surface-bg: #ffffff;
    --surface-alt: #f5f5f7;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header & Nav
   ========================================================================== */
header {
    background: rgba(15, 11, 62, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0; /* Removido para encolher o cabeçalho ao máximo */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(212, 255, 0, 0.1);
}

.header-progress {
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 3px;
    background: rgba(212, 255, 0, 0.12);
    overflow: hidden;
}

.header-progress-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(212, 255, 0, 0.88) 0%, rgba(212, 255, 0, 1) 100%);
    box-shadow: 0 0 14px rgba(212, 255, 0, 0.72);
    transform: scaleX(0);
    transform-origin: left center;
}

.header-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 20px 5px;
    width: 100%;
    gap: 0 18px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

.logo img {
    height: 85px; /* Reduzido de 120px para permitir encolher o cabeçalho */
    width: auto;
    transition: var(--transition);
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-left: 0;
    flex-wrap: nowrap;
}

.header-program-title {
    flex-basis: 100%;
    text-align: center;
    color: var(--accent-color);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: -5px;
    text-shadow: 0 0 10px rgba(212, 255, 0, 0.45);
}

.logo img {
    display: block;
    vertical-align: middle;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 12px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 18px; /* Aumentado */
}

nav a:hover {
    color: var(--accent-color);
}

/* Buttons
   ========================================================================== */
.cta-btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: 16px 40px;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(212, 255, 0, 0.2);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 255, 0, 0.4);
    background: #e6ff33;
}

.cta-btn:active {
    transform: translateY(-1px);
}

/* Footer
   ========================================================================== */
footer {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.76);
    text-align: center;
}

.footer-policy-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-divider {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.48);
}

.footer-policy-link:hover,
.footer-links a:hover {
    color: #ffffff;
}

.footer-links a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

/* Contact Section (partilhado entre todas as páginas)
   ========================================================================== */
.contact-section {
    padding: 80px 0; /* Aumentado para criar uma separação mais natural */
    background: #ffffff;
}

.contact-form-wrapper {
    text-align: center;
}

.contact-form-wrapper h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.contact-form-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-email-wrapper {
    position: relative;
}

.contact-email-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 2px solid var(--accent-color);
    border-radius: 6px;
    background: var(--accent-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.contact-email-button i {
    color: var(--text-primary);
    font-size: 16px;
}

.contact-email-button:hover {
    box-shadow: 0 8px 20px rgba(212, 255, 0, 0.3);
    transform: translateY(-1px);
}

.contact-email-button:focus-visible {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.15);
}

.contact-copy-feedback {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    padding: 10px 14px;
    border-radius: 6px;
    background: var(--text-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.contact-copy-feedback.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.contact-input {
    padding: 12px 16px;
    border: 2px solid rgba(212, 255, 0, 0.3);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    min-width: 200px;
    color: var(--text-primary);
}

.contact-input::placeholder {
    color: rgba(74, 74, 74, 0.6);
}

.contact-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 255, 0, 0.1);
}

.contact-submit-btn {
    padding: 12px 24px;
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 255, 0, 0.3);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Responsive — Mobile Header & Contact (partilhado)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        isolation: isolate;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        contain: paint;
    }

    .header-progress-bar {
        will-change: transform;
        transform: scaleX(0);
    }

    .header-content {
        padding: 8px 10px 10px;
        flex-direction: row;
        justify-content: center;
        gap: 3px 5px;
    }

    nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin-left: 0;
        flex-wrap: nowrap;
        flex: 0 1 auto;
        min-width: auto;
    }

    .logo {
        font-size: 16px;
        letter-spacing: 1px;
        flex-shrink: 0;
    }

    .logo img {
        height: 46px;
    }

    nav a {
        margin: 0;
        font-size: clamp(10px, 2.8vw, 11.5px);
        letter-spacing: -0.2px;
        white-space: nowrap;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .header-program-title {
        font-size: 9px;
        line-height: 1.15;
        margin-top: 1px;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-form-wrapper h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .contact-form-horizontal {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .contact-email-wrapper {
        width: 100%;
    }

    .contact-email-button {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .contact-copy-feedback {
        left: 50%;
        transform: translate(-50%, -6px);
    }

    .contact-copy-feedback.is-visible {
        transform: translate(-50%, 0);
    }

    .contact-input {
        min-width: 100%;
        width: 100%;
    }

    .contact-submit-btn {
        width: 100%;
    }

    .cta-btn {
        width: 100%;
    }
}
