/* ========================================
   VOZ SEGURA - Landing Page Styles
   ======================================== */

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

:root {
    --color-bg: #08080f;
    --color-bg-light: #0f0f1a;
    --color-bg-card: rgba(255, 255, 255, 0.06);
    --color-card-border: rgba(255, 255, 255, 0.1);
    --color-purple: #7c3aed;
    --color-purple-light: #8b5cf6;
    --color-purple-dark: #6d28d9;
    --color-pink: #c026d3;
    --color-teal: #2dd4bf;
    --color-white: #ffffff;
    --color-gray-100: rgba(255, 255, 255, 0.9);
    --color-gray-200: rgba(255, 255, 255, 0.7);
    --color-gray-300: rgba(255, 255, 255, 0.5);
    --font-primary: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-white);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(8, 8, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo__main {
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo__voz {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.logo__mark {
    margin-left: -2px;
    margin-top: 0;
}

.logo__segura {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-purple-light);
    letter-spacing: 3.5px;
    margin-top: -3px;
    padding-left: 2px;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-shrink: 0;
}

.nav__link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gray-200);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--color-white);
}

/* Header Right */
.header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-anonymous {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 50px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-anonymous svg {
    color: var(--color-purple-light);
    opacity: 0.9;
    flex-shrink: 0;
}

.btn-anonymous:hover {
    background: rgba(124, 58, 237, 0.22);
    border-color: rgba(124, 58, 237, 0.55);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
    transform: translateY(-1px);
}

/* Consultar Button */
.btn-consultar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--color-gray-200);
    font-family: var(--font-primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-consultar svg {
    color: var(--color-gray-300);
    flex-shrink: 0;
}

.btn-consultar:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    transform: translateY(-1px);
}

.btn-consultar:hover svg {
    color: var(--color-white);
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: var(--color-white);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    order: -1;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hamburger--active {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
    color: var(--color-purple-light);
}

/* Mobile nav action buttons (hidden on desktop) */
.nav__mobile-actions {
    display: none;
}

/* Login Button */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-gray-200);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding-top: 100px;
    padding-bottom: 0;
    overflow: hidden;
}

/* Hero background image - positioned as a layer */
.hero__bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
}

.hero__bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    display: block;
}

/* Seamless gradient blending on all edges */
.hero__bg-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, var(--color-bg) 0%, rgba(8, 8, 15, 0.95) 8%, rgba(8, 8, 15, 0.6) 22%, rgba(8, 8, 15, 0.1) 40%, transparent 55%),
        linear-gradient(to bottom, var(--color-bg) 0%, rgba(8, 8, 15, 0.5) 6%, transparent 20%),
        linear-gradient(to top, var(--color-bg) 0%, rgba(8, 8, 15, 0.9) 6%, rgba(8, 8, 15, 0.5) 14%, transparent 30%);
    pointer-events: none;
}

.hero__bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12) 0%, rgba(124, 58, 237, 0.04) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 60px;
    min-height: 520px;
}

.hero__content {
    flex: 0 1 50%;
    max-width: 600px;
    padding-bottom: 60px;
}

.hero__title {
    font-size: clamp(2.4rem, 4.2vw, 4.2rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 28px;
    color: var(--color-white);
}

.text-purple {
    color: var(--color-purple-light);
}

/* Animated highlight stroke under IMPORTA. */
.text-highlight {
    position: relative;
    display: inline-block;
}

.highlight-stroke {
    position: absolute;
    left: 0;
    right: -4%;
    bottom: 8px;
    height: 20px;
    display: block;
    pointer-events: none;
}

.highlight-stroke svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.highlight-stroke svg .stroke-path {
    clip-path: inset(0 100% 0 0);
    animation: revealStroke 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 0.6s forwards;
}

@keyframes revealStroke {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    100% {
        clip-path: inset(0 0% 0 0);
        opacity: 1;
    }
}

/* Subtle glow pulse after drawn */
.highlight-stroke svg {
    animation: glowAfterDraw 2.5s ease-in-out 2s infinite;
}

@keyframes glowAfterDraw {
    0%, 100% {
        filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
    }
}

.hero__subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-gray-200);
    line-height: 1.8;
    margin-bottom: 44px;
    max-width: 490px;
}

.text-underline-purple {
    color: var(--color-purple-light);
    text-decoration: none;
    background-image: linear-gradient(to right, var(--color-purple-light), var(--color-purple-light));
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
}

/* Hero Buttons */
.hero__buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-radius: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn--primary {
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
    color: var(--color-white);
    border: none;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--color-purple-light) 0%, var(--color-purple) 100%);
    box-shadow: 0 6px 32px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn--secondary {
    padding: 18px 32px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn__play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.btn__play svg {
    margin-left: 2px;
}


/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
    position: relative;
    padding: 20px 0 50px;
    z-index: 1;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.feature-card__icon--purple {
    background: rgba(124, 58, 237, 0.15);
    color: var(--color-purple-light);
}

.feature-card__icon--pink {
    background: rgba(192, 38, 211, 0.15);
    color: var(--color-pink);
}

.feature-card__icon--teal {
    background: rgba(45, 212, 191, 0.15);
    color: var(--color-teal);
}

.feature-card__title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    line-height: 1.3;
    color: var(--color-white);
}

.feature-card__text {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-gray-300);
    line-height: 1.5;
}

/* ========================================
   BOTTOM BANNER
   ======================================== */

.banner {
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.banner__icon {
    color: var(--color-gray-300);
    flex-shrink: 0;
}

.banner__text {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-gray-300);
}

/* ========================================
   COOKIE NOTICE
   ======================================== */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(18, 18, 31, 0.97);
    border-top: 1px solid rgba(124, 58, 237, 0.3);
    padding: 16px 0;
    z-index: 9999;
    backdrop-filter: blur(12px);
}

.cookie-notice__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-notice__text {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--color-gray-200);
    line-height: 1.5;
}

.cookie-notice__text a {
    color: var(--color-purple-light);
    text-decoration: underline;
}

.cookie-notice__btn {
    flex-shrink: 0;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.cookie-notice__btn:hover {
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hero__title {
        font-size: 3rem;
    }

    .hero__bg-image {
        width: 50%;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav {
        gap: 20px;
    }

    .nav__link {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .header__inner {
        gap: 12px;
    }

    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(8, 8, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 99;
    }

    .nav--open {
        display: flex;
    }

    .nav__link {
        font-size: 0.88rem;
        padding: 6px 0;
    }

    .nav__mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 16px;
        margin-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav__mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 24px;
        border-radius: 50px;
        font-family: var(--font-primary);
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .nav__mobile-btn--primary {
        background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
        color: var(--color-white);
        box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
    }

    .nav__mobile-btn--primary:hover {
        box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
    }

    .nav__mobile-btn--secondary {
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: var(--color-gray-200);
    }

    .nav__mobile-btn--secondary:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--color-white);
    }

    .btn-anonymous,
    .btn-consultar {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 0;
        flex-direction: column;
    }

    .hero__bg-image {
        position: relative;
        width: 100%;
        height: auto;
        top: auto;
        right: auto;
        order: -1;
        aspect-ratio: 4 / 3;
        max-height: 340px;
    }

    .hero__bg-image img {
        object-position: center 20%;
    }

    .hero__bg-image::after {
        background:
            linear-gradient(to bottom, var(--color-bg) 0%, transparent 15%),
            linear-gradient(to top, var(--color-bg) 0%, rgba(8, 8, 15, 0.7) 20%, transparent 50%);
    }

    .hero__bg-glow {
        display: none;
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
        padding-top: 0;
        min-height: auto;
    }

    .hero__content {
        max-width: 100%;
        padding-bottom: 40px;
    }

    .hero__title {
        font-size: 2.4rem;
    }

    .highlight-stroke {
        bottom: 4px;
        height: 14px;
    }

    .hero__subtitle {
        max-width: 100%;
    }

    .hero__buttons {
        justify-content: center;
    }

    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .container {
        padding: 0 20px;
    }

    .cookie-notice__inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .highlight-stroke {
        bottom: 2px;
        height: 12px;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn--primary,
    .btn--secondary {
        width: 100%;
        justify-content: center;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .banner__text {
        font-size: 0.8rem;
        text-align: center;
    }
}

/* ========================================
   CUSTOM SELECT — Global Component
   ======================================== */

.custom-select {
    position: relative;
    width: 100%;
}

/* Hide native select when custom is active */
.custom-select select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Trigger button */
.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 0.92rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    user-select: none;
    gap: 12px;
}

.custom-select__trigger:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.custom-select__trigger:focus,
.custom-select.open .custom-select__trigger {
    border-color: var(--color-purple);
    background: rgba(124, 58, 237, 0.06);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

/* Placeholder text style */
.custom-select__trigger--placeholder {
    color: var(--color-gray-300);
}

/* Chevron icon */
.custom-select__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-gray-300);
}

.custom-select.open .custom-select__chevron {
    transform: rotate(180deg);
    color: var(--color-purple-light);
}

/* Dropdown panel */
.custom-select__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #14142b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(124, 58, 237, 0.08);
    max-height: 240px;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.custom-select.open .custom-select__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Scrollbar styling */
.custom-select__dropdown::-webkit-scrollbar {
    width: 6px;
}

.custom-select__dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.custom-select__dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.custom-select__dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Option items */
.custom-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--color-gray-200);
    font-family: var(--font-primary);
    font-size: 0.88rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    gap: 10px;
}

.custom-select__option:hover,
.custom-select__option--focused {
    background: rgba(124, 58, 237, 0.12);
    color: var(--color-white);
}

.custom-select__option--selected {
    background: rgba(124, 58, 237, 0.18);
    color: var(--color-white);
    font-weight: 500;
}

.custom-select__option--selected:hover {
    background: rgba(124, 58, 237, 0.25);
}

/* Checkmark on selected option */
.custom-select__check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--color-purple-light);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.custom-select__option--selected .custom-select__check {
    opacity: 1;
    transform: scale(1);
}

/* Disabled option (like "Selecione") */
.custom-select__option--disabled {
    color: var(--color-gray-300);
    cursor: default;
    opacity: 0.5;
}

.custom-select__option--disabled:hover {
    background: transparent;
    color: var(--color-gray-300);
}

/* Small variant (for admin filters) */
.custom-select--sm .custom-select__trigger {
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 10px;
}

.custom-select--sm .custom-select__dropdown {
    border-radius: 12px;
}

.custom-select--sm .custom-select__option {
    padding: 9px 12px;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* Inline variant (for status select) */
.custom-select--inline {
    width: auto;
    display: inline-block;
}

.custom-select--inline .custom-select__trigger {
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 8px;
    gap: 8px;
}

.custom-select--inline .custom-select__chevron {
    width: 12px;
    height: 12px;
}

.custom-select--inline .custom-select__dropdown {
    min-width: 180px;
    border-radius: 10px;
}

.custom-select--inline .custom-select__option {
    padding: 8px 12px;
    font-size: 0.82rem;
    border-radius: 8px;
}

/* Drop upward when near bottom of viewport */
.custom-select--dropup .custom-select__dropdown {
    top: auto;
    bottom: calc(100% + 6px);
    transform: translateY(8px) scale(0.98);
}

.custom-select--dropup.open .custom-select__dropdown {
    transform: translateY(0) scale(1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .custom-select__trigger {
        padding: 12px 16px;
        font-size: 0.88rem;
    }

    .custom-select__option {
        padding: 12px 14px;
        font-size: 0.88rem;
    }

    .custom-select__dropdown {
        max-height: 200px;
    }
}

/* ========================================
   ACESSIBILIDADE (Lei 13.146/2015 Art. 63)
   ======================================== */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--color-purple);
    color: white;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 0 0 12px 12px;
    z-index: 10000;
    transition: top 0.3s;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible for all interactive elements */
*:focus-visible {
    outline: 2px solid var(--color-purple-light);
    outline-offset: 2px;
}

/* High contrast mode */
.high-contrast {
    --color-bg: #000000;
    --color-bg-card: #1a1a1a;
    --color-white: #ffffff;
    --color-gray-100: #ffffff;
    --color-gray-200: #e0e0e0;
    --color-gray-300: #c0c0c0;
    --color-card-border: rgba(255, 255, 255, 0.3);
}

.high-contrast .form__input,
.high-contrast .form__select,
.high-contrast .form__textarea {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

/* Font size adjustment */
.font-large {
    font-size: 110% !important;
}

.font-large .step__title,
.font-large .section__title {
    font-size: 2.2rem !important;
}

.font-large .form__label,
.font-large .form__input,
.font-large .form__select,
.font-large .form__textarea,
.font-large p,
.font-large li {
    font-size: 1.05rem !important;
}

/* Accessibility toolbar */
.a11y-toolbar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 9999;
}

.a11y-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(124, 58, 237, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.a11y-btn:hover,
.a11y-btn:focus {
    background: var(--color-purple-light);
    transform: scale(1.1);
}

.a11y-btn[aria-pressed="true"] {
    background: #22c55e;
    border-color: #22c55e;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   SECTION PAGES (Quem Somos, Como Funciona, Dúvidas, Ajuda)
   ======================================== */

.section-page {
    padding: 100px 0;
}

.section-page--alt {
    background: rgba(255, 255, 255, 0.015);
}

.section-page__header {
    text-align: center;
    margin-bottom: 56px;
}

.section-page__badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 50px;
    color: var(--color-purple-light);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-page__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-page__subtitle {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-gray-200);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid layouts */
.section-page__grid {
    display: grid;
    gap: 24px;
}

.section-page__grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.section-page__grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Cards */
.section-page__card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 36px 32px;
    transition: all 0.3s ease;
}

.section-page__card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
}

.section-page__card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.section-page__card p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-gray-200);
    line-height: 1.7;
}

.section-page__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.section-page__card--highlight {
    border-color: rgba(124, 58, 237, 0.2);
    background: rgba(124, 58, 237, 0.04);
}

.section-page__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-page__list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-gray-200);
    line-height: 1.6;
}

.section-page__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}

/* CTA */
.section-page__cta {
    text-align: center;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section-page__cta p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--color-gray-200);
    margin-bottom: 24px;
}

/* ========================================
   STEPS (Como Funciona)
   ======================================== */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}

.step-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 36px 28px;
    position: relative;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-4px);
}

.step-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-dark) 100%);
    border-radius: 12px;
    color: white;
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}

.step-card__text {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-gray-200);
    line-height: 1.65;
}

/* ========================================
   FAQ (Dúvidas)
   ======================================== */

.faq {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq__item[open] {
    border-color: rgba(124, 58, 237, 0.3);
}

.faq__question {
    padding: 20px 24px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-white);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--color-purple-light);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq__item[open] .faq__question::after {
    content: '−';
}

.faq__question:hover {
    color: var(--color-purple-light);
}

.faq__answer {
    padding: 0 24px 20px;
}

.faq__answer p {
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--color-gray-200);
    line-height: 1.75;
}

.faq__answer a {
    color: var(--color-purple-light);
    text-decoration: none;
    font-weight: 500;
}

.faq__answer a:hover {
    color: var(--color-white);
}

/* ========================================
   HELP CARDS (Ajuda)
   ======================================== */

.help-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-card-border);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.help-card:hover {
    transform: translateY(-4px);
}

.help-card--red:hover { border-color: rgba(239, 68, 68, 0.4); }
.help-card--pink:hover { border-color: rgba(236, 72, 153, 0.4); }
.help-card--orange:hover { border-color: rgba(249, 115, 22, 0.4); }
.help-card--blue:hover { border-color: rgba(59, 130, 246, 0.4); }
.help-card--teal:hover { border-color: rgba(45, 212, 191, 0.4); }
.help-card--purple:hover { border-color: rgba(124, 58, 237, 0.4); }

.help-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.help-card__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-200);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.help-card__number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.help-card__desc {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--color-gray-300);
    line-height: 1.6;
}

/* ========================================
   RESPONSIVE — New Sections
   ======================================== */

@media (max-width: 1024px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-page {
        padding: 72px 0;
    }

    .section-page__grid--2,
    .section-page__grid--3 {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .section-page__header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .section-page {
        padding: 56px 0;
    }

    .section-page__card {
        padding: 28px 24px;
    }

    .step-card {
        padding: 28px 24px;
    }

    .help-card {
        padding: 24px 20px;
    }
}

/* ========================================
   MOBILE FIXES — 390px and below
   Previne overflow horizontal e corrige
   todos os elementos que vazam no celular
   ======================================== */

@media (max-width: 420px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding: 0 16px;
    }

    .header__inner {
        padding: 0 12px;
    }

    .hero__title {
        font-size: 1.7rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .section-page__title {
        font-size: 1.6rem;
    }

    .section-page__subtitle {
        font-size: 0.9rem;
    }

    .section-page__card {
        padding: 24px 18px;
    }

    .step-card {
        padding: 24px 18px;
    }

    .step-card__text {
        font-size: 0.82rem;
    }

    .help-card__number {
        font-size: 1.6rem;
    }

    .faq__question {
        font-size: 0.88rem;
        padding: 16px 18px;
    }

    .faq__answer {
        padding: 0 18px 16px;
    }

    .faq__answer p {
        font-size: 0.82rem;
    }

    .a11y-toolbar {
        bottom: 12px;
        right: 12px;
    }

    .a11y-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .cookie-notice__text {
        font-size: 0.75rem;
    }

    .banner__text {
        font-size: 0.82rem;
    }

    .legal-footer__links {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .legal-footer__links a {
        font-size: 0.7rem;
    }

    .legal-footer__copy {
        font-size: 0.68rem;
    }
}
