/* CGF Clube de Golfe do Fundão
   Dois temas: escuro (por omissão) e claro. Tipo de letra da marca: Montserrat.
   Controlos em forma de cápsula, imagens e blocos com cantos vivos. */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --green: #047842;
  --grass: #a8d862;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 72px;
}

:root, [data-theme="dark"] {
  --bg: #0b1711;
  --bg-raise: #12211a;
  --bg-raise-2: #1a2e24;
  --line: rgba(226, 238, 228, 0.13);
  --line-strong: rgba(226, 238, 228, 0.28);
  --text: #eef3ec;
  --text-2: #cdd6cc;
  --muted: #9aa89d;
  --accent: #a8d862;
  --accent-hover: #bfe685;
  --on-accent: #0b1711;
  --danger: #ff9f8f;
  --sphere: #088a4d;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f7f3;
  --bg-raise: #ffffff;
  --bg-raise-2: #e7ede6;
  --line: rgba(13, 34, 22, 0.13);
  --line-strong: rgba(13, 34, 22, 0.3);
  --text: #0e1c14;
  --text-2: #2c3b32;
  --muted: #56655b;
  --accent: #047842;
  --accent-hover: #035f34;
  --on-accent: #ffffff;
  --danger: #b3261e;
  --sphere: #047842;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  transition: background-color 240ms ease, color 240ms ease;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 999px; }
.skip:focus { top: 12px; }
.empty { color: var(--muted); padding: 24px 0; }

/* Logótipo certo para cada tema */
[data-theme="dark"] .on-light, [data-theme="light"] .on-dark { display: none; }

/* Texto corrido sempre justificado */
.prose p, .prose li, .prose-text, .lead, .hero-text {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-on-green { background: #fff; color: #06371f; }
.btn-on-green:hover { background: var(--grass); }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { color: var(--accent); }

/* ---------- Cabeçalho ---------- */

.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 40px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  max-width: 1360px; margin-inline: auto; padding: 12px var(--gutter);
  min-height: var(--header-h);
}
.brand { position: relative; flex: none; width: 150px; height: 48px; display: block; margin-right: auto; }
.brand-logo { position: absolute; top: 0; left: 0; width: 150px; height: auto; transition: opacity 200ms ease, transform 300ms var(--ease); transform-origin: top left; }
.brand-mark { position: absolute; top: 2px; left: 0; width: 44px; height: 44px; opacity: 0; transition: opacity 200ms ease; }
.brand-mark.on-light, .brand-mark.on-dark { display: block; }
[data-theme="dark"] .brand-mark.on-light, [data-theme="light"] .brand-mark.on-dark { display: none; }
.is-stuck .brand-logo { opacity: 0; transform: scale(0.7); pointer-events: none; }
.is-stuck .brand-mark { opacity: 1; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 160ms ease;
}
.site-nav a:hover { background: var(--line); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; color: var(--muted);
  transition: color 160ms ease, background-color 160ms ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--text); color: var(--bg); }
.theme-toggle, .menu-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
  transition: border-color 160ms ease;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; fill: currentColor; }
[data-theme="dark"] .icon-moon, [data-theme="light"] .icon-sun { display: none; }
.menu-toggle { display: none; }
.menu-toggle-bars, .menu-toggle-bars::before { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 200ms var(--ease); }
.menu-toggle-bars { transform: translateY(-3px); }
.menu-toggle-bars::before { content: ""; transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: rotate(-90deg); }

@media (max-width: 1120px) {
  .brand { width: 44px; height: 44px; }
  .brand-logo { display: none !important; }
  .brand-mark { opacity: 1; top: 0; }
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px; background: var(--bg); box-shadow: 0 1px 0 var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 180ms ease, transform 240ms var(--ease), visibility 180ms;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: 14px 4px; font-size: 18px; border-radius: 0; }
  .site-nav a:hover { background: none; }
  .header-inner { min-height: 68px; }
}

/* ---------- Bola e título da página inicial ---------- */

.hero { --p: 0; height: 260vh; position: relative; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-copy {
  --title: min(9.6vw, 16.5vh);
  position: absolute; left: 34%; right: var(--gutter); top: 50%;
  transform: translateY(calc(-50% - var(--p) * 90px));
  opacity: calc(1 - var(--p) * 4.5);
  padding-top: 40px;
}
.hero-stage.is-open .hero-copy { visibility: hidden; }
.hero-tag { font-size: 15px; font-weight: 600; color: var(--accent); margin-bottom: 14px; }
.hero-title { font-size: var(--title); font-weight: 400; line-height: 1.02; letter-spacing: -0.035em; }
.line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.line > span { display: block; }
.js .line > span { animation: rise 1100ms var(--ease) both; animation-delay: calc(240ms + var(--i) * 110ms); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-text { max-width: 46ch; margin-top: clamp(16px, 2.6vh, 28px); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 3vh, 30px); }
.js .hero-text, .js .hero-actions, .js .hero-tag { animation: appear 700ms ease 760ms both; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

.hero-end { position: absolute; inset: 0; display: flex; align-items: flex-end; pointer-events: none; color: #fff; opacity: calc((var(--p) - 0.8) * 6); }
.hero-end::before { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(4, 12, 8, 0.82), transparent); }
.js .hero-end-photo { display: none; }
.hero-end p {
  position: relative; width: 100%; max-width: 1360px; margin-inline: auto; padding: 0 var(--gutter) clamp(28px, 6vh, 64px);
  font-size: clamp(26px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -0.025em;
}

/* Sem animação: bola parada e fotografia logo a seguir */
.no-motion .hero, html:not(.js) .hero { height: auto; }
.no-motion .hero-stage, html:not(.js) .hero-stage { position: relative; height: auto; overflow: visible; }
.no-motion .hero-canvas { position: relative; height: 100dvh; }
html:not(.js) .hero-canvas { display: none; }
.no-motion .hero-copy { opacity: 1; position: absolute; top: 50dvh; }
html:not(.js) .hero-copy { position: relative; left: 0; right: 0; top: 0; transform: none; padding: 140px var(--gutter) 48px; }
.no-motion .hero-end, html:not(.js) .hero-end { position: relative; opacity: 1; display: block; color: var(--text); }
.no-motion .hero-end-photo, html:not(.js) .hero-end-photo { display: block; width: 100%; }
.no-motion .hero-end::before, html:not(.js) .hero-end::before { display: none; }
.no-motion .hero-end p, html:not(.js) .hero-end p { padding-block: 32px; }

@media (max-width: 760px) {
  .hero { height: 220vh; }
  .hero-copy { --title: min(16.5vw, 9.5vh); left: var(--gutter); top: auto; bottom: 28px; padding-top: 0; transform: translateY(calc(var(--p) * -60px)); }
  .no-motion .hero-copy { top: auto; bottom: auto; position: absolute; top: calc(100dvh - 420px); }
  .hero-actions .btn { padding: 13px 20px; font-size: 14px; }
}

/* ---------- Logótipos ---------- */

.logos { padding-block: clamp(64px, 10vw, 120px); overflow: hidden; }
.logos-title { font-size: clamp(26px, 3vw, 40px); font-weight: 400; margin-bottom: 32px; }
.logos-link { margin-top: 28px; }

.tile {
  position: relative; display: block; aspect-ratio: 16 / 10; min-width: 0;
  background: #fff; color: #0e1c14; box-shadow: inset 0 0 0 1px rgba(13, 34, 22, 0.07);
  text-decoration: none; transition: transform 300ms var(--ease);
}
a.tile:hover { transform: translateY(-4px); }
.tile img { position: absolute; inset: 0; margin: auto; max-width: 84%; max-height: 76%; height: auto; object-fit: contain; }
.tile span { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; font-weight: 600; text-align: center; }

.marquee { display: flex; overflow: hidden; }
.marquee-track { display: flex; flex: none; gap: 10px; padding-right: 10px; }
.is-running .marquee-track { animation: slide var(--marquee-time, 60s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.tile-small { width: clamp(170px, 18vw, 240px); flex: none; }
.no-motion .marquee-track { flex-wrap: wrap; flex: 1; padding-inline: var(--gutter); }

/* ---------- Convite final (bloco verde da marca) ---------- */

.join { background: var(--green); color: #fff; }
.join-inner {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end;
  padding-block: clamp(64px, 9vw, 128px);
}
.join h2 { font-size: clamp(44px, 7vw, 104px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
.join-copy .prose-text { max-width: 46ch; margin-block: 22px 28px; font-size: 18px; line-height: 1.5; }
.join-prices { display: grid; gap: 28px; }
.join-prices dd { font-size: clamp(44px, 5vw, 72px); font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.join-prices dd span { font-size: 16px; letter-spacing: 0; }
.join-prices dt { margin-top: 6px; font-weight: 500; }
@media (max-width: 760px) { .join-inner { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */

.page-head { position: relative; overflow: hidden; padding-block: calc(var(--header-h) + clamp(72px, 10vw, 136px)) clamp(48px, 6vw, 88px); }
.page-head h1 { position: relative; font-size: clamp(44px, 7.4vw, 112px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; max-width: 16ch; }
.page-head .lead { position: relative; max-width: 62ch; margin-top: 26px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--text-2); }
.head-ball { position: absolute; right: -5vw; top: calc(var(--header-h) + 18px); bottom: 12px; height: calc(100% - var(--header-h) - 30px); width: auto; aspect-ratio: 1; max-width: 46vw; transform: scaleX(-1); pointer-events: none; }
.page-head-small { padding-bottom: 24px; }
.page-head-small h1 { font-size: clamp(36px, 5vw, 72px); }
@media (max-width: 760px) {
  .head-ball { opacity: 0.4; height: 74vw; max-width: none; right: -28vw; top: 84px; bottom: auto; }
}

.section-title { font-size: clamp(30px, 3.6vw, 52px); font-weight: 400; letter-spacing: -0.03em; }

.prose { font-size: 16.5px; line-height: 1.7; }
.prose h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 400; letter-spacing: -0.025em; margin-block: 0 22px; }
.prose h3 { font-size: 20px; font-weight: 600; margin-block: 28px 10px; letter-spacing: -0.01em; }
.prose p + p, .prose ul + p { margin-top: 1.05em; }
.prose ul { margin-block: 0.9em; padding-left: 1.2em; list-style: disc; }
.prose li { margin-bottom: 0.35em; }
.prose a { color: var(--accent); }
.prose-text { line-height: 1.6; }

.about { padding-block: clamp(32px, 4vw, 56px) clamp(64px, 8vw, 112px); }
.about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 96px); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.wide-photo { margin: 0; }
.wide-photo img { width: 100%; max-height: 82vh; object-fit: cover; }

.project { padding-block: clamp(64px, 9vw, 128px); }
.project-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .project-grid { grid-template-columns: 1fr; } }

/* Antes e depois */
.ba-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ba-tabs button { padding: 7px 14px; font-size: 14px; font-weight: 500; background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.ba-tabs button:hover { border-color: var(--text); }
.ba-tabs button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.ba-frame { --pos: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-raise); touch-action: pan-y; user-select: none; }
.ba-before, .ba-after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after-wrap { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 22px rgba(4, 18, 10, 0.32);
  transition: transform 200ms var(--ease);
}
.ba-handle span::before, .ba-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border-block: 6px solid transparent;
}
.ba-handle span::before { left: 11px; border-right: 7px solid #0e1c14; }
.ba-handle span::after { right: 11px; border-left: 7px solid #0e1c14; }
.ba-frame:active .ba-handle span { transform: scale(1.1); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-range:focus-visible ~ * { outline: none; }
.ba-frame:has(.ba-range:focus-visible) .ba-handle span { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* Órgãos sociais */
.board { padding-block: clamp(64px, 8vw, 112px); background: var(--bg-raise); }
.board-group { margin-top: 44px; }
.board-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; letter-spacing: -0.01em; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.member-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-raise-2); display: grid; place-items: center; margin-bottom: 12px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { font-size: 44px; color: var(--muted); }
.member-name { font-weight: 600; line-height: 1.3; }
.member-role { font-size: 14px; color: var(--muted); margin-top: 2px; }
@media (max-width: 560px) { .board-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Documentos */
.docs { padding-block: clamp(64px, 8vw, 112px); }
.docs-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.docs-grid .prose-text { margin-top: 16px; color: var(--text-2); }
.doc-list a {
  display: grid; grid-template-columns: 1fr auto 22px; align-items: center; gap: 16px;
  padding: 16px 0; text-decoration: none; border-bottom: 1px solid var(--line);
  transition: color 160ms ease;
}
.doc-list li:first-child a { border-top: 1px solid var(--line); }
.doc-list a:hover { color: var(--accent); }
.doc-name { font-weight: 500; }
.doc-meta { font-size: 13px; color: var(--muted); }
.doc-list svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 760px) { .docs-grid { grid-template-columns: 1fr; } }

/* Galeria */
.albums { padding-block: 8px clamp(64px, 8vw, 112px); }
.album + .album { margin-top: clamp(56px, 7vw, 96px); }
.album-head { display: grid; gap: 6px; max-width: 62ch; margin-bottom: 26px; }
.album-head h2 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 400; letter-spacing: -0.03em; }
.album-info { font-size: 14px; color: var(--muted); }
.mosaic { display: grid; gap: 8px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mosaic-item { position: relative; padding: 0; border: 0; background: var(--bg-raise); cursor: zoom-in; overflow: hidden; aspect-ratio: 16 / 9; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.mosaic-item:hover img { transform: scale(1.035); }
.mosaic-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4, 12, 8, 0.55); color: #fff; font-size: 34px; }
.mosaic-1 .mosaic-item { grid-column: span 6; }
.mosaic-2 .mosaic-item { grid-column: span 3; }
.mosaic-3 .mosaic-item:first-child { grid-column: span 6; }
.mosaic-3 .mosaic-item:not(:first-child) { grid-column: span 3; }
.mosaic-4 .mosaic-item:first-child { grid-column: span 6; aspect-ratio: 21 / 10; }
.mosaic-4 .mosaic-item:not(:first-child) { grid-column: span 2; }
.mosaic-5 .mosaic-item:nth-child(-n+2) { grid-column: span 3; }
.mosaic-5 .mosaic-item:nth-child(n+3) { grid-column: span 2; }
@media (max-width: 620px) {
  .mosaic .mosaic-item { grid-column: span 6 !important; aspect-ratio: 16 / 10 !important; }
}

/* Parceiros */
.partners { padding-block: clamp(20px, 3vw, 40px); }
.partners .section-title { margin-bottom: 26px; }
.tiles { display: grid; gap: 10px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .tiles-3, .tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.benefits { margin-top: clamp(40px, 6vw, 72px); background: var(--green); color: #fff; }
.benefits-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 72px); align-items: start; padding-block: clamp(48px, 7vw, 96px); }
.benefits h2 { font-size: clamp(30px, 4vw, 58px); font-weight: 400; letter-spacing: -0.03em; }
.benefits .prose-text { font-size: 18px; line-height: 1.55; margin-bottom: 22px; }
@media (max-width: 760px) { .benefits-inner { grid-template-columns: 1fr; } }

.partner-invite { padding-block: clamp(56px, 7vw, 96px); }
.partner-invite-inner { display: grid; gap: 14px; justify-items: start; max-width: 780px; margin-inline: 0; }
.partner-invite h2 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 400; letter-spacing: -0.025em; }
.partner-invite-inner.wrap { margin-inline: auto; max-width: 1360px; }
.partner-invite .prose-text { max-width: 62ch; color: var(--text-2); }

/* Formulários */
.form-section { padding-block: 8px clamp(64px, 8vw, 112px); }
.form-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.form-aside { display: grid; gap: 26px; }
.quotas { display: grid; gap: 22px; }
.quota dd { font-size: clamp(38px, 4vw, 56px); letter-spacing: -0.03em; line-height: 1; }
.quota dd span { font-size: 15px; letter-spacing: 0; color: var(--muted); }
.quota dt { margin-top: 4px; font-weight: 500; }
.quota dt span { font-weight: 400; color: var(--muted); }
.contact-list dl { display: grid; gap: 22px; }
.contact-list dt { font-size: 14px; color: var(--muted); }
.contact-list dd { font-size: 18px; line-height: 1.45; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent); }

.form-card { background: var(--bg-raise); padding: clamp(20px, 3vw, 40px); box-shadow: inset 0 0 0 1px var(--line); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 4px;
  transition: border-color 160ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.field select:disabled { opacity: 0.65; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); }
.checks { display: grid; gap: 12px; margin-top: 22px; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.check a, .form-actions a { color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; }
.form-alert { padding: 12px 14px; margin-bottom: 18px; font-size: 14px; color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.form-success h2 { font-size: 30px; font-weight: 400; margin-bottom: 10px; }
.form-success:focus { outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; transition: border-color 160ms ease, color 160ms ease; }
.social a:hover { border-color: var(--accent); color: var(--accent); }
.social svg { width: 15px; height: 15px; fill: currentColor; }
.social-lg a { width: 42px; height: 42px; }
.social-lg svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .form-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

.map-section { padding-bottom: 0; }
.map iframe { display: block; width: 100%; height: clamp(300px, 42vw, 480px); border: 0; }

.legal { padding-block: 8px clamp(56px, 7vw, 96px); }
.legal .back { margin-top: 32px; }
.page-image { width: 100%; margin-bottom: 28px; }

/* Atividades */
.agenda { padding-block: 8px clamp(64px, 8vw, 112px); }
.agenda-item { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 12px 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.agenda-when { display: block; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.agenda-year { font-size: 14px; color: var(--muted); }
.agenda-body h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; margin-bottom: 8px; letter-spacing: -0.02em; }
.agenda-body .prose-text { max-width: 66ch; color: var(--text-2); }
.agenda-place { margin-top: 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .agenda-item { grid-template-columns: 1fr; } }

/* Calendário de marcações */
.booking-cal { background: var(--bg-raise); padding: 18px; box-shadow: inset 0 0 0 1px var(--line); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-month { font-weight: 600; text-transform: capitalize; }
.cal-nav { display: grid; place-items: center; width: 36px; height: 36px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.cal-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.cal-wd { padding-block: 6px; font-size: 12px; color: var(--muted); }
.cal-day { aspect-ratio: 1; padding: 0; font-size: 14px; background: none; border: 0; border-radius: 50%; cursor: pointer; transition: background-color 140ms ease; }
.cal-day:hover:not(:disabled) { background: var(--line); }
.cal-day:disabled { color: var(--muted); opacity: 0.45; cursor: default; }
.cal-day[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* ---------- Modal de fotografias ---------- */

.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(4, 12, 8, 0.96); color: #fff; }
.lightbox::backdrop { background: rgba(4, 12, 8, 0.6); }
.lb-frame { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 16px clamp(16px, 7vw, 96px); }
.lb-figure { margin: 0; display: grid; gap: 10px; max-width: 100%; }
.lb-img { max-width: 100%; max-height: calc(100dvh - 90px); width: auto; margin-inline: auto; transition: opacity 160ms ease; }
.lb-img.is-loading { opacity: 0.35; }
.lb-caption { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.lb-btn, .lb-close { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; background: rgba(255, 255, 255, 0.1); border: 0; border-radius: 50%; color: #fff; cursor: pointer; transition: background-color 160ms ease; }
.lb-btn:hover, .lb-close:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn svg, .lb-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.lb-prev { left: 12px; top: calc(50% - 23px); }
.lb-next { right: 12px; top: calc(50% - 23px); }
.lb-close { right: 12px; top: 12px; }
.lightbox.is-single .lb-btn { display: none; }

/* ---------- Rodapé ---------- */

.site-footer { padding-block: 40px 22px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.footer-top { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 5vw, 72px); align-items: start; }
.footer-logo { display: block; width: clamp(180px, 17vw, 240px); margin-right: clamp(0px, 3vw, 48px); }
.footer-logo img { width: 100%; }
.footer-nav, .footer-contact, .footer-info { display: grid; gap: 5px; justify-items: start; }
.site-footer a { text-decoration: none; }
.footer-nav a:hover, .footer-contact a:hover, .footer-info a:hover, .footer-bottom a:hover { color: var(--accent); }
.footer-info .social { margin-top: 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-top: 26px; font-size: 12px; color: var(--muted); }
.footer-bottom p a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-logo { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
}
