/* Casa de Axé Egbê Fêmi
   Conceito: página de acolhimento. Verde-oliva e creme tirados do logo da casa,
   com dois motivos do próprio logo como únicos ornamentos: o zigue-zague do
   tambor (faixas de seção) e os anéis do torso (marcas e fundo do topo).
   O horário da gira é a informação central e aparece cedo, em linha do tempo. */

:root {
  --bg: #F5F6E9;
  --surface: #FBFCF4;
  --ink: #232A10;
  --ink-2: #4A5230;
  --line: #D3D8B4;
  --olive: #7D8A2E;
  --btn: #4F5A17;
  --on-btn: #F5F6E9;
  --deep: #262D0E;
  --on-deep: #EEF1D8;
  --on-deep-2: #C6CCA2;
  --gold: #E0B04A;
  --alert: #8A3B12;
  --focus: #8A5A00;

  --f-display: 'Alegreya', Georgia, 'Times New Roman', serif;
  --f-body: 'Alegreya Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 6px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181D08;
    --surface: #202710;
    --ink: #EEF1D8;
    --ink-2: #BCC298;
    --line: #38411E;
    --olive: #A2B13D;
    --btn: #C9D668;
    --on-btn: #1A2008;
    --deep: #0E1205;
    --on-deep: #EEF1D8;
    --on-deep-2: #B4BA90;
    --gold: #E6B957;
    --alert: #F0A878;
    --focus: #F2C75C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #181D08;
  --surface: #202710;
  --ink: #EEF1D8;
  --ink-2: #BCC298;
  --line: #38411E;
  --olive: #A2B13D;
  --btn: #C9D668;
  --on-btn: #1A2008;
  --deep: #0E1205;
  --on-deep: #EEF1D8;
  --on-deep-2: #B4BA90;
  --gold: #E6B957;
  --alert: #F0A878;
  --focus: #F2C75C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--btn); text-underline-offset: 0.18em; text-decoration-thickness: 0.07em; }
a:hover { text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: var(--on-btn); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--f-display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 34px; height: 12px; background: var(--olive); -webkit-mask: var(--zig) repeat-x left center / 17px 12px; mask: var(--zig) repeat-x left center / 17px 12px; flex: none; }
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.prose > * { max-width: 66ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.55rem, 2.6vw, 2rem); }
.prose h2 + * { margin-top: 0.7em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--olive); }
.note { font-size: 0.98rem; color: var(--ink-2); border-left: 3px solid var(--olive); padding-left: 14px; }

/* zigue-zague do tambor, como máscara para herdar a cor do tema */
:root { --zig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='12' viewBox='0 0 17 12'%3E%3Cpath d='M0 12 L4.25 0 L8.5 12 L12.75 0 L17 12 Z' fill='black'/%3E%3C/svg%3E"); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-family: var(--f-body); font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--btn); background: var(--btn); color: var(--on-btn); cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--btn); }
.btn.on-deep { background: var(--gold); border-color: var(--gold); color: #1d2208; }
.btn.ghost.on-deep { background: transparent; color: var(--on-deep); border-color: var(--on-deep-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; }
.link-arrow::after { content: "→"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* cabeçalho */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 46px; height: 46px; flex: none; }
.brand b { display: block; font-family: var(--f-display); font-size: 1.35rem; line-height: 1; font-weight: 800; }
.brand small { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--radius); font-weight: 500; display: block; }
.nav a:hover { background: color-mix(in srgb, var(--olive) 16%, transparent); }
.nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--olive); border-radius: 0; }
.nav .has-sub { position: relative; }
.nav .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.nav .btn { margin-left: 10px; min-height: 44px; padding: 8px 20px; color: var(--on-btn); }
.nav .btn:hover { background: var(--btn); }
.menu-btn { display: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--btn); background: transparent; color: var(--btn); font: inherit; font-weight: 700; cursor: pointer; }

@media (max-width: 980px) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; flex-direction: column; align-items: stretch; }
  .js .nav.open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav .sub { display: flex; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; background: transparent; min-width: 0; }
  .nav a { padding: 12px 4px; }
  .nav .btn { margin: 10px 0 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--btn); }
  .no-js .bar { flex-wrap: wrap; padding-block: 8px; }
  .no-js .nav { flex-wrap: wrap; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; }
  .no-js .nav .sub { display: none; }
}

/* topo da home */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { margin-block: 18px 22px; }
.hero h1 em { font-style: italic; font-weight: 600; color: var(--btn); }
.hero .btn-row { margin-top: 30px; }
.hero-place { margin-top: 26px; font-size: 0.98rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.hero-art .rings { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; color: var(--olive); opacity: .55; }
.hero-art img { position: relative; width: 72%; height: auto; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 280px; order: -1; justify-self: start; }
}

/* faixa escura da gira */
.band { position: relative; background: var(--deep); color: var(--on-deep); padding-block: clamp(56px, 8vw, 96px); margin-top: 18px; }
.band::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; background: var(--deep); -webkit-mask: var(--zig) repeat-x left bottom / 17px 12px; mask: var(--zig) repeat-x left bottom / 17px 12px; }
.band .eyebrow { color: var(--on-deep-2); }
.band .eyebrow::before { background: var(--gold); }
.band .lead { color: var(--on-deep-2); }
.band a:not(.btn) { color: var(--gold); }
.band-head { display: grid; gap: 14px; max-width: 760px; }
.band-head h2 { margin-top: 4px; }

.gira { list-style: none; margin: clamp(32px, 5vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: none; }
.gira li { position: relative; padding: 28px 24px 0 0; display: grid; gap: 6px; align-content: start; }
.gira li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--on-deep-2); opacity: .45; }
.gira li::after { content: ""; position: absolute; top: -7px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); }
.gira .t { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1; color: var(--on-deep); font-variant-numeric: lining-nums; }
.gira strong { font-size: 1.2rem; }
.gira span:last-child { color: var(--on-deep-2); font-size: 1rem; max-width: 30ch; }
.gira .stop::before { background: repeating-linear-gradient(90deg, #E08A5C 0 8px, transparent 8px 14px); opacity: 1; }
.gira .stop::after { background: #E08A5C; }
.gira .stop .t { color: #F0A878; font-size: clamp(1.6rem, 3vw, 2.2rem); padding-top: 0.55rem; }
@media (max-width: 760px) {
  .gira { grid-template-columns: 1fr; padding-left: 28px; }
  .gira::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--on-deep-2); opacity: .45; }
  .gira li { padding: 0 0 30px 0; }
  .gira li::before { display: none; }
  .gira li::after { left: -28px; top: 8px; }
}
.band .btn-row { margin-top: 12px; }
.band-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }

/* seções */
.section { padding-block: clamp(56px, 8vw, 100px); }
.section.tight { padding-block: clamp(36px, 5vw, 60px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 720px; }
.section-head h2 { margin-top: 2px; }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.door { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 28px 28px 30px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); position: relative; }
.door + .door { padding-left: 28px; border-left: 1px solid var(--line); }
.door h3 { transition: color .15s ease; }
.door:hover h3 { color: var(--btn); }
.door p { color: var(--ink-2); }
.door .link-arrow { color: var(--btn); }
.door:hover .link-arrow::after { transform: translateX(4px); }
.mark { width: 44px; height: 44px; color: var(--olive); }
@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; }
  .door + .door { padding-left: 0; border-left: 0; }
}

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--f-display); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--olive); }
.steps h3 { font-size: 1.3rem; }
.steps p { color: var(--ink-2); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps li { grid-template-columns: 56px 1fr; column-gap: 12px; } .steps li::before { grid-row: span 2; } }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); }
.split > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; align-content: start; }
.panel p { color: var(--ink-2); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; gap: 4px; margin: 0; }
.facts dt { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0; }

/* páginas internas */
.page-head { padding-block: clamp(44px, 7vw, 84px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-head h1 { margin-block: 16px 20px; max-width: 18ch; }
.page-head .lead { max-width: 52ch; }
.crumbs { font-size: 0.92rem; color: var(--ink-2); }
.crumbs a { color: inherit; }
.page-body { padding-block: clamp(36px, 6vw, 72px); }
.cta-band { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(36px, 5vw, 60px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 26ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; grid-template-rows: auto 1fr auto; }
.card p { color: var(--ink-2); }
.card .btn-row { margin-top: 6px; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }

.alert { border: 2px solid var(--alert); border-radius: var(--radius); padding: 16px 20px; color: var(--ink); display: grid; gap: 4px; }
.alert strong { color: var(--alert); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; padding: 20px 40px 20px 0; font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; line-height: 1.25; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-52%); font-family: var(--f-body); font-size: 1.8rem; font-weight: 500; color: var(--olive); }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 0 22px; max-width: 64ch; color: var(--ink-2); display: grid; gap: 10px; }

/* rodapé */
.site-footer { background: var(--deep); color: var(--on-deep); padding-block: clamp(48px, 7vw, 80px) 28px; margin-top: 0; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; background: var(--deep); -webkit-mask: var(--zig) repeat-x left bottom / 17px 12px; mask: var(--zig) repeat-x left bottom / 17px 12px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); }
.foot-grid > * { min-width: 0; }
.site-footer h2 { font-family: var(--f-body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-deep-2); font-weight: 700; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-deep); text-underline-offset: 0.18em; }
.site-footer p { color: var(--on-deep-2); }
.foot-brand { display: grid; gap: 14px; align-content: start; }
.foot-brand img { width: 84px; height: 84px; }
.foot-brand b { font-family: var(--f-display); font-size: 1.5rem; color: var(--on-deep); }
.foot-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid color-mix(in srgb, var(--on-deep-2) 28%, transparent); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.92rem; color: var(--on-deep-2); }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* barra fixa de WhatsApp no celular */
.wa-fixed { display: none; }
@media (max-width: 760px) {
  .wa-fixed { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .wa-fixed .btn { width: 100%; }
  body { padding-bottom: 76px; }
}

.mt-0 { margin-top: 0; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
