:root{--navy:#102d50;--blue:#1677b8;--green:#19a477;--ink:#1d2a38;--muted:#6d7b89;--line:#e2e8ef}
*{box-sizing:border-box}body{margin:0;background:#f3f6fa;color:var(--ink);font:15px Inter,system-ui,Segoe UI,Arial,sans-serif}
header{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(calc((100% - 1080px)/2),24px)}
.brand{color:var(--navy)}.brand b,.brand small{display:block}.brand small{font-size:10px;color:var(--muted);letter-spacing:1.4px;margin-top:3px}
a{color:var(--blue);text-decoration:none;font-weight:650}main{max-width:1080px;margin:42px auto;padding:0 22px;display:grid;grid-template-columns:.85fr 1.15fr;gap:28px;align-items:start}
.hero{background:linear-gradient(145deg,#102d50,#17649a);color:#fff;border-radius:18px;padding:38px 32px;min-height:350px}.hero small{letter-spacing:2px;color:#9fd8c5;font-weight:800}.hero h1{font-size:38px;line-height:1.1;margin:20px 0 14px}.hero p{color:#d7e6f3;line-height:1.7}
.panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 12px 36px #102d500d}.panel h1,.panel h2{margin:0 0 8px;color:var(--navy)}.panel h1{font-size:28px}.panel h2{font-size:23px}.muted,.fine{color:var(--muted)}.muted{margin:0 0 24px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;font-size:13px;font-weight:700;color:#34475b;margin-bottom:16px}.wide{grid-column:1/-1}input,select,textarea{display:block;width:100%;margin-top:7px;border:1px solid #d5dee8;border-radius:9px;padding:12px 13px;font:inherit;color:var(--ink);background:#fff}textarea{resize:vertical}
button,.button{display:inline-flex;align-items:center;justify-content:center;background:var(--blue);border:0;color:white;padding:14px 20px;border-radius:9px;font-weight:750;cursor:pointer;font-size:14px}button{width:100%;margin-top:4px}.button{margin-top:12px}.fine{font-size:11px;line-height:1.5;margin-top:15px}.alert{background:#fff1f0;border:1px solid #ffd2cc;color:#a33;padding:12px;border-radius:8px;margin:16px 0}.hp{position:absolute;left:-9999px}
.centered{text-align:center;grid-column:1/-1;max-width:650px;margin:40px auto;width:100%;padding:44px}.protocol{background:#f3f7fb;border:1px dashed #aabaca;border-radius:12px;padding:18px;margin:24px 0}.protocol small{display:block;color:var(--muted);font-size:10px;letter-spacing:1.5px}.protocol strong{display:block;color:var(--navy);font-size:22px;margin:7px 0}.result{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}footer{text-align:center;color:#82909e;font-size:12px;padding:20px}
@media(max-width:800px){main{grid-template-columns:1fr;margin:22px auto}.hero{min-height:0}.hero h1{font-size:32px}header{padding:0 18px}.panel{padding:22px}}@media(max-width:480px){.grid{grid-template-columns:1fr}.wide{grid-column:auto}header{height:66px}}

/* Identidade visual Datel Sistemas */
.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-decoration: none;
    color: var(--navy);
}

.brand-logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: 43px;
    object-fit: contain;
    object-position: left center;
}

.brand small {
    font-size: 9px;
    color: var(--muted);
    letter-spacing: 2px;
    margin-top: 2px;
}

@media (max-width: 480px) {
    header {
        height: 70px;
        padding: 0 14px;
    }

    .brand-logo {
        width: 145px;
        height: 34px;
    }

    .brand small {
        font-size: 8px;
        letter-spacing: 1.2px;
    }

    header > a:last-child {
        font-size: 12px;
    }
}

/* Ajuste de proporção do logotipo Datel */
header .brand {
    width: 250px;
    flex: 0 0 250px;
    align-items: flex-start;
}

header .brand-logo {
    width: 245px;
    height: 52px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

header .brand small {
    margin-top: 0;
    font-size: 9px;
    letter-spacing: 2px;
}

@media (max-width: 480px) {
    header .brand {
        width: 175px;
        flex: 0 1 175px;
    }

    header .brand-logo {
        width: 170px;
        height: 40px;
    }
}

/* Centralizar a marca no cabeçalho */
header {
    position: relative;
    justify-content: flex-end;
}

header .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    align-items: center;
    flex: none;
}

header .brand-logo {
    object-position: center;
}

header .brand small {
    text-align: center;
}

@media (max-width: 480px) {
    header .brand {
        width: 175px;
    }

    header > a:last-child {
        position: relative;
        z-index: 2;
        font-size: 11px;
    }
}

/* =========================================
   DATEL SISTEMAS - IDENTIDADE VISUAL
   ========================================= */

.site-header {
    min-height: 100px;
    height: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px;
    position: relative;
    justify-content: initial;
}

.header-inner {
    width: 100%;
    max-width: 1180px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header .brand {
    position: static;
    transform: none;
    width: 245px;
    flex: 0 1 245px;
    align-items: flex-start;
}

.site-header .brand-logo {
    width: 230px;
    height: 58px;
    object-fit: contain;
    object-position: left center;
}

.site-header .brand small {
    text-align: left;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
}

.header-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.contact-icon {
    color: var(--green);
    font-size: 19px;
}

.header-link {
    background: var(--navy);
    color: #fff;
    padding: 11px 16px;
    border-radius: 9px;
    font-size: 12px;
    white-space: nowrap;
}

.site-footer {
    margin-top: 50px;
    background: #102d50;
    color: #fff;
    padding: 30px 22px;
    text-align: center;
}

.footer-inner {
    max-width: 1080px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.footer-brand strong {
    display: block;
    font-size: 19px;
    color: #fff;
}

.footer-brand span {
    display: block;
    margin-top: 5px;
    color: #c5d7e8;
    font-size: 12px;
}

.footer-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.footer-contacts a {
    color: #fff;
    font-size: 14px;
}

.footer-copy {
    color: #a9bfd3;
    font-size: 11px;
    margin-top: 5px;
}

/* Responsividade */
@media(max-width: 800px) {
    .site-header {
        padding: 12px 18px;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .site-header .brand {
        align-items: center;
        flex-basis: auto;
    }

    .site-header .brand-logo {
        object-position: center;
    }

    .site-header .brand small {
        text-align: center;
    }

    .header-contact {
        justify-content: center;
    }
}

@media(max-width: 480px) {
    .site-header .brand-logo {
        width: 190px;
        height: 48px;
    }

    .header-contact {
        gap: 10px 14px;
    }

    .contact-item {
        font-size: 12px;
    }

    .header-link {
        width: 100%;
        text-align: center;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 12px;
    }
}
