/* ==========================================================================
   Receita: Planos e Acompanhamento — terracotta-catalog
   Faixas de terracota, painéis de creme, marrom fechando. Uma fonte só.
   Retângulo em tudo; a única curva é a borda do rodapé.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
html, body { overflow-x: clip; }

body {
  margin: 0; background: var(--tc-bg); color: var(--tc-text);
  font-family: var(--tc-font); font-size: var(--tc-body-size); line-height: var(--tc-body-leading);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: var(--ws2-focus-width) solid var(--tc-brown); outline-offset: var(--ws2-focus-offset); }

.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--tc-brown); color: #fff; padding: 10px 18px; }
.skip-link:focus { left: 16px; }

.wrap { width: min(var(--tc-container), calc(100% - 48px)); margin-inline: auto; }
.wrap.read { width: min(var(--tc-measure), calc(100% - 44px)); }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--tc-font); font-weight: 600; color: var(--tc-brown); line-height: 1.22; }
.section-title { font-size: var(--tc-section-heading); margin: 0 0 16px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tc-terracotta); margin: 0 0 8px; }
.note { font-size: 14px; color: var(--tc-muted); }

/* Ação: retângulo marrom de canto quase reto ---------------------------------- */
.action {
  display: inline-flex; align-items: center; gap: 10px; background: var(--tc-action); color: #FBF3E8;
  font-size: 15px; font-weight: 500; padding: 14px 26px; border-radius: var(--tc-radius-button);
  transition: background var(--ws2-duration-fast) ease, transform var(--ws2-duration-fast) var(--tc-ease);
}
.action:hover { background: var(--tc-action-hover); transform: translateY(-2px); }
.action-sm { padding: 10px 18px; font-size: 14px; }

/* Navbar · nav-centered-brand -------------------------------------------------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--tc-cream); border-bottom: 1px solid transparent; transition: border-color var(--ws2-duration-fast) ease; }
.header.scrolled { border-bottom-color: var(--tc-line); }
.header-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px clamp(20px, 3vw, 44px) 8px; }
.header-social { justify-self: start; }
.header-action { justify-self: end; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.brand-mark { width: 34px; height: 34px; color: var(--tc-gold); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.brand-copy strong { font-size: 22px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tc-brown); }
.brand-copy small { font-size: 11px; letter-spacing: .12em; color: var(--tc-muted); }
.nav { display: flex; justify-content: center; gap: clamp(16px, 2.4vw, 38px); padding: 6px 20px 14px; }
.nav a { font-size: var(--tc-nav-size); color: var(--tc-brown); padding-block: 4px; border-bottom: 2px solid transparent; transition: border-color var(--ws2-duration-fast) ease; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--tc-terracotta); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; justify-self: end; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--tc-brown); margin: 5px 0; transition: transform .3s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; background: var(--tc-cream-deep); border-bottom: 1px solid var(--tc-line); padding: 4px 24px 14px; }
.nav-mobile a { padding: 12px 0; border-bottom: 1px solid var(--tc-line); }
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile.open { display: flex; }

/* Hero · hero-photo-overlay ---------------------------------------------------- */
.hero { position: relative; }
.hero-photo { margin: 0; }
.hero-photo > img { width: 100%; height: clamp(360px, 52vw, 560px); object-fit: cover; object-position: 50% 55%; }
.hero-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  gap: 16px; padding: clamp(24px, 6vw, 92px); max-width: 720px;
  background: linear-gradient(90deg, rgba(58, 32, 24, .82) 0%, rgba(58, 32, 24, .62) 62%, rgba(58, 32, 24, 0) 100%);
}
.hero-copy h1 { font-size: var(--tc-hero-heading); color: #FBF3E8; margin: 0; }
.hero-copy p { color: #F1DFCD; margin: 0; max-width: 46ch; }
.hero-copy .action { align-self: flex-start; }

/* sem a foto, o hero vira faixa marrom com o texto (variante hero-cream-statement) */
.hero:has(.hero-photo[data-ws2-empty]) { background: var(--tc-brown); }
.hero:has(.hero-photo[data-ws2-empty]) .hero-copy { position: static; background: none; max-width: none;
  padding-block: clamp(48px, 7vw, 96px); align-items: flex-start; }

/* Faixas ------------------------------------------------------------------------ */
.band { padding-block: var(--tc-band-y); }
.band-tight { padding-block: clamp(34px, 4vw, 52px); }
.band-cream { background: var(--tc-cream); }
.band-terracotta { background: var(--tc-band); }
.on-terracotta, .band-terracotta .section-title { color: #FDF6EC; }
.band-cream p, .band .note { color: var(--tc-muted); }
.band-cream .action { margin-top: 8px; }

/* About · about-cream-panel ------------------------------------------------------ */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--tc-brown); }
.split-panel { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 4vw, 64px) clamp(20px, 3vw, 48px); }
.split-panel .panel-inner { background: var(--tc-panel); padding: clamp(26px, 3vw, 44px); max-width: 560px; }
.split-panel h2 { font-size: var(--tc-section-heading); margin: 0 0 18px; }
.split-panel p { margin: 0 0 14px; color: var(--tc-text); }
.split-photo { margin: 0; }
.split-photo > img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; object-position: 50% 26%; }

/* Catalog · catalog-alternating-blocks ------------------------------------------- */
.catalog { background: var(--tc-band); }
.catalog-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch;
  width: min(var(--tc-container), calc(100% - 48px)); margin-inline: auto; margin-block: clamp(18px, 2.6vw, 30px); }
.catalog-panel { background: var(--tc-panel); display: flex; align-items: center; }
.catalog-panel .panel-inner { padding: clamp(26px, 3vw, 46px); }
.catalog-panel h3 { font-size: clamp(20px, 2.2vw, 27px); margin: 0 0 12px; }
.catalog-panel > .panel-inner > p { color: var(--tc-muted); margin: 0 0 16px; }
.catalog-photo { margin: 0; }
.catalog-photo > img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.list li { position: relative; padding-left: 22px; font-size: 16px; }
.list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--tc-terracotta); }
.list-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }

/* Included · included-cream-list -------------------------------------------------- */
.included { background: var(--tc-panel); padding: clamp(28px, 4vw, 52px); }
.included .note { margin: 6px auto 0; max-width: 70ch; }

/* VideoCards · video-two-cards ---------------------------------------------------- */
/* grade que se ajusta à quantidade: de um a quatro vídeos, sem buraco */
.video-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(18px, 2.4vw, 30px); margin-bottom: 18px; }
.video-card { background: var(--tc-cream-deep); padding: clamp(18px, 2vw, 26px); }
.video-card h3 { font-size: 19px; margin: 0 0 16px; }
.video-poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tc-brown); }
.video-poster > img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%); background: var(--tc-brown); color: #FBF3E8; display: grid; place-items: center; border-radius: var(--tc-radius-button); transition: background var(--ws2-duration-fast) ease; }
.play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-poster:hover .play { background: var(--tc-terracotta); }

/* LocationCta · location-map-cta --------------------------------------------------- */
.location { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--tc-cream); }
.location .ws2-map { border: 0; }
.location-cta { background: var(--tc-terracotta); display: flex; align-items: center; justify-content: center; padding: clamp(30px, 4vw, 60px); }
.location-cta h2 { color: #FDF6EC; font-size: var(--tc-section-heading); margin: 0 0 12px; }
.location-cta p { color: #FBEADF; margin: 0 0 22px; }

/* Faq · faq-underlined -------------------------------------------------------------- */
.accordion details { border-bottom: 1px solid var(--tc-line); }
.accordion summary { cursor: pointer; list-style: none; position: relative; padding: 20px 40px 20px 0; color: var(--tc-terracotta); font-weight: 500; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--tc-terracotta); border-bottom: 2px solid var(--tc-terracotta); transform: rotate(45deg); transition: transform var(--ws2-duration-fast) ease; }
.accordion details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.accordion details p { margin: 0 0 20px; color: var(--tc-muted); font-size: 16px; }

/* Footer · footer-curved-brown — a única curva da página ------------------------------ */
.footer { position: relative; z-index: 1; background: var(--tc-close); color: #E8D6C6; padding: clamp(56px, 7vw, 84px) 0 24px; margin-top: 64px; font-size: 15px; }
.footer::before { content: ""; position: absolute; left: -6%; right: -6%; top: -36px; height: 74px; background: var(--tc-close); border-radius: 50%; z-index: -1; }
.footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; align-items: start; }
.footer-col { text-align: center; }
.footer p { margin: 0 0 8px; }
.footer-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--tc-gold); }
.footer-brand { font-size: 22px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #FBF3E8; }
.footer-reg { font-size: 12px; letter-spacing: .1em; color: #C9B2A1; }
.footer .ws2-social { justify-content: center; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(232, 214, 198, .2); font-size: 13px; }

/* Contato flutuante */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 120; width: 56px; height: 56px; background: var(--tc-action); color: #FBF3E8; display: grid; place-items: center; border-radius: var(--tc-radius-button); transition: transform var(--ws2-duration-fast) var(--tc-ease); }
.floating:hover { transform: translateY(-3px); }

/* Revelação — assinatura: o bloco entra pelo lado da foto ------------------------------ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .7s var(--tc-ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-media { opacity: 0; transform: translateX(18px); transition: opacity .6s ease, transform .8s var(--tc-ease); }
.catalog-reverse .reveal-media, .split .reveal-media { transform: translateX(-18px); }
.reveal-media.in { opacity: 1; transform: none; }
/* o recorte vive no primeiro filho, nunca no elemento observado (R15) */
.reveal-media > :first-child { clip-path: inset(0 0 0 12%); transition: clip-path .9s cubic-bezier(.22, 1, .36, 1); }
.catalog-reverse .reveal-media > :first-child, .split .reveal-media > :first-child { clip-path: inset(0 12% 0 0); }
.reveal-media.in > :first-child { clip-path: inset(0 0 0 0); }

/* Responsivo ---------------------------------------------------------------------------- */
/* Process · process-steps — painel retangular creme-escuro com filete terracota no topo; títulos centralizados acima */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--tc-cream-deep); border-top: 3px solid var(--tc-terracotta); padding: 22px 22px 24px; }
.step-num { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--tc-terracotta); }
.step h3 { font-size: 19px; margin: 10px 0 8px; }
.step p { margin: 0; font-size: 15px; color: var(--tc-muted); }

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .header-top { grid-template-columns: 1fr auto auto; }
  .header-action { display: none; }
  .split, .catalog-block, .location { grid-template-columns: 1fr; }
  .catalog-reverse .catalog-photo { order: -1; }
  .split-photo > img, .catalog-photo > img { min-height: 260px; max-height: 420px; }
  .video-cards { grid-template-columns: 1fr; }
  .list-2col { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; background: linear-gradient(180deg, rgba(58, 32, 24, .3) 0%, rgba(58, 32, 24, .84) 60%); justify-content: flex-end; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .wrap, .wrap.read, .catalog-block { width: calc(100% - 32px); }
  .footer-grid { grid-template-columns: 1fr; }
  .action { width: 100%; justify-content: center; }
  .hero-copy .action { align-self: stretch; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* Movimento reduzido — escopado para o preview da WS2 -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html:not([data-ws2-motion="full"]) { scroll-behavior: auto; }
  html:not([data-ws2-motion="full"]) .reveal, html:not([data-ws2-motion="full"]) .reveal-media { transform: none !important; transition: opacity .4s ease !important; }
  html:not([data-ws2-motion="full"]) .reveal.in, html:not([data-ws2-motion="full"]) .reveal-media.in { opacity: 1; }
  html:not([data-ws2-motion="full"]) .reveal-media > :first-child { clip-path: none; transition: none; }
  html:not([data-ws2-motion="full"]) .action:hover, html:not([data-ws2-motion="full"]) .floating:hover { transform: none; }
}
