/* J&C Casamento — estilos base */
:root {
  --jc-paper: #FBFAF6;
  --jc-ivory: #F1EEE6;
  --jc-sage: #ECEFE6;
  --jc-green: #3E4C39;
  --jc-green-dark: #2F3B2C;
  --jc-champ: #BCA585;
  --jc-champ-text: #806B4D;
  --jc-cream: #E8DCC6;
  --jc-ink: #2C3229;
  --jc-muted: #5A6253;
  --jc-serif: 'Cormorant Garamond', Georgia, serif;
  --jc-sans: 'Josefin Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Tipografia global ---------- */
body.jc,
body.jc #ajax-content-wrap,
body.jc .wpb_text_column,
body.jc p,
body.jc li {
  font-family: var(--jc-serif);
  font-weight: 400;
  color: var(--jc-ink);
}
body.jc .wpb_text_column p,
body.jc .wpb_text_column li { font-size: 21px; line-height: 1.6; }
body.jc { background: var(--jc-paper); }
body.jc .container-wrap { background: var(--jc-paper); padding-bottom: 0 !important; }

body.jc h1, body.jc h2, body.jc h3, body.jc h4 {
  font-family: var(--jc-serif);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.005em;
  color: inherit;
  text-transform: none;
}
body.jc h2 { font-size: clamp(48px, 6vw, 88px); line-height: 1.05; margin-bottom: 0.35em; }
body.jc h3 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.08; margin-bottom: 0.4em; }

body.jc .jc-caps, body.jc p.jc-caps {
  font-family: var(--jc-sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--jc-champ-text);
}
body.jc .light .jc-caps, body.jc .jc-on-dark .jc-caps { color: var(--jc-cream); }
body.jc .jc-muted, body.jc .wpb_text_column .jc-muted { color: var(--jc-muted); }
body.jc .jc-italic { font-style: italic; }

/* âncoras por baixo do header fixo */
body.jc [id] { scroll-margin-top: 110px; }

/* ---------- Header (Salient) ---------- */
body.jc #header-outer,
body.jc #header-outer[data-transparent-header="true"].scrolled-down,
body.jc #header-outer:not([data-format="left-header"]) {
  background-color: #FBFAF6 !important;
  border-bottom: 1px solid #E4DCCB;
  box-shadow: none !important;
}
body.jc #header-outer .sf-menu > li > a,
body.jc #header-outer nav > ul > li > a,
body.jc #slide-out-widget-area .menu li a {
  font-family: var(--jc-sans) !important;
  font-weight: 300 !important;
  font-size: 12px !important;
  letter-spacing: 0.24em !important;
  text-transform: uppercase !important;
  color: var(--jc-ink) !important;
}
body.jc #slide-out-widget-area .menu li a { font-size: 16px !important; color: #fff !important; }
body.jc #header-outer .sf-menu > li > a:hover { color: var(--jc-champ-text) !important; }

/* ---------- HERO ---------- */
body.jc .jc-hero { position: relative; }
body.jc .jc-hero .row-bg { will-change: transform; transform-origin: 50% 40%; }
body.jc .jc-hero .wpb_text_column p,
body.jc .jc-hero .wpb_text_column h1 { color: #FBFAF6; text-align: center; }
body.jc .jc-hero h1 {
  font-size: clamp(60px, 9vw, 140px) !important;
  line-height: 1 !important;
  margin: 0 !important;
  letter-spacing: -0.01em;
}
body.jc .jc-hero p.jc-kicker { font-style: italic; font-weight: 300; font-size: clamp(20px, 2vw, 28px); margin-bottom: 10px; }
body.jc .jc-hero p.jc-date {
  font-family: var(--jc-sans); font-weight: 300; font-size: 14px; letter-spacing: 0.4em; margin-top: 18px;
}
.jc-petals { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; pointer-events: none; z-index: 3; overflow: hidden; }
.jc-petal {
  position: absolute; top: 0; left: 0;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 70% 0 70% 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ---------- Títulos de secção + raminho ---------- */
body.jc .jc-head { text-align: center; }
body.jc .jc-head h2 { margin-bottom: 0; }
body.jc .jc-head h2::after,
body.jc .jc-sprig::after {
  content: '';
  display: block;
  width: 120px; height: 24px;
  margin: 18px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24' fill='none' stroke='%23BCA585' stroke-width='1'%3E%3Cpath d='M8 12h104'/%3E%3Cpath d='M60 12c-6-8-14-9-20-7 5 5 12 7 20 7zM60 12c6-8 14-9 20-7-5 5-12 7-20 7zM44 12c-4-6-10-7-14-5 4 4 9 5 14 5zM76 12c4-6 10-7 14-5-4 4-9 5-14 5zM60 12c-6 8-14 9-20 7 5-5 12-7 20-7zM60 12c6 8 14 9 20 7-5-5-12-7-20-7z'/%3E%3C/svg%3E") no-repeat center / contain;
}
body.jc .jc-head.jc-no-sprig h2::after { display: none; }
body.jc .light .jc-head h2::after { filter: brightness(1.35); }

/* ---------- Convite ---------- */
body.jc .jc-words h2 { text-align: right; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.05; margin-bottom: 48px; }
body.jc .jc-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Imagens com parallax ---------- */
body.jc .jc-parallax .img-with-aniamtion-wrap .inner,
body.jc .jc-parallax .hover-wrap,
body.jc .jc-parallax .hover-wrap-inner { overflow: hidden; }

/* ---------- Arcos (A nossa história) ---------- */
body.jc .jc-arch .img-with-aniamtion-wrap { position: relative; padding: 16px; }
body.jc .jc-arch .img-with-aniamtion-wrap::before {
  content: ''; position: absolute; inset: 0;
  border: 1px solid var(--jc-champ);
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
body.jc .jc-arch .img-with-aniamtion-wrap .inner,
body.jc .jc-arch .hover-wrap,
body.jc .jc-arch .hover-wrap-inner { border-radius: 999px 999px 0 0; overflow: hidden; }
body.jc .jc-arch img {
  width: 100% !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 999px 999px 0 0;
  display: block;
}
body.jc .jc-story-text h3 { margin-top: 6px; }

/* ---------- Programa do dia ---------- */
.jc-tl { position: relative; max-width: 760px; margin: 0 auto; }
.jc-tl__line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: var(--jc-cream); transform-origin: top;
}
.jc-tl__list { list-style: none; margin: 0 !important; padding: 0 !important; }
.jc-tl__item {
  position: relative; display: flex; align-items: center;
  width: 50%; box-sizing: border-box; padding: 22px 0; margin: 0 !important;
  list-style: none !important;
}
.jc-tl__item--right { margin-left: 50% !important; }
.jc-tl__item--left { justify-content: flex-start; text-align: right; flex-direction: row-reverse; }
.jc-tl__item--right { text-align: left; }
.jc-tl__tick { flex: 0 0 32px; height: 1px; background: var(--jc-cream); transform-origin: left; margin: 0 16px 0 0; }
.jc-tl__item--left .jc-tl__tick { transform-origin: right; margin: 0 0 0 16px; }
body.jc .jc-tl p { margin: 0 !important; padding: 0 !important; color: #FBFAF6; }
body.jc .jc-tl .jc-tl__time { font-family: var(--jc-sans); font-weight: 300; font-size: 14px; letter-spacing: 0.16em; line-height: 1.4; }
body.jc .jc-tl .jc-tl__title { font-family: var(--jc-serif); font-style: italic; font-weight: 300; font-size: 30px; line-height: 1.15; margin: 2px 0 !important; }
body.jc .jc-tl .jc-tl__place { font-family: var(--jc-sans); font-weight: 300; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #DCE2D5; line-height: 1.5; }
@media (max-width: 600px) {
  .jc-tl__tick { flex-basis: 18px; margin-right: 10px; }
  .jc-tl__item--left .jc-tl__tick { margin-left: 10px; }
  body.jc .jc-tl .jc-tl__title { font-size: 24px; }
}

/* ---------- Cartões (Como chegar) ---------- */
body.jc .jc-card > .vc_column-inner,
body.jc .jc-card > .column-inner-wrap > .column-inner,
body.jc .wpb_column.jc-card .vc_column-inner {
  background: #FFFFFF;
  border: 1px solid #DCD3C1;
  padding: clamp(28px, 4vw, 52px) !important;
  text-align: center;
}
body.jc .jc-card h3 { font-size: 40px; margin-bottom: 10px; }
body.jc .jc-card .wpb_gmaps_widget,
body.jc .jc-card iframe { margin-top: 24px; }
body.jc .jc-card iframe { width: 100%; height: 260px; border: 0; filter: grayscale(0.55) sepia(0.18) saturate(0.9); }
body.jc .jc-card .wpb_gmaps_widget .wpb_wrapper { padding: 0; background: none; }

/* ---------- Botões ---------- */
body.jc .jc-btn,
body.jc .nectar-button.jc-btn-solid,
body.jc .nectar-button.jc-btn-outline {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px !important;
  font-family: var(--jc-sans) !important; font-weight: 400 !important;
  font-size: 12px !important; letter-spacing: 0.22em !important; text-transform: uppercase !important;
  border-radius: 0 !important; box-shadow: none !important; cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s;
}
body.jc .jc-btn,
body.jc .nectar-button.jc-btn-solid { background: var(--jc-green) !important; color: #FBFAF6 !important; border: 1px solid var(--jc-green) !important; }
body.jc .jc-btn:hover,
body.jc .nectar-button.jc-btn-solid:hover { background: var(--jc-green-dark) !important; }
body.jc .nectar-button.jc-btn-outline { background: transparent !important; color: var(--jc-green) !important; border: 1px solid var(--jc-green) !important; }
body.jc .nectar-button.jc-btn-outline:hover { background: var(--jc-green) !important; color: #FBFAF6 !important; }
body.jc .nectar-button.jc-btn-solid span,
body.jc .nectar-button.jc-btn-outline span { color: inherit !important; }
body.jc .jc-card .nectar-button { margin: 6px 4px !important; }

/* ---------- Galeria de convidados ---------- */
.jc-gg { max-width: 1280px; margin: 0 auto; }
.jc-gg__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px 64px; margin-bottom: clamp(40px, 6vw, 72px); }
.jc-gg__intro { flex: 1 1 420px; }
body.jc .jc-gg__title { margin: 0 0 16px; }
body.jc .jc-gg__text { margin: 0; max-width: 520px; font-size: 21px; line-height: 1.6; color: var(--jc-muted); }
.jc-gg__form { flex: 0 1 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
.jc-gg__btn { position: relative; overflow: hidden; min-height: 56px !important; font-size: 13px !important; }
.jc-gg__btn:focus-within { outline: 2px solid var(--jc-champ); outline-offset: 3px; }
.jc-gg__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.jc-gg__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
body.jc .jc-gg__note, body.jc .jc-gg__status { margin: 0 !important; padding: 0 !important; font-family: var(--jc-sans); font-weight: 300; font-size: 12px; letter-spacing: 0.1em; line-height: 1.5; color: var(--jc-muted); }
body.jc .jc-gg__status { color: var(--jc-green); font-weight: 400; min-height: 1.5em; }
.jc-gg__grid { columns: 3 260px; column-gap: 16px; }
.jc-gg__guests { display: contents; }
.jc-gg__item { position: relative; display: block; margin: 0 0 16px; break-inside: avoid; overflow: hidden; background: #E5E1D6; }
.jc-gg__item img { display: block; width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.jc-gg__item:hover img { transform: scale(1.04); }
.jc-gg__item.is-new { animation: jc-pop .9s cubic-bezier(.2,.7,.2,1) both; }
.jc-gg__item--loading { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; }
.jc-gg__spinner { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--jc-champ); border-top-color: transparent; animation: jc-spin 1s linear infinite; }
.jc-gg__badge { position: absolute; top: 12px; left: 12px; padding: 6px 10px; background: rgba(251, 250, 246, 0.92); font-family: var(--jc-sans); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--jc-ink); }
@keyframes jc-spin { to { transform: rotate(360deg); } }
@keyframes jc-pop { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

/* lightbox */
.jc-lb { position: fixed; inset: 0; z-index: 100000; display: none; align-items: center; justify-content: center; background: rgba(28, 34, 26, 0.94); }
.jc-lb.is-open { display: flex; }
.jc-lb__img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.jc-lb button { position: absolute; background: none; border: 0; color: #FBFAF6; font-family: var(--jc-serif); font-size: 48px; line-height: 1; width: 56px; height: 56px; cursor: pointer; padding: 0; }
.jc-lb__close { top: 16px; right: 16px; }
.jc-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.jc-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
html.jc-lb-open, html.jc-lb-open body { overflow: hidden; }

/* ---------- Rodapé (última linha da página) ---------- */
body.jc .jc-footer .wpb_text_column p { color: var(--jc-cream); }
body.jc .jc-footer .jc-footer-names { font-family: var(--jc-serif); font-style: italic; font-weight: 300; font-size: clamp(52px, 7vw, 104px); line-height: 1; color: #FBFAF6; margin: 0; }
body.jc .jc-footer .jc-footer-date { font-family: var(--jc-sans); font-weight: 300; font-size: 14px; letter-spacing: 0.4em; margin-top: 18px; }
body.jc .jc-footer .jc-footer-meta { border-top: 1px solid rgba(232, 220, 198, 0.3); margin-top: clamp(56px, 7vw, 96px); padding-top: 22px; font-family: var(--jc-sans); font-weight: 300; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
body.jc .jc-footer a { color: #FBFAF6; }

/* Sem animações para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .jc-petals { display: none; }
  .jc-gg__item img, .jc-gg__item.is-new { transition: none; animation: none; }
}

/* ---------- Ajustes de layout ---------- */
body.jc .jc-map iframe { display: block; width: 100%; border: 0; filter: grayscale(0.55) sepia(0.18) saturate(0.9); margin-top: 24px; }
body.jc .jc-story-text > .vc_column-inner,
body.jc .jc-story-text .column-inner { padding-left: 6% !important; padding-right: 6% !important; }
body.jc .jc-convite .jc-words > .vc_column-inner,
body.jc .jc-convite .jc-words .column-inner { padding-left: 8% !important; }
body.jc .jc-convite .jc-words p { max-width: 460px; }
@media (max-width: 999px) {
  body.jc .jc-words h2 { text-align: left; }
  body.jc .jc-story-text > .vc_column-inner, body.jc .jc-story-text .column-inner,
  body.jc .jc-convite .jc-words > .vc_column-inner, body.jc .jc-convite .jc-words .column-inner { padding-left: 0 !important; padding-right: 0 !important; }
}

/* ---------- Correções após montagem no Salient ---------- */
body.jc { font-variant-numeric: lining-nums; }
body.jc .wpb_text_column p { padding-bottom: 0; margin-bottom: 1em; }
body.jc .wpb_text_column p:last-child { margin-bottom: 0; }
body.jc #header-outer { background-color: #FBFAF6 !important; }

/* texto claro em linhas escuras */
body.jc .span_12.light h1, body.jc .span_12.light h2, body.jc .span_12.light h3,
body.jc .span_12.light p { color: #FBFAF6; }
body.jc .span_12.light p.jc-caps { color: var(--jc-cream); }

/* imagens (a classe extra do WPBakery fica na própria <img>) */
body.jc img.jc-portrait { width: 100% !important; aspect-ratio: 4 / 5; object-fit: cover; }
body.jc .img-with-aniamtion-wrap:has(img.jc-parallax) .hover-wrap-inner { overflow: hidden; }
body.jc img.jc-arch { width: 100% !important; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
body.jc .img-with-aniamtion-wrap:has(img.jc-arch) .inner { position: relative; padding: 16px; }
body.jc .img-with-aniamtion-wrap:has(img.jc-arch) .inner::before {
  content: ''; position: absolute; inset: 0; border: 1px solid var(--jc-champ);
  border-radius: 999px 999px 0 0; pointer-events: none;
}
body.jc .img-with-aniamtion-wrap:has(img.jc-arch) .hover-wrap,
body.jc .img-with-aniamtion-wrap:has(img.jc-arch) .hover-wrap-inner { border-radius: 999px 999px 0 0; overflow: hidden; }

/* cartões: mapa sempre alinhado em baixo */
body.jc .wpb_column.jc-card > .vc_column-inner { height: 100%; }
body.jc .wpb_column.jc-card > .vc_column-inner > .wpb_wrapper { display: flex; flex-direction: column; align-items: center; height: 100%; }
body.jc .wpb_column.jc-card .jc-map { margin-top: auto; width: 100%; padding-top: 24px; }
body.jc .wpb_column.jc-card .jc-map iframe { margin-top: 0; }
body.jc .wpb_column.jc-card .nectar-button { display: inline-flex !important; }

/* galeria */
.jc-gg__item { line-height: 0; }
body.jc .jc-gg__item img { margin: 0 !important; }
body.jc .jc-gg__grid > .jc-gg__item:nth-of-type(3n+2) img,
body.jc .jc-gg__grid > .jc-gg__item:nth-of-type(5n+4) img { aspect-ratio: 4 / 5; object-fit: cover; }

/* rodapé */
body.jc .jc-footer p.jc-footer-names { color: #FBFAF6; margin: 0 0 18px; }
body.jc .jc-footer p.jc-footer-date { color: var(--jc-cream); margin: 0; }
body.jc .jc-footer p.jc-footer-meta { color: var(--jc-cream); }

/* arcos mais contidos + texto ao centro */
body.jc .img-with-aniamtion-wrap:has(img.jc-arch) { text-align: center; }
body.jc .img-with-aniamtion-wrap:has(img.jc-arch) .inner { max-width: 480px; margin: 0 auto; display: block; }
body.jc .wpb_column.jc-story-text { align-self: center; }
/* enquadramento das fotos (classe extra na imagem) */
body.jc img.jc-pos-top { object-position: center 20%; }
body.jc img.jc-pos-bottom { object-position: center 80%; }
body.jc img.jc-pos-left { object-position: 30% center; }
body.jc img.jc-pos-right { object-position: 70% center; }
body.jc img.jc-pos-top-right { object-position: 68% 22%; }

/* =========================================================
   v1.1 — barras brancas, loader, underline, animações
   ========================================================= */

/* Bug do Salient: barras brancas à esquerda/direita nas linhas full-width */
html, body { overflow-x: clip; }
body.jc .wpb_row.full-width-section > .row-bg-wrap,
body.jc .wpb_row.full-width-content > .row-bg-wrap {
  left: 50% !important;
  margin-left: -50vw !important;
  width: 100vw !important;
  right: auto !important;
}
body.jc .wpb_row.full-width-section > .row-bg-wrap .row-bg { width: 100% !important; left: 0 !important; }

/* Underline animado do Salient: só no hover e na secção onde estás */
body.jc #header-outer .sf-menu > li > a .menu-title-text::after { opacity: 1; }

/* Loader */
.jc-loader {
  position: fixed; inset: 0; z-index: 100005;
  display: flex; align-items: center; justify-content: center;
  background: var(--jc-paper);
  clip-path: inset(0% 0% 0% 0%);
  animation: jc-loader-fallback .6s ease 4s forwards;
}
.jc-loader__inner { text-align: center; padding: 0 24px; }
.jc-loader__logo { display: block; width: min(44vw, 200px); height: auto; margin: 0 auto 10px; }
.jc-loader__names {
  margin: 0 !important; padding: 0 !important;
  font-family: var(--jc-serif) !important; font-style: italic; font-weight: 300 !important;
  font-size: clamp(30px, 7vw, 46px) !important; line-height: 1.1 !important; color: var(--jc-ink) !important;
}
.jc-loader__line { display: block; width: 120px; height: 1px; margin: 18px auto 0; background: var(--jc-champ); transform-origin: center; }
html.jc-no-anim .jc-loader { display: none; }
html.jc-loading, html.jc-loading body { overflow: hidden; }
@keyframes jc-loader-fallback { to { opacity: 0; visibility: hidden; } }

/* Raminho desenha-se quando o título entra */
html.jc-anim body.jc .jc-head h2::after {
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 1.2s cubic-bezier(.7,0,.2,1) .35s;
}
html.jc-anim body.jc .jc-head.is-in h2::after { clip-path: inset(0 0 0 0); }

/* Moldura do arco aparece depois da foto */
html.jc-anim body.jc .img-with-aniamtion-wrap:has(img.jc-arch) .inner::before {
  opacity: 0; transform: scale(.94);
  transition: opacity 1s ease .6s, transform 1.4s cubic-bezier(.2,.7,.2,1) .6s;
}
html.jc-anim body.jc .img-with-aniamtion-wrap.is-in:has(img.jc-arch) .inner::before { opacity: 1; transform: none; }
body.jc img.jc-arch, body.jc img.jc-portrait { will-change: transform; }

/* Programa: ponto que percorre a linha */
.jc-tl__dot {
  position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--jc-cream);
  box-shadow: 0 0 0 5px rgba(232, 220, 198, .18), 0 0 18px rgba(232, 220, 198, .6);
  pointer-events: none;
}
.jc-tl__item .jc-tl__tick { transform-origin: left center; }
.jc-tl__item--left .jc-tl__tick { transform-origin: right center; }

/* Botões: preenchimento inclinado (Osmo Button with Slanted Reveal) — entra e sai animado */
body.jc .nectar-button.jc-btn-solid,
body.jc .nectar-button.jc-btn-outline,
body.jc .jc-btn {
  position: relative; overflow: hidden; isolation: isolate;
  background-image: none !important;
  transition: color .45s ease, border-color .45s ease !important;
}
body.jc .nectar-button.jc-btn-solid, body.jc .jc-btn { background-color: var(--jc-green) !important; }
body.jc .nectar-button.jc-btn-outline { background-color: transparent !important; }
body.jc .nectar-button.jc-btn-solid::before,
body.jc .nectar-button.jc-btn-outline::before,
body.jc .jc-btn::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -20%; width: 140%;
  background: var(--jc-champ-text);
  transform: translateX(-102%) skewX(-18deg);
  transition: transform .75s cubic-bezier(.7, 0, .2, 1);
  z-index: -1; pointer-events: none;
}
body.jc .nectar-button.jc-btn-outline::before { background: var(--jc-green); }
body.jc .nectar-button.jc-btn-solid:hover::before, body.jc .nectar-button.jc-btn-solid:focus-visible::before, body.jc .nectar-button.jc-btn-solid:active::before,
body.jc .nectar-button.jc-btn-outline:hover::before, body.jc .nectar-button.jc-btn-outline:focus-visible::before, body.jc .nectar-button.jc-btn-outline:active::before,
body.jc .jc-btn:hover::before, body.jc .jc-btn:focus-within::before, body.jc .jc-btn:active::before {
  transform: translateX(0) skewX(-18deg);
}
body.jc .nectar-button.jc-btn-solid:hover, body.jc .jc-btn:hover { background-color: var(--jc-green) !important; }
body.jc .nectar-button.jc-btn-outline:hover, body.jc .nectar-button.jc-btn-outline:active { color: #FBFAF6 !important; background-color: transparent !important; }
body.jc .jc-btn > span, body.jc .jc-btn > svg { position: relative; z-index: 1; }
body.jc .jc-gg__input { z-index: 2; }

/* Botão de upload: pulsação suave (Osmo Elastic Pulse Button) */
.jc-gg__btn { animation: jc-pulse 2.8s cubic-bezier(.2,.7,.2,1) infinite; }
@keyframes jc-pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 76, 57, .45); }
  70% { box-shadow: 0 0 0 18px rgba(62, 76, 57, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 76, 57, 0); }
}

/* Rodapé parallax: sombra na secção anterior */
.jc-footer-shade { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; background: #1E261B; opacity: 0; pointer-events: none; z-index: 5; }
/* corta só na vertical: o fundo continua a 100% da largura */
body.jc .jc-footer { clip-path: inset(0 -100vw); }

/* Voltar ao topo: underline animado (Osmo Underline Link Animation) */
body.jc .jc-footer-meta a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat right bottom / 100% 1px;
  padding-bottom: 4px;
  transition: background-size .6s cubic-bezier(.7,0,.2,1);
}
body.jc .jc-footer-meta a:hover { background-size: 0% 1px; background-position: left bottom; }

@media (prefers-reduced-motion: reduce) {
  .jc-loader { display: none; }
  .jc-gg__btn { animation: none; }
}

/* =========================================================
   v1.1.3 — correções
   ========================================================= */
/* Topo: sem fundo verde durante a animação de entrada, só a fotografia */
body.jc .jc-hero, body.jc .jc-hero .row-bg { background-color: transparent !important; }

/* Underline do menu com 1px */
body.jc #header-outer .sf-menu > li > a .menu-title-text::after { border-top-width: 1px !important; }

/* Máscaras do SplitText não cortam descendentes (g, j, p, ç) */
body.jc h1 > div[style*="overflow: clip"], body.jc h2 > div[style*="overflow: clip"],
body.jc h3 > div[style*="overflow: clip"], body.jc p > div[style*="overflow: clip"] {
  padding-bottom: .22em; margin-bottom: -.22em;
}
body.jc .jc-head h2, body.jc .jc-gg__title { line-height: 1.15; }

/* Como chegar: botões lado a lado (também no telemóvel), mapa sempre em baixo */
body.jc .wpb_column.jc-card > .vc_column-inner > .wpb_wrapper {
  display: grid !important; grid-template-columns: auto auto; grid-template-rows: auto auto 1fr;
  justify-content: center; column-gap: 10px; row-gap: 14px;
}
body.jc .wpb_column.jc-card .wpb_wrapper > * { grid-column: 1 / -1; }
body.jc .wpb_column.jc-card .wpb_wrapper > a.nectar-button { grid-column: auto; margin: 0 !important; }
body.jc .wpb_column.jc-card .jc-map { align-self: end; }
@media (max-width: 400px) {
  body.jc .wpb_column.jc-card .nectar-button { padding: 0 18px !important; letter-spacing: .16em !important; }
}

/* =========================================================
   v1.1.4 — menu em texto no telemóvel, hero mais suave
   ========================================================= */
.jc-mnav { display: none; }
@media (max-width: 999px) {
  html.jc-has-mnav #header-outer .slide-out-widget-area-toggle.mobile-icon,
  html.jc-has-mnav #header-outer #top .col.span_9 { display: none !important; }
  html.jc-has-mnav #header-outer #top .row { display: flex !important; align-items: center; justify-content: center; }
  html.jc-has-mnav #header-outer #top .col.span_3 { width: auto !important; flex: 0 0 auto; margin: 0 clamp(8px, 3vw, 16px) !important; float: none !important; }
  .jc-mnav {
    display: flex; flex: 1 1 0; min-width: 0; align-items: center; gap: clamp(8px, 3vw, 16px);
    list-style: none; margin: 0 !important; padding: 0 !important;
  }
  .jc-mnav--left { justify-content: flex-end; }
  .jc-mnav--right { justify-content: flex-start; }
  .jc-mnav li { list-style: none; margin: 0 !important; padding: 0 !important; }
  .jc-mnav a {
    position: relative; display: inline-block; padding: 12px 0;
    font-family: var(--jc-sans); font-weight: 300; font-size: clamp(9.5px, 2.7vw, 12px);
    letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; line-height: 1.2;
    color: var(--jc-ink) !important; text-decoration: none;
  }
  .jc-mnav a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--jc-champ-text);
    transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.52, .01, .16, 1);
  }
  .jc-mnav li.current-menu-item a::after, .jc-mnav a:active::after { transform: scaleX(1); transform-origin: left; }
}

/* Hero: camadas na GPU para a entrada não "saltar" */
body.jc .jc-hero .row-bg-wrap, body.jc .jc-hero .row-bg { backface-visibility: hidden; will-change: transform, clip-path; }

/* =========================================================
   v1.1.5 — convite alinhado à direita, "ver mais" na galeria
   ========================================================= */
@media (min-width: 1000px) {
  body.jc .jc-convite .jc-words .wpb_text_column p { text-align: right; margin-left: auto; }
}
.jc-gg__item--more { display: none !important; }
.jc-gg__item.is-revealed { animation: jc-pop .9s cubic-bezier(.2,.7,.2,1) both; }
.jc-gg__more-wrap { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 56px); }
.jc-gg__more-wrap[hidden] { display: none; }
body.jc .jc-gg__more { border: 1px solid var(--jc-green) !important; background-color: transparent !important; color: var(--jc-green) !important; animation: none; }
body.jc .jc-gg__more::before { background: var(--jc-green); }
body.jc .jc-gg__more:hover, body.jc .jc-gg__more:active { color: #FBFAF6 !important; }
body.jc .jc-gg__more:hover, body.jc .jc-gg__more:active, body.jc .jc-gg__more:focus-visible { background-color: transparent !important; }

/* =========================================================
   v1.3 — vídeos na galeria de convidados
   ========================================================= */
.jc-gg__item--video { position: relative; }
.jc-gg__vthumb { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--jc-green); }
.jc-gg__play {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  display: flex; align-items: center; justify-content: center; padding-left: 3px; box-sizing: border-box;
  border-radius: 50%; background: rgba(251, 250, 246, .9); color: var(--jc-green);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .18); pointer-events: none;
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.jc-gg__item--video:hover .jc-gg__play { transform: scale(1.08); }
.jc-gg__item--loading { flex-direction: column; gap: 10px; }
body.jc .jc-gg__pct { font-family: var(--jc-sans); font-size: 11px; letter-spacing: .14em; color: var(--jc-muted); line-height: 1; }
.jc-gg__progress { width: 60%; height: 2px; background: rgba(62, 76, 57, .15); overflow: hidden; }
.jc-gg__progress i { display: block; height: 100%; width: 0; background: var(--jc-green); transition: width .2s linear; }
.jc-lb__video { display: none; max-width: 92vw; max-height: 86vh; background: #000; }
.jc-lb.is-video .jc-lb__video { display: block; }
.jc-lb.is-video .jc-lb__img { display: none; }
