/* =========================================================
   PADLOG EXPRESS — site novo, sem frameworks.
   HTML + CSS + um pouco de JS puro. Só isso.
   ========================================================= */

@font-face {
    font-family: 'AvertaStd';
    src: url('../font/avertastd-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AvertaStd';
    src: url('../font/avertastd-semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AvertaStd';
    src: url('../font/avertastd-bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --purple: #5F0082;
    --purple-dark: #33014A;
    --purple-darker: #1C0129;
    --purple-light: #9B3FD4;
    --purple-pale: #F6EEFB;
    --ink: #1A0A22;
    --ink-soft: #5B4B63;
    --white: #FFFFFF;
    --line: #EAE1F0;

    --display: 'Anton', 'AvertaStd', sans-serif;
    --body: 'Poppins', 'AvertaStd', sans-serif;

    --container: 1120px;
    --radius: 16px;
    --shadow: 0 20px 40px -20px rgba(51, 1, 74, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    font-family: var(--body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

h1, h2, h3 {
    margin: 0;
    font-family: var(--display);
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 0.2px;
}

p {
    margin: 0;
    color: var(--ink-soft);
}

.wrap {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.wrap-narrow {
    max-width: 760px;
}

.eyebrow {
    display: inline-block;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 14px;
}

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

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    max-width: 720px;
    margin-bottom: 48px;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-light));
    color: var(--white);
    box-shadow: 0 10px 24px -10px rgba(95, 0, 130, 0.55);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -10px rgba(95, 0, 130, 0.6);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--line);
}

.btn-ghost:hover {
    border-color: var(--purple);
    color: var(--purple);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--display);
    text-transform: uppercase;
    font-size: 1.1rem;
    color: var(--ink);
    margin-right: auto;
}

.brand-mark {
    height: 15px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 500;
    font-size: 0.95rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink-soft);
    transition: color 0.15s ease;
}

.main-nav a:hover {
    color: var(--purple);
}

.main-nav .nav-cta {
    color: var(--purple);
    font-weight: 600;
}

.header-whats {
    padding: 11px 20px;
    font-size: 0.88rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 96px 0 72px;
    overflow: hidden;
    isolation: isolate;
}

.hero-glow {
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 130%;
    background:
        radial-gradient(45% 55% at 30% 20%, rgba(95, 0, 130, 0.16), transparent 70%),
        radial-gradient(35% 45% at 85% 40%, rgba(155, 63, 212, 0.16), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-inner {
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.4rem);
    max-width: 780px;
    margin-bottom: 24px;
}

.hero-lead {
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 56px;
}

.trust-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding: 28px 0 0;
    margin: 0;
    border-top: 1px solid var(--line);
}

.trust-row li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
}

.trust-row svg {
    width: 22px;
    height: 22px;
    color: var(--purple);
    flex-shrink: 0;
}

/* ---------- Seções genéricas ---------- */
.section {
    padding: 88px 0;
}

.section-tint {
    background: var(--purple-pale);
}

.section-dark {
    background: linear-gradient(160deg, var(--purple-darker), var(--purple-dark));
    color: var(--white);
}

.section-dark h2,
.section-dark p {
    color: var(--white);
}

.section-dark .contact-value {
    color: var(--white);
}

/* ---------- Serviços ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.service-body {
    padding: 20px 22px 26px;
}

.service-body h3 {
    font-size: 1.05rem;
    text-transform: none;
    font-family: var(--body);
    font-weight: 700;
    margin-bottom: 8px;
}

.service-body p {
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ---------- Diferenciais ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.feature-number {
    display: block;
    font-family: var(--display);
    font-size: 1.4rem;
    color: var(--purple-light);
    margin-bottom: 10px;
}

.feature h3 {
    font-size: 1.05rem;
    text-transform: none;
    font-family: var(--body);
    font-weight: 700;
    margin-bottom: 8px;
}

.feature p {
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ---------- Timeline (Sobre) ---------- */
.timeline {
    position: relative;
    display: grid;
    gap: 36px;
    padding-left: 28px;
    border-left: 2px solid var(--line);
}

.timeline-dot {
    position: absolute;
    left: -35px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--purple);
    margin-top: 6px;
}

.timeline-item h3 {
    font-size: 1rem;
    text-transform: none;
    font-family: var(--body);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--purple);
}

.timeline-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 620px;
}

/* ---------- Clientes ---------- */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: center;
}

.logos-grid img {
    width: 100%;
    height: 64px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.logos-grid img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ---------- FAQ ---------- */
.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 22px;
    background: var(--white);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-family: var(--display);
    font-size: 1.3rem;
    color: var(--purple);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- Contato ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.contact-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--purple-light);
    font-weight: 600;
}

.contact-value {
    font-weight: 600;
    font-size: 1.05rem;
}

.map-frame {
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
}

.map-frame iframe {
    width: 100%;
    height: clamp(220px, 40vw, 340px);
}

/* ---------- Footer ---------- */
.site-footer {
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.brand-footer {
    margin-right: 0;
}

.social-list {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0 0 0 auto;
    padding: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-list a {
    text-decoration: none;
    color: var(--ink-soft);
}

.social-list a:hover {
    color: var(--purple);
}

.footer-copy {
    width: 100%;
    font-size: 0.82rem;
    color: var(--ink-soft);
    margin-top: 8px;
}

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.35);
    z-index: 60;
    transition: transform 0.2s ease;
}

.whats-float:hover {
    transform: scale(1.08);
}

.whats-float svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Foco de teclado ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--purple);
    outline-offset: 3px;
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 900px) {
    .main-nav {
        position: fixed;
        inset: 72px 0 0 0;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 16px 24px 32px;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
        border-bottom: 1px solid var(--line);
    }

    .main-nav a {
        width: 100%;
        padding: 14px 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--line);
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .header-whats {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

@media (max-width: 640px) {
    .hero {
        padding: 64px 0 48px;
    }

    .section {
        padding: 64px 0;
    }

    .hero-actions .btn,
    .contact-grid .contact-card {
        width: 100%;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    section h2 {
        margin-bottom: 32px;
    }
}

@media (max-width: 380px) {
    .brand span {
        font-size: 0.95rem;
    }
}
