/* =========================================================
   Costa Bela Pinturas — landing page (layout da referência aprovada)
   Mobile-first. Cores e medidas centralizadas em :root.
   ========================================================= */
:root {
  --navy: #102A43;
  --navy-900: #0b2036;
  --navy-700: #1b3a5c;
  --gold: #C5A46D;
  --gold-light: #e6cd93;
  --gold-600: #a8864f;
  --gold-100: #f1e7d4;
  --sand: #F7F5F0;
  --sand-200: #efeadf;
  --white: #FFFFFF;
  --ink: #16212d;
  --muted: #4f5b68;
  --line: #e6e1d6;

  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --radius: 16px;
  --shadow: 0 8px 24px -12px rgba(16, 42, 67, .28);
  --header-h: 64px;
  --container: 1120px;
  --gutter: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hl { color: var(--gold); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .7rem 1.2rem; min-height: 44px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; line-height: 1.15; text-decoration: none; cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #b9965d; filter: none; }
.btn-gold .icon { width: 1.45em; height: 1.45em; }
.btn-sm { min-height: 38px; padding: .5rem 1rem; font-size: .9rem; }
.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255,255,255,.4); background: transparent; }
.btn-hero { font-size: 1.05rem; padding: .95rem 1.4rem; min-height: 54px; }
.btn-hero .icon-arrow { width: 1.1em; height: 1.1em; stroke-width: 2.2; }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-sub { font-size: .6rem; font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-top: 4px; padding-left: 2px; }

/* ---------- 1. Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: var(--header-h); }
.header-loc { display: none; }
.header-phone { padding: .5rem .85rem; min-height: 40px; font-size: .88rem; white-space: nowrap; }
.header-phone .icon { width: 1.3em; height: 1.3em; }

/* ---------- 2. Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero-copy { padding: 28px 0 26px; }
.gold-rule { display: block; width: 46px; height: 3px; border-radius: 2px; background: var(--gold); margin-bottom: 16px; }
.hero h1 { font-size: clamp(1.9rem, 7.6vw, 3.25rem); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 14px; }
.hero-lead { font-size: clamp(1.02rem, 3.6vw, 1.32rem); line-height: 1.42; color: #eef2f6; margin-bottom: 22px; max-width: 30em; }
.hero .btn-hero { width: 100%; }
.hero-features { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin-top: 22px; }
.hero-features li { display: flex; align-items: center; gap: 8px; padding: 0 12px; font-size: .82rem; line-height: 1.25; color: #fff; border-left: 1px solid rgba(197,164,109,.55); }
.hero-features li:first-child { padding-left: 0; border-left: 0; }
.hero-features .icon { width: 26px; height: 26px; color: var(--gold); stroke-width: 1.6; }

.hero-media { position: relative; height: 250px; background: var(--gold); clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%;
  clip-path: polygon(0 32px, 100% 6px, 100% 100%, 0 100%);
}

/* ---------- 3. Serviços ---------- */
.services-section { padding: 30px 0 34px; background: #fff; }
.kicker {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 20px;
  font-size: .9rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--navy);
}
.kicker::before, .kicker::after { content: ""; width: 40px; height: 2px; background: var(--gold); border-radius: 2px; }
.services { display: grid; gap: 16px; }
.service-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: none; border: 1px solid var(--line); }
.service-card img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; background: var(--sand-200); }
.service-body { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 18px; }
.service-icon { width: 38px; height: 38px; color: var(--gold); stroke-width: 1.5; margin-top: 2px; }
.service-body h3 { font-size: 1.35rem; font-weight: 700; color: var(--navy); letter-spacing: -.01em; margin-bottom: 3px; }
.service-body p { color: var(--muted); font-size: .98rem; line-height: 1.4; }

/* ---------- 4. Experiência ---------- */
.experience {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px;
  margin-top: 22px; padding: 18px; border-radius: var(--radius);
  background: var(--sand); border: 1px solid var(--sand-200);
}
.experience-icon { width: 46px; height: 46px; color: var(--gold); stroke-width: 1.4; }
.experience-divider { display: none; }
.experience h2 { font-size: 1.3rem; font-weight: 700; line-height: 1.15; color: var(--navy); letter-spacing: -.01em; }
.experience p { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* ---------- 5. Chamada final ---------- */
.final-cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; text-align: center; padding: 34px 0 36px; }
.final-cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.final-cta h2 { font-size: clamp(1.7rem, 6.4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.final-cta p { color: #e3e9ef; font-size: 1.02rem; margin-bottom: 8px; }
.final-cta .btn-hero { width: 100%; max-width: 420px; }

/* ---------- 6. Rodapé ---------- */
.site-footer { background: var(--navy-900); color: #dfe6ed; padding: 22px 0 18px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-row { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-loc, .footer-wa { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; text-decoration: none; }
.footer-loc .icon { color: var(--gold); }
.footer-wa { font-size: 1.05rem; font-weight: 500; }
.footer-wa .icon { color: var(--gold); width: 1.4em; height: 1.4em; }
.footer-legal { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .74rem; color: #93a3b4; display: grid; gap: 4px; }
.footer-legal a, .link-btn { color: #b9c6d3; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- Consentimento e aviso ---------- */
.consent {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 150;
  max-width: 520px; padding: 16px; border-radius: var(--radius); background: #fff; color: var(--ink);
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.45); border: 1px solid var(--line); font-size: .9rem;
}
.consent p { margin-bottom: 8px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.consent .btn-outline { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 160;
  width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--navy-900); color: #fff; font-size: .92rem; font-weight: 600; border: 1px solid rgba(197,164,109,.4);
}

/* =========================================================
   Breakpoints
   ========================================================= */
@media (max-width: 359px) {
  .header-phone span { display: none; }
  .brand-name { font-size: 1.15rem; }
}

@media (min-width: 560px) {
  .hero .btn-hero, .final-cta .btn-hero { width: auto; }
  .hero-features li { font-size: .92rem; padding: 0 18px; }
  .hero-media { height: 340px; }
}

@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .services { grid-template-columns: 1fr 1fr; gap: 22px; }
  .experience { grid-template-columns: auto auto 1fr 1.15fr; gap: 0 24px; padding: 24px 32px; }
  .experience-divider { display: block; width: 2px; height: 60px; background: var(--gold); opacity: .7; }
  .experience h2 { font-size: 1.6rem; }
  .experience p { grid-column: auto; }
  .footer-row { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-loc { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.2); margin-right: auto; margin-left: 24px; }
  .footer-legal { grid-auto-flow: column; justify-content: space-between; text-align: left; }
}

@media (min-width: 900px) {
  :root { --header-h: 84px; }
  .brand-mark { width: 54px; height: 54px; }
  .brand-name { font-size: 1.85rem; }
  .brand-sub { font-size: .72rem; margin-top: 6px; }
  .header-loc {
    display: inline-flex; align-items: center; gap: 8px; margin-right: auto; margin-left: 40px;
    padding-left: 40px; border-left: 1px solid rgba(255,255,255,.22); font-size: 1.05rem; font-weight: 500; color: #fff;
  }
  .header-loc .icon { color: var(--gold); width: 22px; height: 22px; }
  .header-phone { font-size: 1.1rem; padding: .7rem 1.4rem; min-height: 50px; }

  /* Hero dividido: texto à esquerda, foto à direita com recorte diagonal dourado */
  .hero { min-height: 470px; display: flex; align-items: center; }
  .hero-inner { width: 100%; }
  .hero-copy { width: 58%; max-width: 640px; padding: 40px 0 42px; }
  .hero .btn-hero { width: auto; }
  .hero-media {
    position: absolute; top: 0; right: 0; bottom: 0; width: 52%; height: auto;
    clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  }
  .hero-media img { clip-path: polygon(calc(25% + 14px) 0, 100% 0, 100% 100%, 14px 100%); object-position: 70% 25%; }

  .services-section { padding: 34px 0 34px; }
  .kicker { margin-bottom: 24px; font-size: .98rem; }
  .services { max-width: 960px; margin: 0 auto; gap: 24px; }
  .service-card img { aspect-ratio: 470 / 205; }
  .service-body { padding: 18px 22px 22px; gap: 18px; }
  .service-icon { width: 46px; height: 46px; }
  .service-body h3 { font-size: 1.55rem; }
  .service-body p { font-size: 1.05rem; }
  .experience { margin-top: 30px; padding: 26px 40px; }
  .experience-icon { width: 64px; height: 64px; }
  .experience h2 { font-size: 1.9rem; }

  .final-cta { padding: 38px 0 40px; }
  .final-cta p { font-size: 1.15rem; }

  .site-footer { padding: 24px 0 16px; }
  .footer-row .brand-mark { width: 48px; height: 48px; }
  .footer-row .brand-name { font-size: 1.55rem; }
  .footer-wa { font-size: 1.2rem; }
}

@media (min-width: 1200px) {
  .hero { min-height: 500px; }
  .hero h1 { font-size: 3.35rem; }
}

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

/* Ajustes finos após comparação visual com a referência */
@media (min-width: 900px) {
  .hero-media img { object-position: 72% 62%; }
  .hero .btn-hero { font-size: 1.22rem; padding: 1rem 1.9rem; min-height: 62px; }
  .hero-lead { font-size: 1.4rem; margin-bottom: 26px; }
  .hero-features { margin-top: 26px; }
  .hero-features li { font-size: 1rem; gap: 12px; padding: 0 22px; }
  .hero-features .icon { width: 34px; height: 34px; }
}
/* Enquadramento da foto no celular e largura do texto no computador */
.hero-media img { object-position: 78% 72%; }
@media (min-width: 900px) {
  .hero-lead { max-width: 500px; }
}
/* Botão principal em uma linha nos celulares */
@media (max-width: 559px) {
  .btn-hero { font-size: 1rem; padding: .9rem 1rem; gap: .45rem; }
}
@media (max-width: 400px) {
  .btn-hero .icon-arrow { display: none; }
}

/* Enquadramento da foto principal (Pexels 7218579) */
.hero-media img { object-position: 50% 15%; }
@media (min-width: 900px) { .hero-media img { object-position: 45% 18%; } }
