/* ==========================================================================
   Noivos & Arte · styles.css
   Paleta: marfim, champagne, bege e dourado, com texto marrom escuro.
   ========================================================================== */

:root {
  --ivory: #FBF7F0;
  --ivory-2: #F7F0E4;
  --champagne: #F1E6D2;
  --beige: #EADCC4;
  --gold: #B8955A;
  --gold-soft: #D6BD8E;
  --gold-light: #E7D5B0;
  --gold-text: #82622C;      /* dourado com contraste AA sobre marfim */
  --brown: #3A2A1F;
  --brown-2: #5E4a3B;
  --line: rgba(184, 149, 90, .45);
  --shadow: 0 24px 48px -28px rgba(74, 52, 30, .35);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 18px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 140px);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sparkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-100 -100 200 200'%3E%3Cpath d='M0-100Q9-9 100 0Q9 9 0 100Q-9 9-100 0Q-9-9 0-100Z'/%3E%3C/svg%3E");
  --paper: url("assets/papel.webp");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 1.0625rem;           /* 17px */
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.005em;
  color: var(--brown);
}
h2 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h3 { font-size: clamp(1.75rem, 3.2vw, 2.1rem); }
em { font-style: italic; color: var(--gold-text); }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--brown);
  color: var(--ivory);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--gold-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-text);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn-primary {
  background: var(--brown);
  color: var(--ivory);
  border-color: var(--brown);
  box-shadow: 0 10px 24px -14px rgba(58, 42, 31, .55);
}
.btn-primary:hover {
  background: #4A372A;
  box-shadow: 0 14px 28px -14px rgba(58, 42, 31, .6), inset 0 0 0 1px var(--gold-soft);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; }
.btn-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: rgba(184, 149, 90, .28);
  background: rgba(251, 247, 240, .94);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.logo, .footer-logo {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--brown);
  white-space: nowrap;
  line-height: 1;
}
.logo-amp {
  font-style: italic;
  color: var(--gold);
  padding-inline: .06em;
}

.logo { display: inline-flex; align-items: center; min-height: 48px; }
.logo img { height: 26px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-size: .95rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--brown-2);
  transition: color .3s var(--ease);
}
.nav-list a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-list a:hover { color: var(--brown); }
.nav-list a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 0 22px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--brown) !important;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.nav-cta:hover { background: var(--brown); border-color: var(--brown); color: var(--ivory) !important; }

.menu-toggle { display: none; }

@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .logo img { height: 22px; }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px; height: 48px;
    margin-right: -10px;
    background: none;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--brown);
  }
  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    display: block;
    width: 22px; height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .35s var(--ease);
  }
  .menu-toggle-lines { position: relative; }
  .menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-lines::before { top: -7px; }
  .menu-toggle-lines::after  { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after  { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid rgba(184, 149, 90, .3);
    box-shadow: 0 24px 30px -24px rgba(74, 52, 30, .3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
  }
  .nav-list li + li { border-top: 1px solid rgba(184, 149, 90, .2); }
  .nav-list a { width: 100%; min-height: 56px; font-size: 1.0625rem; }
  .nav-list a:not(.nav-cta)::after { display: none; }
  .nav-list li:last-child { border-top: 0; padding-top: 12px; }
  .nav-cta { justify-content: center; }
}

/* ---------- Abertura ---------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ivory) var(--paper) center top / cover no-repeat;
  background-blend-mode: multiply;
  padding-block: clamp(40px, 7vw, 96px) var(--section);
  overflow: hidden;
}
.hero::before {           /* brilho champagne suave ao fundo */
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70vw; height: 70vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(231, 213, 176, .55), rgba(231, 213, 176, 0));
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  line-height: 1.02;
}
.hero-title span { display: block; }

.hero-lead {
  max-width: 34rem;
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  color: var(--brown-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 40px;
}
.hero-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--brown-2);
}

.hero-media { margin: 0; justify-self: end; width: 100%; max-width: 500px; }

.arch-frame {
  position: relative;
  padding: 14px;
}
.arch-frame::before {     /* detalhe fino dourado, deslocado */
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  border-radius: 999px 999px 10px 10px;
  transform: translate(14px, 14px);
  pointer-events: none;
}
.arch {
  position: relative;
  aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px 8px 8px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--champagne), var(--beige));
  box-shadow: var(--shadow);
}
.arch img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.arch::after {             /* fio dourado interno */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 250, 240, .75);
  border-radius: inherit;
  pointer-events: none;
}

@media (max-width: 820px) {
  .hero { padding-block: 28px 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-text { text-align: center; }
  .hero-title { margin-top: 16px; font-size: clamp(2.45rem, 11vw, 3.4rem); }
  .hero-lead { margin: 20px auto 0; }
  .hero-actions { flex-direction: column; margin-top: 30px; gap: 14px; }
  .hero-actions .btn { width: 100%; max-width: 380px; }
  .hero-media { justify-self: center; max-width: 330px; }
  .arch { aspect-ratio: 4 / 4.8; }
}

/* ---------- Cabeçalhos de seção ---------- */
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 7vw, 80px);
  text-align: center;
}
.section-head p {
  margin-top: 20px;
  color: var(--brown-2);
  font-size: clamp(1.0625rem, 1.4vw, 1.15rem);
}

.ornament {
  display: block;
  width: 72px; height: 14px;
  margin: 0 auto 22px;
  background:
    linear-gradient(var(--gold), var(--gold)) left center / 28px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right center / 28px 1px no-repeat;
  position: relative;
}
.ornament::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  background: var(--gold);
  -webkit-mask: var(--sparkle) center / contain no-repeat;
  mask: var(--sparkle) center / contain no-repeat;
  transform: translate(-50%, -50%);
}
.ornament-left { margin-left: 0; }

/* ---------- Serviços ---------- */
.services { padding-block: var(--section); padding-top: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
}

.card {
  display: flex;
  flex-direction: column;
  background: #FFFDF9;
  border: 1px solid rgba(184, 149, 90, .32);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(184, 149, 90, .6);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: linear-gradient(160deg, var(--champagne), var(--beige));
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 1.2s var(--ease);
}
.card:hover .card-media img { transform: scale(1.035); }

.card-num {
  position: absolute;
  left: 18px; top: 18px;
  display: grid;
  place-items: center;
  min-width: 44px; height: 44px;
  padding-inline: 10px;
  border-radius: 999px;
  background: rgba(251, 247, 240, .9);
  border: 1px solid var(--gold-soft);
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--gold-text);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(26px, 3vw, 36px);
}
.card-kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-text);
}
.card h3 { margin-top: 6px; }
.card-desc {
  margin-top: 14px;
  color: var(--brown-2);
}

.benefits {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(184, 149, 90, .28);
}
.benefits li {
  position: relative;
  padding-left: 24px;
  font-size: 1rem;
  line-height: 1.55;
}
.benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 11px; height: 11px;
  background: var(--gold);
  -webkit-mask: var(--sparkle) center / contain no-repeat;
  mask: var(--sparkle) center / contain no-repeat;
}
.card .btn { margin-top: auto; }

@media (max-width: 1020px) {
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 28px; }
  .card-media { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 480px) {
  .card-media { aspect-ratio: 4 / 3.8; }
  .card-num { left: 14px; top: 14px; }
}

/* ---------- Seção emocional ---------- */
.emotion {
  position: relative;
  padding-block: var(--section);
  background:
    var(--paper) center / cover no-repeat,
    radial-gradient(ellipse at 50% 0%, rgba(255, 252, 245, .7), rgba(255, 252, 245, 0) 60%),
    linear-gradient(180deg, var(--champagne), var(--beige));
  background-blend-mode: multiply, normal, normal;
  text-align: center;
  overflow: hidden;
}
.emotion::before, .emotion::after {   /* arcos dourados decorativos */
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border: 1px solid rgba(184, 149, 90, .35);
  border-radius: 50%;
  pointer-events: none;
}
.emotion::before { left: -210px; top: -120px; }
.emotion::after  { right: -210px; bottom: -160px; }

.emotion-inner { position: relative; max-width: 860px; }
.emotion h2 {
  margin-top: 22px;
  font-size: clamp(2.2rem, 5.6vw, 3.9rem);
}
.emotion h2 span { display: block; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 220px;
  margin: 34px auto;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gold);
}
.divider svg { width: 22px; height: 22px; fill: var(--gold); }

.emotion-text {
  max-width: 620px;
  margin-inline: auto;
  font-size: clamp(1.0625rem, 1.5vw, 1.2rem);
  color: var(--brown-2);
}

/* ---------- Dúvidas e contato ---------- */
.faq { padding-block: var(--section); }

.faq-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.faq-intro p {
  margin: 20px 0 34px;
  max-width: 28rem;
  color: var(--brown-2);
  font-size: clamp(1.0625rem, 1.4vw, 1.15rem);
}

.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-heading { font-size: inherit; line-height: inherit; }

.acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 72px;
  padding: 20px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--brown);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.acc-trigger:hover { color: var(--gold-text); }

.acc-icon {
  position: relative;
  flex: none;
  width: 36px; height: 36px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.acc-icon::before, .acc-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  background: var(--gold-text);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease);
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-trigger[aria-expanded="true"] .acc-icon { background: var(--champagne); border-color: var(--gold); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.acc-panel.is-open { grid-template-rows: 1fr; }
.acc-content { overflow: hidden; }
.acc-content p {
  padding: 0 56px 26px 4px;
  color: var(--brown-2);
}

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 44px; }
  .faq-intro { text-align: center; }
  .faq-intro p { margin-inline: auto; }
  .faq-intro .btn { width: 100%; max-width: 380px; }
  .ornament-left { margin-left: auto; }
  .acc-content p { padding-right: 8px; }
}

/* ---------- Rodapé ---------- */
.site-footer {
  padding-block: 64px 40px;
  background: var(--ivory-2) var(--paper) center / cover no-repeat;
  background-blend-mode: multiply;
  border-top: 1px solid rgba(184, 149, 90, .3);
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-mono { width: 64px; height: auto; margin-bottom: 22px; }
.footer-logo img { height: 30px; width: auto; }
.footer-phrase {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--brown-2);
}
.footer-rule {
  width: 48px; height: 1px;
  margin: 30px 0 22px;
  background: var(--gold);
}
.footer-copy { font-size: .9rem; color: var(--brown-2); }

/* ---------- Animações de entrada ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .cards .reveal:nth-child(2) { transition-delay: .12s; }
.js .cards .reveal:nth-child(3) { transition-delay: .24s; }
.js .hero .reveal:nth-child(2) { transition-delay: .08s; }
.js .hero .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero .reveal:nth-child(4) { transition-delay: .24s; }
.js .hero-media.reveal { transition-delay: .2s; }

/* ---------- Telas muito estreitas (320px) ---------- */
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .logo img { height: 19px; }
  .hero-title { font-size: 2.25rem; }
  .btn { padding-inline: 20px; }
  .acc-trigger { gap: 14px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .btn-primary:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
}

/* ---------- Quebras de linha equilibradas ---------- */
h1, h2, h3, .eyebrow, .hero-note, .footer-phrase { text-wrap: balance; }
.hero-lead, .card-desc, .emotion-text, .section-head p { text-wrap: pretty; }
@media (max-width: 480px) {
  .eyebrow { font-size: .75rem; letter-spacing: .16em; }
}

/* ---------- Selo circular sobre a imagem principal ---------- */
.hero-media { position: relative; }
.badge {
  position: absolute;
  left: -52px; bottom: 56px;
  width: 144px; height: 144px;
  z-index: 2;
  filter: drop-shadow(0 12px 22px rgba(74, 52, 30, .18));
}
.badge-bg { fill: var(--ivory); }
.badge-ring { fill: none; stroke: var(--gold-soft); stroke-width: 1; }
.badge-text {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  fill: var(--brown);
}
.badge-dot { fill: var(--gold); }
.badge-star { fill: var(--gold); }
.badge-spin {
  transform-origin: 100px 100px;
  animation: badge-rotate 38s linear infinite;
}
@keyframes badge-rotate { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .badge { left: -14px; bottom: 28px; width: 112px; height: 112px; }
}
@media (max-width: 360px) {
  .badge { left: -8px; width: 100px; height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-spin { animation: none; }
}

/* ---------- Enquadramento de cada imagem ---------- */
.arch img { object-position: 50% 50%; }
.card-media .img-convite { object-position: 50% 55%; }
.card-media .img-album { object-position: 58% 50%; }
.card-media .img-app { object-position: 57% 50%; }
@media (max-width: 1020px) {
  .card-media .img-convite { object-position: 50% 60%; }
}
