/*
Theme Name: Sinplus Institucional
Description: Tema institucional da Sinplus TI com navegação para serviços e atendimento.
Version: 1.1.2
Requires at least: 6.5
Requires PHP: 8.3
Text Domain: sinplus-institucional
*/

:root {
    color-scheme: light;
    --ink: #12243a;
    --body: #3f5165;
    --paper: #f7f8fa;
    --white: #fff;
    --line: #d9e3ed;
    --night: #092553;
    --night-soft: #aebfd0;
    --orange: #ff6900;
    --accent: #093d94;
    --radius: 16px;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.6; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #1688ac; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
svg { display: block; width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.13; letter-spacing: -.035em; }
h1 { font-size: clamp(1.95rem, 4.4vw, 3.35rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: 1.23rem; margin-bottom: .65rem; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: .5rem; left: .5rem; padding: .75rem 1rem; transform: translateY(-200%); background: var(--white); }
.skip-link:focus { transform: none; }
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--night); font-size: 1.4rem; font-weight: 780; letter-spacing: -.06em; text-decoration: none; }
.brand-mark { width: 39px; padding: 4px; border: 1px solid #255165; border-radius: 11px; color: var(--orange); }
.brand-ti { color: var(--orange); font-size: .78rem; letter-spacing: .02em; vertical-align: .45em; }
.custom-logo { display: block; max-width: 165px; max-height: 56px; width: auto; }
.topbar nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.25rem); }
.topbar nav a { color: var(--ink); font-size: .95rem; font-weight: 570; text-decoration: none; }
.topbar nav a:hover { color: var(--accent); text-decoration: underline; }
.topbar nav { flex-wrap: wrap; }
.applications-menu { position: relative; }
.applications-menu summary { cursor: pointer; font-size: .95rem; font-weight: 650; color: var(--accent); }
.applications-menu summary:focus-visible { outline: 3px solid #1688ac; outline-offset: 4px; }
.applications-links { position: absolute; z-index: 5; inset-inline-end: 0; width: 13rem; margin: .5rem 0 0; padding: .35rem; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 28px #12243a1c; }
.applications-links a { display: block; padding: .45rem .65rem; border-radius: 6px; }
.applications-links a:hover, .applications-links a:focus-visible { background: var(--paper); }
@media (max-width: 480px) {
    .applications-menu { position: static; }
    .topbar nav { position: relative; }
    .applications-links { inset-inline: 0; width: auto; }
}
.hero { color: var(--night); background: #f3f5f8; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); align-items: center; gap: 3rem; padding-block: clamp(2.6rem, 6vw, 5rem); }
.hero h1 { max-width: 19ch; }
.hero-lead { max-width: 36ch; margin-bottom: 1.85rem; font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--body); }
.eyebrow { display: flex; align-items: center; gap: .55rem; margin-bottom: .9rem; color: var(--accent); font-size: .76rem; font-weight: 760; letter-spacing: .115em; text-transform: uppercase; }
.hero .eyebrow { color: var(--accent); }
.support .eyebrow { color: var(--orange); }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 46px; padding: .62rem 1rem; border: 1px solid transparent; border-radius: 8px; font-weight: 680; font-size: .92rem; text-decoration: none; }
.button-primary { background: var(--orange); color: #201004; }
.button-primary:hover { background: #ff9348; }
.button-outline { border-color: #9eafc6; color: var(--night); }
.button-outline:hover { border-color: var(--accent); color: var(--accent); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem; }
.service { display: flex; flex-direction: column; padding: 1.15rem .4rem 1.35rem 0; border-top: 2px solid var(--line); }
.service-number { color: var(--accent); font: 700 .85rem/1.3 ui-monospace, monospace; letter-spacing: .08em; }
.service h3 { letter-spacing: -.025em; }
.service p:not(.service-number), .about-grid > div p:not(.eyebrow) { color: var(--body); }
.service a { margin-top: auto; }
.service a, .text-link { font-weight: 700; }
.about { border-top: 1px solid var(--line); background: #eaf2f7; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 2rem 4rem; padding-block: clamp(3rem, 7vw, 5.5rem); }
.about-grid > div p:not(.eyebrow) { max-width: 56ch; }
.support { padding: clamp(1.25rem, 4vw, 2.3rem); border-radius: var(--radius); color: var(--white); background: var(--night); }
.support p:not(.eyebrow) { color: var(--night-soft); }
.footer { background: var(--night); color: #e8f0f7; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.7rem; }
.footer-inner p { margin: .15rem 0 0; color: var(--night-soft); font-size: .9rem; }
.footer a { color: var(--orange); }
.content { min-height: 60vh; padding-block: clamp(2rem, 7vw, 5rem); }
.entry { max-width: 55rem; padding: clamp(1rem, 4vw, 3rem); margin: 0 auto 1.25rem; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.entry h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.entry iframe { max-width: 100%; }
.entry table { max-width: 100%; }
.entry figure { max-width: 100%; margin-inline: 0; }
.entry .wp-block-table { overflow-x: auto; }
.entry .aligncenter { display: block; margin-inline: auto; }
.entry .alignleft { float: left; margin: 0 1rem 1rem 0; }
.entry .alignright { float: right; margin: 0 0 1rem 1rem; }
.comments { clear: both; padding-top: 1rem; }
@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .wrap { width: calc(100% - 2rem); }
    .topbar { flex-wrap: wrap; padding-block: .65rem; }
    .topbar nav { order: 3; width: 100%; padding-top: .45rem; border-top: 1px solid var(--line); }
    .client-link { padding-inline: .7rem; font-size: .8rem; }
    .service-grid { grid-template-columns: 1fr; }
    .service { min-height: 0; }
    .service a { margin-top: .2rem; }
}

.brand-logo { width: 58px; height: 58px; border-radius: 8px; }
.entry h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); letter-spacing: -.015em; }
.entry h3, .entry h4 { font-size: 1.08rem; letter-spacing: 0; }
.entry :is(h2,h3,h4) { line-height: 1.45; }
.contact-form { max-width: 40rem; }
.contact-form label { display: block; font-weight: 600; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid #8495a8;
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form button { cursor: pointer; }
.contact-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-notice { padding: .8rem 1rem; background: #eaf2ff; border-radius: 6px; }

.hero-side { border-left: 3px solid var(--orange); padding: .25rem 0 .25rem 1.5rem; }
.hero-side h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.hero-side ul { list-style: none; margin: 0; padding: 0; max-width: 24rem; }
.hero-side li + li { border-top: 1px solid var(--line); }
.hero-side a { display: flex; justify-content: space-between; padding: .55rem 0; color: var(--accent); font-weight: 600; text-decoration: none; }
.hero-side a:hover { text-decoration: underline; }
