/* =========================
   Variáveis institucionais
========================= */

:root {
    --brand-dark: #164E63;
    --brand-primary: #0E7490;
    --brand-accent: #06B6D4;
    --brand-light: #f9f1e5;
    --font-body: 'Inter', sans-serif;
    --color-text: #1f2937;
}

/* =========================
   Base, tipografia e acessibilidade
========================= */

body {
    font-family: var(--font-body);
    background: var(--brand-light);
    color: var(--color-text);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-body);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a, button, input, textarea {
    transition: outline-color 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 220ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(6, 182, 212, 0.35);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Sistema de alinhamento tipográfico */
#sobre .space-y-5 > p,
#sobre .premium-card > p,
#inicio .hero-statement > p,
#lgpd .premium-card > p,
#compromisso-futuro .premium-card > p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

/* =========================
   Cabeçalho e navegação
========================= */

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
}

/* =========================
   Hero e animação de entrada
========================= */

.hero-bg {
    isolation: isolate;
    overflow: hidden;
    background-color: var(--brand-primary);
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-shell {
    background: transparent;
    border: 1px solid rgba(249,241,229,0.14);
    box-shadow: 0 18px 50px rgba(0,0,0,0.14);
}

.hero-statement {
    background: transparent;
    border: 1px solid rgba(249, 241, 229, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* =========================
   Componentes compartilhados e estados visuais
========================= */

.glass-card {
    background: rgba(249, 241, 229, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section-divider {
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: var(--brand-primary);
    margin: 0 auto 1.25rem auto;
}

.premium-card {
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 116, 144, 0.10);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.soft-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.34));
    border: 1px solid rgba(14, 116, 144, 0.10);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(14, 116, 144, 0.08);
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-chip {
    background: rgba(249,241,229,0.10);
    border: 1px solid rgba(249,241,229,0.12);
    border-radius: 1rem;
}

.soft-panel,
.premium-card,
.contact-chip,
.hero-shell {
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

/* =========================
   Seções e serviços
========================= */

.services-statement {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(14, 116, 144, 0.09));
    border: 1px solid rgba(14, 116, 144, 0.16);
    border-left: 5px solid var(--brand-primary);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.services-statement-icon {
    background: linear-gradient(145deg, var(--brand-primary), var(--brand-dark));
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.24);
}

#servicos .soft-panel {
    display: flex;
    flex-direction: column;
    text-align: left;
}

#servicos .soft-panel p {
    margin-top: auto;
    line-height: 1.6;
}

/* =========================
   Contato e rodapé
========================= */

#contato iframe {
    border: 0;
}

#contato .contact-chip,
footer .grid {
    text-align: left;
}

/* =========================
   Responsividade e preferência por movimento reduzido
========================= */

@media (max-width: 640px) {
    html, body {
        overflow-x: hidden;
    }

    input, textarea, button, a {
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 640px) {
    .section-divider {
        width: 56px;
        margin-bottom: 1rem;
    }
}

@media (min-width: 1024px) {
    .soft-panel:hover,
    .premium-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (min-width: 640px) {
    #servicos .soft-panel h3 {
        min-height: 3.5rem;
    }
}

@media (max-width: 639px) {
    #sobre .space-y-5 > p,
    #sobre .premium-card > p,
    #inicio .hero-statement > p,
    #lgpd .premium-card > p,
    #compromisso-futuro .premium-card > p {
        text-align: left;
        hyphens: none;
    }
}
