/* ============================================================
   PAGE.CSS · estilos específicos de seções/páginas
   ============================================================ */

/* ============================================================
   CORREÇÕES DE ENQUADRAMENTO — object-position por contexto
   Garantem que o rosto da Ida não seja cortado em nenhum
   breakpoint, ajustando a âncora vertical do object-fit: cover
   ============================================================ */

/* Hero: foto portrait (0.80) em container landscape — ancora no topo */
.hero-media .ph.has-img img {
  object-position: center top;
}

/* Sobre / Palestras intro: portrait (Sobre) e landscape (Palestras) —
   ancora no topo; para imagens landscape sem overflow vertical não há efeito */
.about-intro .ph.has-img img {
  object-position: center top;
}

/* Serviços detalhe: todas as imagens têm o cabelo da Ida a ≤25 px do topo
   do frame — center top ancora no pixel 0, sem nenhum corte */
.svc-detail .ph.has-img img {
  object-position: center top;
}

/* Banner interno (roda de conversa em servicos.html) */
.banner-petrol-grid .ph.has-img img {
  object-position: center top;
}

/* Cards de blog e "Continue lendo": composição de busto deixa o cabelo
   a ~4–10 px do topo do render — center top é o único valor seguro */
.post-card .ph.has-img img {
  object-position: center top;
}

/* Post em destaque (blog.html) */
.post-featured .ph.has-img img {
  object-position: center top;
}

/* Hero dos artigos: cabelo a ~7–15 px do topo do render.
   Seletor composto (.ph.article-hero) porque ambas as classes estão no mesmo elemento. */
.ph.article-hero.has-img img {
  object-position: center top;
}

/* ---------------- HERO (Home) ---------------- */
.hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 5vw, 6.5rem);
  background:
    radial-gradient(120% 90% at 85% -10%, var(--sage-100), transparent 55%),
    var(--bg);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: var(--sp-5); }
.hero-copy .lead { margin-top: var(--sp-5); max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-6); }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-7);
  padding-top: var(--sp-5); border-top: 1px solid var(--line);
}
.hero-trust li { display: flex; align-items: center; gap: 0.55rem; font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 500; }
.hero-trust svg { width: 19px; height: 19px; color: var(--sage-600); }

.hero-media { position: relative; }
.hero-media .ph {
  min-height: clamp(380px, 42vw, 560px);
  border-radius: var(--r-xl);
}

/* Foto real — seção autoridade (home) */
.authority-photo {
  width: 100%;
  min-height: 460px;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  display: block;
}

.hero-badge {
  position: absolute; left: clamp(-0.5rem, -1vw, -1.5rem); bottom: clamp(1rem, 3vw, 2.2rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: var(--sp-4) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-4); max-width: 280px;
}
.hero-badge-icon { width: 46px; height: 46px; border-radius: var(--r-pill); background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; flex-shrink: 0; }
.hero-badge-icon svg { width: 24px; height: 24px; }
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-warm); line-height: 1.1; }
.hero-badge span { font-size: var(--fs-cap); color: var(--ink-muted); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media .ph { min-height: 300px; height: 300px; }
  .hero-badge { max-width: 240px; }
}
@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }
  .hero-badge { left: 0.75rem; right: 0.75rem; max-width: none; bottom: 0.75rem; }
}

/* ---------------- AUTORIDADE ---------------- */
.authority-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.authority-copy .eyebrow { margin-bottom: var(--sp-4); }
.authority-copy .lead { margin-top: var(--sp-4); margin-bottom: var(--sp-6); }
.cred-list { display: flex; flex-direction: column; gap: var(--sp-4); }
.cred-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.cred-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--petrol-600); }
.cred-icon svg { width: 22px; height: 22px; }
.cred-list strong { display: block; font-size: var(--fs-body); color: var(--ink-warm); font-weight: 600; }
.cred-list span { font-size: var(--fs-sm); color: var(--ink-muted); }
.cred-list .link-arrow, .authority-copy > .link-arrow { margin-top: var(--sp-6); }
@media (max-width: 880px) {
  .authority-grid { grid-template-columns: 1fr; }
  .authority-media .ph { min-height: 320px !important; }
  .authority-photo { min-height: 320px; }
}

/* ---------------- BANNER PALESTRAS ---------------- */
.banner-petrol-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.banner-topics { display: flex; flex-direction: column; gap: var(--sp-4); border-left: 1px solid rgba(255,255,255,0.18); padding-left: var(--sp-6); }
.banner-topics li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-body); color: var(--on-dark); }
.banner-topics svg { width: 18px; height: 18px; color: var(--sage-300); flex-shrink: 0; }
@media (max-width: 760px) {
  .banner-petrol-grid { grid-template-columns: 1fr; }
  .banner-topics { border-left: none; border-top: 1px solid rgba(255,255,255,0.18); padding-left: 0; padding-top: var(--sp-5); }
}

/* ---------------- FINAL CTA ---------------- */
.final-cta { position: relative; overflow: hidden; }
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(123,161,133,0.18), transparent 60%);
  pointer-events: none;
}
.final-cta .wrap { position: relative; }
@media (max-width: 520px) { .final-cta .hero-cta .btn { width: 100%; } }

/* ---------------- VALORES (Sobre) ---------------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 820px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
.value-card .icon-wrap { width: 50px; height: 50px; border-radius: var(--r-md); background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; margin-bottom: var(--sp-4); }
.value-card .icon-wrap svg { width: 25px; height: 25px; }
.value-card h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.value-card p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: var(--lh-relaxed); }

/* ---------------- SOBRE — narrativa ---------------- */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.about-intro .ph { min-height: 520px; height: 100%; }
@media (max-width: 880px) { .about-intro { grid-template-columns: 1fr; } .about-intro .ph { min-height: 360px; } }
.about-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.3; color: var(--petrol-700); font-weight: 500; text-wrap: balance; }
.about-quote .mark { color: var(--gold-500); }

/* stat row */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.stat { text-align: center; padding: var(--sp-5) var(--sp-3); }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); color: var(--gold-600); font-weight: 600; line-height: 1; }
.stat .lbl { font-size: var(--fs-sm); color: var(--ink-soft); margin-top: var(--sp-3); display: block; }

/* ---------------- SERVIÇOS — detalhe ---------------- */
.svc-detail { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.svc-detail:nth-child(even) .svc-detail-media { order: 2; }
.svc-detail .ph { min-height: 340px; height: 100%; }
.svc-detail-body .svc-num { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-600); font-weight: 600; }
.svc-detail-body h3 { font-size: var(--fs-h3); margin-block: var(--sp-2) var(--sp-4); }
.svc-block { margin-top: var(--sp-5); }
.svc-block h5 { font-size: var(--fs-cap); text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage-700); font-weight: 700; margin-bottom: var(--sp-2); display:flex; align-items:center; gap:0.5rem; }
.svc-block h5 svg { width: 16px; height: 16px; }
.svc-block p { font-size: var(--fs-sm); color: var(--ink-soft); line-height: var(--lh-relaxed); }
.svc-detail .btn-whats { margin-top: var(--sp-6); }
@media (max-width: 820px) {
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail:nth-child(even) .svc-detail-media { order: -1; }
  .svc-detail .ph { min-height: 240px; }
}

/* ---------------- PALESTRAS — temas grid ---------------- */
.topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); }
@media (max-width: 700px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-card { display: flex; gap: var(--sp-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }
.topic-card .icon-wrap { flex-shrink: 0; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--sage-100); color: var(--sage-700); display: grid; place-items: center; }
.topic-card .icon-wrap svg { width: 24px; height: 24px; }
.topic-card h4 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.topic-card p { font-size: var(--fs-sm); color: var(--ink-soft); }

/* audiência (para quem) */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 760px) { .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-chip { display: flex; align-items: center; gap: var(--sp-3); background: var(--surface); border-radius: var(--r-md); padding: var(--sp-4); font-weight: 500; color: var(--ink-warm); font-size: var(--fs-sm); }
.aud-chip svg { width: 20px; height: 20px; color: var(--petrol-600); flex-shrink: 0; }

/* ---------------- BLOG ---------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-7); }
.filter-chip {
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-soft);
  padding: 0.6rem 1.1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  background: var(--white); min-height: 44px; transition: all var(--dur-fast) var(--ease);
}
.filter-chip:hover { border-color: var(--petrol-300); color: var(--petrol-700); }
.filter-chip.is-active { background: var(--petrol-700); border-color: var(--petrol-700); color: var(--on-dark); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.post-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: var(--sp-7); }
.post-featured .ph { min-height: 360px; border-radius: 0; border: none; }
.post-featured .feat-body { padding: clamp(1.5rem, 1rem + 3vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-4); }
.post-featured h2 { font-size: var(--fs-h3); }
@media (max-width: 760px) { .post-featured { grid-template-columns: 1fr; } .post-featured .ph { min-height: 240px; } }

/* ---------------- ARTIGO ---------------- */
.article { max-width: var(--maxw-text); margin-inline: auto; }
/* Seletor composto: article-hero e ph vivem no mesmo elemento. */
.ph.article-hero { min-height: clamp(280px, 40vw, 440px); border-radius: var(--r-xl); margin-bottom: var(--sp-5); }
/* Páginas de artigo usam .section genérico (padding 4–8 rem) — reduz só o topo. */
article.section { padding-block-start: clamp(2rem, 1.5rem + 2vw, 3rem); }
.article-body { font-size: var(--fs-lead); line-height: var(--lh-relaxed); color: var(--ink); }
.article-body > * + * { margin-top: var(--sp-5); }
.article-body h3 { font-size: var(--fs-h3); margin-top: var(--sp-7); color: var(--ink-warm); }
.article-body p { color: var(--ink-soft); }
.article-body blockquote { border-left: 3px solid var(--gold-500); padding-left: var(--sp-5); font-family: var(--font-display); font-size: 1.5rem; color: var(--petrol-700); font-style: italic; }
.article-body ul { display: flex; flex-direction: column; gap: var(--sp-3); padding-left: var(--sp-2); }
.article-body ul li { display: flex; gap: var(--sp-3); align-items: flex-start; color: var(--ink-soft); }
.article-body ul li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-500); margin-top: 0.6em; }
.article-meta { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.author-chip { display: flex; align-items: center; gap: var(--sp-3); }
.author-chip .av { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--petrol-500); font-family: var(--font-display); font-weight: 600; }
.author-chip strong { font-size: var(--fs-sm); color: var(--ink-warm); display: block; }
.author-chip span { font-size: var(--fs-cap); color: var(--ink-muted); }

/* ---------------- CONTATO ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2.5rem, 1.5rem + 4vw, 5rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-method { display: flex; gap: var(--sp-4); align-items: flex-start; padding: var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-xs); transition: box-shadow var(--dur-fast) var(--ease); }
.contact-method:hover { box-shadow: var(--sh-sm); }
.contact-method > div { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-method .icon-wrap { flex-shrink: 0; width: 50px; height: 50px; border-radius: var(--r-md); display: grid; place-items: center; }
.contact-method.whats .icon-wrap { background: #E4F5EA; color: #1FA855; }
.contact-method .icon-wrap.petrol { background: var(--petrol-100); color: var(--petrol-700); }
.contact-method .icon-wrap.gold { background: var(--gold-100); color: var(--gold-700); }
.contact-method .icon-wrap svg { width: 25px; height: 25px; }
.contact-method h4 { font-size: 1.25rem; margin-bottom: 0; }
.contact-method p { font-size: var(--fs-sm); color: var(--ink-soft); }
.contact-method .pending-inline { color: var(--gold-700); font-style: italic; font-size: var(--fs-cap); }
.contact-methods { display: flex; flex-direction: column; gap: var(--sp-4); }
.map-ph { min-height: 240px; border-radius: var(--r-lg); }
.map-card { margin-top: var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-md); overflow: hidden; }
.map-card-head { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5) var(--sp-5) var(--sp-4); }
.map-card-pin { flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--petrol-100); color: var(--petrol-700); display: grid; place-items: center; }
.map-card-pin svg { width: 22px; height: 22px; }
.map-card-head .eyebrow { margin-bottom: 3px; }
.map-card-city { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink-warm); line-height: 1.1; }
.map-card-city span { color: var(--ink-muted); font-weight: 500; }
.map-iframe-wrap { position: relative; }
.map-iframe-wrap iframe { display: block; width: 100%; height: 240px; border: none; }
.map-vignette { position: absolute; top: 0; left: 0; right: 0; height: 28px; background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent); pointer-events: none; }
.map-card-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); background: var(--bg); }
.map-card-info { font-size: var(--fs-cap); color: var(--ink-muted); display: flex; align-items: center; gap: 0.4rem; }
.map-card-info svg { width: 13px; height: 13px; flex-shrink: 0; }
@media (max-width: 880px) { .map-iframe-wrap iframe { height: 200px; } .map-card-foot { flex-direction: column; align-items: flex-start; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold-500); border-radius: var(--r-xl); padding: clamp(2rem, 1.5rem + 2.5vw, 3rem); box-shadow: var(--sh-md); }
.form-card-head { padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); margin-bottom: var(--sp-6); }
.form-card-head h3 { font-size: var(--fs-h4); margin-bottom: var(--sp-2); }
.form-card-head p { font-size: var(--fs-sm); color: var(--ink-muted); }
.form-card .field + .field, .form-card .form-row + .field, .form-card .field + .form-row { margin-top: var(--sp-5); }
