/* Componentes reutilizáveis: botões, pills, cards, placeholders de foto,
   acordeão, tabs, galeria/lightbox e formulário. */

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  transition: transform .2s, background .2s;
  text-align: center;
}

.btn--primary {
  background: var(--color-orange);
  color: #fff;
  font-size: 15px;
  padding: 11px 22px;
  box-shadow: 0 8px 20px -8px rgba(232, 100, 30, .65);
}

.btn--primary:hover {
  transform: translateY(-2px);
  background: var(--color-orange-hover);
  color: #fff;
}

.btn--lg {
  font-size: 19px;
  padding: 16px 32px;
  box-shadow: var(--shadow-cta);
}

.btn--lg:hover {
  transform: translateY(-3px);
}

.btn--maroon {
  background: var(--color-maroon);
  color: #fff;
  font-size: 16px;
  padding: 13px 26px;
}

.btn--maroon:hover {
  transform: translateY(-2px);
  background: var(--color-maroon-hover);
  color: #fff;
}

.btn--block {
  width: 100%;
  justify-content: center;
  font-size: 18px;
  padding: 16px;
  box-shadow: var(--shadow-cta);
}

.btn__arrow {
  font-size: 20px;
  transform: translateY(1px);
}

.link-arrow {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

/* ---- Pill / kicker ---- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(110, 20, 35, .15);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .02em;
  color: var(--color-maroon);
  margin: 0 0 22px;
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-green);
  flex: none;
}

.kicker {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--kicker-rust);
  margin: 0 0 14px;
}

.section-intro--dark .kicker {
  color: var(--color-gold);
}

.kicker--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: normal;
  text-transform: none;
}

/* ---- Fotografia real (moldura com cantos arredondados + sombra) ---- */
.photo-frame {
  margin: 0;
  overflow: hidden;
  line-height: 0;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-frame--hero {
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  box-shadow: 0 30px 60px -22px rgba(58, 35, 23, .5);
}

.photo-frame--tab {
  min-height: 280px;
}

.photo-frame--card {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  margin-bottom: 16px;
}

/* ---- Placeholders de foto (até haver fotografia real) ---- */
.photo-placeholder {
  margin: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: #FBE9CF;
  background: linear-gradient(135deg, var(--bg-photo-start) 0%, var(--bg-photo-end) 100%);
  background-image:
    radial-gradient(rgba(251, 233, 207, .16) 1.4px, transparent 1.4px),
    linear-gradient(135deg, var(--bg-photo-start) 0%, var(--bg-photo-end) 100%);
  background-size: 16px 16px, auto;
}

.photo-placeholder__icon {
  font-size: 30px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(251, 233, 207, .55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-placeholder figcaption {
  font-size: 13px;
  line-height: 1.4;
  opacity: .85;
  max-width: 24ch;
}

.photo-placeholder--hero {
  aspect-ratio: 4 / 5;
  border-radius: 26px;
  box-shadow: 0 30px 60px -22px rgba(58, 35, 23, .5);
  padding: 26px;
}

.photo-placeholder--lightbox {
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  padding: 30px;
}

.photo-placeholder--lightbox .photo-placeholder__icon {
  width: auto;
  height: auto;
  border: none;
  font-size: 46px;
}

.photo-placeholder--lightbox figcaption {
  font-size: 15px;
  max-width: 34ch;
  opacity: .9;
}

/* ---- Cards genéricos ---- */
.pain-card,
.diff-card,
.press-card {
  background: var(--bg-card);
  border: 1px solid rgba(110, 20, 35, .1);
  border-radius: var(--radius-lg);
  transition: transform .25s, box-shadow .25s;
}

.pain-card {
  background: #fff;
  padding: 24px 22px;
  border-radius: 18px;
}

.pain-card:hover,
.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.pain-card__icon,
.diff-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.pain-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--bg-cream);
}

.diff-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-orange);
  color: #fff;
  font-size: 25px;
}

.pain-card h3,
.diff-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-maroon);
  margin: 0 0 8px;
}

.diff-card h3 {
  font-size: 18px;
  margin: 0 0 9px;
}

.pain-card p,
.diff-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted-2);
}

.diff-card p {
  font-size: 14.5px;
  line-height: 1.55;
}

.diff-card {
  padding: 28px 26px;
}

/* ---- Acordeão (usado no currículo e no FAQ) ---- */
.module {
  position: relative;
  background: var(--bg-card);
  border: 1.5px solid rgba(110, 20, 35, .1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.module.is-open {
  background: #fff;
  border-color: var(--color-orange);
  box-shadow: var(--shadow-card);
}

.module + .module {
  margin-top: 12px;
}

.module h3 {
  margin: 0;
}

.module__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 22px;
  text-align: left;
}

.module__num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  background: var(--chip-bg);
  color: var(--kicker-rust);
  transition: all .25s;
}

.module.is-open .module__num {
  background: var(--color-orange);
  color: #fff;
}

.module__title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-heading);
}

.module__chevron {
  flex: none;
  font-size: 20px;
  color: var(--kicker-rust);
  transition: transform .3s;
}

.module.is-open .module__chevron {
  color: var(--color-orange);
  transform: rotate(180deg);
}

.module__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}

.module.is-open .module__panel {
  grid-template-rows: 1fr;
}

.module__panel-inner {
  overflow: hidden;
}

.module__panel-inner p {
  margin: 0;
  padding: 0 22px 22px 60px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted-2);
}

.module__bar {
  height: 3px;
  background: linear-gradient(90deg, var(--color-orange) var(--pct), rgba(110, 20, 35, .08) var(--pct));
}

.faq-item {
  background: var(--bg-card);
  border: 1.5px solid rgba(110, 20, 35, .1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s;
}

.faq-item.is-open {
  border-color: var(--color-orange);
}

.faq-item h3 {
  margin: 0;
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 24px;
  text-align: left;
}

.faq-item__trigger span:first-child {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-heading);
}

.faq-item__icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--chip-bg);
  color: var(--kicker-rust);
  transition: all .28s;
}

.faq-item.is-open .faq-item__icon {
  background: var(--color-orange);
  color: #fff;
  transform: rotate(45deg);
}

.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
}

.faq-item__panel-inner p {
  margin: 0;
  padding: 0 24px 24px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-muted-2);
}

/* ---- Tabs ---- */
.tab-btn {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(110, 20, 35, .18);
  background: #fff;
  color: var(--color-maroon);
  transition: all .2s;
}

.tab-btn.is-active {
  border-color: var(--color-orange);
  background: var(--color-orange);
  color: #fff;
}

/* ---- Galeria / Lightbox ---- */
.gallery__item {
  position: relative;
  cursor: zoom-in;
  border: none;
  min-height: 170px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--bg-photo-start), var(--bg-photo-end));
  background-image:
    radial-gradient(rgba(251, 233, 207, .13) 1.2px, transparent 1.2px),
    linear-gradient(135deg, var(--bg-photo-start), var(--bg-photo-end));
  background-size: 14px 14px, auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  color: #FBE9CF;
  overflow: hidden;
  transition: transform .25s;
}

.gallery__item:hover {
  transform: translateY(-3px);
}

.gallery__icon {
  font-size: 28px;
}

.gallery__label {
  font-size: 12px;
  line-height: 1.4;
  opacity: .85;
  max-width: 20ch;
  text-align: center;
}

.gallery__zoom {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(251, 236, 214, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.lightbox {
  border: none;
  padding: 0;
  background: transparent;
  max-width: min(760px, 92vw);
  width: 100%;
}

.lightbox::backdrop {
  background: rgba(43, 24, 16, .86);
  backdrop-filter: blur(4px);
}

.lightbox .photo-placeholder--lightbox {
  border-radius: 22px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7);
}

.lightbox__close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 236, 214, .15);
  border: none;
  color: var(--bg-cream);
  font-size: 22px;
}

/* ---- Contadores / stats ---- */
.stat__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  color: var(--color-gold);
  line-height: 1;
}

.stat__number--pop {
  animation: pop .8s both;
}

.stat__number-small {
  font-size: .42em;
}

.stat__number--badge {
  font-size: clamp(30px, 4vw, 40px);
  border: 2px solid rgba(232, 162, 74, .6);
  border-radius: 14px;
  padding: 8px 16px;
  display: inline-block;
}

.stat__label {
  font-size: 14px;
  letter-spacing: .02em;
  margin-top: 8px;
  opacity: .9;
}

/* ---- Formulário ---- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.field input,
.field select {
  width: 100%;
  background: #fff;
  border: 1.5px solid rgba(110, 20, 35, .16);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-heading);
  outline: none;
}

.field input:focus-visible,
.field select:focus-visible {
  border-color: var(--color-orange);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23B0563A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.field select:invalid {
  color: var(--text-soft);
}
