/* Cavalcante Painting Company
   Layout utilities come from Tailwind (CDN). This file holds the brand tokens,
   the type scale of the visual reference and the shared components. */

:root {
  --navy: #14203C;
  --gold: #D4A04C;
  --gold-dark: #8A6116; /* darker gold for small text and icons on light backgrounds */
  --cream: #F3EDE2;
  --flame: #DE5B3B;
  --red: #C7302A;
  --radius: 15px;
  --shadow: 0 0 60px rgba(0, 0, 0, 0.1);
}

[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--navy); padding: 12px 16px; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }
.sec { padding-block: 3.5rem; }
@media (min-width: 768px) { .sec { padding-block: 4.5rem; } }
@media (min-width: 1025px) { .sec { padding-block: 6rem; } }
.sec-head { max-width: 640px; margin: 0 auto 2.5rem; text-align: center; }
@media (min-width: 1025px) { .sec-head { margin-bottom: 3.5rem; } }
.tap { min-height: 44px; }

/* ---------- type scale (Outfit for headings, Inter for text) ---------- */
h1, h2, h3, .t-hero, .t-h1, .t-h2, .t-h3, .t-h4, .t-h5, .t-h6, .eyebrow, .btn, .nav-link, .mnav-link { font-family: 'Outfit', sans-serif; }
.t-hero { font-weight: 700; font-size: 38px; line-height: 1; letter-spacing: -1px; }
.t-h1 { font-weight: 600; font-size: 30px; line-height: 1.2; letter-spacing: -1px; }
.t-h2 { font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -0.5px; }
.t-h3 { font-weight: 600; font-size: 20px; line-height: 1.3; }
.t-h4 { font-weight: 400; font-size: 18px; line-height: 1.3; }
.t-h5 { font-weight: 500; font-size: 17px; line-height: 1.4; }
.t-h6 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
@media (min-width: 768px) {
  .t-hero { font-size: 44px; } .t-h1 { font-size: 37px; } .t-h2 { font-size: 31px; }
  .t-h3 { font-size: 25px; } .t-h4 { font-size: 21px; } .t-h5 { font-size: 18px; }
}
@media (min-width: 1025px) {
  .t-hero { font-size: 61px; } .t-h1 { font-size: 48px; } .t-h2 { font-size: 39px; }
  .t-h3 { font-size: 31px; } .t-h4 { font-size: 25px; } .t-h5 { font-size: 20px; } .t-h6 { font-size: 14px; }
}
.eyebrow { font-weight: 700; font-size: 13px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-dark); margin-bottom: 0.6rem; }
@media (min-width: 1025px) { .eyebrow { font-size: 14px; } }
.bg-navy .eyebrow, .cta .eyebrow { color: var(--gold); }
.text-gold-dark { color: var(--gold-dark); }
mark.ph { background: #FFE9A8; color: #5A3A00; padding: 0 4px; border-radius: 4px; font-style: normal; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 21px; border: 1px solid var(--gold);
  background: var(--gold); color: var(--navy);
  font-weight: 600; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.06em; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }
.bg-cream .btn:hover, .bg-white .btn:hover, .card .btn:hover, .consent .btn:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 12px; }
.btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy) !important; border-color: var(--navy) !important; color: var(--cream) !important; }
.link { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { color: var(--flame); }

/* ---------- header ---------- */
.nav-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; font-size: 16px; color: var(--cream); transition: color .2s; }
.nav-link:hover, .nav-link.is-active { color: var(--gold); }
.has-dd { position: relative; }
.dd { position: absolute; left: -16px; top: 100%; min-width: 300px; padding: 8px 0; background: var(--gold); color: var(--navy);
  border-radius: 0 0 15px 15px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s; }
.has-dd:hover .dd, .has-dd:focus-within .dd { opacity: 1; visibility: visible; transform: none; }
.dd-link { display: flex; align-items: center; min-height: 44px; padding: 8px 20px; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px; }
.dd-link:hover { background: var(--navy); color: var(--cream); }
.mnav-link { display: flex; align-items: center; min-height: 48px; font-weight: 600; font-size: 17px; color: var(--cream); border-bottom: 1px solid rgba(255,255,255,.08); }
.mnav-link.is-active { color: var(--gold); }
.mnav-sub { display: flex; align-items: center; min-height: 44px; padding-left: 18px; font-size: 16px; color: rgba(243,237,226,.85); border-bottom: 1px solid rgba(255,255,255,.06); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 1.5rem; font-size: 16px; color: var(--cream); }
@media (min-width: 768px) { .crumbs { font-size: 14px; } }
.crumbs a { min-width: 44px; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- hero ---------- */
.hero-left { padding-inline: 20px; }
@media (min-width: 768px) { .hero-left { padding-inline: 32px; } }
@media (min-width: 1025px) {
  .hero-left { padding-left: max(32px, calc((100vw - 1280px) / 2 + 32px)); padding-right: 56px; padding-block: 5rem 7rem; }
}
.hero-media { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy); }
@media (min-width: 1025px) { .hero-media { aspect-ratio: auto; height: 100%; min-height: 640px; max-height: 900px; } }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1s ease; }
.hero-slide.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } html { scroll-behavior: auto; } }

/* ---------- cards and boxes ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--navy); }
.card-icon { position: absolute; left: 24px; top: -36px; display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--gold-dark); box-shadow: var(--shadow); }
.ibadge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.box { background: var(--cream); border-radius: var(--radius); padding: 1.75rem; }
.bg-cream .box { background: #fff; }
.badge { position: absolute; right: 0; top: -21px; width: 150px; height: 150px; border-radius: 50%; background: #fff; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; }
.badge .t-hero { font-size: 40px; }
.badge-label { margin-top: 6px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; line-height: 1.25; }
@media (min-width: 768px) { .badge { right: -21px; width: 200px; height: 200px; } .badge .t-hero { font-size: 56px; } .badge-label { font-size: 14px; } }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--gold); color: var(--navy); font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 32px; box-shadow: var(--shadow); }
.check { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 7px; background: #fff; color: var(--navy);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 16px; transition: background-color .2s, color .2s; }
.bg-white .chip { background: var(--cream); }
.chip:hover, .chip-on { background: var(--navy) !important; color: var(--cream); }
.rel { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 14px 20px; border-radius: var(--radius);
  background: #fff; color: var(--navy); font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 17px; box-shadow: 0 0 30px rgba(0,0,0,.06); transition: background-color .2s, color .2s; }
.bg-white .rel { background: var(--cream); box-shadow: none; }
.rel:hover { background: var(--navy); color: var(--cream); }
.rel svg { flex: none; color: var(--gold-dark); }
.rel:hover svg { color: var(--gold); }

/* ---------- text blocks ---------- */
.prose-copy p { margin-top: 1rem; font-size: 17px; line-height: 1.65; }
.prose-copy p:first-child { margin-top: 0; }
.prose-post h2 { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 24px; line-height: 1.25; margin-top: 2.5rem; scroll-margin-top: 110px; }
@media (min-width: 1025px) { .prose-post h2 { font-size: 31px; } }
.prose-post ul, .prose-post ol { margin-top: 1rem; padding-left: 1.4rem; font-size: 17px; line-height: 1.65; }
.prose-post ul { list-style: disc; } .prose-post ol { list-style: decimal; }
.prose-post li { margin-top: .4rem; }
.prose-post li::marker { color: var(--gold-dark); font-weight: 700; }
.toc { margin-block: 2rem; padding: 1.5rem 1.75rem; border-radius: var(--radius); background: var(--cream); }
.toc ol { margin-top: .75rem; padding-left: 1.3rem; list-style: decimal; }
.toc li { padding-block: 0; }
.toc li a, .link-row a, .tlink { display: inline-flex; align-items: center; min-height: 44px; }
.link-row { line-height: 1.4; }
.author { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 3rem; padding: 1.75rem; border-radius: var(--radius); background: var(--cream); }
@media (min-width: 640px) { .author { flex-direction: row; align-items: flex-start; } }

/* ---------- accordion ---------- */
.acc-item { border-bottom: 1px solid rgba(20, 32, 60, .15); }
.acc-btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; padding: 14px 0; text-align: left;
  font-family: 'Outfit', sans-serif; font-weight: 500; font-size: 18px; line-height: 1.35; color: var(--navy); }
.acc-btn:hover { color: var(--flame); }
.acc-ico { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); transition: transform .2s; }
.acc-panel { padding: 0 0 1.25rem; font-size: 17px; line-height: 1.65; }

/* ---------- WhatsApp call to action ---------- */
/* Closing call-to-action band, on every page: one shared photo under a navy layer. To change it, replace /assets/img/cta-fundo.jpg */
.cta { background-image: linear-gradient(rgba(20, 32, 60, .88), rgba(20, 32, 60, .88)), url('/assets/img/cta-fundo.jpg?v=c600af20');
  background-size: cover; background-position: 63% 35%; }

/* ---------- gallery ---------- */
.filter { min-height: 44px; padding: 8px 20px; border-radius: 21px; border: 1px solid var(--navy); color: var(--navy);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; transition: all .2s; }
.filter:hover { background: var(--navy); color: var(--cream); }
.filter.is-on { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.gallery { column-count: 2; column-gap: 14px; }
@media (min-width: 1025px) { .gallery { column-count: 3; column-gap: 20px; } }
.gitem { break-inside: avoid; margin-bottom: 14px; }
@media (min-width: 1025px) { .gitem { margin-bottom: 20px; } }
.gitem[hidden] { display: none; }
/* Photos keep their own shape and read left to right, top to bottom (newest first).
   Each one takes a number of thin rows that the generator works out from its shape (--sa, --sb).
   Browsers without container units keep the simple columns above. */
.gallery-box { container-type: inline-size; }
@supports (width: 1cqw) {
  .gallery { --n: 2; --g: 14px; --col: calc((100cqw - (var(--n) - 1) * var(--g)) / var(--n));
    display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); column-gap: var(--g); grid-auto-rows: calc(var(--col) / 40); }
  .gitem { margin-bottom: 0; grid-row-end: span var(--sa); }
  @media (min-width: 768px) { .gitem { grid-row-end: span var(--sb); } }
  @media (min-width: 1025px) { .gallery { --n: 3; --g: 20px; } }
}
.gbtn { display: block; width: 100%; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gbtn img { transition: transform .5s; }
.gbtn:hover img { transform: scale(1.03); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 32, 60, .93); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; margin: 0 auto; max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 12px; text-align: center; color: var(--cream); font-size: 16px; }
.lightbox-close { position: fixed; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--navy); }
.lightbox-prev { left: 12px; }
.lightbox-prev svg { transform: rotate(180deg); }
.lightbox-next { right: 12px; }
.lightbox-nav:hover, .lightbox-close:hover { background: var(--cream); }

/* ---------- footer ---------- */
.flink { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; transition: color .2s; }
.flink:hover { color: var(--flame); }
.flink svg { flex: none; color: var(--gold-dark); }

/* ---------- estimate button menu: WhatsApp, Text us, Call us ---------- */
.est { position: relative; }
.est-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 230px; padding: 8px; text-align: left;
  background: #fff; color: var(--navy); border-radius: 15px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }
.est-right .est-menu { left: auto; right: 0; }
.est-menu.est-above { top: auto; bottom: calc(100% + 8px); }
.est-menu[hidden] { display: none; }
.est-title { display: none; }
.est-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 16px; }
.est-opt:hover, .est-opt:focus-visible { background: var(--cream); }
.est-opt svg { flex: none; color: var(--gold-dark); }
.est-backdrop { position: fixed; inset: 0; z-index: 59; background: rgba(20, 32, 60, .55); }
.est-backdrop[hidden] { display: none; }
@media (max-width: 767px) {
  /* phones: the options rise from the bottom of the screen */
  .est-menu { position: fixed; top: auto; left: 0; right: 0; bottom: 0; min-width: 0; padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); animation: est-up .22s ease-out; }
  .est-title { display: block; padding: 18px 0 8px; text-align: center; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 18px; position: relative; }
  .est-title::before { content: ""; position: absolute; top: 4px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(20, 32, 60, .2); }
  .est-opt { min-height: 56px; font-size: 17px; }
  body.est-open { overflow: hidden; }
}
@keyframes est-up { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .est-menu { animation: none; } }

/* ---------- call / text / WhatsApp icons next to a phone number ---------- */
.popts { display: inline-flex; align-items: center; }
.popt { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: inherit; transition: background-color .2s, color .2s; }
.popt:hover { background: rgba(20, 32, 60, .1); }
footer .popt { color: var(--gold-dark); }
footer .popt:hover { color: var(--navy); }
.btn svg { flex: none; }

/* ---------- floating WhatsApp and consent bar ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.3); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
body.has-consent .wa-float { bottom: var(--consent-h, 150px); }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 14px 20px; background: #fff; color: var(--navy); border-top: 3px solid var(--gold); box-shadow: 0 -6px 30px rgba(0,0,0,.15); font-size: 16px; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent p { max-width: 820px; }
.consent .btn { min-height: 44px; padding: 10px 22px; }
@media (min-width: 768px) { .consent { flex-direction: row; align-items: center; justify-content: center; gap: 24px; padding-inline: 32px; } }
