/* =========================================================
   Pinturas Nobre — design system
   ========================================================= */

:root{
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-alt: #efefe9;
  --text: #17181c;
  --text-muted: #55595f;
  --border: #e3e2dc;
  --brand: #f2c200;
  --brand-ink: #17181c;
  --accent: #1f5c8b;
  --accent-ink: #ffffff;
  --shadow: 0 10px 30px -12px rgba(20,20,20,.18);
  --shadow-sm: 0 2px 10px rgba(20,20,20,.08);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 78px;
  color-scheme: light;
}

:root[data-theme="dark"]{
  --bg: #0e1013;
  --surface: #191c21;
  --surface-alt: #212530;
  --text: #f2f2ef;
  --text-muted: #a7acb5;
  --border: #2b2f38;
  --brand: #ffd400;
  --brand-ink: #14151a;
  --accent: #5aa3dd;
  --accent-ink: #0e1013;
  --shadow: 0 10px 30px -10px rgba(0,0,0,.55);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg: #0e1013;
    --surface: #191c21;
    --surface-alt: #212530;
    --text: #f2f2ef;
    --text-muted: #a7acb5;
    --border: #2b2f38;
    --brand: #ffd400;
    --brand-ink: #14151a;
    --accent: #5aa3dd;
    --accent-ink: #0e1013;
    --shadow: 0 10px 30px -10px rgba(0,0,0,.55);
    --shadow-sm: 0 2px 10px rgba(0,0,0,.35);
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .icon-sun{ opacity: 1; transform: rotate(0) scale(1); }
  :root:not([data-theme="light"]) .icon-moon{ opacity: 0; transform: rotate(60deg) scale(.6); }
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

h1, h2, h3, h4{
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--text-muted); line-height: 1.7; }

a{ color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

ul{ margin: 0; padding: 0; list-style: none; }

button{ font: inherit; cursor: pointer; }

.container{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section{ padding: 84px 0; }
.section-alt{ background: var(--surface-alt); }
.section-head{ max-width: 640px; margin: 0 0 48px; }
.section-head.center{ margin-inline: auto; text-align: center; }
.eyebrow{
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* ---------------------------------- buttons ---------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ box-shadow: var(--shadow); }
.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{ border-color: var(--accent); color: var(--accent); }
.btn-block{ width: 100%; justify-content: center; }

/* ---------------------------------- header ---------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: border-color .25s ease;
}

/* o blur fica num pseudo-elemento (não um ancestral do .nav) para que
   backdrop-filter não vire o containing block dos filhos position:fixed */
.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  transition: background-color .25s ease;
}

.site-header .container{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img{ height: 45px; width: auto; }

.nav{
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a{
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: background-color .18s ease, color .18s ease;
}
.nav a:hover{ color: var(--text); background: var(--surface-alt); }
.nav a.active{ color: var(--brand-ink); background: var(--brand); }

.header-actions{ display: flex; align-items: center; gap: 10px; }

.theme-toggle{
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  transition: border-color .18s ease, background-color .18s ease;
}
.theme-toggle:hover{ border-color: var(--accent); }
.theme-toggle svg{ width: 20px; height: 20px; position: absolute; transition: opacity .2s ease, transform .3s ease; }
.icon-sun{ opacity: 0; transform: rotate(-60deg) scale(.6); }
.icon-moon{ opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .icon-sun{ opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .icon-moon{ opacity: 0; transform: rotate(60deg) scale(.6); }

.nav-toggle{
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle svg{ width: 20px; height: 20px; }

@media (max-width: 880px){
  .nav-toggle{ display: flex; }
  .nav{
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 6px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    overflow-y: auto;
  }
  .nav.open{ opacity: 1; transform: translateY(0); visibility: visible; }
  .nav a{ padding: 16px 18px; font-size: 1.05rem; border: 1px solid var(--border); }
  .nav a.active{ border-color: var(--brand); }
}

/* ---------------------------------- hero / slider ---------------------------------- */
.hero{
  position: relative;
  height: min(78vh, 640px);
  min-height: 420px;
  overflow: hidden;
  background: #0b0c0e;
}
.hero-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.active{ opacity: 1; }
.hero-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.55);
}
.hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(100deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.42) 48%, rgba(0,0,0,.15) 100%);
}
.hero-content{ max-width: 620px; color: #fff; }
.hero-content .eyebrow{ color: var(--brand); }
.hero-content h1{
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  color: #fff;
}
.hero-content p{
  color: rgba(255,255,255,.85);
  font-size: 1.08rem;
  max-width: 520px;
}
.hero-cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

.hero-dots{
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots button{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.7);
  background: transparent;
  padding: 0;
}
.hero-dots button.active{ background: var(--brand); border-color: var(--brand); }

/* ---------------------------------- page header (inner pages) ---------------------------------- */
.page-hero{
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 300px at 15% -20%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%),
    var(--surface);
}
.page-hero h1{ font-size: clamp(1.9rem, 4vw, 2.7rem); }
.breadcrumb{
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a:hover{ color: var(--accent); }

/* ---------------------------------- cards / grids ---------------------------------- */
.grid{ display: grid; gap: 26px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px){ .grid-3{ grid-template-columns: repeat(2,1fr); } .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card .icon{
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 22%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand-ink);
}
:root[data-theme="dark"] .card .icon{ color: var(--brand); background: color-mix(in srgb, var(--brand) 16%, transparent); }
.card h3{ font-size: 1.15rem; }
.card p{ margin-bottom: 0; }

.service-card{
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card .media{ aspect-ratio: 16/10; overflow: hidden; }
.service-card .media img{ width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service-card:hover .media img{ transform: scale(1.06); }
.service-card .body{ padding: 26px; }
.service-card h3{ font-size: 1.3rem; margin-bottom: 10px; }

/* ---------------------------------- gallery / lightbox ---------------------------------- */
.gallery{ display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery button{
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 4/3;
}
.gallery img{ width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery button:hover img{ transform: scale(1.08); }

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,7,9,.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open{ display: flex; }
.lightbox img{ max-width: 100%; max-height: 84vh; border-radius: 8px; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.lightbox-close{
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close svg{ width: 20px; height: 20px; }

/* ---------------------------------- FAQ / topics ---------------------------------- */
.topic{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--surface);
}
.topic h3{
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.topic h3 .num{
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.topic p{ margin: 10px 0 0; }

/* ---------------------------------- CTA band ---------------------------------- */
.cta-band{
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #0e2a3f));
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2{ color: #fff; font-size: 1.6rem; margin-bottom: 6px; }
.cta-band p{ color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn-primary{ box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* ---------------------------------- forms ---------------------------------- */
.form-grid{ display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full{ grid-column: 1 / -1; }
@media (max-width: 640px){ .form-grid{ grid-template-columns: 1fr; } }

label{ display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--text); }
input, textarea{
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, textarea:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
textarea{ resize: vertical; min-height: 130px; }

.alert{
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-weight: 600;
  font-size: .92rem;
}
.alert-success{ background: color-mix(in srgb, #2fae5f 18%, transparent); color: #1f7a44; border: 1px solid color-mix(in srgb, #2fae5f 40%, transparent); }
:root[data-theme="dark"] .alert-success{ color: #6fe19c; }
.alert-error{ background: color-mix(in srgb, #e0453b 18%, transparent); color: #b9291f; border: 1px solid color-mix(in srgb, #e0453b 40%, transparent); }
:root[data-theme="dark"] .alert-error{ color: #ff8b83; }

/* ---------------------------------- contact info ---------------------------------- */
.info-list{ display: grid; gap: 18px; }
.info-item{ display: flex; gap: 16px; align-items: flex-start; }
.info-item .icon{
  width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-item .icon svg{ width: 22px; height: 22px; }
.info-item h4{ font-size: .95rem; margin-bottom: 3px; }
.info-item p{ margin: 0; font-size: .93rem; }
.info-item a:hover{ color: var(--accent); }

.map-frame{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe{ width: 100%; height: 480px; border: 0; display: block; }

/* ---------------------------------- footer ---------------------------------- */
.site-footer{
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 780px){ .footer-grid{ grid-template-columns: 1fr; gap: 30px; } }
.footer-grid h4{ font-size: .95rem; margin-bottom: 16px; }
.footer-grid ul{ display: grid; gap: 10px; }
.footer-grid a{ color: var(--text-muted); font-size: .92rem; }
.footer-grid a:hover{ color: var(--accent); }
.footer-brand img{ height: 34px; margin-bottom: 14px; }
.footer-brand p{ font-size: .9rem; max-width: 320px; }

.footer-bottom{
  border-top: 1px solid var(--border);
  padding: 22px 0 26px;
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* faixa de assinatura, separada e destacada abaixo do rodapé principal */
.footer-credit{
  margin-top: 8px;
  padding: 20px 0;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}
.footer-credit .container{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--text-muted);
  text-align: center;
}
.credit-link{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: .85rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}
.credit-link:hover{
  transform: translateY(-2px);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.credit-link .tag{
  font-family: monospace;
  font-weight: 700;
  font-size: .8rem;
  color: var(--brand-ink);
  background: var(--brand);
  padding: 2px 7px;
  border-radius: 6px;
  transition: transform .25s ease;
}
.credit-link:hover .tag{ transform: rotate(-6deg) scale(1.08); }

/* ---------------------------------- whatsapp fab ---------------------------------- */
.wa-fab{
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.wa-fab:hover{ transform: scale(1.08); }
.wa-fab svg{ width: 28px; height: 28px; }

/* ---------------------------------- reveal on scroll ---------------------------------- */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view{ opacity: 1; transform: none; }

/* ---------------------------------- misc ---------------------------------- */
.two-col{ display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px){ .two-col{ grid-template-columns: 1fr; gap: 32px; } }
.stack-img{ display: grid; gap: 16px; }
.stack-img img{ border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }

hr.divider{ border: none; border-top: 1px solid var(--border); margin: 40px 0; }

@media (max-width: 640px){
  .section{ padding: 56px 0; }
  .cta-band{ padding: 32px; }
}
