/*
Theme Name: D3TI
Theme URI: https://www.d3ti.inf.br
Author: D3TI
Description: Tema institucional da D3TI - infraestrutura e redes para empresas.
Version: 1.0.0
Text Domain: d3ti
*/

:root {
  --navy: #00214d;
  --navy-2: #00306e;
  --green: #009c44;
  --yellow: #f7b63b;
  --panel: rgb(240, 245, 250);
  --text: rgb(31, 38, 51);
  --muted: rgb(97, 107, 122);
  --line: rgb(217, 222, 230);
  --sub: #cfd8e6;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(0, 33, 77, .10);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--navy); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--white); line-height: 1; }
.logo b { font-size: 1.7rem; font-weight: 800; letter-spacing: .02em; }
.logo b i { font-style: normal; color: var(--yellow); }
.logo small { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sub); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 8px; }
.nav a:hover { background: rgba(255,255,255,.1); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.35); color: var(--white); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 13px 22px; font-weight: 800; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-green { background: var(--green); color: var(--white); font-size: 1.15rem; }
.btn-outline { border-color: var(--sub); color: var(--white); }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(0,156,68,.28), transparent 60%), linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: clamp(56px, 9vw, 112px) 0; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.hero .wrap { position: relative; display: grid; gap: 40px; grid-template-columns: 1.3fr .9fr; align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: var(--sub); font-size: 1.15rem; max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--yellow); margin-bottom: 14px; }
.status-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(4px); }
.status-card h2 { font-size: 1rem; color: var(--sub); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-weight: 600; font-size: .95rem; }
.status-row:first-of-type { border-top: 0; }
.dot { display: inline-flex; align-items: center; gap: 8px; color: var(--sub); font-weight: 500; font-size: .85rem; }
.dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,156,68,.25); }

/* Sections */
section { padding: clamp(52px, 8vw, 92px) 0; }
.panel { background: var(--panel); }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.kicker { color: #00702f; font-weight: 800; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.card .icon svg { width: 26px; height: 26px; stroke: var(--yellow); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.more { margin-top: 28px; padding: 22px 26px; border-left: 5px solid var(--yellow); background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; display: flex; gap: 18px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.more p { margin: 0; font-weight: 600; }
.panel .more { background: var(--white); }

/* Process */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--white); font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }

/* Local */
.local { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.local ul { list-style: none; padding: 0; margin: 0; }
.local li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); position: relative; font-weight: 600; }
.local li::before { content: ""; position: absolute; left: 0; top: 17px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); }
.local li::after { content: ""; position: absolute; left: 6px; top: 21px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Testimonials / blog */
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--navy); display: block; }
.quote small { color: var(--muted); }
.post-card { display: flex; flex-direction: column; }
.post-card time { color: var(--muted); font-size: .85rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }

/* Agenda band */
.band { background: var(--navy); color: var(--white); }
.band .wrap { display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.band h2 { color: var(--white); margin-bottom: .3em; }
.band p { color: var(--sub); margin: 0; max-width: 38em; }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
.channels { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.channels a { display: flex; gap: 14px; align-items: center; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-weight: 700; }
.channels a:hover { border-color: var(--green); }
.channels small { display: block; color: var(--muted); font-weight: 500; }
.channels svg { width: 26px; height: 26px; flex: none; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #b9c2d0; border-radius: 10px; background: #fff; color: var(--text); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(247,182,59,.6); border-color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.cf-turnstile { margin-bottom: 18px; min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.notice.ok { background: #e6f6ec; color: #005a28; border: 1px solid #9ad7b2; }
.notice.err { background: #fdecec; color: #8a1c1c; border: 1px solid #f1b5b5; }

/* Footer */
.site-footer { background: var(--navy); color: var(--sub); padding: 44px 0 28px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: var(--white); font-size: 1rem; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .85rem; }

/* Pages / posts */
.page-hero { background: var(--navy); color: var(--white); padding: 44px 0; }
.page-hero h1 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.entry { max-width: 46rem; margin-inline: auto; padding: 44px 0 72px; }
.entry h2 { margin-top: 1.6em; font-size: 1.5rem; }
.entry img { border-radius: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero .wrap, .local, .contact { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .grid-3, .steps, .form .row, .site-footer .wrap { grid-template-columns: 1fr; }
  .cta-row .btn, .more .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
