/* ===================================================
   PAGLOG - ONE PAGE SITE
   Gestão de Recebíveis para Entregadores
   =================================================== */

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

:root {
    /* Brand */
    --gold: #D4A024;
    --gold-dark: #B8891E;
    --gold-light: #F5DFA0;

    /* Neutral */
    --dark: #1B2A4A;
    --dark-blue: #162038;
    --dark-card: #1E2D4D;
    --text: #374151;
    --text-light: #6B7280;
    --bg: #FDF8F0;
    --bg-alt: #F5EDE0;
    --white: #FFFFFF;

    /* Sizes */
    --container: 1200px;
    --header-h: 72px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;

    /* Transitions */
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

/* ---------- UTILITIES ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-header__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header__subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn--primary:hover {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 160, 36, 0.35);
}

.btn--outline {
    background: transparent;
    color: var(--dark);
    border-color: #D1D5DB;
}

.btn--outline:hover {
    border-color: var(--dark);
    background-color: var(--white);
    transform: translateY(-2px);
}

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

/* ===================================================
   HEADER
   =================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 1000;
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
}

.header__nav-list {
    display: flex;
    gap: 32px;
}

.header__nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.header__nav-link:hover {
    color: var(--dark);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header__btn-login {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 16px;
}

.header__btn-login:hover {
    color: var(--dark);
}

.header__btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background-color: var(--gold);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.header__btn-cta:hover {
    background-color: var(--gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 160, 36, 0.3);
}

/* Hamburger */
.header__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
    padding-top: calc(var(--header-h) + 48px);
    padding-bottom: 64px;
    overflow: hidden;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gold);
}

.hero__badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--gold);
}

.hero__title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--dark);
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero__title-highlight {
    color: var(--gold);
    display: block;
}

.hero__description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__image img {
    border-radius: var(--radius-lg);
    max-height: 520px;
    object-fit: cover;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ===================================================
   COMO FUNCIONA (STEPS)
   =================================================== */
.how-it-works {
    padding: 80px 0;
    background-color: var(--bg-alt);
}

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

.step-card {
    background: rgba(255,255,255,0.6);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.step-card:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.step-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.4rem;
    color: var(--gold-dark);
}

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

.step-card__text {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================================
   SERVIÇOS
   =================================================== */
.services {
    padding: 80px 0;
}

.services__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 32px;
}

.services__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.services__subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 500px;
    line-height: 1.7;
}

.services__header-line {
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
    margin-top: 12px;
    flex-shrink: 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px 28px;
    border: 1px solid #E5E7EB;
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: transparent;
}

.service-card__icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.service-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-card__text {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.65;
}

/* ===================================================
   SEGURANÇA
   =================================================== */
.security {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-blue), var(--dark));
    color: #fff;
}

.security__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.security__title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.security__title-highlight {
    color: var(--gold);
}

.security__text {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 36px;
}

.security__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.security__feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.security__feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(212, 160, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
}

.security__feature strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
}

.security__feature span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* Security Card */
.security__card {
    background: var(--dark-card);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid rgba(255,255,255,0.08);
}

.security__card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.security__card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(212, 160, 36, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.2rem;
}

.security__card-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.security__card-subtitle {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 500;
}

.security__card-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    margin-bottom: 24px;
}

.security__card-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.25);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.security__card-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #34D399;
    font-weight: 600;
}

.security__card-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34D399;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===================================================
   LEGAL (RELAÇÃO CONTRATUAL)
   =================================================== */
.legal {
    padding: 80px 0;
}

.legal__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.legal__card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.legal__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 28px;
}

.legal__item {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.legal__item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.legal__item-icon--info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.legal__item-icon--tip {
    background: rgba(212, 160, 36, 0.12);
    color: var(--gold);
}

.legal__item-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

/* Alert Card */
.legal__alert {
    background: #FFFBEB;
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid #FDE68A;
}

.legal__alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--gold-dark);
}

.legal__alert-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.legal__alert-text {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.7;
}

/* ===================================================
   CTA / FORMULÁRIO
   =================================================== */
.cta-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.cta-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.cta-section__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.cta-section__text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

.cta-section__form-wrapper {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.cta-form__group {
    margin-bottom: 16px;
}

.cta-form__group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D1D5DB;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: var(--bg);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.cta-form__group input::placeholder {
    color: #9CA3AF;
}

.cta-form__group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 160, 36, 0.15);
}

.cta-form button {
    margin-top: 8px;
    border: none;
    font-family: inherit;
}

/* Form feedback */
.form-success {
    text-align: center;
    padding: 24px;
}

.form-success i {
    font-size: 3rem;
    color: #34D399;
    margin-bottom: 16px;
}

.form-success h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-light);
}

.form-error {
    background: #FEE2E2;
    color: #DC2626;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    background: var(--white);
    border-top: 1px solid #E5E7EB;
    padding-top: 64px;
}

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer__top--inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    grid-template-columns: none;
}

.footer__divider {
    width: 1px;
    height: 40px;
    background: #D1D5DB;
    flex-shrink: 0;
}

.footer__top--inline .footer__brand-text {
    margin-bottom: 0;
    max-width: 420px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.footer__top--inline .footer__logo {
    margin-bottom: 0;
    flex-shrink: 0;
}

.footer__logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
}

.footer__brand-text {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer__social-link:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.footer__links-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.footer__links ul li {
    margin-bottom: 12px;
}

.footer__links ul li a {
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer__links ul li a:hover {
    color: var(--gold);
}

.footer__contact ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer__contact ul li i {
    color: var(--gold);
    margin-top: 3px;
    width: 18px;
    text-align: center;
}

.footer__contact ul li a {
    color: var(--text-light);
}

.footer__contact ul li a:hover {
    color: var(--gold);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid #E5E7EB;
    font-size: 0.82rem;
    color: var(--text-light);
}

.footer__heart {
    color: var(--gold);
}

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

/* Tablet */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.5rem;
    }

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

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

    .security__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .legal__card-inner {
        grid-template-columns: 1fr;
    }

    .cta-section__inner {
        grid-template-columns: 1fr;
    }

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .header__nav,
    .header__actions {
        display: none;
    }

    .header__hamburger {
        display: flex;
    }

    /* Mobile Menu */
    .header__nav.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-h);
        left: 0;
        width: 100%;
        background: var(--bg);
        padding: 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .header__nav.is-open .header__nav-list {
        flex-direction: column;
        gap: 0;
    }

    .header__nav.is-open .header__nav-link {
        display: block;
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid #E5E7EB;
    }

    .header__actions.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: auto;
        left: 0;
        width: 100%;
        background: var(--bg);
        padding: 0 24px 24px;
        z-index: 999;
        gap: 12px;
    }

    .header__actions.is-open .header__btn-cta {
        width: 100%;
        justify-content: center;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image img {
        max-height: 380px;
    }

    .section-header__title {
        font-size: 2rem;
    }

    .steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .services__header {
        flex-direction: column;
    }

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

    .services__title {
        font-size: 1.8rem;
    }

    .security__title {
        font-size: 2rem;
    }

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

    .legal__card {
        padding: 28px 20px;
    }

    .legal__title {
        font-size: 1.6rem;
    }

    .cta-section__title {
        font-size: 1.8rem;
    }

    .footer__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Small mobile */
@media (max-width: 480px) {
    .hero__title {
        font-size: 1.8rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .security__card {
        padding: 24px;
    }
}
