/* ==========================================================================
   Gredom Sistemas — design system
   Paleta derivada do logo: grafite + gradiente ciano -> azul
   ========================================================================== */

:root {
    /* Marca */
    --ink: #16181d;
    --ink-2: #2b2f39;
    --cyan: #00d1ef;
    --blue: #1b7cf5;
    --blue-deep: #0f5ed6;
    --grad: linear-gradient(115deg, var(--cyan) 0%, var(--blue) 100%);

    /* Superfícies */
    --bg: #ffffff;
    --bg-alt: #f6f8fb;
    --bg-ink: #101319;
    --line: #e6eaf1;
    --line-strong: #d6dde9;

    /* Texto */
    --text: #16181d;
    --text-muted: #5b6472;
    --text-faint: #8b95a5;
    --text-on-ink: #f3f6fa;
    --text-on-ink-muted: #a4aebd;

    /* Elevação */
    --shadow-sm: 0 1px 2px rgba(16, 19, 25, 0.04), 0 2px 8px rgba(16, 19, 25, 0.04);
    --shadow-md: 0 2px 4px rgba(16, 19, 25, 0.04), 0 12px 32px rgba(16, 19, 25, 0.08);
    --shadow-lg: 0 4px 8px rgba(16, 19, 25, 0.04), 0 24px 64px rgba(16, 19, 25, 0.12);
    --shadow-brand: 0 8px 24px rgba(27, 124, 245, 0.28);

    /* Geometria */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;

    --wrap: 1180px;
    --nav-h: 84px;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--ink);
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

::selection {
    background: rgba(27, 124, 245, 0.18);
}

/* --------------------------------------------------------------------------
   Primitivos de layout
   -------------------------------------------------------------------------- */

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

.section {
    padding: 112px 0;
    position: relative;
}

.section--alt {
    background: var(--bg-alt);
    border-block: 1px solid var(--line);
}

.section--ink {
    background: var(--bg-ink);
    color: var(--text-on-ink);
}

.section-head {
    max-width: 680px;
    margin-bottom: 56px;
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-deep);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad);
}

.section-head--center .eyebrow::before {
    display: none;
}

.section-title {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    margin-bottom: 20px;
}

.section-lede {
    font-size: 1.08rem;
    color: var(--text-muted);
}

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

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: var(--r-pill);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
        border-color 0.18s ease, color 0.18s ease;
}

.btn svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow-brand);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(27, 124, 245, 0.38);
}

.btn--ghost {
    border: 1px solid var(--line-strong);
    background: #fff;
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--blue);
    color: var(--blue-deep);
    transform: translateY(-2px);
}

.btn--on-ink {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.btn--on-ink:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--blue-deep);
}

.link-arrow svg {
    width: 15px;
    height: 15px;
    transition: transform 0.18s ease;
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.nav.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: 0 1px 24px rgba(16, 19, 25, 0.06);
}

.nav__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.nav__brand img {
    height: 48px;
    width: auto;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav__link {
    padding: 8px 14px;
    border-radius: var(--r-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color 0.16s ease, background 0.16s ease;
}

.nav__link:hover {
    color: var(--ink);
    background: rgba(16, 19, 25, 0.045);
}

.nav__cta {
    margin-left: 10px;
    padding: 11px 22px;
    font-size: 0.9rem;
}

.nav__burger {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
}

.nav__burger span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.22s ease, background 0.22s ease;
}

.nav__burger span::before,
.nav__burger span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.22s ease;
}

.nav__burger span::before {
    top: -6px;
}

.nav__burger span::after {
    top: 6px;
}

.nav__burger[aria-expanded="true"] span {
    background: transparent;
}

.nav__burger[aria-expanded="true"] span::before {
    transform: translateY(6px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: calc(var(--nav-h) + 96px) 0 88px;
    overflow: hidden;
}

/* Halo suave nas cores da marca, bem diluído */
.hero::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(
        circle,
        rgba(0, 209, 239, 0.14) 0%,
        rgba(27, 124, 245, 0.1) 38%,
        transparent 68%
    );
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 60% at 60% 30%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 30%, #000 0%, transparent 75%);
    opacity: 0.6;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 7px 16px 7px 8px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
}

.hero__badge b {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--grad);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero__title {
    max-width: 15ch;
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.hero__lede {
    max-width: 56ch;
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 72px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.stat {
    background: #fff;
    padding: 26px 24px;
}

.stat__num {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 6px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat__label {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Marquee de clientes
   -------------------------------------------------------------------------- */

/* Fundo branco de propósito: vários logos de cliente têm fundo branco opaco
   e apareceriam como retângulos sobre qualquer cor. */
.clients {
    padding: 56px 0;
    border-block: 1px solid var(--line);
    background: #fff;
    overflow: hidden;
}

.clients__label {
    text-align: center;
    margin-bottom: 36px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.marquee {
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 68px;
    animation: marquee 64s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__item {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
}

.marquee__item img {
    max-height: 100%;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.55;
    transition: filter 0.24s ease, opacity 0.24s ease;
}

.marquee__item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        /* -50% porque a faixa contém a lista duplicada */
        transform: translateX(-50%);
    }
}

/* --------------------------------------------------------------------------
   Produtos próprios
   -------------------------------------------------------------------------- */

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

.product {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 32px 32px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

/* Fio de gradiente no topo, revelado no hover */
.product::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.product:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lg);
}

.product:hover::before {
    transform: scaleX(1);
}

/* Selo de status (ex.: "Em breve") — só aparece em produto que ainda não está no ar */
.product__badge {
    position: absolute;
    top: 30px;
    right: 28px;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(27, 124, 245, 0.3);
    background: rgba(27, 124, 245, 0.07);
    color: var(--blue-deep);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.product__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    border-radius: var(--r-md);
    background: var(--grad);
    box-shadow: var(--shadow-brand);
}

.product__icon svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

.product__name {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.product__kicker {
    display: block;
    margin-bottom: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue-deep);
}

.product__desc {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-bottom: 24px;
}

.product__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.product__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 20px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--blue-deep);
}

.product__link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.product:hover .product__link svg {
    transform: translate(2px, -2px);
}

.tag {
    padding: 5px 12px;
    border-radius: var(--r-pill);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Capacidades (o que construímos)
   -------------------------------------------------------------------------- */

.caps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.cap {
    display: flex;
    gap: 18px;
    padding: 32px 28px;
    background: var(--bg);
    transition: background 0.2s ease;
}

.cap:hover {
    background: var(--bg-alt);
}

.cap__icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    border: 1px solid var(--line);
    background: var(--bg-alt);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cap__icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--blue-deep);
}

.cap:hover .cap__icon {
    background: #fff;
    border-color: rgba(27, 124, 245, 0.4);
}

.cap__title {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.cap__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Serviços (bloco escuro)
   -------------------------------------------------------------------------- */

.section--ink .section-title {
    color: #fff;
}

.section--ink .section-lede {
    color: var(--text-on-ink-muted);
}

.section--ink .eyebrow {
    color: var(--cyan);
}

.section--ink::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 209, 239, 0.5), transparent);
}

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

.service {
    padding: 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.028);
    transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.service:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(0, 209, 239, 0.32);
    transform: translateY(-4px);
}

.service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(0, 209, 239, 0.28);
    background: rgba(0, 209, 239, 0.09);
}

.service__icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--cyan);
}

.service__title {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.service__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-on-ink-muted);
}

/* --------------------------------------------------------------------------
   Sobre
   -------------------------------------------------------------------------- */

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

.about__media {
    position: relative;
}

/* height:auto e obrigatorio: sem ele, o atributo height do <img> vira dica de
   estilo e a foto estica, porque o CSS so define a largura. */
.about__media img {
    width: 100%;
    height: auto;
    border-radius: var(--r-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.about__media::after {
    content: "";
    position: absolute;
    inset: auto -18px -18px auto;
    width: 160px;
    height: 160px;
    border-radius: var(--r-lg);
    background: var(--grad);
    opacity: 0.12;
    filter: blur(28px);
    z-index: -1;
}

.about__list {
    display: grid;
    gap: 20px;
    margin: 32px 0 36px;
}

.about__item {
    display: flex;
    gap: 14px;
}

.about__check {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--grad);
}

.about__check svg {
    width: 13px;
    height: 13px;
    stroke: #fff;
    stroke-width: 3;
}

.about__item b {
    display: block;
    font-weight: 600;
    color: var(--ink);
}

.about__item span {
    font-size: 0.94rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Contato
   -------------------------------------------------------------------------- */

.contact {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 64px;
    align-items: start;
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--ink-2);
}

.field input,
.field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
    resize: vertical;
    min-height: 132px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--text-faint);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(27, 124, 245, 0.12);
}

.field input.is-invalid {
    border-color: #e5484d;
    box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.1);
}

.form__submit {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--line-strong);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner.is-on {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form__response {
    grid-column: 1 / -1;
}

.form__response .alert {
    padding: 13px 16px;
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.form__response .alert-success {
    background: #e8f8ef;
    border-color: #b7e6cc;
    color: #14683c;
}

.form__response .alert-danger {
    background: #fdecec;
    border-color: #f6c9cb;
    color: #a5252a;
}

.contact__card {
    padding: 34px 32px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--bg-alt);
}

.contact__card h3 {
    font-size: 1.15rem;
    margin-bottom: 26px;
}

.contact__row {
    display: flex;
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.contact__row:last-of-type {
    padding-bottom: 0;
    margin-bottom: 26px;
    border-bottom: 0;
}

.contact__row-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--grad);
}

.contact__row-icon svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}

.contact__row-label {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 4px;
}

.contact__row-value {
    font-size: 0.94rem;
    color: var(--ink-2);
    line-height: 1.55;
}

.contact__row-value a:hover {
    color: var(--blue-deep);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
    padding: 72px 0 32px;
    background: var(--bg-ink);
    color: var(--text-on-ink-muted);
}

.footer__top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__brand img {
    height: 32px;
    width: auto;
    margin-bottom: 20px;
}

.footer__brand p {
    max-width: 42ch;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer__col h4 {
    margin-bottom: 18px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
}

.footer__col li {
    margin-bottom: 11px;
}

.footer__col a {
    font-size: 0.92rem;
    transition: color 0.16s ease;
}

.footer__col a:hover {
    color: var(--cyan);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    font-size: 0.85rem;
}

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

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer__social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer__social a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Flutuantes
   -------------------------------------------------------------------------- */

.whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease;
}

.whatsapp:hover {
    transform: scale(1.07);
}

.whatsapp svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.to-top {
    position: fixed;
    right: 26px;
    bottom: 92px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
    box-shadow: var(--shadow-md);
}

.to-top.is-on {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
}

/* --------------------------------------------------------------------------
   Reveal ao rolar
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .section {
        padding: 80px 0;
    }

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

    /* Com 9 cards em 2 colunas sobra uma celula vazia, que exporia o fundo
       do grid (a divisoria) como um bloco cinza. O ultimo ocupa a linha toda. */
    .caps .cap:last-child {
        grid-column: 1 / -1;
    }

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

    .about,
    .contact {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .about__media {
        order: -1;
    }

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

    .footer__brand {
        grid-column: 1 / -1;
    }

    /* Menu mobile */
    .nav__burger {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 16px 24px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    }

    .nav__menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav__link {
        padding: 13px 12px;
        font-size: 1rem;
    }

    .nav__cta {
        margin: 10px 0 0;
        padding: 14px 22px;
    }
}

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

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

    .hero {
        padding: calc(var(--nav-h) + 56px) 0 64px;
    }

    .hero__actions {
        margin-bottom: 48px;
    }

    .hero__actions .btn {
        flex: 1 1 100%;
    }

    .hero__stats,
    .products,
    .caps,
    .services,
    .form,
    .footer__top {
        grid-template-columns: 1fr;
    }

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

    .marquee__track {
        gap: 44px;
    }

    .product,
    .contact__card {
        padding: 28px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
