/* =========================================================
   Andreia & Alexandre · 06.08.2027
   ========================================================= */

:root {
  --cream: #f6f1ea;
  --paper: #fbf8f3;
  --line: #e8ded2;
  --terra-light: #d57438;   /* terracota claro */
  --terra: #a34004;         /* acentos: terracota escuro (menos laranja) */
  --terra-mid: #cb4e02;     /* terracota médio */
  --terra-dark: #a34004;    /* terracota escuro */
  --terra-soft: #f0c9ae;
  --terra-btn: #a34004;      /* botões: terracota escuro da paleta (menos laranja) */
  --terra-btn-dark: #8a3603;
  --blush: #f8e6da;
  --blue: #617faa;          /* azul escuro */
  --blue-soft: #e2eaf7;     /* tom muito claro para caixas com texto */
  --blue-mid: #98b3df;      /* azul médio */
  --blue-light: #c4d6f0;    /* azul claro */
  --ink: #3c3632;
  --muted: #847a72;

  --script: "Allura", "Snell Roundhand", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;

  --radius: 4px;
  --shadow: 0 1px 2px rgba(80, 55, 40, .04), 0 10px 30px -18px rgba(80, 55, 40, .25);
  --nav-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cream);
  /* textura de papel subtil */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .28 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--terra); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.icon {
  width: 1em; height: 1em;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon--lg { width: 38px; height: 38px; stroke-width: 1.1; color: var(--terra); }

/* ---------- Tipografia ---------- */
.script { font-family: var(--script); font-weight: 400; line-height: 1.1; margin: 0; }

.eyebrow {
  font-family: var(--serif);
  font-size: 12px; font-weight: 600;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 8px;
}
.eyebrow--light { color: #fff; }
.eyebrow--dark { color: var(--blue); }

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0;
  line-height: 1.2;
}
.subtitle { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }

.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--terra); margin: 14px auto;
}
.divider::before,
.divider::after { content: ""; width: 54px; height: 1px; background: currentColor; opacity: .6; }
.divider .icon { width: 14px; height: 14px; }
.divider--light { color: #f3e3d6; }
.divider--blue { color: var(--blue); }
.divider--sm::before,
.divider--sm::after { width: 28px; }

/* Monograma A&A (svg #logo-aa) */
.logo { display: block; width: auto; }
.logo--nav { height: 46px; width: 50px; }
.logo--welcome { height: 110px; width: 118px; }
.logo--footer { height: 110px; width: 118px; margin: 0 auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--serif); font-weight: 600;
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  padding: 13px 34px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--terra-btn); color: #fff; box-shadow: 0 8px 18px -10px rgba(163, 64, 4, .7); }
.btn--primary:hover { background: var(--terra-btn-dark); }
.btn--outline { border-color: var(--terra); color: var(--terra); background: transparent; }
.btn--outline:hover { background: var(--terra); color: #fff; }
.btn--pill { border-radius: 999px; }
.btn--sm { padding: 8px 18px; font-size: 11px; letter-spacing: .18em; }
.btn--link {
  background: none; border: 0; padding: 4px 0; color: var(--terra);
  font-size: 12px; letter-spacing: .14em;
}
.btn--link:hover { transform: none; text-decoration: underline; }
.btn .icon { width: 14px; height: 14px; }

/* ---------- Placeholders de imagem (gradiente se a foto não existir) ---------- */
.ph { background-size: cover; background-position: center; background-color: #d8b9a2; }
.ph--sunset   { --fb: linear-gradient(115deg, #a34004 0%, #cb4e02 7%, #d57438 18%, #ece4de 40%, #ece4de 48%, #c4d6f0 62%, #98b3df 82%, #617faa 100%); }
.ph--sunset2  { --fb: linear-gradient(160deg, #98b3df 0%, #e9b394 40%, #d57438 65%, #617faa 100%); }
.ph--hills    { --fb: linear-gradient(180deg, #c4d6f0 0%, #e9c2a8 42%, #d57438 62%, #617faa 100%); }
.ph--flowers  { --fb: radial-gradient(circle at 20% 30%, #e6bfa8 0 12%, transparent 13%), radial-gradient(circle at 12% 70%, #f3dccd 0 10%, transparent 11%), linear-gradient(120deg, #617faa 0%, #d57438 40%, #efe7df 41%, #f4efe9 100%); }
.ph--building { --fb: linear-gradient(180deg, #98b3df 0%, #c4d6f0 45%, #e9ddd0 46%, #c9b49f 100%); }
.ph--building2{ --fb: linear-gradient(180deg, #98b3df 0%, #c4d6f0 40%, #efe6da 41%, #d8c6b0 100%); }
.ph--city     { --fb: linear-gradient(180deg, #98b3df 0%, #c4d6f0 25%, #e0956a 55%, #cb4e02 72%, #617faa 100%); }
.ph--sea      { --fb: linear-gradient(180deg, #c4d6f0 0%, #98b3df 50%, #f2ede6 51%, #d9cdbf 100%); }
.ph--skin     { --fb: linear-gradient(135deg, #f0c9ae, #d57438 45%, #617faa 100%); }

/* ---------- Cartões e secções ---------- */
.section { padding: 28px 0; }
.section--tight { padding: 8px 0; }
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.section-head__leaf { width: 26px; height: 46px; color: var(--terra); opacity: .8; flex-shrink: 0; transform: rotate(-20deg); }
.section-head__circle {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.4px solid var(--terra); border-radius: 50%; color: var(--terra); font-size: 26px;
}
.section-head__circle .icon { stroke-width: 1.4; }
.section-head__circle .icon circle { display: none; }
.section-head__plain { color: var(--terra); font-size: 30px; display: grid; }
.section-head__plain .icon { stroke-width: 1.2; }

.sprig { position: absolute; width: 90px; height: 135px; pointer-events: none; }
.sprig--br { right: 8px; bottom: 6px; }
.sprig--tl { left: -10px; top: -14px; transform: rotate(-30deg) scaleX(-1); }
.sprig--footer { right: 4%; bottom: 10%; width: 120px; height: 180px; z-index: 1; }

/* ---------- Navegação ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(60, 40, 30, .5); }
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo { display: flex; align-items: center; position: relative; }
.nav__logo:hover { text-decoration: none; }
.nav__links { display: flex; gap: clamp(14px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--serif); font-weight: 600;
  font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--blue);
  padding: 6px 0;
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--terra); transform: scaleX(0); transition: transform .3s;
}
.nav__links a:hover,
.nav__links a.is-active { color: var(--terra); text-decoration: none; }
.nav__links a:hover::after,
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__heart { color: var(--blue); font-size: 20px; display: grid; }
.nav__heart:hover { color: var(--terra); }
.nav__toggle { display: none; background: none; border: 0; color: var(--blue); font-size: 26px; cursor: pointer; padding: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background-position: center 30%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 50% 55% at 50% 50%, rgba(52, 70, 102, .28) 0%, rgba(52, 70, 102, .08) 70%, rgba(52, 70, 102, 0) 100%),
    linear-gradient(0deg, rgba(52, 70, 102, .18), rgba(52, 70, 102, 0) 30%);
}
.hero__sprig { position: absolute; left: 1.5%; bottom: 4%; width: 50px; height: 100px; color: #f0dfd2; opacity: .8; transform: rotate(-25deg); }
.hero__content { padding: 70px 0 60px; }
.hero__text { max-width: 760px; margin-inline: auto; text-align: center; text-shadow: 0 1px 12px rgba(52, 70, 102, .45); }
.hero__names {
  font-size: clamp(56px, 8.4vw, 104px);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .25);
  white-space: nowrap;
}
.hero__names span { font-size: .85em; }
.hero__chev { width: 18px; height: 18px; opacity: .85; margin: 2px auto 6px; display: block; }
.hero__date {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: .3em; text-transform: uppercase;
  margin: 0 0 6px;
}
.hero__place { font-family: var(--serif); font-size: 15px; letter-spacing: .4em; text-transform: uppercase; margin: 0; }
.hero__place span { margin: 0 .5em; }
.hero__lead { font-size: 19px; line-height: 1.5; margin: 0 0 22px; }
.hero .btn--primary { padding: 12px 28px; }

.countdown { display: flex; justify-content: center; gap: 22px; margin-top: 28px; }
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 48px; }
.countdown span { font-family: var(--serif); font-size: 28px; font-weight: 500; line-height: 1; }
.countdown small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: 4px; }

/* ---------- Bem-vindos ---------- */
.welcome { padding-top: 48px; }
.welcome__inner { text-align: center; max-width: 720px; position: relative; }
.welcome__title { font-size: clamp(40px, 5vw, 56px); color: var(--blue); }
.welcome__text { color: var(--ink); margin: 0 auto; max-width: 560px; }
.welcome__mono {
  position: absolute; right: -170px; top: 34px;
  display: flex; align-items: flex-end;
}


/* ---------- O Nosso Dia ---------- */
.day { display: grid; grid-template-columns: 1.55fr 1fr; overflow: hidden; }
.day__main { padding: 32px 30px; }
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.event { text-align: center; padding: 14px 8px; }
.event h3 {
  font-family: var(--serif); font-weight: 600; font-size: 14px;
  letter-spacing: .25em; text-transform: uppercase; color: var(--blue);
  margin: 14px 0 6px;
}
.event__time { font-family: var(--serif); font-size: 19px; margin: 0 0 6px; }
.event p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.5; }
.day__photo {
  position: relative; min-height: 380px; border-radius: var(--radius);
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 24px 30px;
}

.day__timeline { position: relative; border-left: 1px solid var(--line); padding: 32px 30px 40px; }
.day__timeline > h3 { letter-spacing: .4em; margin-bottom: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
/* ícone | linha | nome */
.timeline::before {
  content: ""; position: absolute; left: 46px; top: 10px; bottom: 10px;
  width: 1px; background: var(--terra-soft);
}
.timeline li {
  display: grid; grid-template-columns: 34px 1fr; align-items: center;
  gap: 0; padding: 9px 0; position: relative;
}
.timeline li::after {
  content: ""; position: absolute; left: 44px; top: 50%;
  width: 5px; height: 5px; border-radius: 50%; background: var(--terra); transform: translateY(-50%);
}
.timeline .icon { width: 24px; height: 24px; color: var(--terra); stroke-width: 1.2; }
.timeline li > div { padding-left: 30px; }
.timeline strong { font-weight: 500; display: block; line-height: 1.3; }
.timeline span { font-size: 14px; color: var(--muted); line-height: 1.3; }

/* ---------- Convite ---------- */
.invite {
  display: grid; grid-template-columns: 1.1fr 1fr;
  min-height: 250px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(90deg, var(--blue-soft), var(--blue-light));
  box-shadow: var(--shadow);
}
.invite__photo {
  position: relative; display: grid; place-items: center;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent);
  mask-image: linear-gradient(90deg, #000 78%, transparent);
}
.invite__text { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 24px; color: var(--blue); }
.invite__text .script { font-size: clamp(42px, 5vw, 60px); text-align: center; transform: rotate(-4deg); }
.invite__text .script span { font-size: .78em; }

/* ---------- Confirmação ---------- */
.rsvp { padding: 48px clamp(20px, 4vw, 56px) 52px; overflow: hidden; }
.rsvp__head { text-align: center; margin-bottom: 34px; }
.rsvp__head .title { font-size: clamp(26px, 3vw, 34px); }
.rsvp__head .subtitle { color: var(--ink); font-size: 18px; margin-top: 8px; }
.rsvp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.rsvp__col { display: flex; flex-direction: column; gap: 22px; }

.fgroup {
  margin: 0; padding: 24px 26px 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fdfbf8;
  min-width: 0;
  transition: opacity .3s;
}
.fgroup legend {
  float: left; width: 100%;
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  color: var(--blue); padding: 0 0 8px; margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.fgroup legend + * { clear: both; }
.fgroup:disabled { opacity: .45; }

/* sub-grupo (acompanhante / crianças): esbatido até responderem "Sim" */
.sub { border: 0; margin: 0; padding: 0; min-width: 0; transition: opacity .3s; }
.sub:disabled { opacity: .5; }
.fgroup:disabled .sub:disabled { opacity: 1; }

.field { margin-bottom: 18px; }
.field label,
.field .label { display: block; font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.field em { color: var(--terra); font-style: normal; }
input[type="text"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  font: inherit; font-size: 17px;
  color: var(--ink);
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #e3d9cd;
  border-radius: 3px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder,
textarea::placeholder { color: #b3a89e; font-style: italic; }
input:focus,
textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(203, 78, 2, .12); }
input:disabled,
textarea:disabled { background: #f5f1ec; }
textarea { resize: vertical; min-height: 100px; }
.is-invalid { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192, 57, 43, .1) !important; }
.radios.is-invalid { box-shadow: none !important; border: 0 !important; }
.radios.is-invalid label { color: #c0392b; }

.radios { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 30px; }
.radios label { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; margin: 0; cursor: pointer; }
.radios--stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.radios--with-input .which { flex: 1 1 200px; width: auto; }
:disabled > .field label,
fieldset:disabled label { cursor: default; }

input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 19px; height: 19px; margin: 0;
  border: 1px solid #c9b8a8; border-radius: 50%;
  background: #fff; display: grid; place-items: center;
  cursor: pointer; flex-shrink: 0;
}
input[type="radio"]::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--terra); transform: scale(0); transition: transform .15s;
}
input[type="radio"]:checked { border-color: var(--terra); }
input[type="radio"]:checked::before { transform: scale(1); }
input[type="radio"]:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

.kids { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.kid { padding: 18px 18px 4px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }
.kid__row { display: grid; grid-template-columns: 1fr 110px 30px; gap: 14px; align-items: end; }
.kid__remove {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  height: 48px; margin-bottom: 18px; font-size: 18px; display: grid; place-items: center;
}
.kid__remove:hover { color: var(--terra); }
.kids .kid:only-child .kid__remove { visibility: hidden; }
#add-kid { margin-bottom: 14px; font-size: 13px; }

.rsvp__phone-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.rsvp__note {
  font-size: 26px; color: var(--muted); text-align: center;
  border-left: 1px solid var(--line); padding-left: 18px;
  transform: rotate(-3deg);
}
.rsvp__note .divider { margin: 6px auto 0; }

.rsvp__submit { text-align: center; margin-top: 24px; }
.rsvp__submit .btn { min-width: 260px; padding: 16px 40px; font-size: 14px; }
.form-error { text-align: center; color: #c0392b; margin: 20px 0 0; font-size: 17px; }
.btn.is-loading { opacity: .7; pointer-events: none; }

.rsvp__success { text-align: center; padding: 30px 0 10px; }
.rsvp__success .script { font-size: 64px; color: var(--blue); }
.rsvp__success p:not(.script) { max-width: 460px; margin: 6px auto 20px; }

/* ---------- Duas colunas ---------- */
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }

/* ---------- Dormidas ---------- */
.lodging { padding: 30px 26px; }
.lead-text { margin: 0 0 18px; font-size: 16px; }
.notice {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.notice__icon {
  width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 24px;
}
.notice__icon .icon { stroke-width: 1.3; }
.notice__icon .icon circle:first-child { display: none; }
.notice h3 {
  font-family: var(--serif); font-weight: 600; font-size: 13px;
  letter-spacing: .24em; text-transform: uppercase; color: var(--blue); margin: 0 0 4px;
}
.notice p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.notice--soft { margin: 22px 0 12px; }
.notice--soft .notice__icon { border: 0; font-size: 28px; }

.hotels { list-style: none; margin: 0; padding: 0; }
.hotel {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.hotel__img { height: 92px; border-radius: 2px; }
.hotel__info h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--blue); margin: 0 0 4px; }
.hotel__info p { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; line-height: 1.6; }
.hotel__info .icon { color: var(--terra); width: 15px; height: 15px; }
.hotel__info a { color: var(--ink); }
.hotel__price { font-weight: 500; margin-top: 2px !important; }
.hotel__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.tag {
  font-size: 11.5px; color: var(--terra); background: var(--blush);
  padding: 3px 10px; border-radius: 2px; white-space: nowrap;
}
.small-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.small-note .icon { color: var(--terra); }

/* ---------- Prendas ---------- */
.gifts { padding: 30px 30px 40px; text-align: center; overflow: hidden; }
.gifts .section-head { text-align: left; }
.gifts__quote { font-style: italic; font-size: 19px; color: var(--blue); margin: 0 0 18px; }
.gifts__text { margin: 0 0 14px; font-size: 16.5px; }
.iban {
  background: var(--blush);
  border-radius: var(--radius);
  padding: 24px 20px 26px;
  margin: 24px 0 22px;
}
.iban .icon--lg { color: var(--terra); }
.iban__label { font-family: var(--serif); letter-spacing: .25em; font-size: 13px; margin: 8px 0 2px; font-weight: 600; }
.iban__number { font-family: var(--serif); font-size: clamp(18px, 2vw, 22px); letter-spacing: .08em; margin: 0 0 4px; word-break: break-word; }
.iban__holder { font-size: 15px; margin: 0 0 16px; }
.gifts__heart { display: block; margin: 28px auto 12px; color: var(--terra); width: 18px; height: 18px; }
.gifts__thanks { margin: 0; font-size: 16.5px; }
.gifts__sprig { display: block; width: 70px; height: 105px; margin: 14px auto 0; transform: rotate(90deg); }

/* ---------- FAQ ---------- */
.faq-wrap { overflow: hidden; }
.faq-wrap__main { padding: 30px 30px 26px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 11px 4px; font-size: 16px; color: var(--blue);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; line-height: 1; color: var(--terra);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--terra); }
.faq details p { margin: 0 4px 14px; font-size: 15.5px; color: var(--ink); }


/* ---------- Banner "Juntos é sempre melhor" ---------- */
.banner {
  position: relative; min-height: 340px;
  display: grid; place-items: center;
  margin: 28px 0;
  background-attachment: fixed;
}
.banner__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(52, 70, 102, .15), rgba(52, 70, 102, .4)); }
.banner__text { position: relative; text-align: center; color: #fff; }
.banner__text .script { font-size: clamp(48px, 6vw, 72px); text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.banner__text .script span { display: inline-block; margin-left: 1.6em; }

/* ---------- Galeria ---------- */
.gallery { padding: 30px; }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery__item {
  height: 260px; border: 0; padding: 0; cursor: zoom-in;
  border-radius: 2px;
  transition: transform .35s, box-shadow .35s, filter .35s;
}
.gallery__item:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(60, 35, 25, .6); filter: saturate(1.1); }
.gallery__quote {
  grid-column: span 2;
  position: relative;
  background: var(--blue-soft);
  border-radius: 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px 14px 16px 44px;
  color: var(--blue); text-align: center;
  overflow: hidden;
}
.gallery__quote .script { font-size: 26px; transform: rotate(-4deg); }
.gallery__quote .icon { width: 14px; height: 14px; margin-top: 8px; }
.gallery__quote-sprig { position: absolute; left: -16px; top: 10px; width: 60px; height: 160px; }

/* ---------- Rodapé ---------- */
.footer {
  position: relative; text-align: center;
  padding: 70px 0 60px;
  overflow: hidden; isolation: isolate;
  background-position: center 70%;
}
.footer__shade {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(246, 241, 234, .9) 35%, rgba(246, 241, 234, .35) 75%, rgba(246, 241, 234, .15) 100%);
}
.footer__inner { position: relative; z-index: 2; }
.footer__names { font-size: clamp(44px, 5vw, 60px); color: var(--blue); margin-top: 6px; }
.footer__date { font-family: var(--serif); letter-spacing: .3em; font-size: 17px; margin: 6px 0 4px; }
.footer__lead { margin: 0; }
.footer__social { display: flex; justify-content: center; gap: 14px; margin: 6px 0 18px; }
.footer__social a {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--blue); color: #fff; font-size: 18px;
  transition: background .25s, transform .25s;
}
.footer__social a:hover { background: var(--terra); transform: translateY(-2px); }
.footer__thanks {
  font-family: var(--serif); font-weight: 600; font-size: 12.5px;
  letter-spacing: .3em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); margin: 0;
}

/* ---------- Lightbox / Toast ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(30, 22, 18, .92);
  display: grid; place-items: center; padding: 24px;
}
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 2px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox__close { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 110;
  transform: translate(-50%, 30px); opacity: 0;
  background: var(--blue); color: #fff;
  padding: 10px 22px; border-radius: 999px; font-size: 15px;
  transition: opacity .3s, transform .3s; pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animações ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .welcome__mono { display: none; }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
  .gallery__item--narrow { grid-column: span 1; }
  .gallery__quote { grid-column: span 2; min-height: 150px; }
}

@media (max-width: 960px) {
  .nav__toggle { display: block; order: 3; }
  .nav__heart { display: none; }
  .nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: center; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px 0 20px;
    box-shadow: 0 16px 30px -20px rgba(60, 40, 30, .5);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { display: block; padding: 10px; }

  .day,
  .faq-wrap,
  .two-col { grid-template-columns: 1fr; }
  .day__timeline,
    .rsvp__grid { grid-template-columns: 1fr; gap: 16px; }
  .banner { background-attachment: scroll; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 92vh; align-items: flex-end; }
  .hero__bg { background-position: 70% center; }
  .hero__shade { background: linear-gradient(0deg, rgba(52, 70, 102, .78) 0%, rgba(52, 70, 102, .45) 55%, rgba(52, 70, 102, .1) 100%); }
  .hero__text { margin-inline: auto; }
  .hero__names { white-space: normal; font-size: 58px; }
  .hero__date { letter-spacing: .18em; }
  .hero__place { letter-spacing: .3em; }
  .countdown { gap: 14px; }

  .events { grid-template-columns: 1fr; gap: 4px; }
  .event { border-bottom: 1px solid var(--line); padding-bottom: 20px; }
  .event:last-child { border-bottom: 0; }
  .day__main,
  .day__timeline { padding: 26px 20px; }

  .invite { grid-template-columns: 1fr; }
  .invite__photo { min-height: 180px; -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent); mask-image: linear-gradient(180deg, #000 75%, transparent); }

  .rsvp__phone-row { grid-template-columns: 1fr; }
  .rsvp__note { border-left: 0; padding-left: 0; }
  .fgroup { padding: 18px 16px 6px; }
  .fgroup legend { font-size: 21px; }
  .kid__row { grid-template-columns: 1fr 86px 26px; gap: 10px; }
  .sprig--tl { display: none; }

  .lodging,
  .gifts,
  .faq-wrap__main,
  .gallery { padding: 24px 18px; }
  .hotel { grid-template-columns: 96px 1fr; gap: 14px; }
  .hotel__img { height: 84px; }
  .hotel__cta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }

  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__item { height: 160px; }
}

.footer__admin {
  display: inline-block; margin-top: 18px;
  font-size: 13px; letter-spacing: .1em;
  color: rgba(255, 255, 255, .75); text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
.footer__admin:hover { color: #fff; }

.hint { color: var(--muted); font-size: .9em; }
.kid__row--single { grid-template-columns: 1fr 30px; }
#add-companion { margin-bottom: 14px; font-size: 13px; }

.hotel__stars { color: var(--terra); font-size: 13px; letter-spacing: 1px; }
.hotels__note { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }

/* botões "Como chegar" alinhados mesmo quando só alguns cartões têm hora */
.event { display: flex; flex-direction: column; align-items: center; }
.event .btn { margin-top: auto; }

/* Banner "Juntos é sempre melhor" com foto: frase à esquerda, casal à direita */
.banner { min-height: 440px; place-items: center start; background-attachment: scroll; }
.banner__shade { background: linear-gradient(90deg, rgba(52, 70, 102, .55) 0%, rgba(52, 70, 102, .25) 40%, rgba(52, 70, 102, 0) 60%); }
.banner__text { margin-left: max(32px, calc((100vw - 1180px) / 2)); max-width: 42%; }
@media (max-width: 640px) {
  /* telemóvel: frase no canto superior esquerdo, sobre o céu, longe das caras */
  .banner { min-height: 400px; place-items: start start; background-position: 50% 30% !important; }
  .banner__shade { background: linear-gradient(160deg, rgba(52, 70, 102, .55) 0%, rgba(52, 70, 102, .15) 35%, rgba(52, 70, 102, 0) 55%); }
  .banner__text { margin: 22px 0 0 20px; max-width: 60%; text-align: left; }
  .banner__text .script { font-size: 40px; }
  .banner__text .script span { margin-left: .8em; }
  .banner__text .divider { justify-content: flex-start; margin-left: 0; }
}

/* Rodapé com foto (céu e mar): textos em azul para se lerem sobre o céu claro */
.footer__thanks { color: var(--blue); text-shadow: 0 1px 8px rgba(255, 255, 255, .8); }
.footer__admin { color: var(--blue); text-shadow: 0 1px 6px rgba(255, 255, 255, .8); }
.footer__admin:hover { color: var(--terra); }
@media (max-width: 640px) {
  .footer { background-size: 300% auto, cover !important; }
}

/* "Contamos com a vossa presença!" com foto */
.invite { grid-template-columns: 1.15fr 1fr; min-height: 360px; background: linear-gradient(120deg, var(--blue-soft) 0%, var(--blue-light) 100%); }
.invite__photo {
  -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
}
.invite__text { padding: 32px 28px; gap: 6px; }
.logo--invite { height: 84px; width: 90px; margin-bottom: 6px; }
.invite__text .script { transform: rotate(-3deg); line-height: 1.15; }
@media (max-width: 640px) {
  .invite { min-height: 0; grid-template-columns: 1fr; }
  .invite__photo {
    min-height: 300px;
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .invite__text { padding: 8px 20px 30px; }
  .logo--invite { height: 64px; width: 70px; }
}
