:root {
    --bg: #f7f1e8;
    --bg-strong: #eadbc2;
    --surface: rgba(255, 250, 243, 0.92);
    --surface-strong: #fff7ee;
    --card: rgba(255, 255, 255, 0.78);
    --card-strong: #ffffff;
    --text: #173042;
    --muted: #5f6d77;
    --line: rgba(23, 48, 66, 0.12);
    --accent: #d56f37;
    --accent-strong: #b85521;
    --accent-soft: rgba(213, 111, 55, 0.14);
    --secondary: #2f6b73;
    --secondary-soft: rgba(47, 107, 115, 0.14);
    --success: #3d7b55;
    --shadow-lg: 0 30px 80px rgba(23, 48, 66, 0.16);
    --shadow-md: 0 18px 40px rgba(23, 48, 66, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1180px;
    --nav-height: 92px;
}

body.theme-dark {
    --bg: #14181d;
    --bg-strong: #1b222b;
    --surface: rgba(18, 23, 29, 0.96);
    --surface-strong: #182028;
    --card: #202831;
    --card-strong: #25303a;
    --text: #f2ede3;
    --muted: #c7cdd3;
    --line: rgba(255, 255, 255, 0.14);
    --accent: #ef8f4e;
    --accent-strong: #ff9f61;
    --accent-soft: rgba(239, 143, 78, 0.14);
    --secondary: #8ec7d0;
    --secondary-soft: rgba(142, 199, 208, 0.14);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.34);
    --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.28);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(213, 111, 55, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(47, 107, 115, 0.18), transparent 26%),
        linear-gradient(180deg, #f2e7d8 0%, #f7f1e8 18%, #f7f1e8 100%);
    font: 400 1rem/1.7 "Plus Jakarta Sans", sans-serif;
}

body.theme-dark {
    background:
        radial-gradient(circle at top left, rgba(239, 143, 78, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(142, 199, 208, 0.12), transparent 26%),
        linear-gradient(180deg, #0f1318 0%, #14181d 24%, #14181d 100%);
}

body.theme-dark .page-shell::before {
    background: rgba(239, 143, 78, 0.09);
}

body.theme-dark .page-shell::after {
    background: rgba(142, 199, 208, 0.08);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

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

.page-shell {
    position: relative;
    overflow: hidden;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(12px);
    opacity: 0.65;
}

.page-shell::before {
    top: 120px;
    left: -160px;
    width: 340px;
    height: 340px;
    background: rgba(213, 111, 55, 0.12);
}

.page-shell::after {
    right: -140px;
    bottom: 10%;
    width: 300px;
    height: 300px;
    background: rgba(47, 107, 115, 0.14);
}

.container {
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
}

.section {
    padding: 5.5rem 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 900px;
}

.section-sm {
    padding: 4rem 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 760px;
}

.section-header {
    max-width: 720px;
    margin-bottom: 2.75rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--secondary);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 2.8rem;
    height: 1px;
    background: currentColor;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 1rem;
    color: var(--text);
    font-family: "Sora", sans-serif;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.85rem, 7vw, 5.6rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.lead {
    font-size: 1.12rem;
    line-height: 1.85;
}

.muted {
    color: var(--muted);
}

.page-top {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 1.2rem);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: 0.25s ease;
}

.site-header.scrolled .nav-shell {
    background: rgba(255, 248, 238, 0.9);
    box-shadow: 0 18px 50px rgba(23, 48, 66, 0.14);
}

body.theme-dark .site-header.scrolled .nav-shell {
    background: rgba(22, 27, 33, 0.94);
}

body.theme-dark .nav-shell {
    background: rgba(18, 23, 29, 0.88);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(calc(100% - 1rem), 1320px);
    margin: 1rem auto 0;
    padding: 0.9rem 1rem 0.9rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: rgba(255, 248, 238, 0.68);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(23, 48, 66, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 0 0 auto;
}

.brand img {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.brand-copy {
    display: grid;
    gap: 0.1rem;
}

.brand-name {
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-tagline {
    font-size: 0.78rem;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    color: var(--text);
    background: rgba(23, 48, 66, 0.08);
}

.nav-toggle i {
    font-size: 1rem;
    line-height: 1;
    transform: translateY(1px);
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
}

.nav-links,
.nav-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.nav-link,
.nav-utility {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 0.85rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--text);
    transition: 0.2s ease;
}

.theme-toggle::after {
    content: "";
    display: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.78);
}

body.theme-dark .theme-toggle {
    background: rgba(255, 255, 255, 0.06);
}

body.theme-dark .nav-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.nav-link:hover,
.nav-link.is-active,
.nav-utility:hover,
.nav-utility.is-active {
    color: var(--text);
    background: rgba(23, 48, 66, 0.06);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 3rem;
    padding: 0 1.15rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff7f0;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(213, 111, 55, 0.28);
    transition: 0.2s ease;
}

.nav-cta:hover,
.button-primary:hover {
    transform: translateY(-1px);
    background: var(--accent-strong);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.button-primary,
.button-secondary,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.35rem;
    padding: 0 1.45rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.2s ease;
}

.maintenance-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 2rem 1rem;
}

.maintenance-card {
    width: min(100%, 560px);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(14px);
}

.maintenance-card h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.maintenance-card .brand {
    margin-bottom: 1.5rem;
}

.maintenance-field {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.maintenance-field label {
    font-weight: 700;
}

.maintenance-field input {
    width: 100%;
    min-height: 3.4rem;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text);
}

.maintenance-field input:focus {
    outline: 2px solid rgba(217, 111, 49, 0.24);
    outline-offset: 2px;
}

.maintenance-error {
    margin-top: 0.9rem;
    color: #b43333;
    font-weight: 600;
}

body.theme-dark .maintenance-field input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.button-primary {
    background: var(--accent);
    color: #fff7f0;
    box-shadow: 0 16px 35px rgba(213, 111, 55, 0.24);
}

.button-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
    color: var(--text);
}

.button-secondary:hover,
.button-ghost:hover {
    border-color: rgba(23, 48, 66, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

.button-ghost {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    color: var(--secondary);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 2rem;
    align-items: center;
    min-height: calc(100vh - 9rem);
    padding: 2rem 0 4rem;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.3rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--secondary);
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(23, 48, 66, 0.06);
}

.compact-title {
    max-width: 10ch;
}

.hero-kicker i {
    color: var(--accent);
}

.hero-title {
    max-width: 12ch;
    margin-bottom: 1.25rem;
}

.hero-summary {
    max-width: 60ch;
    margin-bottom: 2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.4rem;
}

.stat-card {
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 30px rgba(23, 48, 66, 0.07);
}

.stat-value {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text);
    font-family: "Sora", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    display: grid;
    gap: 1.1rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 248, 238, 0.92));
    box-shadow: var(--shadow-lg);
}

body.theme-dark .hero-card,
body.theme-dark .page-hero-visual,
body.theme-dark .events-highlight,
body.theme-dark .footer-grid,
body.theme-dark .stat-card,
body.theme-dark .theme-toggle,
body.theme-dark .floating-badge,
body.theme-dark .hero-mini-card,
body.theme-dark .showcase-note {
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .content-card,
body.theme-dark .feature-card,
body.theme-dark .info-card,
body.theme-dark .timeline-card,
body.theme-dark .legal-card,
body.theme-dark .member-card,
body.theme-dark .partner-card,
body.theme-dark .event-card,
body.theme-dark .cta-card,
body.theme-dark .embed-card,
body.theme-dark .stat-card,
body.theme-dark .footer-grid,
body.theme-dark .events-highlight,
body.theme-dark .page-hero-visual,
body.theme-dark .hero-card,
body.theme-dark .showcase,
body.theme-dark .hero-mini-card,
body.theme-dark .floating-badge,
body.theme-dark .showcase-note,
body.theme-dark .embed-frame {
    background: var(--card);
    color: var(--text);
}

body.theme-dark .showcase {
    background: linear-gradient(180deg, rgba(239, 143, 78, 0.08), rgba(142, 199, 208, 0.06));
}

body.theme-dark .hero-kicker {
    background: rgba(37, 48, 58, 0.96);
    color: var(--secondary);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

body.theme-dark .events-highlight {
    background: linear-gradient(90deg, rgba(239, 143, 78, 0.10), rgba(37, 48, 58, 0.96));
}

body.theme-dark .floating-panel,
body.theme-dark .quote-panel,
body.theme-dark .cta-card.is-accent {
    background: linear-gradient(180deg, rgba(17, 21, 26, 0.96), rgba(34, 42, 50, 0.96));
}

body.theme-dark .button-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark .button-secondary:hover,
body.theme-dark .theme-toggle:hover,
body.theme-dark .nav-link:hover,
body.theme-dark .nav-link.is-active {
    background: rgba(255, 255, 255, 0.08);
}

body.theme-dark .nav-link,
body.theme-dark .nav-utility,
body.theme-dark .brand-tagline,
body.theme-dark .stat-label,
body.theme-dark .footer-links a,
body.theme-dark .social-links a,
body.theme-dark .copyright-shell,
body.theme-dark p {
    color: var(--muted);
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3,
body.theme-dark h4,
body.theme-dark h5,
body.theme-dark h6,
body.theme-dark .brand-name,
body.theme-dark .stat-value,
body.theme-dark .footer-title,
body.theme-dark strong,
body.theme-dark .theme-toggle,
body.theme-dark .nav-cta {
    color: var(--text);
}

body.theme-dark .nav-cta,
body.theme-dark .button-primary {
    color: #fff7f0;
}

body.theme-dark .page-hero-visual img,
body.theme-dark .hero-card.main-visual img,
body.theme-dark .showcase img {
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

body.theme-dark .partner-card img {
    filter: brightness(0.92) contrast(1.02);
}

.hero-card.main-visual {
    padding: 1.35rem;
}

.hero-card.main-visual img {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
}

.floating-panel {
    position: absolute;
    right: -1.25rem;
    bottom: 1.25rem;
    display: grid;
    gap: 0.4rem;
    max-width: 260px;
    padding: 1.1rem 1.2rem;
    border-radius: 24px;
    background: rgba(23, 48, 66, 0.9);
    color: #fffaf4;
    box-shadow: 0 24px 45px rgba(23, 48, 66, 0.24);
}

.floating-panel strong {
    font-size: 0.96rem;
}

.floating-panel span {
    color: rgba(255, 250, 244, 0.76);
    font-size: 0.86rem;
}

.floating-badge {
    position: absolute;
    top: -1rem;
    left: -1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 250, 243, 0.92);
    box-shadow: 0 18px 35px rgba(23, 48, 66, 0.14);
}

.floating-badge i {
    color: var(--accent);
    font-size: 1.15rem;
}

.floating-badge strong {
    display: block;
    font-size: 0.9rem;
}

.floating-badge span {
    color: var(--muted);
    font-size: 0.78rem;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: center;
}

.content-card,
.feature-card,
.info-card,
.timeline-card,
.legal-card,
.member-card,
.partner-card,
.event-card,
.cta-card,
.embed-card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.content-card {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.content-card + .content-card {
    margin-top: 1rem;
}

.quote-panel {
    position: relative;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(23, 48, 66, 0.96), rgba(47, 107, 115, 0.94));
    color: #fffaf4;
    box-shadow: var(--shadow-lg);
}

.quote-panel::before {
    content: "\201C";
    position: absolute;
    top: 1rem;
    right: 1.4rem;
    color: rgba(255, 250, 244, 0.14);
    font-family: "Sora", sans-serif;
    font-size: 5rem;
    line-height: 1;
}

.quote-panel p,
.quote-panel strong {
    color: inherit;
}

.quote-panel p {
    margin-bottom: 1.4rem;
}

.feature-grid,
.card-grid,
.partners-grid,
.members-grid,
.events-grid,
.legal-grid {
    display: grid;
    gap: 1.25rem;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.info-card,
.timeline-card,
.partner-card,
.event-card,
.member-card,
.legal-card,
.cta-card,
.embed-card {
    overflow: hidden;
}

.feature-card,
.info-card,
.timeline-card,
.legal-card,
.cta-card,
.embed-card {
    padding: 1.5rem;
}

.feature-icon,
.member-icon,
.icon-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    height: 3.15rem;
    border-radius: 18px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.05rem;
}

.feature-card h3,
.info-card h3,
.timeline-card h3,
.legal-card h3,
.member-card h3,
.partner-card h3,
.event-card h3,
.cta-card h3 {
    margin-top: 1rem;
    margin-bottom: 0.7rem;
}

.info-list,
.check-list,
.meta-list {
    display: grid;
    gap: 0.85rem;
    padding: 0;
    margin: 1.4rem 0 0;
    list-style: none;
}

.check-list li,
.meta-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--muted);
}

.check-list i,
.meta-list i {
    margin-top: 0.25rem;
    color: var(--accent);
}

.showcase {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(213, 111, 55, 0.18), rgba(47, 107, 115, 0.12));
}

.showcase img {
    width: 100%;
    border-radius: 22px;
    box-shadow: 0 24px 50px rgba(23, 48, 66, 0.18);
}

.showcase-note {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 12px 22px rgba(23, 48, 66, 0.1);
}

.stats-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stats-band .stat-card {
    padding: 1.5rem;
}

.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1rem;
}

.cta-card {
    min-height: 100%;
}

.cta-card.is-accent {
    background: linear-gradient(180deg, rgba(23, 48, 66, 0.95), rgba(213, 111, 55, 0.9));
}

.cta-card.is-accent h3,
.cta-card.is-accent p,
.cta-card.is-accent li,
.cta-card.is-accent a {
    color: #fffaf4;
}

.cta-card.is-accent .button-secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #fffaf4;
}

.page-hero {
    padding: 2rem 0 4.2rem;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 2rem;
    align-items: center;
}

.page-hero-copy {
    padding-right: 1rem;
}

.page-hero-copy h1 {
    max-width: 10ch;
    margin-bottom: 1rem;
}

.page-hero-visual {
    position: relative;
    padding: 1.25rem;
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 248, 238, 0.92));
    box-shadow: var(--shadow-lg);
}

.page-hero-visual img {
    width: 100%;
    border-radius: 26px;
}

.hero-mini-card {
    position: absolute;
    left: -1rem;
    bottom: 1rem;
    max-width: 240px;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    background: rgba(255, 250, 243, 0.95);
    box-shadow: 0 18px 36px rgba(23, 48, 66, 0.18);
}

.hero-mini-card span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.events-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card {
    display: flex;
    flex-direction: column;
}

.event-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-thumb img {
    transform: scale(1.04);
}

.event-body {
    display: grid;
    gap: 0.9rem;
    padding: 1.35rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(23, 48, 66, 0.06);
    color: var(--secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.events-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.4rem;
    padding: 1.35rem;
    border: 1px solid rgba(213, 111, 55, 0.16);
    border-radius: 24px;
    background: linear-gradient(90deg, rgba(213, 111, 55, 0.12), rgba(255, 255, 255, 0.72));
}

.events-highlight img {
    width: 112px;
    height: 112px;
    border-radius: 20px;
    object-fit: cover;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.7rem;
}

.gallery-strip img {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    object-fit: cover;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    padding: 1.5rem;
    background: rgba(10, 21, 29, 0.72);
    backdrop-filter: blur(10px);
}

.modal.is-open {
    display: grid;
    place-items: center;
}

.modal-dialog {
    position: relative;
    width: min(100%, 1080px);
    max-height: calc(100vh - 3rem);
    overflow: auto;
    padding: 1.5rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(248, 242, 233, 0.98));
    box-shadow: 0 32px 80px rgba(10, 21, 29, 0.28);
}

.modal-close {
    position: sticky;
    top: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: right;
    width: 3rem;
    height: 3rem;
    margin-left: auto;
    border-radius: 999px;
    background: rgba(23, 48, 66, 0.08);
    color: var(--text);
}

.modal-copy {
    padding-top: 0.5rem;
}

.modal-copy .button-row {
    margin: 1.3rem 0 1.7rem;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.modal-grid img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.partner-card {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 1.5rem;
}

.partner-card img {
    max-width: 100%;
    max-height: 108px;
    object-fit: contain;
    filter: saturate(0.95);
}

.button-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.35rem;
    padding: 0 1.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: not-allowed;
    opacity: 0.92;
}

body.theme-dark .button-disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--muted);
}

.gallery-placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border: 1px dashed var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.35);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

body.theme-dark .gallery-placeholder {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.members-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-card {
    padding: 1.6rem;
    text-align: center;
}

.member-card img {
    width: 128px;
    height: 128px;
    margin: 0 auto 1.1rem;
    border: 6px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 16px 30px rgba(23, 48, 66, 0.15);
}

.member-role {
    color: var(--secondary);
    font-size: 0.92rem;
    font-weight: 700;
}

.member-group {
    margin-top: 2.5rem;
}

.member-group:first-child {
    margin-top: 0;
}

.member-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.member-group-header p {
    margin: 0;
}

.embed-card {
    overflow: hidden;
    padding: 0;
}

.embed-copy {
    padding: 1.5rem 1.5rem 0;
}

.embed-frame {
    width: 100%;
    min-height: 1800px;
    border: 0;
    background: #ffffff;
}

.legal-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 110px;
}

.legal-nav {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    color: var(--muted);
    font-weight: 600;
    transition: 0.2s ease;
}

.legal-nav a:hover {
    background: rgba(23, 48, 66, 0.06);
    color: var(--text);
}

.legal-card + .legal-card {
    margin-top: 1rem;
}

.footer {
    padding: 2rem 0 2.5rem;
    content-visibility: auto;
    contain-intrinsic-size: 1px 280px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.7fr));
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    background: rgba(255, 251, 246, 0.76);
    box-shadow: 0 18px 45px rgba(23, 48, 66, 0.08);
}

.footer-brand img {
    width: 56px;
    margin-bottom: 0.85rem;
}

.footer-title {
    margin-bottom: 0.7rem;
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.footer-links,
.social-links {
    display: grid;
    gap: 0.7rem;
}

.footer-links a,
.social-links a {
    color: var(--muted);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links i {
    color: var(--accent);
}

.copyright {
    padding: 1rem 0 3rem;
}

.copyright-shell {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero,
    .split-layout,
    .page-hero-grid,
    .cta-band,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .brand-tagline {
        display: none;
    }

    .brand img {
        width: 76px;
        height: 76px;
    }

    .feature-grid,
    .events-grid,
    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .members-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-title,
    .page-hero-copy h1 {
        max-width: none;
    }

    .legal-sidebar {
        position: static;
    }
}

@media (max-width: 860px) {
    :root {
        --nav-height: 84px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 28px;
        background: rgba(255, 248, 238, 0.96);
        box-shadow: 0 24px 60px rgba(23, 48, 66, 0.16);
    }

    body.theme-dark .nav-panel {
        background: rgba(18, 23, 29, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
    }

    .site-header.menu-open .nav-panel {
        display: flex;
    }

    .nav-links,
    .nav-meta {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
    }

    .nav-link,
    .nav-utility,
    .nav-cta,
    .theme-toggle {
        justify-content: flex-start;
        width: 100%;
    }

    body.theme-dark .nav-link,
    body.theme-dark .nav-utility {
        color: var(--text);
    }

    body.theme-dark .nav-link:hover,
    body.theme-dark .nav-link.is-active,
    body.theme-dark .nav-utility:hover,
    body.theme-dark .theme-toggle {
        background: rgba(255, 255, 255, 0.08);
    }

    .theme-toggle {
        height: 3rem;
        padding: 0 1rem;
    }

    .theme-toggle::after {
        display: inline;
        content: "Alternar tema";
    }

    .events-highlight {
        grid-template-columns: 1fr;
    }

    .gallery-strip,
    .modal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .section,
    .section-sm {
        padding: 3.8rem 0;
    }

    .nav-shell {
        width: min(calc(100% - 0.8rem), 1240px);
        padding-left: 1rem;
    }

    .brand-tagline {
        display: none;
    }

    .brand img {
        width: 70px;
        height: 70px;
    }

    .hero,
    .page-hero {
        padding-bottom: 2.8rem;
    }

    .hero-stats,
    .stats-band,
    .feature-grid,
    .card-grid,
    .events-grid,
    .partners-grid,
    .members-grid {
        grid-template-columns: 1fr;
    }

    .floating-panel,
    .hero-mini-card,
    .floating-badge {
        position: static;
        max-width: none;
        margin-top: 1rem;
    }

    .modal {
        padding: 0.8rem;
    }

    .modal-dialog {
        padding: 1rem;
        border-radius: 22px;
    }

    .button-row,
    .event-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .button-primary,
    .button-secondary,
    .button-ghost {
        width: 100%;
    }

    .embed-copy {
        padding: 1.25rem 1.25rem 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
