/*
Theme Name: Win44 Homes Guide
Theme URI: https://win44.homes/
Author: Site Editorial
Description: Tema independente de informacao, diagnostico e seguranca para o Brasil.
Version: 1.0.0
Text Domain: win44-guide
*/

:root {
  --navy: #0d1b2a;
  --teal: #127c74;
  --teal-dark: #0c665f;
  --yellow: #f2b134;
  --danger: #c94f4f;
  --success: #2f855a;
  --bg: #f5f7fa;
  --card: #fff;
  --text: #152333;
  --muted: #5e6c7a;
  --border: #d8e0e8;
  --info: #eaf7f5;
  --warn: #fff8e6;
  --alert: #fff5f5;
  --shadow: 0 10px 30px rgba(13, 27, 42, .07);
  --radius: 16px;
  --button-radius: 12px;
  --container: 1180px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: "Source Sans 3", Arial, sans-serif; font-size: 17px; line-height: 1.65; letter-spacing: 0; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; padding: 10px 14px; background: var(--navy); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.reading { max-width: var(--reading); }
.site-main { min-height: 60vh; overflow: hidden; }
h1, h2, h3 { margin: 0 0 .7em; color: var(--navy); font-family: Manrope, Arial, sans-serif; line-height: 1.15; letter-spacing: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.15rem, 5vw, 3.7rem); max-width: 900px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.25em; }
li + li { margin-top: .55em; }
.eyebrow { margin-bottom: 12px; color: var(--teal-dark); font-weight: 800; text-transform: uppercase; font-size: .82rem; }
.lead { color: #32475a; font-size: 1.16rem; max-width: 770px; }
.muted { color: var(--muted); }

.site-header { position: sticky; top: 0; z-index: 1000; height: 76px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.site-logo { display: inline-flex; flex: none; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font: 800 1.25rem/1 Manrope, Arial, sans-serif; }
.site-logo-mark { display: block; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; }
.site-logo-name { color: var(--navy); white-space: nowrap; }
.site-logo-name span { color: var(--teal); }
.desktop-nav { display: flex; align-items: center; margin-left: auto; }
.desktop-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.desktop-nav a { display: flex; min-height: 44px; align-items: center; padding: 8px 10px; color: var(--navy); text-decoration: none; font-weight: 650; font-size: .92rem; }
.desktop-nav .current-menu-item > a { color: var(--teal-dark); box-shadow: inset 0 -3px var(--yellow); }
.header-cta { white-space: nowrap; }
.menu-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--navy); cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-panel { display: none; position: fixed; inset: 64px 0 0; z-index: 999; padding: 20px; background: #fff; overflow: auto; }
.mobile-panel.is-open { display: block; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-panel a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--border); color: var(--navy); text-decoration: none; font-size: 1.08rem; font-weight: 700; }
.mobile-panel .button { margin-top: 20px; justify-content: center; }

.button { display: inline-flex; min-height: 48px; min-width: 44px; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border: 2px solid var(--teal); border-radius: var(--button-radius); background: var(--teal); color: #fff; text-decoration: none; font-weight: 800; text-align: center; }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.button.secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.button.secondary:hover { background: var(--navy); color: #fff; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.floating-go-action-wrap { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 900; transform: translateX(-50%); }
.floating-go-action { min-width: 184px; min-height: 52px; box-shadow: 0 10px 28px rgba(13,27,42,.22); }

.hero { padding: 64px 0; background: #eef3f4; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 44px; align-items: center; }
.hero-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16/10; background: #e4ebed; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.section { padding: 88px 0; }
.section.alt { background: #fff; border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse .media-card { order: -1; }
.media-card { overflow: hidden; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.media-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-card figcaption { padding: 12px 16px; color: var(--muted); font-size: .92rem; }
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.card h3 { font-size: 1.25rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.task-card { display: flex; flex-direction: column; min-height: 240px; }
.task-card .button { align-self: flex-start; margin-top: auto; }
.icon-box { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 12px; background: var(--info); color: var(--teal-dark); font-weight: 900; }
.notice { margin: 24px 0; padding: 20px 22px; border-left: 4px solid var(--teal); background: var(--info); border-radius: 0 10px 10px 0; }
.notice.warning { background: var(--warn); border-color: var(--yellow); }
.notice.danger { background: var(--alert); border-color: var(--danger); }
.notice strong { display: block; margin-bottom: 5px; color: var(--navy); }
.steps { counter-reset: guide-step; list-style: none; margin: 28px 0; padding: 0; }
.steps > li { position: relative; min-height: 58px; padding: 0 0 24px 64px; }
.steps > li::before { counter-increment: guide-step; content: counter(guide-step); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; }
.steps > li::after { content: ""; position: absolute; left: 20px; top: 42px; bottom: 0; width: 2px; background: var(--border); }
.steps > li:last-child::after { display: none; }
.steps strong { display: block; color: var(--navy); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 900; }
.status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 24px 0; }
.status { padding: 20px; border: 1px solid var(--border); border-top: 4px solid var(--teal); border-radius: 10px; background: #fff; }
.status.warning { border-top-color: var(--yellow); }
.status.danger { border-top-color: var(--danger); }

.page-hero { padding: 50px 0 36px; background: #fff; border-bottom: 1px solid var(--border); }
.breadcrumbs { margin-bottom: 24px; color: var(--muted); font-size: .94rem; }
.breadcrumbs a { color: var(--muted); }
.content-shell { display: grid; grid-template-columns: 240px minmax(0,760px); justify-content: center; gap: 56px; padding: 56px 0 88px; }
.toc { position: sticky; top: 100px; align-self: start; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.toc strong { display: block; margin-bottom: 10px; color: var(--navy); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li + li { margin-top: 4px; }
.toc a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: .92rem; }
.toc a:hover { color: var(--teal-dark); }
.article-content > section { scroll-margin-top: 96px; margin-bottom: 60px; }
.article-content > section:last-child { margin-bottom: 0; }
.article-content figure { margin: 28px 0; }
.responsive-table { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: #eaf0f3; color: var(--navy); }
details { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
summary { min-height: 52px; padding: 15px 48px 15px 18px; cursor: pointer; color: var(--navy); font-weight: 800; }
details[open] { border-left: 4px solid var(--teal); }
details > div { padding: 0 18px 18px; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.faq-nav a { min-height: 44px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; text-decoration: none; font-weight: 700; }
.related { padding: 36px 0 72px; border-top: 1px solid var(--border); background: #fff; }
.related .card { box-shadow: none; }

.site-footer { padding: 56px 0 104px; background: var(--navy); color: #d9e2ea; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 36px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #fff; }
.site-footer .site-logo { margin-bottom: 16px; color: #fff; }
.site-footer .site-logo-name { color: #fff; }
.site-footer .site-logo-name span { color: var(--yellow); }
.footer-note { margin-top: 36px; padding-top: 24px; border-top: 1px solid #3c4c5d; font-size: .92rem; }
.footer-note p { max-width: 980px; }
.error-page { padding: 100px 0; text-align: center; }

@media (max-width: 1023px) {
  .desktop-nav, .header-cta { display: none; }
  .site-header { height: 64px; }
  .site-logo-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 9px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr; }
  .content-shell { display: block; }
  .toc { position: static; margin-bottom: 42px; }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 32px), var(--container)); }
  .floating-go-action-wrap { right: 16px; left: 16px; bottom: max(12px, env(safe-area-inset-bottom)); transform: none; }
  .floating-go-action { width: 100%; }
  .section { padding: 40px 0; }
  .hero { padding: 40px 0; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .media-card { order: initial; }
  .grid.two, .grid.three, .status-grid { grid-template-columns: 1fr; }
  .button-row { flex-direction: column; }
  .button-row .button, .task-card .button { width: 100%; }
  .page-hero { padding: 36px 0 28px; }
  .content-shell { padding: 36px 0 56px; }
  .article-content > section { margin-bottom: 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-media { min-height: 230px; }
  .hero-media img { object-position: 63% center; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
  td { border: 0; border-bottom: 1px solid var(--border); }
  td:last-child { border-bottom: 0; }
  td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
}

@media (max-width: 390px) {
  .container { width: calc(100% - 32px); }
  h1 { font-size: 2.1rem; }
  .card { padding: 20px; }
  .steps > li { padding-left: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
