/*
Theme Name: dduu Cinematic
Theme URI: https://dduu.homes/
Author: dduu.homes editorial
Description: Tema editorial independente em português do Brasil para dduu.homes.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dduu-cinematic
*/

:root {
  --bg: #0b0c0d;
  --bg-soft: #141618;
  --panel: #1b1d20;
  --gold: #f2c94c;
  --gold-deep: #d8a928;
  --text: #f5f5f2;
  --muted: #b9bab6;
  --border: #303236;
  --notice: #20231f;
  --warning: #e1a64b;
  --focus: #ffe28a;
  --max: 1240px;
  --reading: 820px;
  --radius: 18px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-wrap: break-word;
  background:
    radial-gradient(circle at 85% 8%, rgba(242, 201, 76, .07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: #ffeaa2; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 9999;
  transform: translateY(-180%);
  padding: .7rem 1rem;
  border-radius: 8px;
  background: var(--gold);
  color: #111;
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 70px;
  border-bottom: 1px solid rgba(242, 201, 76, .2);
  background: rgba(11, 12, 13, .88);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}
.site-logo-image { width: auto; height: 36px; }
.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 48px;
  padding: 0 .8rem;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: .83rem;
  font-weight: 800;
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: .55rem .85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
  text-decoration: none;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { background: var(--panel); color: var(--text); }

.site-main { min-height: 60vh; }
.content-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 104px;
}
.article-body { width: min(100%, var(--reading)); margin: 0 auto; }
.article-header { margin: 0 auto 72px; }
.eyebrow, .updated {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.updated { display: block; margin-top: 1.2rem; color: var(--muted); letter-spacing: .06em; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1 {
  max-width: 930px;
  margin-top: .8rem;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  letter-spacing: -.052em;
}
.article-lead {
  max-width: 850px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}
.answer { margin-top: 1.4rem; color: var(--text); }
.content-section { margin-top: 96px; scroll-margin-top: 96px; }
.content-section > h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -.035em;
}
.content-section > h3 { margin: 2.3rem 0 .9rem; font-size: 1.35rem; }
p { margin: 1rem 0; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .55rem; }
.wide-media {
  width: min(calc(100vw - 40px), var(--max));
  margin: 42px 50% 0;
  transform: translateX(-50%);
}
.wide-media img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.wide-media figcaption { margin: .75rem auto 0; color: var(--muted); font-size: .84rem; }
.callout, .boundary {
  margin-top: 2rem;
  padding: 1.4rem 1.55rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: var(--notice);
}
.boundary { margin-top: 72px; }
.text-cta {
  display: inline-flex;
  min-height: 48px;
  margin-top: 1.2rem;
  padding: .7rem 1.2rem;
  align-items: center;
  border: 1px solid var(--gold-deep);
  border-radius: 999px;
  background: var(--gold);
  color: #15140d;
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.text-cta:hover { transform: translateY(-2px); background: #ffe178; color: #15140d; }
.related-links { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border); }
.related-links a { display: inline-block; margin: .4rem 1.2rem .4rem 0; font-weight: 750; }

.table-wrap { width: 100%; margin: 2rem 0; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; min-width: 650px; border-collapse: collapse; background: var(--bg-soft); }
th, td { padding: 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--gold); font-size: .87rem; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
.steps { margin: 2rem 0; padding: 0; counter-reset: steps; list-style: none; }
.steps li { position: relative; min-height: 58px; padding: .15rem 0 1.35rem 4rem; counter-increment: steps; }
.steps li::before {
  content: counter(steps, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--gold-deep);
  border-radius: 50%;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
}

.correction-form { margin-top: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-bottom: .4rem; color: var(--text); font-weight: 750; }
input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #101214;
  color: var(--text);
  font: inherit;
}
textarea { min-height: 170px; resize: vertical; }
.check-row { display: flex; align-items: flex-start; gap: .7rem; }
.check-row input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: .2rem; }
.form-status { padding: 1rem; border-radius: 10px; background: var(--notice); }
.form-status.success { border: 1px solid #678d5a; }
.form-status.error { border: 1px solid var(--warning); }
button[type="submit"] { border: 0; cursor: pointer; }

.site-footer { border-top: 1px solid rgba(242, 201, 76, .28); background: #090a0b; }
.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 64px 0 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
.footer-title { margin-bottom: .8rem; font-size: 1.1rem; }
.footer-copy, .footer-note { color: var(--muted); font-size: .9rem; }
.footer-links { margin: 0; padding: 0; columns: 2; list-style: none; }
.footer-links li { margin: 0 0 .45rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--border); color: #92948f; font-size: .78rem; }
.error-page { text-align: center; }

.site-bottom-cta {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 1200;
  width: min(calc(100% - 32px), 500px);
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.site-bottom-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(242, 201, 76, .32);
  border-radius: 20px;
  background: rgba(11, 12, 13, .94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}
.site-bottom-cta__button {
  display: inline-flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.site-bottom-cta__button:hover { transform: translateY(-2px); }
.site-bottom-cta__login {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
}
.site-bottom-cta__login:hover { background: #25282c; color: var(--text); }
.site-bottom-cta__register {
  background: var(--gold);
  color: #111;
  box-shadow: 0 8px 20px rgba(242, 201, 76, .24);
}
.site-bottom-cta__register:hover { background: #ffe079; color: #111; box-shadow: 0 10px 24px rgba(242, 201, 76, .34); }
.menu-open .site-bottom-cta { visibility: hidden; opacity: 0; transform: translate(-50%, 12px); }
.site-footer .footer-inner { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }

@media (max-width: 767px) {
  body { font-size: 16px; }
  .site-header, .header-inner { min-height: 60px; }
  .header-inner { width: min(calc(100% - 32px), var(--max)); }
  .site-logo-image { height: 30px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { width: 100%; }
  .js .primary-navigation {
    position: fixed;
    inset: 60px 0 auto;
    display: none;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 18px 16px 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(11, 12, 13, .98);
  }
  .js .primary-navigation.is-open { display: block; }
  .primary-navigation ul { flex-direction: column; align-items: stretch; }
  .primary-navigation a { min-height: 50px; justify-content: center; font-size: 1rem; }
  .content-shell { width: min(calc(100% - 32px), var(--max)); padding: 48px 0 72px; }
  .article-header { margin-bottom: 52px; }
  h1 { font-size: clamp(2.25rem, 11vw, 3.35rem); }
  .content-section { margin-top: 56px; }
  .content-section > h2 { font-size: 2rem; }
  .wide-media { width: calc(100vw - 32px); margin-top: 30px; }
  .wide-media img { border-radius: 12px; }
  .table-wrap { border: 0; overflow: visible; }
  table, thead, tbody, tr, th, td { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { margin-bottom: 1rem; padding: .85rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
  td { padding: .65rem; border-bottom: 1px solid var(--border); }
  td:last-child { border-bottom: 0; }
  td[data-label]::before { content: attr(data-label); display: block; margin-bottom: .2rem; color: var(--gold); font-size: .76rem; font-weight: 850; }
  .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .footer-links { columns: 1; }
  .footer-inner { width: min(calc(100% - 32px), var(--max)); padding-top: 48px; }
  .site-bottom-cta {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: min(calc(100% - 24px), 500px);
  }
  .site-bottom-cta__inner { gap: 8px; padding: 6px; border-radius: 18px; }
  .site-bottom-cta__button { min-height: 50px; padding: .65rem .75rem; font-size: .94rem; }
  .site-footer .footer-inner { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) and (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .js .primary-navigation { position: absolute; top: 70px; right: 20px; display: none; width: min(340px, calc(100vw - 40px)); padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); }
  .js .primary-navigation.is-open { display: block; }
  .primary-navigation ul { flex-direction: column; align-items: stretch; }
  .primary-navigation a { justify-content: center; }
}

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