/* ==========================================================
   PALETA — troque aqui pelas cores oficiais do ministério
   ========================================================== */
:root {
  --plum-900: #3B1033;   /* fundo escuro / texto forte */
  --plum-700: #6B1F5C;   /* cor principal */
  --plum-500: #8E3A7C;
  --rose-500: #E36A8C;   /* destaque */
  --rose-200: #F4B8B0;   /* pétala clara */
  --gold-500: #E7A93B;   /* CTA / coroa */
  --orange-500: #EE7B30; /* logo: degradê "Filhas do" */
  --red-500: #D93A3A;
  --magenta-500: #D6246E; /* logo: "Rei" */
  --cream-50: #FFF6EE;   /* fundo claro */
  --cream-100: #FBEBDD;
  --ink: #2A1424;
  --muted: #7A6271;
  --white: #fff;

  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(59, 16, 51, .35);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-body); color: var(--ink); background: var(--cream-50); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: .6em; }
h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--rose-500); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.light, .section-head.light h2 { color: var(--cream-50); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; color: var(--rose-500); margin-bottom: .8em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; margin-top: 28px; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; cursor: pointer;
  font: 700 1rem var(--font-body); padding: .95em 1.6em; border-radius: 999px; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { padding: .6em 1.2em; font-size: .9rem; }
.btn-primary { background: var(--plum-700); color: var(--white); box-shadow: 0 10px 24px -10px var(--plum-700); }
.btn-primary:hover { background: var(--plum-500); }
.btn-gold { background: var(--gold-500); color: var(--plum-900); box-shadow: 0 10px 24px -10px var(--gold-500); }
.btn-ghost { background: transparent; color: var(--cream-50); border: 2px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-light { background: var(--cream-50); color: var(--plum-700) !important; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px); transition: background .3s, box-shadow .3s; }
.nav::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: rgba(59, 16, 51, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 30px -12px rgba(0,0,0,.4); }
.nav.scrolled::before { opacity: 1; }
.brand, .nav-toggle { position: relative; z-index: 2; }
.nav-insta { display: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream-50); }
.brand-emblem { width: 44px; height: 44px; flex: none; color: var(--gold-500); }
.brand-text { display: flex; flex-direction: column; line-height: 1; padding-left: 12px; border-left: 1px solid rgba(231, 169, 59, .45); }
.brand-text small { font: 700 .58rem var(--font-body); letter-spacing: .45em; text-transform: uppercase; color: var(--rose-200); margin-bottom: 5px; }
.brand-text > span { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 1.6rem; letter-spacing: .01em; white-space: nowrap; }
.brand-text em { font-style: italic; font-weight: 500; color: var(--gold-500); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--cream-50); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--gold-500); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--cream-50); margin: 5px 0; transition: .3s; }

/* HERO */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--cream-50);
  background: var(--plum-900); overflow: hidden; padding: 120px 16px 140px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-photo { position: absolute; inset: -4%; background: url('https://images.unsplash.com/photo-1580243152089-98da42694285?auto=format&fit=crop&w=2200&q=80') center 35% / cover;
  filter: grayscale(.35) contrast(1.08) brightness(.62); animation: kenburns 32s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.08) translate(-1.5%, -1%); } }
.hero-tint { position: absolute; inset: 0; background: var(--plum-700); mix-blend-mode: color; opacity: .5; }
.hero-bg::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 75% 65% at 50% 45%, rgba(59, 16, 51, .15), rgba(22, 5, 20, .85) 100%),
              linear-gradient(180deg, rgba(22, 5, 20, .7) 0%, rgba(59, 16, 51, .25) 40%, rgba(59, 16, 51, .95) 100%); }
.hero-inner { position: relative; max-width: 900px; }
.hero-pre { font-weight: 700; text-transform: uppercase; letter-spacing: .5em; font-size: clamp(.8rem, 1.6vw, 1rem); color: var(--gold-500); margin-bottom: 6px; padding-left: .5em; }
.tagline { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.9rem); margin: 22px 0 10px; color: var(--gold-500); }
.hero-sub { max-width: 560px; margin: 0 auto; opacity: .9; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px; fill: var(--plum-700); }

/* LOGO do banner (recortado do cartaz) */
.hero-logo { margin: 0 auto; }
.hero-logo img { width: clamp(260px, 42vw, 500px); height: auto; margin: 0 auto; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .45)); }
.about-poster { position: relative; display: block; width: 100%; max-width: 440px; justify-self: center; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; transition: transform .4s; }
.about-poster:hover { transform: translateY(-6px); }
.about-poster img { width: 100%; height: auto; }
.poster-empty { display: none; }
.about-poster.empty img { display: none; }
.about-poster.empty .poster-empty { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; aspect-ratio: 4 / 5; padding: 36px 30px; color: var(--cream-50);
  background: linear-gradient(180deg, rgba(22, 5, 20, .1), rgba(59, 16, 51, .95) 75%), url('https://images.unsplash.com/photo-1580243152089-98da42694285?auto=format&fit=crop&w=900&q=70') 40% center / cover; }
.poster-empty small { font-weight: 700; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-500); }
.poster-empty strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: .95; font-weight: 600; }
.poster-empty strong em { color: var(--rose-200); font-weight: 500; }
.poster-empty .btn { align-self: flex-start; }

/* MARQUEE */
.marquee { background: var(--plum-700); color: var(--cream-50); overflow: hidden; padding: 18px 0 22px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-style: italic; white-space: nowrap; }
.marquee span::after { content: '✦'; margin-left: 48px; color: var(--gold-500); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* SOBRE */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about p { margin-bottom: 1em; max-width: 60ch; }
blockquote { margin-top: 28px; padding: 22px 26px; border-left: 4px solid var(--gold-500); background: var(--cream-100); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.25rem; font-style: italic; color: var(--plum-700); }
blockquote cite { display: block; margin-top: 8px; font: 700 .85rem var(--font-body); font-style: normal; color: var(--muted); }

/* EVENTOS */
.events { background: linear-gradient(var(--cream-100), var(--cream-50)); }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.event-card { position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s; }
.event-card:hover { transform: translateY(-6px); }
.event-top { padding: 26px 24px 20px; background: linear-gradient(135deg, var(--plum-700), var(--rose-500)); color: var(--cream-50); position: relative; overflow: hidden; }
.event-card:nth-child(3n+2) .event-top { background: linear-gradient(135deg, var(--plum-900), var(--plum-500)); }
.event-card:nth-child(3n+3) .event-top { background: linear-gradient(135deg, var(--rose-500), var(--gold-500)); }
.event-top::after { content: '✦'; position: absolute; right: -10px; bottom: -40px; font-size: 140px; opacity: .15; }
.event-city { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.event-date { font-weight: 700; opacity: .9; }
.event-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.event-body h3 { font-size: 1.2rem; }
.event-body p { color: var(--muted); font-size: .95rem; }
.event-desc { display: flex; flex-direction: column; gap: 4px; }
.event-desc p:first-child { color: var(--plum-700); font-weight: 700; font-style: italic; margin-bottom: 4px; }
.event-desc strong { color: var(--plum-900); }
.event-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: .35em .8em; border-radius: 999px; background: var(--cream-100); color: var(--plum-700); }
.badge.sold { background: var(--plum-900); color: var(--cream-50); }
.badge.hot { background: var(--rose-500); color: var(--white); }
.badge.vip { position: absolute; top: 16px; right: 16px; background: var(--gold-500); color: var(--plum-900); }

/* MEMBRAS */
.members { background: radial-gradient(100% 80% at 80% 0%, var(--plum-500), var(--plum-900)); color: var(--cream-50); position: relative; overflow: hidden; }
.members .plus { color: var(--gold-500); }
.members .eyebrow { color: var(--rose-200); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }
.pillar { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 30px 26px; backdrop-filter: blur(6px); }
.pillar h3 { font-size: 1.5rem; margin: 12px 0 8px; }
.pillar h3 em { color: var(--rose-200); }
.pillar p { opacity: .85; }
.pillar-icon { font-size: 2rem; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: var(--rose-500); }
.member-forms { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.card { background: var(--cream-50); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.form h3 { font-size: 1.5rem; margin-bottom: 4px; color: var(--plum-700); }
.form label { display: block; font-weight: 700; font-size: .85rem; margin-top: 14px; color: var(--plum-900); }
input, select, textarea { width: 100%; margin-top: 6px; font: 1rem var(--font-body); padding: .8em 1em; border-radius: 12px; border: 1.5px solid #e4d2cf; background: var(--white); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--rose-500) 35%, transparent); border-color: var(--rose-500); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 18px 0; }
.check input { width: auto; margin-top: 4px; }
.form .btn { margin-top: 18px; }
.form-msg { margin-top: 12px; font-weight: 700; min-height: 1.4em; }
.form-msg.ok { color: #2d7a4f; }
.form-msg.err { color: #b3261e; }
.connect .form-msg.ok { color: var(--plum-700); }
.inline-form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 200px; margin-top: 0; }
.inline-form .btn { margin-top: 0; }

/* Credencial digital */
.credential { margin-top: 18px; border-radius: 16px; padding: 22px; color: var(--cream-50); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--plum-700), var(--rose-500) 70%, var(--gold-500)); box-shadow: var(--shadow); animation: pop .5s ease; }
.credential::after { content: '✦'; position: absolute; right: -16px; top: -40px; font-size: 150px; opacity: .14; }
@keyframes pop { from { transform: scale(.9) rotate(-2deg); opacity: 0; } }
.cred-top { display: flex; align-items: center; gap: 10px; font-size: .8rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.cred-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-top: 16px; }
.cred-meta { opacity: .9; font-size: .9rem; }
.cred-code { margin-top: 14px; font: 700 1.05rem ui-monospace, monospace; letter-spacing: .08em; }
.cred-bars { height: 34px; margin-top: 10px; background: repeating-linear-gradient(90deg, var(--cream-50) 0 2px, transparent 2px 5px, var(--cream-50) 5px 6px, transparent 6px 9px); border-radius: 4px; opacity: .9; }
.credential.pending { background: linear-gradient(135deg, #8a7a84, #b8a5ae); }

/* NOTÍCIAS */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.news-card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; border-top: 5px solid var(--rose-500); }
.news-card:nth-child(2n) { border-top-color: var(--gold-500); }
.news-card:nth-child(3n) { border-top-color: var(--plum-700); }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.news-card h3 { font-size: 1.3rem; }
.news-card p { color: var(--muted); }
.news-links { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; padding-top: 8px; }
.link { color: var(--plum-700); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--rose-200); }
.link:hover { border-color: var(--rose-500); }

/* CONTATO */
.connect { background: var(--cream-100); }
.connect-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-card { background: var(--plum-700); color: var(--cream-50); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.6rem; margin-bottom: 14px; }
.contact-card p { margin-bottom: 10px; }
.contact-card .muted { color: var(--rose-200); }
.ic { display: inline-grid; place-items: center; width: 30px; height: 30px; background: rgba(255,255,255,.12); border-radius: 50%; margin-right: 6px; }
.insta { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 18px 10px 12px; border-radius: 999px; background: var(--gold-500); color: var(--plum-900); font-weight: 700; text-decoration: none; transition: transform .2s; }
.insta:hover { transform: translateY(-2px); }
.insta svg { width: 22px; height: 22px; }

.footer { background: var(--plum-900); color: var(--rose-200); padding: 26px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* MODAL */
.dialog { border: 0; border-radius: var(--radius); padding: 32px; width: min(460px, 100% - 32px); box-shadow: var(--shadow); background: var(--cream-50); color: var(--ink); }
.dialog::backdrop { background: rgba(59, 16, 51, .6); backdrop-filter: blur(4px); }
.dialog h3 { font-size: 1.6rem; color: var(--plum-700); }
.dialog label { display: block; font-weight: 700; font-size: .85rem; margin-top: 14px; }
.dialog .btn { width: 100%; margin-top: 20px; }
.dialog-close { position: absolute; top: 10px; right: 14px; }
.dialog-close button { background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); }

/* CHATBOT */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-fab { width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.7rem; color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--plum-700)); box-shadow: 0 14px 30px -8px rgba(107, 31, 92, .7); position: relative; transition: transform .2s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--rose-500); animation: ping 2.2s infinite; }
@keyframes ping { 80%, 100% { transform: scale(1.35); opacity: 0; } }
.fab-close { display: none; font-size: 2rem; }
.chat.open .fab-open { display: none; }
.chat.open .fab-close { display: inline; }
.chat.open .chat-fab::before { display: none; }
.chat-panel { position: absolute; right: 0; bottom: 80px; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100svh - 120px));
  background: var(--cream-50); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(59,16,51,.55); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; transform: scale(.85); opacity: 0; pointer-events: none; transition: .25s; }
.chat.open .chat-panel { transform: none; opacity: 1; pointer-events: auto; }
.chat-head { display: flex; gap: 10px; align-items: center; padding: 16px 18px; background: linear-gradient(135deg, var(--plum-700), var(--rose-500)); color: var(--cream-50); }
.chat-head small { display: block; opacity: .85; font-size: .78rem; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; white-space: pre-line; animation: pop .25s ease; }
.msg.bot { background: var(--white); border-bottom-left-radius: 4px; box-shadow: 0 4px 14px -8px rgba(0,0,0,.2); }
.msg.user { background: var(--plum-700); color: var(--cream-50); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); }
.chat-options, .chat-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-options button { border: 1.5px solid var(--rose-500); background: transparent; color: var(--plum-700); border-radius: 999px; padding: 6px 12px; font: 600 .82rem var(--font-body); cursor: pointer; }
.chat-options button:hover { background: var(--rose-500); color: var(--white); }
.chat-actions a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; background: var(--plum-700); color: var(--white); text-decoration: none; font-weight: 700; font-size: .86rem; }
.chat-actions a.whatsapp { background: #1f9d55; }
.chat-actions a.phone { background: var(--gold-500); color: var(--plum-900); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eadbd6; background: var(--white); }
.chat-input input { margin: 0; border-radius: 999px; }
.chat-input button { width: 44px; flex: none; border: 0; border-radius: 50%; background: var(--rose-500); color: var(--white); cursor: pointer; font-size: 1rem; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsivo */
@media (max-width: 900px) {
  .about-grid, .connect-grid, .member-forms { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .nav-toggle { display: block; margin-right: -8px; }
  .nav-links { position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh; flex-direction: column; justify-content: center; gap: 4px;
    padding: 96px 24px 40px; overflow-y: auto; background: radial-gradient(120% 80% at 50% 0%, var(--plum-700), var(--plum-900) 70%);
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s, visibility 0s .3s; }
  .nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }
  .nav-links a:not(.btn) { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-weight: 600; padding: 8px 0; }
  .nav-links .btn { margin-top: 22px; font-size: 1rem; padding: .9em 2em; }
  .nav-links .nav-insta { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font: 500 .95rem var(--font-body) !important; color: var(--rose-200); }
  .nav-insta svg { width: 20px; height: 20px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .chat { display: none; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .chat { right: 14px; bottom: 14px; }
  .brand-emblem { width: 38px; height: 38px; }
  .brand-text > span { font-size: 1.35rem; }
}
