/* ============================================================
   Rocha & Santos — Sucessões e Planejamento Patrimonial
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --brown: #875f45;
  --brown-dark: #6f4a32;
  --brown-deep: #5a3c28;
  --beige: #f0eee5;
  --beige-soft: #f7f4ec;
  --cream: #fafafa;
  --dark: #161616;
  --ink: #272727;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e6e1d6;
  --wa: #25d366;
  --wa-dark: #1da851;
  --white: #ffffff;

  --maxw: 1180px;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 30px rgba(40, 28, 18, .08);
  --shadow-soft: 0 6px 18px rgba(40, 28, 18, .10);
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
strong { color: var(--ink); font-weight: 600; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; font-weight: 700; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brown-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Reading progress ---------- */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brown), var(--brown-dark));
  z-index: 1000; transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  text-align: center; line-height: 1.2;
}
.btn svg { flex: 0 0 auto; }
.btn-wa {
  background: var(--wa); color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .28);
}
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-2px); box-shadow: 0 7px 18px rgba(37, 211, 102, .32); }
.btn-wa:active { transform: translateY(0); }
.btn-lg { font-size: 1.08rem; padding: 17px 34px; }

/* ---------- Header ---------- */
.site-header { background: var(--brown-dark); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; padding: 4px 6px; }
.brand-logo { height: 56px; width: auto; }
.header-actions { display: flex; align-items: center; gap: clamp(10px, 2.4vw, 26px); }
.header-link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--beige);
  white-space: nowrap;
}
.header-link:hover { color: #fff; }
.icon-badge {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  flex: 0 0 auto; color: #fff;
}
.icon-badge--wa { background: var(--wa); }
.icon-badge--ig { background: linear-gradient(45deg, #f09433, #e6683c 30%, #dc2743 50%, #cc2366 75%, #bc1888); }
.header-link-text { display: flex; flex-direction: column; line-height: 1.15; }
.header-link-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.header-link-value { font-size: .92rem; font-weight: 600; font-family: var(--font-head); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 80% 100%, #e3d8c6 0%, var(--beige) 45%, var(--beige-soft) 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 30px;
  min-height: 540px;
}
.hero-copy { padding-block: 56px 64px; max-width: 600px; }
.hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 3rem); text-transform: uppercase; letter-spacing: .01em;
  color: var(--ink);
}
.hero-sub {
  margin-top: 18px; font-family: var(--font-head); font-weight: 600;
  color: var(--brown); font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}
.hero-lead { margin-top: 12px; font-size: 1.05rem; color: var(--text); max-width: 460px; }
.hero .btn { margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.hero-photo { align-self: end; justify-self: center; }
.hero-photo img {
  width: auto; max-width: 100%; max-height: 540px; display: block;
  filter: saturate(1.02);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(54px, 7vw, 92px); }
.section--help { background: var(--white); }
.section--beige { background: var(--beige-soft); }
.section--dark { background: var(--brown-dark); color: #efe7dd; }
.section--about { background: var(--white); }
.section--reviews { background: var(--beige-soft); }
.section--faq { background: var(--white); }
.section--contact { background: var(--dark); color: #e9e6e1; }

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.15rem); text-align: center; text-transform: uppercase;
  letter-spacing: .01em; max-width: 18ch; margin-inline: auto; text-wrap: balance;
}
.section--dark .section-title, .section--contact .section-title { color: #fff; }
.section-lead {
  text-align: center; max-width: 60ch; margin: 18px auto 0; color: inherit; font-size: 1.05rem;
  text-wrap: pretty;
}
.section--beige .section-lead, .section--reviews .section-lead { color: var(--muted); }
.section-note { text-align: center; max-width: 56ch; margin: 28px auto 0; font-size: .98rem; opacity: .9; }
.section-cta { display: flex; justify-content: center; margin-top: 34px; }
.section-cta--left { justify-content: flex-start; margin-top: 26px; }

/* ---------- Help intro ---------- */
.help-intro { max-width: 720px; margin: 22px auto 0; text-align: center; }
.help-intro p + p { margin-top: 12px; }

/* ---------- Timeline ---------- */
.timeline-band { background: var(--brown); color: #fff; margin-top: clamp(40px, 6vw, 70px); padding-block: clamp(48px, 6vw, 76px); }
.timeline-title {
  color: #fff; text-align: center; text-transform: uppercase; font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  margin-bottom: clamp(34px, 5vw, 52px); letter-spacing: .02em;
}
.timeline { position: relative; max-width: 720px; margin-inline: auto; }
.timeline::before {
  content: ''; position: absolute; left: 26px; top: 8px; bottom: 8px; width: 2px;
  background: rgba(255, 255, 255, .28);
}
.tl-item { position: relative; padding-left: 76px; margin-bottom: 18px; }
.tl-icon {
  position: absolute; left: 0; top: 4px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--beige-soft); color: var(--brown-dark); display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .18);
}
.tl-icon svg { width: 26px; height: 26px; }
.tl-card {
  background: #fff; color: var(--text); border-radius: 14px; padding: 16px 22px;
  width: fit-content; max-width: 100%; min-height: 76px;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow-card);
}
.tl-card h4 { font-size: 1.02rem; color: var(--brown-dark); margin-bottom: 4px; }
.tl-card p { font-size: .94rem; color: var(--muted); line-height: 1.5; }
.band-cta { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- Cards (3-up) ---------- */
.cards-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: clamp(32px, 4vw, 46px);
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-card);
}
.card--ghost {
  background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16);
  color: #efe7dd; box-shadow: none; backdrop-filter: blur(2px);
}
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--beige); color: var(--brown-dark); margin-bottom: 16px;
}
.card--ghost .card-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 14px; color: var(--brown-dark); }
.card--ghost h3 { color: #fff; }

.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 10px; font-size: .98rem; line-height: 1.5;
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23875f45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.card--ghost .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e3c9a8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; max-width: 420px; }
.about-eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--brown); font-weight: 600; font-size: .82rem; margin-bottom: 8px; }
.about-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 16px; }
.about-copy p { margin-bottom: 14px; }
.about-sub { text-transform: uppercase; letter-spacing: .04em; color: var(--brown-dark); font-weight: 600; font-family: var(--font-head); margin-top: 6px; }
.about-copy .check-list { margin-bottom: 16px; }
.about-mission { font-style: italic; color: var(--brown-dark); font-size: 1.08rem; border-left: 3px solid var(--brown); padding-left: 16px; }

/* ---------- Reviews ---------- */
.reviews-rating { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; color: var(--ink); }
.stars { color: #f5a623; letter-spacing: 2px; font-size: 1.1rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 12px;
}
.review-head { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  background: var(--beige); color: var(--brown-dark); display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.review-meta { display: flex; flex-direction: column; }
.review-author { font-weight: 600; color: var(--ink); font-family: var(--font-head); font-size: .98rem; }
.review-when { font-size: .8rem; color: var(--muted); }
.review-stars { color: #f5a623; letter-spacing: 1px; font-size: .95rem; }
.review-text { font-size: .95rem; color: var(--text); line-height: 1.55; }
.review-text--clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review-source { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: .8rem; color: var(--muted); }
.reviews-loading { text-align: center; margin-top: 26px; color: var(--muted); }
.reviews-cta { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 34px; display: flex; flex-direction: column; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--font-head);
  font-weight: 600; color: var(--brown-dark); display: flex; align-items: center;
  justify-content: space-between; gap: 14px; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { transition: transform .25s ease; flex: 0 0 auto; color: var(--brown); display: grid; place-items: center; }
.faq-chevron svg { width: 20px; height: 20px; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 22px 20px; color: var(--text); }

/* ---------- Contact ---------- */
.section--contact .section-lead { color: #c9c4bc; }
.contact-cta { display: flex; justify-content: center; margin-top: 30px; }
.contact-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 30px;
  max-width: 760px; margin: 40px auto 0;
}
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: .98rem; }
.contact-ic {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255, 255, 255, .08); color: var(--beige); display: grid; place-items: center;
}
.contact-list a:hover { color: #fff; text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-deep); color: #e9ddd0; padding-block: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer-logo { height: 64px; width: auto; opacity: .95; }
.footer-social { display: flex; gap: 14px; }
.footer-ic {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .10); color: var(--beige); transition: background-color .2s, color .2s;
}
.footer-ic:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.footer-copy { font-size: .9rem; letter-spacing: .02em; }
.footer-disclaimer { font-size: .78rem; color: #d2c6b3; max-width: 620px; line-height: 1.5; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(37, 211, 102, .4);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: waPulse 2.4s infinite;
}
@keyframes waPulse { 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet landscape / desktop baixo (1024x768) */
@media (max-width: 1024px) {
  .hero-grid { min-height: 460px; gap: 20px; }
  .hero-photo img { max-height: 460px; }
  .cards-3 { gap: 18px; }
  .card { padding: 24px 22px; }
}

/* Tablet portrait (768x1024) e abaixo */
@media (max-width: 880px) {
  .cards-3, .reviews-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; justify-self: center; }
  .about-photo img { max-width: 340px; }
  .section-cta--left { justify-content: center; }
  .about-mission { text-align: left; }
}

/* Mobile (<= 720px) */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; align-items: stretch; min-height: 0; gap: 0; }
  .hero-photo { order: -1; justify-self: center; }
  .hero-photo img { max-height: 320px; object-fit: contain; }
  .hero-copy { padding-block: 28px 40px; text-align: center; margin-inline: auto; }
  .hero-lead, .hero-sub { margin-inline: auto; }
  .hero .btn { width: 100%; max-width: 360px; }

  .header-link-text { display: none; }
  .header-actions { gap: 12px; }
  .brand-logo { height: 48px; }

  .contact-list { grid-template-columns: 1fr; max-width: 360px; }
  .contact-list li { justify-content: flex-start; }

  .tl-item { padding-left: 64px; }
  .tl-icon { width: 48px; height: 48px; }
  .tl-icon svg { width: 22px; height: 22px; }
  .timeline::before { left: 23px; }
  .tl-card { width: auto; }

  .btn { width: 100%; max-width: 360px; }
  .section-cta .btn, .band-cta .btn, .contact-cta .btn { width: auto; }
}

/* Mobile compacto (375x667) — prioriza CTA na primeira dobra */
@media (max-width: 400px) {
  body { font-size: 15px; }
  .hero-copy { padding-block: 18px 32px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-sub { margin-top: 12px; font-size: 1.02rem; }
  .hero-lead { margin-top: 8px; font-size: .98rem; }
  .hero .btn { margin-top: 18px; }
  .hero-note { margin-top: 12px; }
  .hero-photo img { max-height: 232px; }
  .container { padding-inline: 16px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}

/* Mobile alto (390x844) — foto um pouco menor para caber CTA */
@media (max-width: 720px) and (min-width: 401px) {
  .hero-photo img { max-height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; border-radius: 4px; }
