/* Só Alegria platform · one design system for the group home and every brand page.
   Night is the default; day is a toggle. Each page sets its brand colours as
   --acc-d/--acc-l (accent text), --fill-d/--fill-l (buttons) and --onfill-d/--onfill-l.
   Layout uses logical properties so the Arabic (RTL) pages mirror without overrides. */
:root {
  --bg: #0c0c0b; --surface: #151513; --surface-2: #1e1d1a; --ink: #f4efe6; --ink-soft: #b3ab9d; --line: #2c2a26;
  --accent: var(--acc-d); --fill: var(--fill-d); --on-fill: var(--onfill-d);
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.18rem, 1.08rem + .5vw, 1.45rem);
  --step-2: clamp(1.55rem, 1.25rem + 1.2vw, 2.3rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.8rem);
  --step-4: clamp(2.5rem, 1.4rem + 5vw, 6.2rem);
  --radius: 18px; --maxw: 1240px; --side-w: 264px; --bar-h: 60px;
  color-scheme: dark;
}
:root[data-mode="light"] {
  --bg: #fbf8f3; --surface: #f3eee5; --surface-2: #e9e2d5; --ink: #15130f; --ink-soft: #5a544b; --line: #e1d9cb;
  --accent: var(--acc-l); --fill: var(--fill-l); --on-fill: var(--onfill-l);
  color-scheme: light;
}
[dir="rtl"] { --font-display: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif; --font-body: "IBM Plex Sans Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.3; letter-spacing: 0; }
[dir="rtl"] body { line-height: 1.8; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Primitives */
.band { padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-block: clamp(64px, 9vw, 128px); }
.band.alt { background: var(--surface); }
.band.tight { padding-block: clamp(40px, 5vw, 64px); }
.wrap { max-width: var(--maxw); margin-inline: auto; display: grid; gap: clamp(28px, 4vw, 56px); min-width: 0; }
.eyebrow { font-size: var(--step--1); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--accent); }
[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 62ch; }
.head { display: grid; gap: 14px; max-width: 800px; }
.head h2 { font-size: var(--step-3); }
.note { font-size: var(--step--1); color: var(--ink-soft); }
.arr { display: inline-block; }
[dir="rtl"] .arr { transform: scaleX(-1); }
.btn { font: inherit; font-weight: 700; border: 0; border-radius: 999px; padding: 14px 24px; background: var(--fill); color: var(--on-fill); cursor: pointer; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: transform .15s, filter .15s, background .15s; text-align: center; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.glass { background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgb(255 255 255 / .22); }
.btn.wa { background: #25d366; color: #052e14; }
.btn svg { width: 20px; height: 20px; flex: none; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.media { background: var(--surface-2); overflow: hidden; border-radius: var(--radius); position: relative; margin: 0; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media figcaption { position: absolute; inset-inline-start: 12px; bottom: 12px; font-size: .74rem; font-weight: 700; background: rgb(0 0 0 / .6); color: #fff; padding: 5px 10px; border-radius: 999px; }
.reveal { transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal:not(.in) { transform: translateY(26px); }

/* Switches (language links + mode) */
.langs { display: inline-flex; border-radius: 999px; padding: 3px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.langs a { font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--ink-soft); padding: 7px 10px; border-radius: 999px; min-width: 38px; min-height: 34px; display: inline-grid; place-items: center; }
.langs a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.langs a[lang="ar"] { font-family: "IBM Plex Sans Arabic", "Geeza Pro", system-ui, sans-serif; font-size: .86rem; }
.mode { width: 40px; height: 40px; border-radius: 50%; border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.mode svg { width: 18px; height: 18px; }
.mode .sun, :root[data-mode="light"] .mode .moon { display: none; }
:root[data-mode="light"] .mode .sun { display: block; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn svg { width: 20px; height: 20px; }

/* Group header (home) */
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding-inline: max(16px, env(safe-area-inset-left, 0px)); padding-top: env(safe-area-inset-top, 0px); transition: background .25s, box-shadow .25s; color: #fff; }
.top.solid { background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.top-in { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; line-height: 1.1; min-width: 0; }
.logo img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.logo small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .72rem; opacity: .75; letter-spacing: .04em; }
.topnav { display: flex; gap: 22px; margin-inline-start: auto; font-weight: 600; font-size: .92rem; }
.topnav a { text-decoration: none; opacity: .85; }
.topnav a:hover { opacity: 1; }
.top .tools { display: flex; gap: 8px; align-items: center; }
.top:not(.solid) .langs, .top:not(.solid) .mode, .top:not(.solid) .iconbtn { background: rgb(0 0 0 / .28); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.top:not(.solid) .langs a { color: rgb(255 255 255 / .82); }
.top:not(.solid) .langs a[aria-current="true"] { background: #fff; color: #111; }
.top .menu-btn { display: none; }
@media (max-width: 1100px) { .topnav { display: none; } .top .tools { margin-inline-start: auto; } .top .menu-btn { display: grid; } .top .tools .langs, .top .tools .mode { display: none; } }

/* Drawer (mobile navigation for every page) */
.drawer { position: fixed; inset: 0; z-index: 80; display: grid; pointer-events: none; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .55); opacity: 0; transition: opacity .25s; }
.drawer-panel { position: relative; inset-inline-end: 0; justify-self: end; width: min(380px, 88vw); height: 100%; background: var(--bg); color: var(--ink); padding: calc(18px + env(safe-area-inset-top, 0px)) 22px calc(24px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-rows: auto 1fr auto; gap: 22px; transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; }
[dir="rtl"] .drawer-panel { transform: translateX(-105%); }
.drawer.open { pointer-events: auto; }
.drawer.open::before { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer nav { display: grid; align-content: start; }
.drawer nav a { text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer-foot { display: grid; gap: 14px; }
.drawer-foot .row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.back { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.back img { width: 28px; height: 28px; border-radius: 50%; }

/* Brand sidebar (desktop) + mobile bar */
.side { position: fixed; inset-block: 0; inset-inline-start: 0; width: var(--side-w); z-index: 40; background: var(--bg); border-inline-end: 1px solid var(--line); padding: 22px 20px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 26px; overflow-y: auto; }
.side .back { color: var(--ink-soft); padding: 8px 12px 8px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); justify-self: start; font-size: .82rem; }
.side .back:hover { color: var(--ink); }
.side-brand { display: grid; gap: 12px; text-decoration: none; }
.side-brand img { width: 84px; height: 84px; border-radius: 50%; }
.side-brand b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.05; }
.side-brand span { font-size: .84rem; color: var(--ink-soft); }
.side nav { display: grid; gap: 2px; align-content: start; }
.side nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; padding: 9px 12px; border-radius: 10px; border-inline-start: 2px solid transparent; }
.side nav a:hover { color: var(--ink); background: var(--surface); }
.side nav a.on { color: var(--ink); border-inline-start-color: var(--accent); background: var(--surface); }
.side-foot { display: grid; gap: 12px; }
.side-foot .row { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.with-side { margin-inline-start: var(--side-w); }
.mbar { display: none; }
@media (max-width: 1023px) {
  .side { display: none; }
  .with-side { margin-inline-start: 0; }
  .mbar { display: flex; position: fixed; inset: 0 0 auto; z-index: 50; align-items: center; gap: 10px; min-height: var(--bar-h); padding: env(safe-area-inset-top, 0px) max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px)); color: #fff; transition: background .25s, box-shadow .25s; }
  .mbar.solid { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
  .mbar .logo img { width: 36px; height: 36px; }
  .mbar .back-mini { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
  .mbar .back-mini img { width: 32px; height: 32px; border-radius: 50%; }
  .mbar .sp { flex: 1; }
  .mbar .btn { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
  .mbar:not(.solid) .iconbtn { background: rgb(0 0 0 / .3); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); }
}

/* Full-bleed hero: real photo, legible copy on a graded scrim */
.hero { position: relative; isolation: isolate; min-height: min(100svh, 980px); display: grid; align-items: end; color: #fff; padding: calc(96px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-left, 0px)) clamp(36px, 6vw, 80px); overflow: hidden; background: #111; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, rgb(8 8 7 / .92) 0%, rgb(8 8 7 / .72) 26%, rgb(8 8 7 / .28) 58%, rgb(8 8 7 / .12) 78%, rgb(8 8 7 / .45) 100%),
  linear-gradient(90deg, rgb(8 8 7 / .55) 0%, rgb(8 8 7 / 0) 62%); }
[dir="rtl"] .hero::after { background:
  linear-gradient(0deg, rgb(8 8 7 / .92) 0%, rgb(8 8 7 / .72) 26%, rgb(8 8 7 / .28) 58%, rgb(8 8 7 / .12) 78%, rgb(8 8 7 / .45) 100%),
  linear-gradient(270deg, rgb(8 8 7 / .55) 0%, rgb(8 8 7 / 0) 62%); }
.hero-in { max-width: var(--maxw); width: 100%; margin-inline: auto; display: grid; gap: 22px; }
.hero .eyebrow { color: #fff; opacity: .92; display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--acc-d); flex: none; }
.hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 15ch; text-shadow: 0 2px 30px rgb(0 0 0 / .35); }
.hero h1 em { font-style: normal; color: var(--acc-d); }
.hero .lede { color: rgb(255 255 255 / .9); max-width: 56ch; text-shadow: 0 1px 14px rgb(0 0 0 / .45); }
.hero .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .5); }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; border-top: 1px solid rgb(255 255 255 / .28); }
.hero-facts div { padding: 16px 16px 0 0; display: grid; gap: 2px; min-width: 0; }
[dir="rtl"] .hero-facts div { padding: 16px 0 0 16px; }
.hero-facts b { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.8rem); line-height: 1.15; }
.hero-facts span { font-size: .84rem; color: rgb(255 255 255 / .78); }
.hero .scroll-cue { position: absolute; inset-inline-end: max(16px, env(safe-area-inset-right, 0px)); bottom: 28px; writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
@media (max-width: 760px) {
  .hero { min-height: 92svh; padding-bottom: 28px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hero-facts div:nth-child(n+3) { padding-top: 12px; }
  .hero .scroll-cue { display: none; }
  .hero-facts div:nth-child(n+3) { display: none; }
  .hero .cta-row .btn { flex: 1 1 100%; }
}

/* Asymmetric split: copy + two offset images that always fill their frame */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split-copy { display: grid; gap: 18px; min-width: 0; }
.split-copy h2 { font-size: var(--step-3); }
.split-copy p { color: var(--ink-soft); }
.split-copy p.lede { color: var(--ink-soft); }
.stack { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(12, minmax(0, 1fr)); aspect-ratio: 1 / 1.02; }
.stack .media:nth-child(1) { grid-column: 1 / 10; grid-row: 1 / 11; }
.stack .media:nth-child(2) { grid-column: 7 / 13; grid-row: 6 / 13; box-shadow: 0 0 0 8px var(--bg), 0 24px 60px rgb(0 0 0 / .35); }
.alt .stack .media:nth-child(2) { box-shadow: 0 0 0 8px var(--surface), 0 24px 60px rgb(0 0 0 / .35); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } .stack { aspect-ratio: 1 / 1.08; } }

/* Mosaic gallery: blocks of 5 (A) and 4 (B) that tile rows completely */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 270px); gap: 10px; }
.mosaic .media { border-radius: 14px; }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
@media (max-width: 700px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; gap: 8px; } .mosaic .wide { grid-column: span 1; } }

/* Feature cards: first card tall, the rest fill the remaining cells */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(260px, auto); }
.cards.n3 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.cards.n3 .card:first-child { grid-row: span 2; }
.cards.n4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.n4 .card:first-child { grid-row: span 2; }
.cards.n4 .card:last-child { grid-column: span 2; }
.cards.n5 .card:first-child { grid-row: span 2; }
.card { position: relative; isolation: isolate; border-radius: var(--radius); overflow: hidden; display: grid; align-content: end; min-height: 260px; background: var(--surface-2); color: #fff; text-decoration: none; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s; }
.card:hover img { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(0 0 0 / .86) 0%, rgb(0 0 0 / .5) 42%, rgb(0 0 0 / 0) 72%); }
.card-body { padding: clamp(18px, 2vw, 26px); display: grid; gap: 8px; }
.card-body .k { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc-d); }
[dir="rtl"] .card-body .k { letter-spacing: 0; font-size: .85rem; }
.card-body h3 { font-size: var(--step-2); }
.card-body p { font-size: .96rem; color: rgb(255 255 255 / .88); max-width: 46ch; }
.card-body .go { font-weight: 700; font-size: .9rem; margin-top: 4px; }
@media (max-width: 900px) { .cards, .cards.n3, .cards.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards.n3 .card:first-child { grid-column: span 2; grid-row: span 1; min-height: 340px; } .cards.n4 .card:first-child { grid-row: span 1; grid-column: span 2; } .cards.n4 .card:last-child { grid-column: span 2; } .cards.n5 .card:first-child { grid-column: span 2; grid-row: span 1; } }
@media (max-width: 560px) { .cards, .cards.n3, .cards.n4 { grid-template-columns: 1fr; } .cards .card, .cards.n3 .card:first-child, .cards.n4 .card:first-child, .cards.n4 .card:last-child, .cards.n5 .card:first-child { grid-column: auto; grid-row: auto; min-height: 300px; } }

/* Home: brand mosaic (6 tiles, 3x3 cells) */
.brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(230px, 24vw, 340px); gap: 14px; }
.brands .card:nth-child(1) { grid-row: span 2; }
.brands .card:nth-child(2) { grid-column: span 2; }
.brands .card:nth-child(5) { grid-column: span 2; }
.brands .card { min-height: 0; }
.brand-badge { position: absolute; top: 16px; inset-inline-start: 16px; width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
@media (max-width: 900px) { .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 300px; } .brands .card:nth-child(n) { grid-row: auto; grid-column: auto; } .brands .card:nth-child(1) { grid-column: span 2; } .brands .card:nth-child(6) { grid-column: span 2; } }
@media (max-width: 560px) { .brands { grid-template-columns: 1fr; grid-auto-rows: 320px; } .brands .card:nth-child(n) { grid-column: auto; } }

/* Horizontal scroller (day, sunsets) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 30%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.rail > * { scroll-snap-align: start; }
.moment { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.alt .moment { background: var(--bg); }
.moment .media { border-radius: 0; aspect-ratio: 4 / 5; }
.moment-body { padding: 18px; display: grid; gap: 6px; align-content: start; }
.moment-body .k { font-size: .76rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
[dir="rtl"] .moment-body .k { letter-spacing: 0; font-size: .86rem; }
.moment-body h3 { font-size: var(--step-1); }
.moment-body p { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 900px) { .rail { grid-auto-columns: minmax(250px, 72%); } }

/* Facts / numbers */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 22px 20px 0 0; display: grid; gap: 6px; align-content: start; min-width: 0; }
[dir="rtl"] .facts > div { padding: 22px 0 0 20px; }
.facts > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
.facts b { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; color: var(--ink); }
.facts span { color: var(--ink-soft); font-size: .93rem; }
.facts .src { font-size: .76rem; color: var(--ink-soft); }
.facts .src a { color: var(--ink-soft); }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; } .facts > div:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts > div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); margin-top: 18px; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.timeline li { scroll-snap-align: start; padding: 0 22px 0 0; display: grid; gap: 8px; align-content: start; position: relative; }
[dir="rtl"] .timeline li { padding: 0 0 0 22px; }
.timeline .yr { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; color: var(--accent); }
.timeline li::before { content: ""; height: 2px; background: var(--accent); margin-bottom: 14px; }
.timeline li.plan::before { background: repeating-linear-gradient(90deg, var(--ink-soft) 0 6px, transparent 6px 12px); }
.timeline li.plan .yr { color: var(--ink-soft); }
.timeline .tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); border-radius: 999px; padding: 3px 9px; justify-self: start; }
[dir="rtl"] .timeline .tag { letter-spacing: 0; font-size: .8rem; }
.timeline h3 { font-size: 1.12rem; }
.timeline p { color: var(--ink-soft); font-size: .93rem; }

/* Invest block */
.invest { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.invest .media { min-height: 420px; }
.invest-copy { display: grid; gap: 18px; align-content: center; }
.invest-copy h2 { font-size: var(--step-3); }
.invest-copy p { color: var(--ink-soft); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pillars li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.pillars b { font-family: var(--font-display); font-size: 1.12rem; }
.pillars span { color: var(--ink-soft); font-size: .94rem; }
@media (max-width: 860px) { .invest { grid-template-columns: 1fr; } .invest .media { min-height: 0; aspect-ratio: 4 / 3; } }

/* Simple info rows (visit block) */
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.info > div { padding: 16px 16px 0 0; display: grid; gap: 4px; min-width: 0; }
[dir="rtl"] .info > div { padding: 16px 0 0 16px; }
.info > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.info b { font-family: var(--font-display); font-size: var(--step-1); }
.info span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 700px) { .info { grid-template-columns: 1fr; } .info > div + div { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); margin-top: 14px; } }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.band:not(.alt) .faq details { background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; display: flex; gap: 14px; align-items: center; justify-content: space-between; font-weight: 700; font-size: 1.04rem; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--accent); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: var(--ink-soft); }

/* Smart form */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.trust { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 12px; }
.trust li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-soft); font-size: .96rem; }
.trust svg { width: 20px; height: 20px; color: var(--accent); margin-top: 3px; }
.form { background: var(--bg); border-radius: 22px; padding: clamp(18px, 3vw, 34px); display: grid; gap: 20px; min-width: 0; box-shadow: inset 0 0 0 1px var(--line); }
.band:not(.alt) .form { background: var(--surface); }
.steps { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.steps li { flex: 1; display: grid; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
[dir="rtl"] .steps li { letter-spacing: 0; font-size: .84rem; }
.steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.steps li.on { color: var(--ink); }
.steps li.on::before { background: var(--accent); }
.step { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; font-size: var(--step--1); font-weight: 700; min-width: 0; }
.hint { font-weight: 400; color: var(--ink-soft); }
input, textarea, select { font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); width: 100%; min-height: 50px; }
.band:not(.alt) .form input, .band:not(.alt) .form textarea { background: var(--bg); }
.alt .form input, .alt .form textarea { background: var(--surface); }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #e05a4f; }
input[type="date"] { min-width: 0; -webkit-appearance: none; appearance: none; }
textarea { min-height: 100px; resize: vertical; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
legend { font-size: var(--step--1); font-weight: 700; padding: 0; margin-bottom: 4px; }
.legend-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; }
.opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 15px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: .92rem; font-weight: 600; cursor: pointer; color: var(--ink-soft); background: var(--bg); }
.band:not(.alt) .opt span { background: var(--bg); }
.opt span img { width: 22px; height: 22px; border-radius: 50%; }
.opt input:checked + span { background: var(--ink); color: var(--bg); box-shadow: none; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: inline-flex; border-radius: 999px; padding: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { font: inherit; font-size: .76rem; font-weight: 700; border: 0; background: transparent; color: var(--ink-soft); padding: 6px 11px; border-radius: 999px; cursor: pointer; min-height: 34px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); font-weight: 400; }
.check input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; margin-top: 1px; accent-color: var(--fill); box-shadow: none; }
.form-nav { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.form-nav .btn:last-child { margin-inline-start: auto; }
.err { color: #f08a80; font-size: .9rem; font-weight: 600; min-height: 1.4em; }
:root[data-mode="light"] .err { color: #b3261e; }
.ticket { border: 1px dashed var(--accent); border-radius: 16px; padding: 20px; display: grid; gap: 14px; }
.ticket-id { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, .95rem + 1vw, 1.8rem); direction: ltr; unicode-bidi: isolate; justify-self: start; }
.ticket dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: .93rem; }
.ticket dt { color: var(--ink-soft); }
.ticket dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ticket .cta-row .btn { flex: 1 1 auto; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .form-nav .btn { flex: 1 1 auto; } .ticket dl { grid-template-columns: 1fr; gap: 2px; } .ticket dd { margin-bottom: 8px; } }

/* Mobile booking bar (brand pages) */
.bookbar { display: none; }
@media (max-width: 1023px) {
  .bookbar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 45; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -1px 0 var(--line); transition: transform .25s; }
  .bookbar .btn { flex: 1; min-height: 48px; }
  .bookbar.away { transform: translateY(110%); }
  .has-bookbar footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

/* Footer */
footer { border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.foot h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); font-family: var(--font-body); margin-bottom: 12px; }
[dir="rtl"] .foot h3 { letter-spacing: 0; font-size: .92rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot-by { display: grid; gap: 14px; align-content: start; }
.foot-by .logo img { width: 52px; height: 52px; }
.legal { font-size: var(--step--1); color: var(--ink-soft); max-width: 100ch; border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 6px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot-by { grid-column: 1 / -1; } }
[dir="rtl"] .hero-facts b, [dir="rtl"] .facts b { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* ---- Brand pages share the group navbar: pill of links + "Só Alegria" dropdown ---- */
.top .topnav { gap: 2px; padding: 4px; border-radius: 999px; background: rgb(0 0 0 / .28); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); align-items: center; margin-inline: auto; }
.top.solid .topnav { background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.top .topnav > a, .dd-btn { font: inherit; font-size: .9rem; font-weight: 600; color: inherit; opacity: .86; text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, opacity .15s; }
.top .topnav > a:hover, .dd-btn:hover, .dd:focus-within .dd-btn { opacity: 1; background: rgb(255 255 255 / .12); }
.top.solid .topnav > a:hover, .top.solid .dd-btn:hover, .top.solid .dd:focus-within .dd-btn { background: var(--surface-2); }
.dd { position: relative; }
.dd-btn svg { width: 12px; height: 12px; transition: transform .25s; }
.dd:hover .dd-btn svg, .dd:focus-within .dd-btn svg { transform: rotate(180deg); }
.dd-panel { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; min-width: 260px; padding: 10px; border-radius: 18px; background: var(--bg); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgb(0 0 0 / .35); display: grid; gap: 2px; opacity: 0; transform: translateY(10px) scale(.96); transform-origin: top; pointer-events: none; visibility: hidden; transition: opacity .2s, transform .35s cubic-bezier(.2, .9, .25, 1.15), visibility 0s .35s; }
.dd-panel::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.dd-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--ink-soft); }
.dd-panel a:hover, .dd-panel a:focus-visible { background: var(--surface); color: var(--ink); }
.dd-panel img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.dd-panel .dd-home { color: var(--ink); border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; margin-bottom: 4px; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.top .tools { margin-inline-start: 0; }
@media (max-width: 1100px) { .top .tools .btn.sm { display: none; } }
@media (max-width: 1240px) and (min-width: 1101px) { .top .topnav > a, .dd-btn { padding: 8px 10px; font-size: .86rem; } .top .tools .langs { display: none; } }

/* ---- Symmetric blocks ---- */
.cards.sym { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); grid-auto-rows: auto; }
.cards.sym .card { min-height: clamp(360px, 34vw, 480px); grid-row: auto !important; grid-column: auto !important; }
.cards.sym[style*="--n:4"] .card { min-height: clamp(340px, 28vw, 420px); }
.cards.sym[style*="--n:5"] .card { min-height: 360px; }
.cards.sym[style*="--n:5"] .card-body p { font-size: .9rem; }
@media (max-width: 1100px) { .cards.sym[style*="--n:5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); } .cards.sym[style*="--n:5"] .card { grid-column: span 2 !important; } .cards.sym[style*="--n:5"] .card:nth-child(n+4) { grid-column: span 3 !important; } .cards.sym[style*="--n:4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cards.sym, .cards.sym[style*="--n:4"], .cards.sym[style*="--n:5"] { grid-template-columns: 1fr; } .cards.sym .card { grid-column: auto !important; min-height: 320px; } }
.head-c { text-align: center; justify-items: center; margin-inline: auto; }

/* ---- Inverted dome gallery (native WebGL port) ---- */
.dome-band { padding-bottom: 0; }
.dome-band .wrap { margin-bottom: clamp(24px, 3vw, 40px); }
.dome { position: relative; height: clamp(460px, 62vw, 680px); overflow: hidden; user-select: none; -webkit-user-select: none; cursor: grab; touch-action: pan-y; background: var(--bg); }
.dome.grabbing { cursor: grabbing; }
.dome canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .7s; }
.dome.ready canvas { opacity: 1; }
.dome::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--bg), transparent 14%, transparent 86%, var(--bg)); }
.dome-hint { position: absolute; inset-inline: 0; bottom: 22px; z-index: 2; margin: 0 auto; width: max-content; max-width: calc(100% - 32px); font-size: .8rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgb(0 0 0 / .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; text-align: center; }
.dome-fallback { list-style: none; margin: 0; padding: 0 max(16px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; max-width: var(--maxw); margin-inline: auto; }
.dome-fallback img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.dome:not(.webgl) { height: auto; cursor: auto; padding-bottom: 72px; }
.dome.webgl .dome-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
.dome-box { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 24px; background: rgb(0 0 0 / .55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); cursor: zoom-out; animation: dome-fade .28s ease-out; }
.dome-box img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 80px rgb(0 0 0 / .5); cursor: default; animation: dome-pop .35s cubic-bezier(.2, .9, .25, 1.15); }
.dome-box button { position: absolute; top: 16px; inset-inline-end: 16px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
@keyframes dome-fade { from { opacity: 0; } }
@keyframes dome-pop { from { opacity: 0; transform: scale(.88); } }
.top .topnav > a, .dd-btn, .top .logo span { white-space: nowrap; }
.top .topnav > a.on { opacity: 1; background: rgb(255 255 255 / .14); }
.top.solid .topnav > a.on { background: var(--surface-2); }

/* ---- Elastic reel gallery ---- */
.reel-band { padding-bottom: clamp(64px, 9vw, 128px); }
.reel-band .wrap { margin-bottom: clamp(16px, 2vw, 28px); }
.reel-hint { display: none; }
.reel { position: relative; outline: none; color: var(--ink); }
.reel:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.reel-stage { display: none; }
.reel.webgl { height: clamp(460px, 44vw, 600px); overflow: hidden; }
.reel.webgl .reel-stage { display: block; position: absolute; inset: 0; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.reel.webgl .reel-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.reel-band:has(.reel.webgl) .reel-hint { display: block; }
.reel-label, .reel-cap { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; white-space: nowrap; will-change: transform, opacity; }
.reel-label { font-size: 13px; font-weight: 500; }
.reel-cap span { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.reel:not(.webgl) .reel-label, .reel:not(.webgl) .reel-cap { display: none; }
.reel-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* Strip fallback (phones, reduced motion, no WebGL): one row, every photo in its natural frame */
.reel-strip { list-style: none; margin: 0; padding: 4px max(16px, env(safe-area-inset-left, 0px)) 12px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.reel-strip li { flex: none; scroll-snap-align: center; }
.reel-strip img { height: clamp(260px, 52vw, 420px); width: auto; max-width: 86vw; object-fit: cover; border-radius: 14px; background: var(--surface-2); }
.reel.webgl .reel-strip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }

/* ---- Section videos ---- */
.video-band { padding-top: clamp(48px, 6vw, 88px); }
.vid { margin: 0; background: #000; }
.vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-wide { aspect-ratio: 16 / 9; }
.vid-tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); max-width: 1000px; margin-inline: auto; width: 100%; }
.vid-tri > .media { aspect-ratio: 9 / 16; }
.vid-tri > .media:not(.vid) { transform: scale(.92); opacity: .9; }
@media (max-width: 760px) { .vid-tri { grid-template-columns: 1fr; max-width: 420px; } .vid-tri > .media:not(.vid) { display: none; } }
.visit-media { max-height: 82vh; width: auto; margin-inline: auto; }

/* Card copy: titles sized to the column and aligned on one baseline across a row */
.cards.sym .card-body h3 { font-size: clamp(1.3rem, .9rem + 1.2vw, 2rem); line-height: 1.08; text-wrap: balance; hyphens: manual; }
.cards.sym .card-body p:not(.k) { line-height: 1.5; }
.cards.sym .card-body { gap: 6px; }
.cards.sym[style*="--n:4"] .card-body h3 { font-size: clamp(1.15rem, .8rem + .85vw, 1.6rem); }
.cards.sym[style*="--n:5"] .card-body { padding: 18px 16px; }
.cards.sym[style*="--n:5"] .card-body h3 { font-size: clamp(1.05rem, .7rem + .75vw, 1.35rem); }
.cards.sym[style*="--n:5"] .card-body p { font-size: .86rem; }
@media (max-width: 1100px) { .cards.sym[style*="--n:5"] .card-body h3 { font-size: 1.4rem; } }
@media (max-width: 760px) { .cards.sym .card-body h3, .cards.sym[style*="--n:4"] .card-body h3, .cards.sym[style*="--n:5"] .card-body h3 { font-size: 1.6rem; min-height: 0; } .cards.sym .card-body p { min-height: 0; } }

.hero > video.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }

.reel .reel-label, .reel .reel-cap { display: none !important; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
