/* =====================================================================
   W3 MASTER — Folha de estilos principal
   Tema 100% Dark • Laranja + Azul • Glassmorphism • Glow neon
   ===================================================================== */

/* ----------- 1. Variáveis (Custom Properties) ----------- */
:root {
    /* Cores base */
    --bg:            #0B0F19;
    --bg-alt:        #0E1322;
    --surface:       #131A2B;
    --surface-2:     #1A2235;
    --border:        rgba(255, 255, 255, 0.08);

    /* Marca */
    --orange:        #FF7A1A;
    --orange-soft:   #FFA052;
    --blue:          #2E6BFF;
    --blue-deep:     #1B3A8F;

    /* Texto */
    --text:          #EAF0FF;
    --text-muted:    #97A3BE;

    /* Gradientes & glow */
    --grad-brand:    linear-gradient(120deg, var(--orange), var(--orange-soft));
    --grad-mix:      linear-gradient(120deg, var(--orange), var(--blue));
    --glow-orange:   0 0 30px rgba(255, 122, 26, 0.45);
    --glow-blue:     0 0 30px rgba(46, 107, 255, 0.40);

    /* Layout */
    --radius:        16px;
    --radius-sm:     10px;
    --radius-lg:     24px;
    --container:     1180px;
    --header-h:      76px;

    --ease:          cubic-bezier(0.22, 1, 0.36, 1);
    font-family: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .nav__logo, .badge, .section__tag {
    font-family: 'Sora', system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul { list-style: none; }

/* ----------- 3. Utilitários ----------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }
.section--alt { background: var(--bg-alt); }

.text-gradient {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section__head { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.section__tag {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--orange-soft);
    margin-bottom: 1rem;
}
.section__title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.15; }
.section__subtitle { color: var(--text-muted); margin-top: 1rem; font-size: 1.05rem; }

.badge {
    display: inline-block;
    padding: .5rem 1rem;
    border-radius: 100px;
    background: rgba(255, 122, 26, 0.10);
    border: 1px solid rgba(255, 122, 26, 0.25);
    color: var(--orange-soft);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.glass {
    background: rgba(19, 26, 43, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
}

/* ----------- 4. Botões ----------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.4rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    white-space: nowrap;
}
.btn--primary { background: var(--grad-brand); color: #1a0e00; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--glow-orange); }
.btn--ghost { background: rgba(255,255,255,.04); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--orange); }
.btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--glow { box-shadow: var(--glow-orange); }
.btn--glow:hover { box-shadow: 0 0 40px rgba(255,122,26,.6); }

/* ----------- 5. Header / Nav ----------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 100;
    transition: background .3s var(--ease), border-color .3s var(--ease);
    border-bottom: 1px solid transparent;
}
.header.is-scrolled {
    background: rgba(11, 15, 25, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
}
.nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo img { height: 42px; width: auto; }
.nav__menu { display: flex; gap: 2rem; }
.nav__link { color: var(--text-muted); font-weight: 500; font-size: .95rem; transition: color .2s; position: relative; }
.nav__link:hover { color: var(--text); }
.nav__link::after {
    content: ''; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--grad-brand); transition: width .25s var(--ease);
}
.nav__link:hover::after { width: 100%; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s var(--ease); }

/* ----------- 6. Hero ----------- */
.hero { padding-top: calc(var(--header-h) + 4rem); overflow: hidden; }
.hero__container {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center;
}
.hero__content { text-align: left; }
.hero__title { font-size: clamp(2rem, 5vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.hero__subtitle { color: var(--text-muted); font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 1.5rem 0 0; max-width: 540px; }
.hero__actions { display: flex; gap: 1rem; justify-content: flex-start; flex-wrap: wrap; margin-top: 2.5rem; }

.hero__media { margin: 0; }
.hero__img {
    width: 100%; height: auto;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
    animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero__stats {
    display: flex; gap: 2.5rem; justify-content: flex-start; flex-wrap: wrap;
    margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid var(--border);
}
.hero__stats strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.6rem; color: var(--orange-soft); }
.hero__stats span { color: var(--text-muted); font-size: .9rem; }

/* Glows decorativos */
.hero__glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .35; z-index: 1; pointer-events: none; }
.hero__glow--orange { width: 460px; height: 460px; background: var(--orange); top: -120px; left: -80px; }
.hero__glow--blue { width: 520px; height: 520px; background: #8A93A6; bottom: -180px; right: -120px; opacity: .22; }

/* ----------- 7. Sobre ----------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3.5rem; align-items: center; }
.about__text p { color: var(--text-muted); margin-top: 1rem; }
.about__text .section__title { margin-top: 1rem; }
.about__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mini-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.mini-card:hover { transform: translateY(-4px); border-color: rgba(255,122,26,.4); }
.mini-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.mini-card p { color: var(--text-muted); font-size: .9rem; }

/* ----------- 8. Grids genéricos ----------- */
.grid { display: grid; gap: 1.5rem; }
.grid--services { grid-template-columns: repeat(4, 1fr); }
.grid--diff { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 2rem 1.6rem; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
    position: relative; overflow: hidden;
}
.card::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: var(--grad-mix); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.card:hover::before { opacity: 1; }
.card__icon {
    width: 56px; height: 56px; display: grid; place-items: center;
    border-radius: var(--radius-sm); background: rgba(255,122,26,.10); margin-bottom: 1.2rem;
    border: 1px solid rgba(255,122,26,.22);
}
.card__icon svg { width: 28px; height: 28px; color: var(--orange); display: block; }
.card:hover .card__icon { background: rgba(255,122,26,.16); }
.card:hover .card__icon svg { color: var(--orange-soft); }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--text-muted); font-size: .95rem; }

/* ----------- 9. Diferenciais ----------- */
.diff {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.8rem 1.5rem; transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.diff:hover { transform: translateY(-4px); border-color: rgba(46,107,255,.4); }
.diff__num { font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800; color: transparent; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; }
.diff h3 { margin: .6rem 0 .4rem; font-size: 1.1rem; }
.diff p { color: var(--text-muted); font-size: .92rem; }

/* ----------- 10. Contato / Form ----------- */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: start; }
.contact__info p { color: var(--text-muted); margin-top: 1rem; }
.contact__info .section__title { margin-top: 1rem; }
.contact__wa { margin-top: 2rem; }
.contact__briefing {
    margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid rgba(255,122,26,.25);
}
.contact__briefing h3 { font-size: 1.1rem; }
.contact__briefing p { margin: .4rem 0 1.1rem; font-size: .92rem; }

.contact__form { border-radius: var(--radius-lg); padding: 2rem; display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.field input, .field select, .field textarea {
    width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    font-family: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5e6a85; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,26,.15);
}
.field select { appearance: none; cursor: pointer; }
.field textarea { resize: vertical; }

.form__feedback { font-size: .9rem; min-height: 1.2em; text-align: center; }
.form__feedback.is-error { color: #ff6b6b; }
.form__feedback.is-success { color: #4ade80; }

/* ----------- 11. Footer ----------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 3.5rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--text-muted); max-width: 340px; font-size: .92rem; }
.footer__nav { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.footer__nav a { color: var(--text-muted); font-size: .92rem; transition: color .2s; }
.footer__nav a:hover { color: var(--orange-soft); }
.footer__bottom {
    border-top: 1px solid var(--border); padding: 1.4rem 1.5rem; max-width: var(--container); margin: 0 auto;
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    color: var(--text-muted); font-size: .85rem;
}
.footer__sign strong { color: var(--orange-soft); }

/* ----------- 12. Botão flutuante WhatsApp ----------- */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6); }
.whatsapp-float img { position: relative; z-index: 2; width: 100%; height: 100%; border-radius: 50%; display: block; }
.whatsapp-float__pulse {
    position: absolute; inset: 0; border-radius: 50%; background: #25D366;
    z-index: 1; animation: wa-pulse 2.2s infinite;
}
@keyframes wa-pulse {
    0%   { transform: scale(1);   opacity: .6; }
    70%  { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ----------- 13. Animações de scroll (reveal) ----------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ----------- 14. Responsivo ----------- */
@media (max-width: 980px) {
    .grid--services, .grid--diff { grid-template-columns: 1fr 1fr; }
    .about, .contact { grid-template-columns: 1fr; }
}

/* Hero só empilha em telas estreitas (tablet/celular) */
@media (max-width: 760px) {
    .hero__container { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero__content { text-align: center; order: 1; }
    .hero__media { order: 2; max-width: 440px; margin: 0 auto; }
    .hero__subtitle { margin-left: auto; margin-right: auto; }
    .hero__actions, .hero__stats { justify-content: center; }
}

@media (max-width: 760px) {
    .nav__cta { display: none; }
    .nav__toggle { display: flex; }
    .nav__menu {
        position: fixed; inset: var(--header-h) 0 auto 0;
        flex-direction: column; gap: 0;
        background: rgba(11,15,25,.96); backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.5rem;
        transform: translateY(-120%); transition: transform .35s var(--ease);
    }
    .nav__menu.is-open { transform: translateY(0); }
    .nav__menu li { padding: .8rem 0; border-bottom: 1px solid var(--border); }
    .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); }

    .section { padding: 4.5rem 0; }
    .hero__stats { gap: 1.5rem; }
    .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .grid--services, .grid--diff, .about__cards { grid-template-columns: 1fr; }
    .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* Acessibilidade: respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
