/* ============================================================
   Beyond Therapy Center — camada funcional sobre o design do v0
   (FAQ, contato/formulário, menu mobile, navegação suave)
   Usa somente os tokens do próprio site (site.css).
   ============================================================ */

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Tipografia: um degrau acima do padrão do v0 ----------
   Sobrescreve os tokens de texto do Tailwind (site.css os define em @layer,
   então este bloco sem layer sempre vence). Títulos (3xl+) ficam como estão. */
:root {
  --text-xs: .8125rem;    /* 12px -> 13px */
  --text-sm: .9375rem;    /* 14px -> 15px */
  --text-base: 1.0625rem; /* 16px -> 17px */
  --text-lg: 1.1875rem;   /* 18px -> 19px */
}

/* ============================================================
   HERO
   Desktop: foto de fundo com o texto real por cima (editável).
   Mobile:  foto em cima + o mesmo texto abaixo, sobre o creme.
   ============================================================ */
/* celular: foto de ponta a ponta em cima, texto abaixo sobre o creme */
.btc-hero {
  position: relative;
  display: block;
  background: none;
  isolation: isolate;
}
.btc-hero::before { display: none; }

.btc-hero-photo {
  display: block;
  width: 100%;
  height: clamp(310px, 64vw, 430px);
  background: url("/images/hero-mobile.jpg") center 16% / cover no-repeat;
}

.btc-hero-copy {
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.9rem 1.35rem 2.6rem;
  text-align: center;
}
/* trechos que só existem para leitura/SEO */
.btc-hero-lead,
.btc-hero-tags { display: none; }
.btc-hero-eyebrow {
  margin: 0 0 .7rem;
  font-family: var(--font-serif);
  font-size: clamp(.95rem, 4.2vw, 1.12rem);
  font-weight: 400;
  color: var(--primary);
}
.btc-hero-copy h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 7.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -.02em;
  color: var(--foreground);
  text-wrap: balance;
}
.btc-hero-support {
  margin: .95rem 0 0;
  font-size: clamp(.72rem, 3.1vw, .82rem);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.btc-hero-lead {
  margin: 1.1rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}
.btc-hero-tags {
  display: none; /* informação repetida na seção de serviços */
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  gap: .55rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--card) 65%, transparent);
  font-size: .92rem;
  font-weight: 500;
  color: var(--foreground);
}
.btc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.7rem;
}
.btc-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: .72rem 1.9rem;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--primary);
  color: var(--primary-foreground, #fff);
  box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--primary) 80%, transparent);
}
.btc-hero-btn--ghost {
  display: none; /* hero fica com um botão só, como no layout aprovado */
  background: rgb(255 255 255 / .12);
  color: #FFFBF3;
  border: 1px solid rgb(255 251 243 / .55);
  box-shadow: none;
  backdrop-filter: blur(2px);
}

@media (min-width: 768px) {
  .btc-hero {
    position: relative;
    display: flex;
    align-items: center;
    /* proporção do recorte: do topo do quadro BEYOND até o meio do vaso */
    aspect-ratio: 1536 / 865;
    width: 100%;
    min-height: 0;
    background: url("/images/hero-banner.jpg") center / cover no-repeat;
    isolation: isolate;
  }
  /* véu suave para o texto ter contraste sobre a foto */
  .btc-hero::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(100deg, rgb(38 28 18 / .62) 0%, rgb(38 28 18 / .46) 42%, rgb(38 28 18 / .12) 66%, transparent 82%),
      linear-gradient(to top, rgb(38 28 18 / .3), transparent 45%);
  }
  .btc-hero-photo { display: none; }

  .btc-hero-copy {
    max-width: 46rem;
    padding: 3rem 2rem;
    text-align: center;
    /* deslocado à esquerda e um pouco acima do centro */
    transform: translate(-26%, -14%);
  }
  .btc-hero-eyebrow {
    font-family: var(--font-serif);
    font-size: clamp(1.08rem, 1.62vw, 1.38rem);
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: none;
    color: #E7C98A;
    margin-bottom: 1rem;
    text-shadow: 0 2px 12px rgb(0 0 0 / .45);
  }
  .btc-hero-copy h1 {
    font-size: clamp(2rem, 3.12vw, 2.9rem);
    line-height: 1.16;
    color: #FFFBF3;
    text-wrap: nowrap;
    text-shadow: 0 3px 20px rgb(0 0 0 / .5);
  }
  .btc-hero-support {
    display: block;
    margin: 1.5rem auto 0;
    max-width: 34rem;
    font-size: clamp(.84rem, 1.14vw, 1rem);
    font-weight: 500;
    letter-spacing: .13em;
    text-transform: uppercase;
    line-height: 1.6;
    color: #F6EEE0;
    text-shadow: 0 2px 12px rgb(0 0 0 / .5);
  }
  /* detalhes só do celular */
  .btc-hero-lead,
  .btc-hero-tags,
  .btc-hero-btn--ghost { display: none; }

  .btc-hero-actions { justify-content: center; margin-top: 2.1rem; }
  .btc-hero-btn {
    padding: .85rem 2.4rem;
    font-size: .95rem;
    box-shadow: 0 14px 30px -14px rgb(0 0 0 / .6);
  }
}

.btc-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s ease;
}
.btc-link:hover { opacity: .75; text-decoration: underline; }

/* ---------- FAQ ---------- */
.btc-faq-list {
  margin-top: 2.5rem;
  display: grid;
  gap: .875rem;
}
.btc-faq {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + .25rem);
  overflow: hidden;
  transition: box-shadow .25s ease;
}
.btc-faq[open] { box-shadow: 0 18px 35px -22px color-mix(in srgb, var(--primary) 35%, transparent); }
.btc-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.35rem;
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 600;
  color: var(--foreground);
}
.btc-faq summary::-webkit-details-marker { display: none; }
.btc-faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  color: var(--primary);
  transition: transform .25s ease;
  flex: none;
}
.btc-faq[open] summary::after { transform: rotate(45deg); }
.btc-faq-body {
  padding: 0 1.35rem 1.15rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* ---------- Contato: grade info + formulário ---------- */
.btc-contact-grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: .85fr 1.15fr;
  align-items: start;
  scroll-margin-top: 90px;
}
@media (max-width: 860px) {
  .btc-contact-grid { grid-template-columns: 1fr; }
}

.btc-info-card, .btc-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.9rem 1.8rem;
}
.btc-info-card h3, .btc-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin: 0 0 .4rem;
}
.btc-form-sub {
  font-size: .97rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0 0 1.4rem;
}

.btc-info-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}
.btc-info-list li { display: grid; gap: .15rem; }
.btc-info-label {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--primary);
}

/* formulário */
.btc-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) {
  .btc-form-grid { grid-template-columns: 1fr; }
}
.btc-form-grid label {
  display: grid;
  gap: .35rem;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--foreground);
}
.btc-full { grid-column: 1 / -1; }
.btc-form-grid input,
.btc-form-grid select,
.btc-form-grid textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  letter-spacing: normal;
  font-weight: 400;
  text-transform: none;
  color: var(--foreground);
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - .1rem);
  padding: .7rem .85rem;
  outline: none;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.btc-form-grid textarea { resize: vertical; min-height: 110px; }
.btc-form-grid input:focus,
.btc-form-grid select:focus,
.btc-form-grid textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 18%, transparent);
}

.btc-submit {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--primary-foreground, #fff);
  background: var(--primary);
  border-radius: 9999px;
  padding: .65rem 2.1rem;
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--primary) 70%, transparent);
  transition: opacity .2s ease, transform .2s ease;
}
.btc-submit:hover { opacity: .88; transform: translateY(-1px); }
.btc-submit:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.btc-form-note {
  margin: .9rem 0 0;
  font-size: .83rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* ---------- CTA do menu mobile ---------- */
.btc-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--primary-foreground, #fff);
  background: var(--primary);
  border-radius: 9999px;
  padding: .6rem 1.6rem;
  text-decoration: none;
}

/* ---------- páginas legais ---------- */
.btc-legal {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.7;
}
.btc-legal h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 .4rem;
}
.btc-legal h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 1.8rem 0 .5rem;
}
.btc-legal p { margin: 0 0 1rem; }
.btc-legal-date { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }

/* ============================================================
   SEÇÃO ADULT THERAPY (texto completo da Carol)
   ============================================================ */
.btc-longform {
  background: var(--background);
}
.btc-longform-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 4rem 1.35rem 4.5rem;
  text-align: center;
}
.btc-longform-eyebrow {
  margin: 0 0 .8rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--primary);
}
.btc-longform-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--foreground);
  text-wrap: balance;
}
.btc-longform-body {
  margin-top: 2rem;
  display: grid;
  gap: 1.15rem;
  text-align: left;
}
.btc-longform-body p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}
.btc-longform-quote {
  margin: 2.25rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--primary);
  border-radius: 0 1rem 1rem 0;
  background: color-mix(in srgb, var(--secondary) 55%, transparent);
  text-align: left;
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.6;
  color: var(--foreground);
}
.btc-longform-actions {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .btc-longform-inner { padding: 5.5rem 2rem 6rem; }
  .btc-longform-body { margin-top: 2.4rem; }
  .btc-longform-body p { font-size: 1.07rem; }
}

/* variante em tom creme, para separar seções longas seguidas */
.btc-longform--alt {
  background: color-mix(in srgb, var(--secondary) 40%, var(--background));
}

/* texto longo da seção "Meet Carol Afonso" */
.btc-about-text {
  margin-top: 1.35rem;
  display: grid;
  gap: .95rem;
}
.btc-about-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}
.btc-about-text strong {
  font-weight: 600;
  color: var(--foreground);
}

/* ============================================================
   CONTATO — widget oficial do SimplePractice
   ============================================================ */
.btc-contact-block {
  margin-top: 3.5rem;
  display: grid;
  gap: 1.5rem;
  scroll-margin-top: 90px;
}

/* dados de contato viram uma faixa larga */
.btc-contact-block .btc-info-card { width: 100%; }
.btc-contact-block .btc-info-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 2rem;
}
@media (min-width: 900px) {
  .btc-contact-block .btc-info-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.btc-widget-card {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.9rem 1.6rem 1.6rem;
}
.btc-widget-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--foreground);
  margin: 0 0 .4rem;
}
.btc-widget-frame {
  display: block;
  width: 100%;
  height: 1900px;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  margin-bottom: .9rem;
}
@media (min-width: 768px) {
  .btc-widget-card { padding: 2.2rem 2rem 1.8rem; }
  .btc-widget-frame { height: 1500px; }
}

/* formulário oficial: abre com um clique (tem ~3400px de altura) */
.btc-widget-details { margin-bottom: .9rem; }
.btc-widget-open {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 9999px;
  padding: .78rem 2.1rem;
  font-size: .95rem;
  font-weight: 500;
  color: var(--primary-foreground, #fff);
  background: var(--primary);
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--primary) 80%, transparent);
  transition: opacity .2s ease, transform .2s ease;
}
.btc-widget-open::-webkit-details-marker { display: none; }
.btc-widget-open::after {
  content: "＋";
  font-size: 1rem;
  line-height: 1;
  transition: transform .25s ease;
}
.btc-widget-details[open] .btc-widget-open { margin-bottom: 1.25rem; }
.btc-widget-details[open] .btc-widget-open::after { transform: rotate(45deg); }
.btc-widget-open:hover { opacity: .9; transform: translateY(-1px); }
.btc-widget-open:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.btc-widget-details .btc-widget-frame { margin-bottom: 0; height: 4400px; }
@media (min-width: 768px) {
  .btc-widget-details .btc-widget-frame { height: 3500px; }
}

/* páginas de serviço: o texto vem logo após o cartão de abertura */
.btc-longform--tight .btc-longform-inner { padding-top: 0; }
.btc-longform--tight .btc-longform-body { margin-top: 0; }
