/* ================================================================
   UmClick — main.css
   Design System: Golden (dark + gold). Premium silencioso.
   ================================================================ */

:root {
  /* paleta */
  --bg:           #0E0E0E;
  --surface-1:    #1A1A1A;
  --surface-2:    #242424;
  --border:       #2E2E2E;
  --gold:         #D4B26A;
  --gold-1:       #C9A961;
  --gold-2:       #B8975A;
  --gold-muted:   #8B7355;
  --text:         #F5F2E8;
  --text-dim:     #A8A296;
  --success:      #6B7F5C;
  --danger:       #8B4A3D;

  /* tipografia */
  --font-head: "Playfair Display", "EB Garamond", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* ritmo */
  --container: 1280px;
  --gutter: 32px;
  --section-py: 120px;
  --section-py-mobile: 64px;
  --radius: 4px;
  --radius-lg: 8px;

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 220ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 .4em;
  line-height: 1.15;
}
h1 { font-size: clamp(40px, 5.8vw, 72px); }
h2 { font-size: clamp(28px, 3.4vw, 48px); }
h3 { font-size: clamp(20px, 2vw, 28px); }
h4 { font-size: 20px; }
p { margin: 0 0 1em; color: var(--text-dim); }
a { color: var(--gold); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold-1); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: var(--section-py) 0; }
@media (max-width: 768px) {
  section { padding: var(--section-py-mobile) 0; }
  :root { --gutter: 20px; }
}
/* Mobile: tabelas largas rolam em vez de estourar a viewport */
@media (max-width: 768px) {
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .post-body table { white-space: nowrap; }
  pre, code { max-width: 100%; overflow-x: auto; }
}

/* Guarda universal anti-overflow horizontal */
h1, h2, h3, p, li, a, span { overflow-wrap: anywhere; word-break: break-word; }
.container, section, main, header, footer, article, aside { max-width: 100%; }
img, picture, video, iframe, svg, table { max-width: 100% !important; height: auto; }
@media (max-width: 768px) {
  /* qualquer grid inline com colunas fixas vira 1 coluna no celular */
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="display:flex"], [style*="display: flex"] { flex-wrap: wrap; }
}

/* ================================================================
   BOTÕES
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0E0E0E;
}
.btn-primary:hover {
  color: #0E0E0E;
  filter: brightness(1.08);
  box-shadow: 0 8px 24px rgba(212,178,106,.18);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border-color: var(--gold-muted);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--surface-1);
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--gold); }

/* ================================================================
   NAV
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14,14,14,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
}
.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin-top: 2px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-menu a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}
.nav-menu a:hover { color: var(--text); }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--dur) var(--ease);
}
.nav-menu a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; font-size: 24px; line-height: 1; padding: 8px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(14,14,14,.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 14px var(--gutter);
    font-size: 16px;
  }
  .nav-menu a::after { display: none; }
  .nav-menu .btn {
    margin: 12px var(--gutter) 0;
    width: calc(100% - (2 * var(--gutter)));
    text-align: center;
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: center;
}
.hero-text h1 { font-size: clamp(40px, 6vw, 76px); margin-top: 0; }
.hero-text p { font-size: 18px; max-width: 540px; }
.hero-cta { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .hero { padding: 48px 0 64px; }
  .widget { padding: 24px; }
  .widget-grid { grid-template-columns: 1fr; }
  /* grids inline das service/blog pages: nunca exigir largura > viewport */
  [style*="minmax(280px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(220px"] { grid-template-columns: 1fr !important; }
  [style*="minmax(160px"] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ================================================================
   WIDGET CONVERSACIONAL
   ================================================================ */
.widget {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}
.widget-step { display: none; animation: stepIn .35s var(--ease); }
.widget-step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
.widget h2 { font-size: 24px; margin-bottom: 24px; }
.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.widget .chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  user-select: none;
  font-size: 14px;
}
.widget .chip:hover { border-color: var(--gold-muted); }
.widget .chip input { display: none; }
.widget .check {
  width: 16px;
  height: 16px;
  border: 1px solid var(--gold-muted);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.widget .check::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #0E0E0E;
  border-bottom: 2px solid #0E0E0E;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.widget .chip input:checked + .check {
  background: var(--gold);
  border-color: var(--gold);
}
.widget .chip input:checked + .check::after { opacity: 1; }
.widget .chip input:checked ~ span { color: var(--text); }
.widget .chip:has(input:checked) {
  background: rgba(212,178,106,.06);
  border-color: var(--gold-muted);
}
.widget .field { margin-bottom: 20px; }
.widget label.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.widget input[type=text],
.widget input[type=tel],
.widget select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--dur) var(--ease);
}
.widget input:focus,
.widget select:focus {
  outline: none;
  border-color: var(--gold);
}
.widget .radio-row,
.widget .check-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.widget .radio-row .chip { padding: 12px 14px; font-size: 13px; }
.widget-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}
.widget-actions .btn { flex: 1; }
.widget .btn-back {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  padding: 8px 12px;
}
.widget .btn-back:hover { color: var(--gold); }
.widget-microtext {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
}
.widget-result {
  text-align: center;
  padding: 8px 0;
}
.widget-result .range {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--gold);
  margin: 16px 0 8px;
  letter-spacing: -0.01em;
}
.widget-result .range-sub { font-size: 13px; color: var(--text-dim); }
.widget-result.capped .range { font-size: 20px; line-height: 1.4; color: var(--text); }
.widget-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-muted);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* sub-opções aparecem condicionais */
.sub-options { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.sub-options.active { display: block; }
.sub-options .field-label { font-size: 11px; }

/* ================================================================
   SECTIONS
   ================================================================ */
.section-head {
  margin-bottom: 56px;
  max-width: 720px;
}
.section-head h2 { margin-bottom: 12px; }
.section-head p { font-size: 17px; }

.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-muted) 50%, transparent);
  opacity: 0.5;
  margin: 0;
  border: 0;
}

/* MARCAS LOGOS */
.brands-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 24px 0;
}
.brand-logo {
  font-family: var(--font-head);
  font-size: 17px;
  font-style: italic;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.02em;
  opacity: 0.7;
  transition: all var(--dur) var(--ease);
}
.brand-logo:hover { color: var(--gold); opacity: 1; }

/* PROCESS / passos */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.step .step-num {
  font-family: var(--font-head);
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
}
.step h4 { margin-bottom: 8px; }
.step p { font-size: 14px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
}

/* PROJETOS galeria */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.gallery .item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-1);
  border: 1px solid var(--border);
  cursor: pointer;
}
.gallery .item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.gallery .item:hover img { transform: scale(1.04); }
.gallery .label {
  position: absolute;
  left: 24px; bottom: 24px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 2;
}
.gallery .item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent 50%);
  pointer-events: none;
}
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr; } }

/* PACOTES */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pkg {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: border-color var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.pkg:hover { border-color: var(--gold-muted); }
.pkg.featured { border-color: var(--gold-muted); }
.pkg-name { font-family: var(--font-head); font-size: 28px; margin-bottom: 6px; color: var(--gold); }
.pkg-tagline { font-size: 14px; color: var(--text-dim); margin-bottom: 24px; min-height: 42px; }
.pkg-list { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.pkg-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
}
.pkg-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.pkg .btn { width: 100%; }
@media (max-width: 900px) { .packages { grid-template-columns: 1fr; } }

/* DEPOIMENTOS */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.testimonial p.quote {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 24px;
  position: relative;
}
.testimonial p.quote::before {
  content: "“";
  position: absolute;
  font-size: 80px;
  color: var(--gold);
  line-height: 1;
  left: -40px; top: -16px;
  opacity: 0.6;
  pointer-events: none;
}
@media (max-width: 768px) {
  .testimonial p.quote::before { left: -8px; font-size: 56px; }
}
.testimonial .author {
  font-size: 13px;
  color: var(--gold-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 720px) { .testimonials { grid-template-columns: 1fr; } }

/* ACCORDION FAQ */
.accordion .acc-item {
  border-bottom: 1px solid var(--border);
}
.accordion .acc-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--text);
  transition: color var(--dur) var(--ease);
}
.accordion .acc-q:hover { color: var(--gold); }
.accordion .acc-q .icon {
  width: 16px; height: 16px;
  position: relative;
  flex-shrink: 0;
}
.accordion .acc-q .icon::before,
.accordion .acc-q .icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform var(--dur) var(--ease);
}
.accordion .acc-q .icon::before { left: 0; top: 50%; width: 16px; height: 1px; transform: translateY(-50%); }
.accordion .acc-q .icon::after  { left: 50%; top: 0; width: 1px; height: 16px; transform: translateX(-50%); }
.accordion .acc-item.open .acc-q .icon::after { transform: translateX(-50%) rotate(90deg); }
.accordion .acc-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms var(--ease);
}
.accordion .acc-item.open .acc-a { max-height: 600px; }
.accordion .acc-a-inner { padding: 0 0 28px; color: var(--text-dim); max-width: 800px; }

/* CTA strip */
.cta-strip {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 96px 0;
}
.cta-strip h2 { max-width: 720px; margin: 0 auto 24px; }
.cta-strip h2 .underline {
  display: inline-block;
  background-image: linear-gradient(90deg, var(--gold), var(--gold));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 8px;
}
.cta-strip p { font-size: 17px; margin-bottom: 32px; }
.cta-strip .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-grid h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin: 0 0 20px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a { color: var(--text-dim); font-size: 14px; }
.footer-grid li a:hover { color: var(--gold); }
.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--gold-muted);
  letter-spacing: 0.1em;
  padding-top: 32px;
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent, var(--gold-muted), transparent) 1;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   ASIDE / SEÇÃO DE TEXTO LONGO (faq, sobre, blog)
   ================================================================ */
.layout-editorial {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
}
.layout-editorial .sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.layout-editorial .sidebar h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-muted);
  margin: 24px 0 12px;
}
.layout-editorial .sidebar ul { list-style: none; padding: 0; margin: 0; }
.layout-editorial .sidebar li a {
  display: block;
  padding: 8px 0;
  color: var(--text-dim);
  font-size: 14px;
  border-left: 1px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
  transition: all var(--dur) var(--ease);
}
.layout-editorial .sidebar li a:hover,
.layout-editorial .sidebar li a.active {
  color: var(--gold);
  border-left-color: var(--gold);
}
.layout-editorial .content { max-width: 760px; }
.layout-editorial .content article + article { margin-top: 56px; }
.layout-editorial .content h2 { font-size: 26px; margin: 0 0 16px; }
.layout-editorial .content p { font-size: 16px; line-height: 1.75; color: var(--text-dim); }
.layout-editorial .content .lead { color: var(--text); }
@media (max-width: 900px) {
  .layout-editorial { grid-template-columns: 1fr; gap: 32px; }
  .layout-editorial .sidebar { position: static; }
}

/* Utility */
.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-dim    { color: var(--text-dim); }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 64px; }

/* respeita preferência de reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
