/* =========================================================
   HD Soluções Tecnológicas — design system próprio
   Paleta: #2e4d93 (primária) · #8d81d6 (destaque) · #202020 (escuro)
   Tipografia: Bricolage Grotesque (títulos) + Onest (texto)
   ========================================================= */

:root {
    --hd-primary: #2e4d93;
    --hd-primary-dark: #223a72;
    --hd-accent: #8d81d6;
    --hd-dark: #202020;
    --hd-dark-2: #2a2a2e;
    --hd-light: #f6f6fa;
    --hd-line: #e6e7f1;
    --font-heading: "Bricolage Grotesque", sans-serif;
    --font-body: "Onest", sans-serif;
    --radius-lg: 2rem;
    --radius-md: 1.25rem;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--hd-dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .site-nav-brand, .footer-hd-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

p { margin: 0; }
a { text-decoration: none; }

.text-gradient-hd {
    background: linear-gradient(100deg, var(--hd-accent), var(--hd-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.container {
    max-width: 1400px;
}

/* ---------- Botões ---------- */
.btn-hd {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    padding: .8rem 1.5rem;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
    white-space: nowrap;
}
.btn-hd:hover { transform: translateY(-2px); }
.btn-hd-solid { background: var(--hd-primary); color: #fff; }
.btn-hd-solid:hover { background: var(--hd-primary-dark); color: #fff; }
.btn-hd-ghost { background: var(--hd-dark); color: #fff; }
.btn-hd-ghost:hover { background: #000; color: #fff; }
.btn-hd-outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-hd-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Tags / eyebrows ---------- */
.tag-pill {
    display: inline-block;
    font-size: .8rem;
    font-weight: 600;
    padding: .4rem 1rem;
    border-radius: 999px;
    background: rgba(141, 129, 214, .15);
    color: var(--hd-primary);
    margin-bottom: 1.25rem;
}
.tag-pill-dark { background: rgba(46, 77, 147, .08); color: var(--hd-primary); }
.tag-pill-light { background: rgba(255, 255, 255, .1); color: #cfd3f5; }

/* =========================================================
   NAVEGAÇÃO — pílula flutuante, fixa, sem cortar o menu mobile
   ========================================================= */
.site-nav {
    position: fixed;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.site-nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(32, 32, 32, .08);
    padding: .55rem .6rem .55rem 1.4rem;
}
.site-nav-brand { display: flex; align-items: center; gap: .5rem; }
.brand-fallback { display: inline-flex; align-items: baseline; gap: .35rem; }
.brand-mark {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--hd-primary);
}
.brand-text { font-size: .78rem; font-weight: 600; color: var(--hd-dark); }

.site-nav-links { align-items: center; gap: .25rem; }
.site-nav-links a {
    font-weight: 600;
    font-size: .92rem;
    color: var(--hd-dark);
    padding: .55rem 1rem;
    border-radius: 999px;
    transition: background-color .2s ease, color .2s ease;
}
.site-nav-links a:hover { background: rgba(46, 77, 147, .08); color: var(--hd-primary); }

.site-nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--hd-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}
.site-nav-toggle span { width: 16px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.site-nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.site-nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav-mobile {
    max-width: 1180px;
    margin: .6rem auto 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    border: 1px solid var(--hd-line);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 30px rgba(32, 32, 32, .12);
    padding: .75rem;
    display: none;
    flex-direction: column;
}
.site-nav-mobile.is-open { display: flex; }
.site-nav-mobile a {
    padding: .75rem 1rem;
    border-radius: .8rem;
    font-weight: 600;
    color: var(--hd-dark);
}
.site-nav-mobile a:hover { background: rgba(46, 77, 147, .08); }
.site-nav-mobile {
    .btn-hd-solid {
        color: white !important;
    }
}
/* =========================================================
   SEÇÕES GERAIS
   ========================================================= */
.section-hd { padding: 6rem 0; }
.section-hd-tight { padding-top: 4rem; }
.section-hd-dark { background: var(--hd-dark); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-hd-title { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-bottom: 1rem; }
.section-hd-text { color: #55565c; font-size: 1.05rem; }
.text-on-dark { color: rgba(255, 255, 255, .7); margin-bottom: 1rem; }

@media (max-width: 991.98px) {
    .contato-card-aside, .contato-card-form { padding: 2.25rem; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-hd { background: var(--hd-dark); color: rgba(255, 255, 255, .7); padding: 2rem 0 2rem; }
.footer-hd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-hd-brand { font-size: 2.5rem; color: #fff; }
.footer-hd-brand span { color: var(--hd-accent); }
.footer-hd-cols h4 { font-size: .85rem; color: #fff; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .06em; }
.footer-hd-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .65rem; }
.footer-hd-cols a { color: rgba(255, 255, 255, .65); font-size: .92rem; }
.footer-hd-cols a:hover { color: var(--hd-accent); }
.footer-hd-cols li { font-size: .92rem; display: flex; gap: .5rem; align-items: flex-start; }
.footer-hd-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: center;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: .82rem;
    color: rgba(255, 255, 255, .45);
    text-align: center;
}

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
    .btn-hd, .bento-item-img { transition: none; }
}
