/* ============================================================================
   Francisca Soares Celebrantes - design system
   Premium suave / editorial romantico. Paletas: marca (copper/marfim) +
   submarca Rais do Amor (vinho/blush/salvia, escopada em [data-brand="rais"]).
   ============================================================================ */

:root {
  /* base neutrals (grading quente/filmico, como o feed do IG) */
  --bg: #f9f4ec;         /* marfim quente */
  --bg-2: #f1e8db;       /* creme mais fundo (seccoes alternadas) */
  --surface: #fffdfa;    /* cartoes (branco quente) */
  --ink: #2c2219;        /* texto (castanho-tinta quente) */
  --muted: #6e5f52;      /* texto secundario */
  --line: #e7dccc;       /* hairlines */
  /* marca principal - cobre/terracota (cor real do logotipo) */
  --brand: #a5673f;      /* decorativo / titulos grandes / script */
  --brand-deep: #8a5030; /* botoes, links, eyebrows, texto pequeno */
  --sage: #737f5c;
  /* submarca Rais do Amor (vinho + blush, do logotipo) */
  --wine: #8b2e3c;
  --wine-deep: #772733;
  --blush: #f7e9ec;
  --blush-line: #eed4da;
  /* accent atual (muda dentro do escopo Rais) */
  --accent: var(--brand);
  --accent-deep: var(--brand-deep);
  --accent-soft: #f3e6d6;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Brittany Signature", "Snell Roundhand", "Apple Chancery", cursive;

  --wrap: 1180px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;
  --shadow: 0 20px 54px -30px rgba(58, 38, 22, 0.5);
  --shadow-soft: 0 12px 32px -22px rgba(58, 38, 22, 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* motivo botanico da marca (raminho, cobre) - data URI para usar em ::after */
  --sprig: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22128%22%20height%3D%2240%22%20viewBox%3D%220%200%20128%2040%22%20fill%3D%22none%22%20stroke%3D%22%23a5673f%22%20stroke-width%3D%221.15%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M64%2038V17%22%2F%3E%3Cpath%20d%3D%22M64%2021%2054%2011%22%2F%3E%3Cpath%20d%3D%22M54%2011c-3-1-4.5-4-2.6-7.2%203%201%204.5%204%202.6%207.2Z%22%2F%3E%3Cpath%20d%3D%22M64%2021%2074%2011%22%2F%3E%3Cpath%20d%3D%22M74%2011c3-1%204.5-4%202.6-7.2-3%201-4.5%204-2.6%207.2Z%22%2F%3E%3Cpath%20d%3D%22M64%2030c-4.5.2-8.5-2-11-6%204.6-1%208.6%201.2%2011%206Z%22%2F%3E%3Cpath%20d%3D%22M64%2030c4.5.2%208.5-2%2011-6-4.6-1-8.6%201.2-11%206Z%22%2F%3E%3Cpath%20d%3D%22M64%2024c-3.6.2-6.8-1.6-8.8-4.8%203.7-.8%206.9%201%208.8%204.8Z%22%2F%3E%3Cpath%20d%3D%22M64%2024c3.6.2%206.8-1.6%208.8-4.8-3.7-.8-6.9%201-8.8%204.8Z%22%2F%3E%3C%2Fsvg%3E");
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; scroll-padding-bottom: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- foco e salto para o conteudo (WCAG 2.4.1 / 2.4.7) ---------- */
/* --brand-deep sobre --bg = 5.86:1, sobre --bg-2 = 5.29:1, sobre blush (Rais) = 5.45:1 */
:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 3px; }
/* fundos escuros (hero, nav por cima do hero, footer, cartoes com foto): contorno branco */
.hero :focus-visible,
.nav.on-hero:not(.scrolled) :focus-visible,
.footer :focus-visible,
.ritual.has-photo :focus-visible { outline-color: #fff; }
/* o menu de linguas tem fundo claro mesmo com a nav por cima do hero */
.langsw-menu :focus-visible { outline-color: var(--brand-deep); }
/* elementos fixos / por cima de fotos (fundo imprevisivel): anel duplo cobre + branco */
.fab :focus-visible, .fab-top:focus-visible, .credit:focus-visible, .skip:focus-visible {
  outline: 2px solid var(--brand-deep); outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff, var(--shadow-soft);
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--brand-deep); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 0.92rem; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.bg-2 { background: var(--bg-2); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--accent); opacity: 0.7; }
.eyebrow.center::after { content: ""; width: 30px; height: 1px; background: var(--accent); opacity: 0.7; }
h2.title { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-top: 0.5rem; }
h2.title em { font-style: italic; color: var(--accent); font-weight: 400; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.92em 1.7em; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
  border: 1px solid transparent; transition: transform 0.35s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent-deep); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -18px rgba(53,41,28,0.6); }
.btn-ghost { background: transparent; color: var(--accent-deep); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); transform: translateY(-3px); }
.btn-light { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-light:hover { background: rgba(255,255,255,0.24); transform: translateY(-3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
  padding: 28px 0;
}
.nav.scrolled, .nav--solid { background: rgba(248, 244, 238, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); padding: 17px 0; }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-mark { font-family: var(--script); font-size: 2rem; color: var(--brand-deep); line-height: 1.35; }
.brand-sub { font-size: 0.54rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted); padding-left: 2px; margin-top: 6px; }
.nav.on-hero:not(.scrolled) .brand-mark { color: #fff; }
.nav.on-hero:not(.scrolled) .brand-sub { color: rgba(255,255,255,0.85); }
.nav.on-hero:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.92); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 0.88rem; font-weight: 600; color: var(--ink); position: relative; padding: 4px 0; transition: color 0.25s; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--accent); transition: width 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent-deep); }
.nav.on-hero:not(.scrolled) .nav-links a.active { color: #fff; }
.mobile-menu a.active { color: var(--accent); }
.nav-cta { display: inline-flex; }
.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: none; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 1.8px; background: var(--ink); transition: 0.3s; }
.nav.on-hero:not(.scrolled) .nav-toggle span { background: #fff; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: safe center; gap: 0;
  padding: calc(84px + env(safe-area-inset-top)) 30px calc(32px + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}
/* visibility: fechado, os links saem da ordem do Tab (esconde so depois do fade) */
.mobile-menu.open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.mobile-menu.open ~ .fab, .mobile-menu.open ~ .fab-top { display: none; }
.mm-link {
  width: min(340px, 82vw); text-align: left;
  font-family: var(--serif); font-size: 1.18rem; font-weight: 500; color: var(--ink);
  padding: 13px 8px; border-bottom: 1px solid var(--line);
  transform: translateY(16px); opacity: 0;
  transition: color 0.25s var(--ease), transform 0.55s var(--ease), opacity 0.55s var(--ease);
}
.mobile-menu.open .mm-link { transform: none; opacity: 1; }
.mm-link:hover { color: var(--accent-deep); }
.mm-link.btn { border-bottom: 0; width: min(340px, 82vw); justify-content: center; color: #fff; margin-top: 24px; font-family: var(--sans); font-size: 0.92rem; font-weight: 700; padding: 15px 22px; }
.mobile-menu.open .mm-link:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu.open .mm-link:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu.open .mm-link:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu.open .mm-link:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu.open .mm-link:nth-child(6) { transition-delay: 0.20s; }
.mobile-menu.open .mm-link:nth-child(7) { transition-delay: 0.24s; }
.mobile-menu.open .mm-link:nth-child(8) { transition-delay: 0.28s; }
.mobile-menu.open .mm-link:nth-child(9) { transition-delay: 0.32s; }
/* hamburger -> X quando aberto */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(24,16,10,0.74) 0%, rgba(24,16,10,0.5) 32%, rgba(24,16,10,0.14) 60%, rgba(24,16,10,0.04) 100%),
    linear-gradient(180deg, rgba(24,16,10,0.32) 0%, rgba(24,16,10,0) 34%, rgba(24,16,10,0.5) 100%);
}
@media (max-width: 760px) {
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(24,16,10,0.45) 0%, rgba(24,16,10,0.28) 34%, rgba(24,16,10,0.66) 100%);
  }
}
.hero-in { color: #fff; max-width: 760px; padding-top: 90px; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: rgba(255,255,255,0.8); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); font-weight: 400; margin: 0.2rem 0 0.55em; text-shadow: 0 2px 30px rgba(0,0,0,0.3); }
.hero h1 em { font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.42em; line-height: 1.15; display: inline-block; margin-top: 0.12em; margin-bottom: 0.12em; }
.hero p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 54ch; color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll span.line { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,0.9), transparent); animation: scrolldot 2s var(--ease) infinite; }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- about / equipa ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media .frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; }
.split-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.split-media .frame.tall { aspect-ratio: 3/4; }
.split-media .badge {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 20px; box-shadow: var(--shadow-soft); max-width: 220px;
}
.split-media .badge.br { right: -18px; bottom: 28px; }
.split-media .badge b { font-family: var(--serif); font-size: 1.9rem; color: var(--accent); display: block; line-height: 1; }
.split-media .badge span { font-size: 0.78rem; color: var(--muted); line-height: 1.35; display: block; }
.split-body p { color: var(--muted); margin-top: 1rem; }
.split-body p.first { color: var(--ink); font-size: 1.12rem; }
.langs { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; color: var(--muted); background: var(--surface); }
.langs svg { width: 18px; height: 18px; color: var(--accent-deep); flex: 0 0 auto; }
.langs b { color: var(--ink); font-weight: 700; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent); margin-top: 1.4rem; display: block; }

/* pillars (valores) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
.pillar { display: flex; gap: 12px; align-items: flex-start; }
.pillar .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); }
.pillar .ic svg { width: 20px; height: 20px; }
.pillar b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.pillar span { font-size: 0.9rem; color: var(--muted); }

/* ---------- cards grid (cerimonias / rais) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 32px 28px; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.card .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 18px; }
.card .ic svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.32rem; }
.card p { color: var(--muted); margin-top: 0.6rem; font-size: 0.96rem; white-space: pre-line; }

/* rituals grid (with optional photo) */
.grid-rituals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ritual {
  position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px; transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.ritual:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ritual.has-photo { color: #fff; min-height: 320px; }
.ritual.has-photo::before { content: ""; position: absolute; inset: 0; background-image: var(--rbg); background-size: cover; background-position: center; z-index: 0; transition: transform 0.6s var(--ease); }
.ritual.has-photo:hover::before { transform: scale(1.06); }
.ritual.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,22,16,0.05), rgba(30,22,16,0.78)); z-index: 1; }
.ritual > * { position: relative; z-index: 2; }
.ritual .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 14px; }
.ritual.has-photo .ic { background: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(3px); }
.ritual .ic svg { width: 23px; height: 23px; }
.ritual h3 { font-size: 1.24rem; }
.ritual p { font-size: 0.92rem; margin-top: 0.5rem; color: var(--muted); }
.ritual.has-photo p { color: rgba(255,255,255,0.9); }

/* ---------- Rais do Amor (submarca) ---------- */
[data-brand="rais"] {
  --accent: var(--wine);
  --accent-deep: var(--wine-deep);
  --accent-soft: var(--blush);
  --line: var(--blush-line);
  background: linear-gradient(180deg, var(--blush) 0%, #fbf3f5 100%);
}
[data-brand="rais"] .rais-head { display: flex; align-items: center; gap: 18px; margin-bottom: 10px; }
[data-brand="rais"] .rais-head img { width: 66px; height: 66px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft); }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; grid-auto-flow: dense; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--r-sm); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.ig-cta { margin-top: 36px; display: flex; justify-content: center; }

/* ---------- partners ---------- */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; text-align: center; transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.partner:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--accent); }
.partner .mono { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.partner b { font-family: var(--serif); font-weight: 500; font-size: 1.08rem; display: block; }
.partner .role { font-size: 0.82rem; color: var(--muted); }
.partner .handle { font-size: 0.8rem; color: var(--accent-deep); font-weight: 700; margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; }
.partners-note { text-align: center; color: var(--muted); margin-top: 26px; font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact-info .line { display: flex; gap: 14px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .line:last-child { border-bottom: 0; }
.contact-info .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); display: grid; place-items: center; }
.contact-info .ic svg { width: 21px; height: 21px; }
.contact-info .line b { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.contact-info .line a, .contact-info .line span { color: var(--muted); font-size: 0.95rem; word-break: break-word; }
.contact-info .line a:hover { color: var(--accent-deep); }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-soft); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85em 1em; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg); font: inherit; color: var(--ink); transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 18px; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- footer ---------- */
.footer { background: #241c15; color: rgba(255,255,255,0.82); padding: 72px 0 30px; }
.footer a { color: rgba(255,255,255,0.82); }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand b { font-family: var(--script); font-weight: 400; font-size: clamp(1.4rem, 6.2vw, 2.3rem); color: #fff; display: block; line-height: 1.05; }
.footer-brand-sub { display: block; font-family: var(--sans); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(255,255,255,0.8); padding-left: 20px; margin-top: 6px; }
.footer-brand p { margin-top: 12px; max-width: 40ch; font-size: 0.92rem; }
.footer h2 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: #c9895c; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.93rem; }
/* footer: colunas nav/contacto como accordion (aberto no desktop, colapsavel no mobile) */
.footer-col summary { list-style: none; display: flex; align-items: center; justify-content: space-between;
  font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #c9895c; margin-bottom: 16px; }
.footer-col summary::-webkit-details-marker { display: none; }
@media (min-width: 621px) {
  .footer-col > ul { display: flex !important; }
  .footer-col > summary { pointer-events: none; }
}
@media (max-width: 620px) {
  .footer-col { border-top: 1px solid rgba(255,255,255,0.12); }
  .footer-col summary { cursor: pointer; margin-bottom: 0; padding: 15px 0; }
  .footer-col summary::after { content: "+"; margin-left: auto; font-size: 1.25rem; line-height: 1; color: rgba(255,255,255,0.65); transition: transform 0.25s var(--ease); }
  .footer-col[open] summary::after { content: "\2212"; }
  .footer-col[open] summary { margin-bottom: 12px; }
  .footer-col:not([open]) > ul { display: none; }
  .footer-col[open] > ul { display: flex; padding-bottom: 14px; }
}
.footer .socials { display: flex; gap: 12px; margin-top: 16px; }
.footer .socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; transition: background 0.3s, transform 0.3s; }
.footer .socials a:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.footer .socials svg { width: 19px; height: 19px; }
.footer-legal { padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.footer-bottom { padding-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a + a { margin-left: 20px; }

/* ---------- back to top (canto inferior direito) ---------- */
.fab-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 96;
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--brand-deep);
  display: grid; place-items: center; box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(12px); pointer-events: none; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.2s, border-color 0.2s, visibility 0s linear 0.3s;
}
.fab-top.show { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.fab-top:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-3px); }
.fab-top svg { width: 20px; height: 20px; }

/* ---------- quick actions (FAB, canto inferior esquerdo, abre para cima) ---------- */
/* O botao e o 1.o filho (o Tab segue para as accoes depois de abrir); column-reverse
   mantem-no em baixo e as accoes a subir por cima, pela ordem do DOM. */
.fab { position: fixed; left: 20px; bottom: 20px; z-index: 96; display: flex; flex-direction: column-reverse; align-items: center; gap: 12px; }
.fab-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand-deep); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow);
  transition: background 0.25s, transform 0.3s var(--ease);
}
.fab-toggle:hover { background: var(--brand); }
.fab-toggle svg { width: 24px; height: 24px; transition: transform 0.35s var(--ease); }
.fab.open .fab-toggle svg { transform: rotate(135deg); }
.fab-action {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; box-shadow: var(--shadow-soft);
  opacity: 0; transform: translateY(12px) scale(0.8); pointer-events: none; visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), filter 0.2s, visibility 0s linear 0.3s;
}
.fab-action svg { width: 20px; height: 20px; }
/* ao abrir, a visibilidade muda logo (senao o Tab salta as accoes); so o fade tem atraso */
.fab.open .fab-action { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s, 0s, 0s, 0s; }
/* stagger de baixo para cima: o filho 2 (email) e o mais perto do botao */
.fab.open .fab-action:nth-child(2) { transition-delay: 0.02s, 0.02s, 0s, 0s; }
.fab.open .fab-action:nth-child(3) { transition-delay: 0.04s, 0.04s, 0s, 0s; }
.fab.open .fab-action:nth-child(4) { transition-delay: 0.09s, 0.09s, 0s, 0s; }
.fab.open .fab-action:nth-child(5) { transition-delay: 0.14s, 0.14s, 0s, 0s; }
.fab.open .fab-action:nth-child(6) { transition-delay: 0.19s, 0.19s, 0s, 0s; }
.fab-action:hover { filter: brightness(1.06); transform: scale(1.08); }
.fab-action.ig-fs { background: radial-gradient(circle at 30% 110%, #feda75, #fa7e1e 30%, #d62976 55%, #962fbf 80%, #4f5bd5); }
.fab-action.ig-rais { background: var(--wine); }
.fab-action.em { background: var(--brand-deep); }
.fab-action.fb { background: #1877F2; }
.fab-action.wa { background: #1E8E4E; }
@media (max-width: 600px) { .fab { left: 14px; bottom: 14px; } .fab-top { right: 14px; bottom: 14px; } }

/* ---------- reveal on scroll (progressive enhancement) ---------- */
/* Escondido so quando ha JS (classe .js no <html>); sem JS tudo fica visivel. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span.line { animation: none; }
}

/* ---------- paginas internas: cabecalho de pagina ---------- */
.page-head { padding: clamp(128px, 17vh, 184px) 0 clamp(38px, 6vw, 62px); text-align: center; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { justify-content: center; margin-bottom: 6px; }
.page-title { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 4px; line-height: 1.14; }
.page-title em { font-family: var(--script); font-style: normal; color: var(--accent); font-weight: 400; font-size: 1.4em; line-height: 1.5; }
.page-head .lead { margin: 16px auto 0; }

/* ---------- motivo botanico da marca (sprig) ---------- */
.sprig { display: block; width: 116px; height: 32px; margin: 0 auto 16px; background: var(--sprig) center/contain no-repeat; opacity: 0.9; }
.section-head.center::before { content: ""; display: block; width: 112px; height: 30px; margin: 0 auto 20px; background: var(--sprig) center/contain no-repeat; opacity: 0.8; }
.cta-band .wrap::before, .rit-teaser .wrap::before { content: ""; display: block; width: 112px; height: 30px; margin: 0 auto 22px; background: var(--sprig) center/contain no-repeat; opacity: 0.8; }

/* ---------- botoes / ctas centrados ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.split-body > .btn { margin-top: 34px; }
.center-cta { text-align: center; margin-top: clamp(44px, 5.5vw, 64px); }
.card-h { font-size: 1.32rem; }

/* ---------- equipa ---------- */
.team-hero { max-width: 760px; margin-inline: auto; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.team-hero img { width: 100%; height: auto; display: block; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 34px 28px; text-align: center; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--accent); }
.team-card .mono {
  width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2.1rem;
  color: var(--accent-deep);
  background: radial-gradient(135% 135% at 50% 12%, #fffdfa, var(--accent-soft) 92%);
  outline: 1px solid var(--accent-soft); outline-offset: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: outline-color 0.4s var(--ease), background 0.4s var(--ease);
}
.team-card:hover .mono { outline-color: var(--accent); }
/* medalhao .mono.lg agora tratado por .team-card .mono (monograma/selo) */
.team-card h2, .team-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }
.team-card .role { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.team-card .team-bio { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }
.langs-inline { display: inline-flex; align-items: center; gap: 7px; font-size: 0.85rem; color: var(--accent-deep); font-weight: 700; margin-top: 10px; }
.langs-inline svg { width: 15px; height: 15px; }

/* ---------- processo (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.step-n { font-family: var(--serif); font-size: 2rem; color: var(--accent); display: block; line-height: 1; }
.step h3 { font-size: 1.15rem; margin-top: 10px; }
.step p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

/* ---------- teasers da home ---------- */
.center-cta .btn { margin-inline: auto; }
.gallery-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-row figure { aspect-ratio: 1; overflow: hidden; border-radius: var(--r-sm); }
.gallery-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-row figure:hover img { transform: scale(1.06); }
.rais-teaser .wrap { max-width: 760px; text-align: center; }
.rais-teaser .rais-head { justify-content: center; margin-bottom: 12px; }
.rais-teaser .lead { margin: 0 auto 24px; }

/* ---------- cta band ---------- */
.cta-band { text-align: center; background: var(--bg-2); }
.cta-band .wrap { max-width: 720px; }
.cta-band .lead { margin: 16px auto 34px; }

/* ---------- selo de opinioes (Casamentos.pt) ---------- */
.reviews-bar { text-align: center; padding: 24px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.reviews { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 0.94rem; font-weight: 600; transition: color 0.25s; }
.reviews:hover { color: var(--ink); }
.reviews .stars { display: inline-flex; gap: 2px; color: var(--brand); line-height: 0; }
.reviews .stars svg { width: 18px; height: 18px; }
.reviews b { color: var(--ink); font-weight: 800; }
.reviews-contact { display: flex; justify-content: center; margin-bottom: 36px; }

/* ---------- pagina de opinioes: rating em destaque + FAQ ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--brand); line-height: 0; }
.stars svg { width: 18px; height: 18px; }
.stars.big { gap: 5px; }
.stars.big svg { width: 30px; height: 30px; }
.rating-hero { text-align: center; max-width: 560px; margin-inline: auto; }
.rating-num { font-family: var(--serif); font-weight: 500; font-size: clamp(4rem, 12vw, 6.4rem); line-height: 1; color: var(--brand); display: block; }
.rating-hero .stars.big { margin: 12px 0 6px; }
.rating-label { color: var(--muted); margin-bottom: 26px; }

.faq { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--brand); transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { color: var(--muted); margin: 0; padding: 0 40px 22px 0; }

/* ---------- testemunhos ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s; }
.testi:hover { transform: translateY(-5px); box-shadow: var(--shadow-soft); border-color: var(--accent); }
.testi .stars { display: inline-flex; gap: 2px; color: var(--brand); line-height: 0; }
.testi .stars svg { width: 16px; height: 16px; }
.testi blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.55; color: var(--ink); }
.testi figcaption { margin-top: auto; font-size: 0.86rem; font-weight: 800; color: var(--accent-deep); }
.testi figcaption span { color: var(--muted); font-weight: 600; }

/* ---------- teaser de rituais (pagina cerimonias) ---------- */
.rit-teaser { text-align: center; }
.rit-teaser .wrap { max-width: 720px; }
.rit-teaser .lead { margin: 16px auto 34px; }
.ritual .ritual-h { font-size: 1.24rem; }

/* ---------- seletor de lingua ---------- */
.nav-right { display: flex; align-items: center; gap: 14px; }
.langsw { position: relative; }
.langsw-btn { display: inline-flex; align-items: center; gap: 4px; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; color: var(--ink); cursor: pointer; transition: background 0.25s, border-color 0.25s, color 0.25s; }
.langsw-btn .chev { width: 14px; height: 14px; }
.langsw-btn:hover { border-color: var(--accent); }
.nav.on-hero:not(.scrolled) .langsw-btn { color: #fff; border-color: rgba(255,255,255,0.5); }
.langsw-menu { position: absolute; top: calc(100% + 10px); right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 148px; display: flex; flex-direction: column; gap: 2px; opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s linear 0.22s; z-index: 60; }
.langsw.open .langsw-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.langsw-menu a { padding: 9px 13px; border-radius: 9px; font-size: 0.86rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.langsw-menu a:hover { background: var(--accent-soft); }
.langsw-menu a.active { color: var(--accent-deep); font-weight: 700; }
.mm-langs { display: flex; gap: 8px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); width: min(340px, 82vw); justify-content: flex-start; }
.mm-langs a { min-width: 50px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; font-family: var(--sans); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.mm-langs a:hover { border-color: var(--accent); color: var(--ink); }
.mm-langs a.active { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }

/* ---------- responsive ---------- */
/* nav colapsa mais cedo (8 itens + seletor de lingua) que o resto do layout */
@media (max-width: 1120px) {
  .nav-links, .langsw { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 480px; margin-inline: auto; }
  .grid-3, .grid-rituals { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr; }
  /* galerias: 4 col so em desktop; em tablet passam a 3 (evita imagens espremidas) */
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 30vw; }
  .gallery-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .wrap { padding-inline: 20px; }
  /* footer em accordion: sem o gap da grelha entre linhas fechadas (deixava faixas vazias) */
  .footer-top { grid-template-columns: 1fr; gap: 0; padding-bottom: 0; }
  .footer-brand { margin-bottom: 30px; }
  /* folga para o "+" e o "voltar ao topo" nao taparem a ultima linha */
  .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .footer-bottom a, .footer-legal a { display: inline-block; padding-block: 5px; }
  /* botoes com texto longo (ex.: um email) partem a linha em vez de sair do ecra */
  .btn { max-width: 100%; justify-content: center; text-align: center; overflow-wrap: anywhere; }
  /* eyebrow do hero: menos tracking no mobile para nao quebrar feio */
  .hero .eyebrow { letter-spacing: 0.12em; font-size: 0.66rem; }
  /* "Celebramos em ..." deixa de ser pill apertada -> texto limpo que flui */
  .langs { border: none; background: none; padding: 0; border-radius: 0; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; margin-top: 18px; }
  /* logo/heading do menu aberto (nav fica scrolled) com mais folga do topo */
  .nav.scrolled, .nav--solid { padding-top: 22px; padding-bottom: 22px; }
  section { padding: clamp(52px, 13vw, 80px) 0; }
  .grid-3, .grid-rituals, .partners, .steps, .testi-grid { grid-template-columns: 1fr; }
  .card, .team-card, .team-card.lg { padding: 26px 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 10px; }
  .gallery .wide { grid-column: span 2; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .form { padding: 24px 20px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
  .split-media .badge.br { right: 10px; bottom: 14px; padding: 13px 16px; }
  .split-media .badge b { font-size: 1.6rem; }
  .hero-in { padding-top: 84px; }
  /* Botoes seguidos colapsam em coluna (full-width) no mobile. */
  .hero-actions, .btn-row { width: 100%; flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .hero-actions .btn, .btn-row .btn { width: 100%; justify-content: center; }
  .page-head { padding-top: 116px; }
  .section-head { margin-bottom: 36px; }
  .brand { gap: 6px; }
  .brand-mark { font-size: 1.7rem; }
  .page-title em { font-size: 1.3em; line-height: 1.55; }
}
@media (max-width: 380px) {
  .brand-mark { font-size: 1.55rem; }
  .brand-sub { letter-spacing: 0.26em; }
}

/* --- Credito da foto (overlay) + avatares --- */
.gallery-row figure, .split-media .frame, .team-hero { position: relative; }
.ritual { position: relative; }

.credit {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  display: inline-block; max-width: calc(100% - 20px);
  font-size: 0.7rem; line-height: 1; font-weight: 600; letter-spacing: 0.01em;
  color: #fff; text-decoration: none;
  background: rgba(30, 22, 16, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 5px 9px; border-radius: 999px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.credit { transition: background 0.3s var(--ease); }
a.credit:hover { background: var(--accent-deep); }

/* Avatar da equipa (substitui o monograma quando ha foto) */
.team-photo {
  width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden;
  outline: 1px solid var(--accent-soft); outline-offset: 5px;
  transition: outline-color 0.4s var(--ease);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card:hover .team-photo { outline-color: var(--accent); }

/* Avatar do parceiro (foto de perfil do Instagram) */
.partner-avatar {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden;
  background: var(--accent-soft);
}
.partner-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- hero: esconder o indicador "descubra" em touch / ecra baixo ----------
   (colocado no fim para vencer a regra base .hero-scroll acima na cascata) */
@media (max-width: 760px) { .hero-scroll { display: none; } }
@media (max-height: 700px) { .hero-scroll { display: none; } }
