/* ============ Homepage v4 (.fbs-home4) ============
   Canvas "Site FBS: Design", HomepageV4 e HomepageV4Mobile (12/11/2026). Página à parte,
   tools/fbs-page-home-v4.php; shortcodes em inc/fbs-home.php. Classes .fbs-h4-*.
   Mobile <700px · tablet 700–1099px · desktop ≥1100px (os do design system). */

/* ---------- Barra do topo da zona híbrida: vermelho do online, duas mensagens ---------- */
/* body.: tem de ganhar ao .fbs-chrome #availabilityModal do fbs-hello-bar.css (carrega depois) */
body.fbs-hybrid #availabilityModal {
  background: #a3161a;
}
.fbs-hello .modal-content {
  display: grid;
  justify-items: center;
  align-items: center;
}
.fbs-hello .modal-content > * {
  grid-area: 1 / 1;
  margin: 0;
  transition: opacity 0.4s ease;
}
.fbs-hello:not(.fbs-hello--two) #modalMessage {
  display: none;
}
.fbs-hello .fbs-hello__ship {
  font: 500 11px/1.3 var(--fbs-body);
  letter-spacing: 0.02em;
  color: #fff;
  text-align: center;
}
.fbs-hello--two .fbs-hello__ship,
.fbs-hello--two.fbs-hello--alt #modalMessage {
  opacity: 0;
}
.fbs-hello--two.fbs-hello--alt .fbs-hello__ship {
  opacity: 1;
}
/* Desktop: as duas lado a lado, sem alternar */
@media (min-width: 900px) {
  /* #availabilityModal: o CSS do plugin põe a .modal-content em coluna */
  #availabilityModal.fbs-hello--two .modal-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
  .fbs-hello--two .modal-content > * {
    opacity: 1 !important;
  }
  .fbs-hello--two .fbs-hello__ship::before {
    content: '·';
    margin: 0 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fbs-hello .modal-content > * {
    transition: none;
  }
}

/* ---------- Comum ---------- */
.fbs-home4 {
  --fbs-h4-eyebrow: var(--fbs-muted-2);
}
/* A banda lilás e o cartão do gift card não são .fbs-section: o mesmo reset dos links */
.fbs-home4 :where(a) {
  color: inherit;
  text-decoration: none;
}
.fbs-home4 :where(h1, h2, h3, p, figure, ul) {
  margin-top: 0;
}
.fbs-h4-eyebrow {
  margin: 0 0 14px !important;
  font: 600 11px/1.3 var(--fbs-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fbs-h4-eyebrow);
}
.fbs-h4-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 40px;
  margin-bottom: 28px;
}
.fbs-h4-head .fbs-h2 {
  margin-bottom: 10px;
}
.fbs-h4-head .fbs-text {
  max-width: 560px;
  font-size: 15px;
}
.fbs-h4-head .fbs-actions {
  margin: 0;
}
/* Cartão inteiro clicável: o link é o do nome */
.fbs-h4-card {
  position: relative;
}
.fbs-h4-card a::after {
  content: '';
  position: absolute;
  inset: 0;
}
.fbs-h4-card a:focus-visible {
  outline: none;
}
.fbs-h4-card:has(a:focus-visible) {
  outline: 2px solid var(--fbs-accent);
  outline-offset: 3px;
  border-radius: var(--fbs-radius);
}

/* ---------- 1 · Hero (campanha; o H1 é sempre a marca) ---------- */
.fbs-h4-hero {
  display: grid;
  max-width: var(--fbs-maxw);
  margin: 0 auto;
}
.fbs-h4-hero__media {
  margin: 0;
}
.fbs-h4-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 55% 50%;
}
.fbs-h4-hero__body {
  padding: 26px var(--fbs-pad-x) 0;
}
.fbs-h4-brand {
  margin: 0 0 22px !important;
  font: 600 11px/1.2 var(--fbs-body);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.fbs-h4-hero .fbs-kicker {
  margin-bottom: 12px;
  color: var(--fbs-accent-hover);
}
.fbs-h4-hero__title {
  font: 400 34px/1.04 var(--fbs-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.fbs-h4-hero .fbs-lead {
  margin-top: 18px;
  max-width: 440px;
}
.fbs-h4-hero .fbs-actions {
  margin-top: 26px;
}
@media (min-width: 700px) {
  .fbs-h4-hero__media img {
    aspect-ratio: 16 / 10;
  }
  .fbs-h4-hero__title {
    font-size: 44px;
  }
}
@media (min-width: 1100px) {
  .fbs-h4-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    height: min(720px, calc(100vh - 110px));
    min-height: 600px;
  }
  .fbs-h4-hero__media {
    order: 2;
    min-height: 0;
  }
  .fbs-h4-hero__media img {
    aspect-ratio: auto;
  }
  .fbs-h4-hero__body {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 72px 56px var(--fbs-pad-x);
  }
  .fbs-h4-brand {
    margin-bottom: 30px !important;
    font-size: 12px;
  }
  .fbs-h4-hero__title {
    font-size: clamp(48px, 4.2vw, 60px);
    line-height: 1.02;
  }
  .fbs-h4-hero .fbs-lead {
    margin-top: 26px;
  }
  .fbs-h4-hero .fbs-actions {
    margin-top: 34px;
  }
}

/* ---------- 2 · Pulseiras permanentes: uma fila de peças ---------- */
.fbs-h4-pieces {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 42%;
  gap: 12px;
  margin: 0 calc(-1 * var(--fbs-pad-x)) !important;
  padding: 0 var(--fbs-pad-x);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--fbs-pad-x);
  scrollbar-width: none;
}
.fbs-h4-pieces::-webkit-scrollbar {
  display: none;
}
.fbs-h4-piece {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fbs-h4-piece figure {
  margin: 0;
}
.fbs-h4-piece img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--fbs-radius);
  background: #efe9e0;
}
.fbs-h4-piece__name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font: 500 14px/1.3 var(--fbs-body);
}
@media (min-width: 1100px) {
  .fbs-h4-piece__name {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
  }
}
.fbs-h4-piece__name span {
  color: var(--fbs-muted);
  white-space: nowrap;
}
.fbs-h4-piece:hover .fbs-h4-piece__name a {
  color: var(--fbs-accent-hover);
}
@media (min-width: 700px) {
  .fbs-h4-pieces {
    grid-auto-columns: 30%;
    gap: 20px;
  }
}
@media (min-width: 1100px) {
  .fbs-h4-pieces {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 !important;
    padding: 0;
    overflow: visible;
  }
}

/* ---------- 3 · Online: banda lilás forte, foto + preços, carrossel por baixo ----------
   Opção B do canvas HomepageV4Online (Daniel, 12/11/2026). O roxo do eyebrow (#5a2fb8) e o
   texto (#3b3644) passam AA no lilás #cbb5ef. */
.fbs-h4-online {
  --fbs-h4-online-bg: #cbb5ef;
  --fbs-h4-eyebrow: #5a2fb8;
  margin-top: var(--fbs-sec);
  background: var(--fbs-h4-online-bg);
}
.fbs-h4-online__feature {
  display: grid;
}
.fbs-h4-online__media {
  margin: 0 !important;
}
.fbs-h4-online__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.fbs-h4-online__body {
  padding: 32px var(--fbs-pad-x) 0;
}
.fbs-h4-online .fbs-h2 {
  margin-bottom: 0;
}
.fbs-h4-online .fbs-text {
  margin: 14px 0 0 !important;
  max-width: 460px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #3b3644;
}
.fbs-h4-prices {
  max-width: 440px;
  margin: 20px 0 0;
  padding: 2px 16px;
  border-radius: 10px;
  background: #fff;
}
.fbs-h4-prices > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
}
.fbs-h4-prices > div + div {
  border-top: 1px solid #e4d9f6;
}
.fbs-h4-prices dt {
  font: 500 13.5px/1.4 var(--fbs-body);
  color: #3b3644;
}
.fbs-h4-prices dd {
  margin: 0;
  font: 600 14px/1 var(--fbs-body);
  white-space: nowrap;
}
.fbs-h4-online__note {
  margin: 12px 0 0 !important;
  font: 500 12.5px/1.5 var(--fbs-body);
  color: #3b3644;
}
.fbs-h4-online .fbs-actions {
  margin-top: 22px;
}
@media (max-width: 699px) {
  .fbs-h4-online__body .fbs-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .fbs-h4-online__body .fbs-actions .wp-block-button,
  .fbs-h4-online__body .fbs-actions .wp-block-button__link {
    width: 100%;
  }
}
.fbs-h4-online__inner {
  max-width: var(--fbs-maxw);
  margin: 0 auto;
  padding: 28px var(--fbs-pad-x) 44px;
}
/* Desktop: só cartões inteiros dentro da margem da página (Daniel, 12/11: nem até ao limite
   do browser, nem um cartão partido a meio). 4 por ecrã até 1279px, 5 a partir daí; as setas
   passam aos seguintes. O % é da caixa de conteúdo da lista (sem o padding). */
@media (min-width: 1100px) {
  .fbs-h4-online .fbs-online-designs {
    grid-auto-columns: calc((100% - 3 * 24px) / 4);
    /* A janela do carrossel é a coluna do conteúdo (sem a margem da página de cada lado): os
       cartões entram e saem na margem, alinhados com o título. As setas andam ~um ecrã e o
       snap obrigatório acerta sempre num cartão inteiro. */
    margin: 0 !important;
    padding: 0;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
  }
}
@media (min-width: 1280px) {
  .fbs-h4-online .fbs-online-designs {
    grid-auto-columns: calc((100% - 4 * 24px) / 5);
  }
}
@media (min-width: 1100px) {
  .fbs-h4-online__feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  /* A foto acompanha a altura do texto (mín. 560px), como no canvas */
  .fbs-h4-online__media {
    position: relative;
    min-height: 560px;
  }
  .fbs-h4-online__media img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }
  .fbs-h4-online__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 72px var(--fbs-pad-x);
  }
  .fbs-h4-online .fbs-h2 {
    font-size: 50px;
    line-height: 1.04;
    text-wrap: balance;
  }
  .fbs-h4-online .fbs-text {
    margin-top: 20px !important;
    font-size: 16px;
  }
  .fbs-h4-prices {
    margin-top: 28px;
    padding: 6px 20px;
  }
  .fbs-h4-prices > div {
    padding: 14px 0;
  }
  .fbs-h4-prices dt {
    font-size: 14px;
  }
  .fbs-h4-prices dd {
    font-size: 15px;
  }
  .fbs-h4-online__note {
    margin-top: 14px !important;
    font-size: 13px;
  }
  .fbs-h4-online .fbs-actions {
    margin-top: 32px;
  }
  .fbs-h4-online__inner {
    padding: 48px var(--fbs-pad-x) 64px;
  }
}
/* "Do zero": primeiro cartão do carrossel, escuro (inc/fbs-online.php, scratch="1"). Com
   .fbs-online-designs à frente: o fbs-online.css carrega depois deste ficheiro. */
.fbs-online-designs .fbs-online-design--scratch {
  justify-content: flex-end;
  gap: 10px;
  aspect-ratio: 4 / 5;
  padding: 22px;
  border-radius: var(--fbs-radius);
  background: var(--fbs-ink);
  color: #fff;
}
.fbs-online-designs .fbs-online-design--scratch .fbs-online-design__k {
  margin-bottom: auto;
  font: 600 10px/1.3 var(--fbs-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fbs-accent-soft);
}
.fbs-online-designs .fbs-online-design--scratch .fbs-online-design__all-d {
  color: #d9d4e0;
}
.fbs-online-design__go {
  margin-top: 6px;
  font: 600 13.5px/1.3 var(--fbs-body);
}
.fbs-online-designs .fbs-online-design--scratch:hover {
  background: var(--fbs-ink-hover);
  color: #fff;
}
@media (max-width: 699px) {
  .fbs-online-designs .fbs-online-design--scratch {
    padding: 14px;
  }
  .fbs-online-designs .fbs-online-design--scratch .fbs-online-design__all-d {
    font-size: 12px;
  }
}

/* ---------- 4 · Agenda: estúdio e cidades ---------- */
.fbs-h4-agenda {
  display: grid;
  gap: 32px;
}
.fbs-h4-agenda__media {
  margin: 0;
}
.fbs-h4-agenda__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--fbs-radius);
}
.fbs-h4-agenda .fbs-text {
  max-width: 520px;
  font-size: 15px;
}
.fbs-h4-agenda__list {
  margin: 28px 0 0 !important;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fbs-line);
}
.fbs-h4-agenda__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'when cta' 'place cta';
  align-items: center;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--fbs-line);
}
.fbs-h4-agenda__when {
  grid-area: when;
  font: 600 11px/1.35 var(--fbs-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fbs-accent-hover);
}
.fbs-h4-agenda__place {
  grid-area: place;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.fbs-h4-agenda__city {
  font: 400 21px/1.1 var(--fbs-display);
  text-transform: uppercase;
}
.fbs-h4-agenda__where {
  font: 400 13px/1.35 var(--fbs-body);
  color: var(--fbs-muted);
}
.fbs-h4-agenda__where .fbs-event-location:not(:empty)::before {
  content: ' · ';
}
.fbs-h4-agenda__cta {
  grid-area: cta;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--fbs-ink);
  border-radius: var(--fbs-pill);
  font: 600 13px/1 var(--fbs-body);
  white-space: nowrap;
}
.fbs-h4-agenda .fbs-h4-agenda__cta:hover {
  background: var(--fbs-ink);
  color: #fff;
}
.fbs-h4-agenda__more {
  margin-top: 22px !important;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
@media (min-width: 700px) {
  .fbs-h4-agenda__row {
    grid-template-columns: 140px minmax(0, 1fr) auto;
    grid-template-areas: 'when place cta';
    gap: 20px;
    padding: 18px 0;
  }
  .fbs-h4-agenda__city {
    font-size: 22px;
  }
}
@media (min-width: 1100px) {
  .fbs-h4-agenda {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 88px;
    align-items: start;
  }
  .fbs-h4-agenda__media img {
    aspect-ratio: auto;
    height: 640px;
  }
  .fbs-h4-agenda .fbs-h2 {
    font-size: 44px;
  }
}

/* Só para leitores de ecrã (o "Agendar Lisboa" da linha) */
.fbs-home4 .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 5 · Gift card: cartão escuro ---------- */
.fbs-h4-gift {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  background: var(--fbs-ink);
  color: #fff;
  --fbs-h4-eyebrow: var(--fbs-accent-soft);
}
.fbs-h4-gift .fbs-h2 {
  color: #fff;
  margin-bottom: 14px;
}
.fbs-h4-gift .fbs-text {
  color: #d9d4e0;
  max-width: 420px;
}
.fbs-h4-gift .fbs-actions {
  margin-top: 26px;
}
.fbs-h4-gift .wp-block-button.is-style-fbs-primary .wp-block-button__link {
  background: #fff;
  border-color: #fff;
  color: var(--fbs-ink);
}
.fbs-h4-gift .wp-block-button.is-style-fbs-primary .wp-block-button__link:hover {
  background: var(--fbs-lilac);
  border-color: var(--fbs-lilac);
  color: var(--fbs-ink);
}
.fbs-h4-gift__media {
  margin: 0;
}
.fbs-h4-gift__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.fbs-h4-gift__body {
  padding: 32px 24px 36px;
}
@media (min-width: 700px) {
  .fbs-h4-gift {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .fbs-h4-gift__media img {
    aspect-ratio: auto;
    min-height: 360px;
  }
  .fbs-h4-gift__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
  }
}
@media (min-width: 1100px) {
  .fbs-h4-gift__media img {
    height: 420px;
    min-height: 0;
  }
  .fbs-h4-gift__body {
    padding: 64px;
  }
}

/* ---------- 6 · Quem somos ---------- */
.fbs-h4-about__cols {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--fbs-line);
}
.fbs-h4-about__t {
  margin-bottom: 8px !important;
  font: 600 15px/1.3 var(--fbs-body);
}
.fbs-h4-about__cols .fbs-text {
  font-size: 14px;
}
.fbs-h4-about .fbs-actions {
  margin-top: 28px;
}
@media (min-width: 700px) {
  .fbs-h4-about__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding-top: 28px;
  }
}
