/* ============================================================
   Nandex Informática — Site institucional
   ============================================================ */
:root {
    --navy: #16222e;
    --navy-2: #1e3040;
    --teal: #0e8a96;
    --teal-dark: #0b6b75;
    --red: #d7263d;
    --wa: #25d366;
    --wa-dark: #1eb855;
    --bg: #ffffff;
    --bg-alt: #f4f7f9;
    --text: #26333f;
    --text-light: #5c6b78;
    --border: #e2e8ee;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(22, 34, 46, .08);
    --shadow-hover: 0 14px 40px rgba(22, 34, 46, .14);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.2; color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.4px; }
h3 { font-size: 1.15rem; font-weight: 700; }

.container { width: min(1140px, 92%); margin: 0 auto; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--navy); color: #fff; padding: 10px 18px; z-index: 999;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px; border-radius: 10px;
    font-weight: 700; font-size: .95rem; text-decoration: none;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(14,138,150,.35); }
.btn--primary:hover { background: var(--teal-dark); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover { background: var(--wa-dark); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ---------- Header ---------- */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.header--scrolled { border-color: var(--border); box-shadow: 0 4px 20px rgba(22,34,46,.08); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.header__logo img { display: block; height: 42px; width: auto; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; list-style: none; }
.nav__link {
    color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem;
    position: relative; padding: 6px 0;
}
.nav__link::after {
    content: ''; position: absolute; left: 0; bottom: 0;
    width: 0; height: 2px; background: var(--teal); transition: width .2s ease;
}
.nav__link:hover::after, .nav__link[aria-current]::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: 10px; }

.nav__toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 88vh; display: flex; align-items: center;
    background: linear-gradient(100deg, rgba(22,34,46,.93) 35%, rgba(22,34,46,.55) 75%, rgba(22,34,46,.35)),
                url('../img/hero.jpg') center/cover no-repeat;
    color: #fff;
}
.hero__inner { padding: 90px 0; }
.hero__content { max-width: 640px; }
.hero__badge {
    display: inline-block; background: rgba(14,138,150,.25);
    border: 1px solid rgba(94,200,208,.5); color: #aee6ea;
    font-size: .82rem; font-weight: 600; letter-spacing: .4px;
    padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: #fff; }
.hero__subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d3dde5; margin: 18px 0 32px; max-width: 540px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn--outline { color: #fff; border-color: rgba(255,255,255,.65); }
.hero .btn--outline:hover { background: #fff; color: var(--navy); }

.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 26px; list-style: none; margin-top: 44px; }
.hero__trust li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 500; color: #cfe0e8; }
.hero__trust .icon { width: 17px; height: 17px; fill: #5ec8d0; }

/* ---------- Seções ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); }

.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head p { color: var(--text-light); margin-top: 14px; font-size: 1.05rem; }
.section__head--light h2, .section--dark h2 { color: #fff; }
.section__head--light p { color: #b9c6d1; }
.section__tag {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--teal); margin-bottom: 12px;
}
.section--dark .section__tag { color: #5ec8d0; }
.section__cta { margin-top: 40px; text-align: center; }

/* ---------- Quem somos ---------- */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; }
.about__text p { margin-bottom: 18px; color: var(--text-light); font-size: 1.04rem; }
.about__text strong { color: var(--navy); }
.about__card {
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px 34px; text-align: center; box-shadow: var(--shadow);
}
.about__quote { font-size: 1.35rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.about__sub { color: var(--teal); font-weight: 600; margin: 10px 0 26px; }
.about__card img { margin: 0 auto; }

/* ---------- Números ---------- */
.stats { background: var(--navy); padding: 54px 0; color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat__num { display: block; font-size: 1.8rem; font-weight: 800; color: #5ec8d0; letter-spacing: -.5px; }
.stat__label { display: block; margin-top: 6px; font-size: .9rem; color: #b9c6d1; }

/* ---------- Cards / Serviços ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards-grid--6 { grid-template-columns: repeat(3, 1fr); }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; display: flex; flex-direction: column; gap: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.card__icon { width: 42px; height: 42px; fill: var(--teal); }
.card p { color: var(--text-light); font-size: .93rem; flex-grow: 1; }
.card__cta {
    font-weight: 700; font-size: .88rem; color: var(--teal); text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
}
.card__cta::after { content: '→'; transition: transform .2s ease; }
.card__cta:hover::after { transform: translateX(4px); }
.card--flat { border-color: transparent; background: var(--bg-alt); box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* ---------- Produtos ---------- */
.products-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
    list-style: none;
}
.products-grid li {
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px;
    padding: 20px 22px; font-weight: 600; color: var(--navy); font-size: .98rem;
    display: flex; align-items: center; gap: 12px;
    transition: border-color .2s ease, transform .2s ease;
}
.products-grid li::before {
    content: ''; width: 9px; height: 9px; border-radius: 50%;
    background: var(--teal); flex-shrink: 0;
}
.products-grid li:hover { border-color: var(--teal); transform: translateY(-3px); }

/* ---------- Split (empresas / casa) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.split__col { border-radius: var(--radius); padding: 46px 40px; }
.split__col--dark { background: var(--navy); color: #d5dee6; }
.split__col--dark h2 { color: #fff; }
.split__col--dark .section__tag { color: #5ec8d0; }
.split__col--light { background: #fff; border: 1px solid var(--border); }
.split__col p { margin: 14px 0 20px; }
.split__col--dark p { color: #b9c6d1; }
.split__col--light p { color: var(--text-light); }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 30px; }
.check-list li { font-size: .93rem; font-weight: 500; display: flex; gap: 8px; align-items: flex-start; }
.check-list li::before { content: '✓'; color: var(--teal); font-weight: 800; }
.split__col--dark .check-list li::before { color: #5ec8d0; }

/* ---------- Marcas ---------- */
.brands img {
    display: block; margin: 0 auto 26px; border-radius: 10px;
    filter: grayscale(35%); opacity: .9; max-width: 100%;
}
.brands__list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none;
}
.brands__list li {
    border: 1px solid var(--border); background: #fff; border-radius: 999px;
    padding: 8px 20px; font-weight: 700; font-size: .9rem; color: var(--navy);
}

/* ---------- Assistência ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; }
.chips li {
    border: 1px solid rgba(94,200,208,.45); color: #d5e6ea;
    background: rgba(14,138,150,.16); border-radius: 999px;
    padding: 10px 22px; font-weight: 600; font-size: .92rem;
}

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact__info { display: flex; flex-direction: column; gap: 14px; }
.contact__item {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px;
    padding: 16px 20px; text-decoration: none; color: var(--text);
    transition: border-color .2s ease, transform .2s ease;
}
a.contact__item:hover { border-color: var(--teal); transform: translateX(4px); }
.contact__item .icon { fill: var(--teal); margin-top: 3px; }
.contact__item strong { display: block; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .6px; }
.contact__map iframe { width: 100%; height: 230px; border: 0; border-radius: 12px; display: block; }
.contact__map { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.contact__form {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 34px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; border: 0; }
.field label, .field legend { font-size: .85rem; font-weight: 600; color: var(--navy); padding: 0; }
.field input, .field select, .field textarea {
    font: inherit; padding: 12px 14px; border: 1.5px solid var(--border);
    border-radius: 9px; background: #fbfcfd; color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,138,150,.15); background: #fff;
}
.field .radio { display: inline-flex; align-items: center; gap: 7px; margin-right: 18px; font-weight: 500; cursor: pointer; }
.form__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form__error { color: var(--red); font-size: .88rem; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: #b9c6d1; padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer__logo { margin-bottom: 16px; background: #fff; border-radius: 8px; padding: 6px 10px; }
.footer__col h3 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer__col a { color: #b9c6d1; text-decoration: none; font-size: .9rem; transition: color .15s; }
.footer__col a:hover { color: #5ec8d0; }
.footer__col p { font-size: .9rem; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
    font-size: .82rem; text-align: center;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 90;
    width: 58px; height: 58px; border-radius: 50%;
    background: var(--wa); display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(37,211,102,.55); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
    .cards-grid, .cards-grid--6 { grid-template-columns: repeat(2, 1fr); }
    .about { grid-template-columns: 1fr; }
    .about__card { max-width: 460px; }
    .split { grid-template-columns: 1fr; }
    .contact { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
    .header__inner { height: 64px; }
    .header__logo img { height: 34px; }
    .header__actions .btn--whatsapp span { display: none; }
    .header__actions .btn--whatsapp { padding: 10px 12px; }
    .nav__toggle { display: flex; }
    .nav {
        position: fixed; inset: 64px 0 auto 0;
        background: #fff; border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 30px rgba(22,34,46,.12);
        padding: 12px 4%; display: none;
    }
    .nav.is-open { display: block; }
    .nav__list { flex-direction: column; gap: 0; }
    .nav__link { display: block; padding: 14px 8px; border-bottom: 1px solid var(--bg-alt); font-size: 1rem; }

    .hero { min-height: auto; }
    .hero__inner { padding: 64px 0; }
    .section { padding: 64px 0; }
    .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .cards-grid, .cards-grid--6 { grid-template-columns: 1fr; }
    .check-list { grid-template-columns: 1fr; }
    .contact__form { padding: 24px 20px; }
    .footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .form__actions .btn { width: 100%; }
}

@media (max-width: 420px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero__ctas .btn { width: 100%; }
}
