/* ===== PUBLIC.CSS — IMGD REDESIGN (Mobile-First) ===== */
/* Aesthetic direction: Sacred Editorial                   */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=Space+Mono:wght@400;700&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    --gold-800: #92400e;
    --gold-900: #78350f;

    --ink-950: #0a0805;
    --ink-900: #111008;
    --ink-800: #1c1a12;
    --ink-700: #2d2a1e;
    --ink-600: #4a4535;
    --ink-500: #6b6350;
    --ink-400: #9c9280;
    --ink-300: #c4bdb0;
    --ink-200: #e0dbd3;
    --ink-100: #f0ece6;
    --ink-50: #f8f6f2;

    --font-display: 'Cormorant Garamond', 'Georgia', serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    /* Mobile-first spacing — smaller base, grows with screen */
    --section-pad-y: clamp(3rem, 7vw, 8rem);
    --container-px: clamp(1rem, 5vw, 1.5rem);
    --card-pad: clamp(1rem, 4vw, 1.5rem);
    --container-max: 1280px;

    --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);
    --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 200ms;
    --dur-med: 400ms;
    --dur-slow: 700ms;

    --shadow-sm: 0 1px 3px rgba(10, 8, 5, .08), 0 1px 2px rgba(10, 8, 5, .06);
    --shadow-md: 0 4px 20px rgba(10, 8, 5, .10), 0 2px 8px rgba(10, 8, 5, .06);
    --shadow-lg: 0 20px 60px rgba(10, 8, 5, .15), 0 8px 24px rgba(10, 8, 5, .10);
    --shadow-xl: 0 40px 80px rgba(10, 8, 5, .20), 0 16px 40px rgba(10, 8, 5, .12);
    --shadow-gold: 0 8px 32px rgba(245, 158, 11, .25);

    /* Touch-friendly minimum target size (WCAG 2.5.8) */
    --touch-min: 44px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--ink-50);
    color: var(--ink-800);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent rubber-band on iOS when nav is open */
    overscroll-behavior-y: none;
}

body:has(#fullscreen-nav:not([style*="display: none"])) {
    overflow: hidden;
}

body:has(#sidebar-menu[x-show="true"]) {
    overflow: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: 1.1;
}

h4,
h5,
h6 {
    font-family: var(--font-body);
}

/* Base font size bumped slightly on mobile for readability */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(28px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lineDraw {
    from {
        transform: scaleX(0);
        transform-origin: left;
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes pulseGold {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(245, 158, 11, .15);
    }
}

@keyframes floatSoft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-12deg);
    }

    100% {
        transform: translateX(200%) skewX(-12deg);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-15px, 20px) scale(.97);
    }
}

/* ===== UTILITIES ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[x-cloak] {
    display: none !important;
}

.animate-fade-up {
    animation: fadeUp var(--dur-slow) var(--ease-expo) both;
}

.animate-fade-left {
    animation: fadeLeft var(--dur-slow) var(--ease-expo) both;
}

.animate-fade-right {
    animation: fadeRight var(--dur-slow) var(--ease-expo) both;
}

.animate-scale-in {
    animation: scaleIn var(--dur-slow) var(--ease-expo) both;
}

.animate-fade-in-up,
.fadeInUp {
    animation: fadeUp .8s var(--ease-expo) both;
    opacity: 0;
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.animation-delay-100 {
    animation-delay: 100ms;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

.cursor-blink {
    animation: cursorBlink .7s ease infinite;
}

.animate-float {
    animation: floatSoft 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulseGold 3s ease-in-out infinite;
}

.animate-bounce {
    animation: floatSoft 2s ease-in-out infinite;
}

.animate-shimmer {
    animation: shimmer 2.5s ease-in-out infinite;
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
}

.animate-pulse {
    animation: pulseGold 2s ease infinite;
}

.scroll-reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease-expo), transform .6s var(--ease-expo);
}

.scroll-reveal-item.revealed {
    opacity: 1;
    transform: none;
}

/* ===== SECTION TYPOGRAPHY ===== */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: .85rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--gold-500);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    color: var(--ink-900);
}

.section-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
    margin: 1.25rem auto;
    animation: lineDraw .8s var(--ease-expo) both;
}

/* ===== GLOBAL TOUCH TARGETS ===== */
/* Every interactive element gets at least 44×44px tap area */
a,
button,
[role="button"],
input,
select,
textarea,
label[for] {
    -webkit-tap-highlight-color: transparent;
}

a,
button,
[role="button"] {
    min-height: var(--touch-min);
    display: inline-flex;
    align-items: center;
}

/* Exceptions: decorative / structural elements */
.section-eyebrow,
.breadcrumb-sep,
.nav-num {
    min-height: unset;
    display: unset;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

#main-nav {
    backdrop-filter: blur(0);
    background: transparent;
    transition: background var(--dur-med) ease,
        backdrop-filter var(--dur-med) ease,
        box-shadow var(--dur-med) ease;
}


.header-logo {
    transition: all var(--dur-med) var(--ease-expo);
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Sidebar legacy */
#sidebar-menu {
    background: var(--ink-950);
    border-left: 1px solid rgba(245, 158, 11, .15);
}

#sidebar-menu::-webkit-scrollbar {
    width: 3px;
}

#sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar-menu::-webkit-scrollbar-thumb {
    background: var(--gold-600);
    border-radius: 2px;
}

#sidebar-menu a,
#sidebar-menu button {
    color: var(--ink-200);
    font-family: var(--font-body);
}

#sidebar-menu .menu-item-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid rgba(245, 158, 11, .2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(245, 158, 11, .05);
    transition: all var(--dur-med) ease;
}

#sidebar-menu a:hover .menu-item-icon,
#sidebar-menu button:hover .menu-item-icon {
    background: rgba(245, 158, 11, .15);
    border-color: rgba(245, 158, 11, .4);
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    height: 100svh;
    overflow: hidden;
    background: var(--ink-950);
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slightly less zoom on mobile (perf + layout) */
    transform: scale(1.04);
    transition: transform 8s var(--ease-expo);
    filter: brightness(.55) saturate(.8);
}

.hero-section:hover .hero-bg-img {
    transform: scale(1.01);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(10, 8, 5, .92) 0%, rgba(10, 8, 5, .35) 50%, rgba(10, 8, 5, .12) 100%),
        linear-gradient(to right, rgba(10, 8, 5, .55) 0%, transparent 65%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Generous padding on mobile, larger on desktop */
    padding:
        clamp(1.25rem, 5vw, 5rem) clamp(1.25rem, 5vw, 5rem) clamp(3.5rem, 8vw, 6rem);
}

.hero-label {
    font-family: var(--font-mono);
    font-size: .65rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: fadeLeft 1s var(--ease-expo) .3s both;
}

.hero-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold-500);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 6.5rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    animation: fadeUp 1s var(--ease-expo) .5s both;
}

.hero-title span {
    color: var(--gold-400);
    font-style: italic;
}

#typewriter-text {
    color: var(--gold-300);
}

#typewriter-cursor {
    display: inline-block;
    color: var(--gold-400);
    font-weight: 300;
    animation: cursorBlink .7s ease infinite;
    margin-left: 2px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    color: rgba(255, 255, 255, .35);
    font-family: var(--font-mono);
    font-size: .6rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    animation: fadeUp 1s var(--ease-expo) 1.2s both;
    /* Not interactive — reset touch target */
    min-height: unset;
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .4), transparent);
    animation: floatSoft 2s ease-in-out infinite;
}

/* ===== SOBRE / CARDS ===== */
.sobre-section {
    padding: var(--section-pad-y) 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.sobre-section::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--gold-100) 0%, transparent 70%);
    pointer-events: none;
}

.card-sobre {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    overflow: hidden;
    transition: all var(--dur-med) var(--ease-expo);
    box-shadow: var(--shadow-sm);
}

/* Disable translate hover on touch — reduces accidental state on scroll */
@media (hover:hover) {
    .card-sobre:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
        border-color: var(--gold-300);
    }
}

.card-sobre .card-img-wrap {
    position: relative;
    overflow: hidden;
    height: clamp(160px, 30vw, 200px);
}

.card-sobre .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-expo);
}

@media (hover:hover) {
    .card-sobre:hover .card-img-wrap img {
        transform: scale(1.06);
    }
}

.card-sobre .card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(10, 8, 5, .28) 100%);
}

.card-sobre .card-body {
    padding: var(--card-pad);
}

.card-sobre h3 {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 4vw, 1.6rem);
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: .65rem;
}

.card-sobre p {
    font-size: .875rem;
    line-height: 1.7;
    color: var(--ink-500);
}

.card-sobre .card-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-family: var(--font-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-700);
    margin-top: 1.1rem;
    transition: gap var(--dur-fast) ease;
    /* Touch target */
    min-height: 40px;
}

.card-sobre .card-link:hover {
    gap: .75rem;
}

/* ===== COUNTDOWN ===== */
.countdown-section {
    background: var(--ink-950);
    padding: var(--section-pad-y) 0;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(600px, 100vw);
    height: min(600px, 100vw);
    background: radial-gradient(circle, rgba(245, 158, 11, .08) 0%, transparent 70%);
    pointer-events: none;
}

.countdown-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: orbFloat 12s ease-in-out infinite;
}

.countdown-card {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(245, 158, 11, .15);
    border-radius: 18px;
    padding: clamp(1.25rem, 4vw, 3rem);
    backdrop-filter: blur(10px);
}

.countdown-unit-wrap {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(245, 158, 11, .12);
    border-radius: 10px;
    padding: clamp(1rem, 3vw, 1.5rem) .75rem;
    transition: all var(--dur-med) ease;
    cursor: default;
    text-align: center;
}

@media (hover:hover) {
    .countdown-unit-wrap:hover {
        background: rgba(245, 158, 11, .08);
        border-color: rgba(245, 158, 11, .35);
        transform: translateY(-2px);
    }
}

#compact-days,
#compact-hours,
#compact-minutes,
#compact-seconds {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 7vw, 4rem);
    font-weight: 700;
    color: var(--gold-300);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-shadow: 0 0 30px rgba(245, 158, 11, .3);
    transition: all .3s var(--ease-expo);
}

.countdown-unit-label {
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-top: .4rem;
}

/* ===== CONTENT CARDS (sermões, publicações, eventos) ===== */
.content-section {
    padding: var(--section-pad-y) 0;
    background: var(--ink-50);
}

.content-section.dark {
    background: var(--ink-900);
}

.content-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all var(--dur-med) var(--ease-expo);
    box-shadow: var(--shadow-sm);
}

@media (hover:hover) {
    .content-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-xl);
        border-color: var(--gold-300);
    }
}

.content-card-img {
    position: relative;
    /* Slightly shorter image on mobile */
    height: clamp(180px, 40vw, 220px);
    overflow: hidden;
    flex-shrink: 0;
}

.content-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-expo);
}

@media (hover:hover) {
    .content-card:hover .content-card-img img {
        transform: scale(1.07);
    }
}

.content-card-img .img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 5, .5) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--dur-med) ease;
}

@media (hover:hover) {
    .content-card:hover .img-overlay {
        opacity: 1;
    }
}

.content-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-700), var(--gold-500));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    padding: 1.25rem;
    text-align: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    border-radius: 100px;
    font-size: .62rem;
    font-family: var(--font-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.badge-audio {
    background: rgba(59, 130, 246, .85);
    color: #fff;
}

.badge-video {
    background: rgba(239, 68, 68, .85);
    color: #fff;
}

.badge-pdf {
    background: rgba(139, 92, 246, .85);
    color: #fff;
}

.date-chip {
    background: rgba(255, 255, 255, .95);
    border-radius: 8px;
    padding: .5rem .7rem;
    text-align: center;
    min-width: 46px;
    box-shadow: var(--shadow-md);
}

.date-chip-day {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-600);
    line-height: 1;
}

.date-chip-month {
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-600);
    margin-top: 1px;
}

.content-card-body {
    padding: var(--card-pad);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    font-weight: 600;
    color: var(--ink-900);
    line-height: 1.3;
    transition: color var(--dur-fast) ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (hover:hover) {
    .content-card:hover .content-card-title {
        color: var(--gold-700);
    }
}

.content-card-desc {
    font-size: .85rem;
    line-height: 1.6;
    color: var(--ink-500);
    margin-top: .4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    color: var(--ink-500);
    padding: .35rem 0;
}

.meta-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: var(--gold-50);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-icon i {
    font-size: .65rem;
    color: var(--gold-600);
}

.card-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Taller tap target on mobile */
    padding: clamp(.75rem, 2vw, .85rem) 1rem;
    background: linear-gradient(to right, var(--gold-50), var(--gold-100));
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: .85rem;
    font-weight: 600;
    color: var(--gold-800);
    text-decoration: none;
    transition: all var(--dur-fast) ease;
    margin-top: auto;
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .card-cta:hover {
        background: linear-gradient(to right, var(--gold-100), var(--gold-200));
    }
}

.card-cta .cta-arrow {
    width: 28px;
    height: 28px;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--dur-fast) var(--ease-back);
}

@media (hover:hover) {
    .card-cta:hover .cta-arrow {
        transform: translateX(3px);
    }
}

.card-divider {
    height: 1px;
    background: var(--ink-100);
    margin: .85rem 0;
}

/* ===== APOSTOLO ===== */
.apostolo-section {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.apostolo-img-side {
    position: relative;
}

.apostolo-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.apostolo-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 8, 5, .85) 0%, transparent 60%);
    padding: 1.5rem;
}

.apostolo-info-tag {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-300);
    background: rgba(10, 8, 5, .6);
    border: 1px solid rgba(245, 158, 11, .3);
    border-radius: 100px;
    padding: .3rem .8rem;
    backdrop-filter: blur(8px);
    margin-bottom: .4rem;
}

.apostolo-content-side {
    padding: clamp(1.5rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apostolo-quote {
    position: relative;
    border-left: 3px solid var(--gold-500);
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    background: var(--gold-50);
    border-radius: 0 10px 10px 0;
}

.apostolo-quote::before {
    content: '"';
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--gold-300);
    position: absolute;
    top: -.75rem;
    left: .65rem;
    line-height: 1;
}

.apostolo-quote p {
    font-family: var(--font-display);
    font-size: 1rem;
    font-style: italic;
    color: var(--gold-900);
    line-height: 1.5;
    padding-left: .4rem;
}

.apostolo-milestone {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .8rem 1rem;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: 9px;
    transition: all var(--dur-fast) ease;
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .apostolo-milestone:hover {
        border-color: var(--gold-300);
        background: var(--gold-50);
    }
}

.milestone-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: var(--gold-100);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.milestone-icon i {
    color: var(--gold-700);
    font-size: .8rem;
}

.milestone-text {
    font-size: .85rem;
    color: var(--ink-700);
}

.milestone-text strong {
    color: var(--ink-900);
}

/* ===== AÇÃO SOCIAL ===== */
.acao-section {
    position: relative;
    overflow: hidden;
}

.acao-overlay-text {
    text-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.acao-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    border: 1.5px solid rgba(255, 255, 255, .6);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    /* Smaller on mobile */
    font-size: clamp(.85rem, 3vw, .95rem);
    letter-spacing: .03em;
    padding: clamp(.75rem, 3vw, 1rem) clamp(1.25rem, 4vw, 2rem);
    border-radius: 100px;
    transition: all var(--dur-med) var(--ease-expo);
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, .05);
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .acao-cta-btn:hover {
        background: var(--gold-500);
        border-color: var(--gold-500);
        color: var(--ink-950);
        transform: translateY(-2px);
        box-shadow: var(--shadow-gold);
    }
}

/* ===== CONTACTO ===== */
.contacto-section {
    padding: var(--section-pad-y) 0;
    background: var(--ink-50);
}

.contacto-form-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contacto-form-header {
    background: linear-gradient(135deg, var(--gold-800), var(--gold-600));
    padding: 1.25rem 1.5rem;
}

.contacto-form-header h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 600;
    color: #fff;
}

.form-field-wrap {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.form-label {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--ink-600);
    display: flex;
    align-items: center;
    gap: .25rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    /* Taller on mobile — easier to tap */
    padding: clamp(.8rem, 3vw, .85rem) 1rem;
    font-family: var(--font-body);
    font-size: clamp(.9rem, 3.5vw, .95rem);
    /* Prevent iOS zoom on focus (font-size ≥ 16px) */
    font-size: max(.9rem, 16px);
    color: var(--ink-800);
    background: var(--ink-50);
    border: 1.5px solid var(--ink-200);
    border-radius: 9px;
    outline: none;
    transition: all var(--dur-fast) ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .12);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

.form-error {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: #ef4444;
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    flex: 1;
    padding: .9rem 1.5rem;
    background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all var(--dur-fast) var(--ease-back);
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .btn-submit:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: var(--shadow-gold);
    }
}

.btn-submit:disabled {
    background: var(--ink-300);
    cursor: not-allowed;
}

.btn-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .9rem 1.25rem;
    background: transparent;
    color: var(--ink-600);
    font-family: var(--font-body);
    font-size: .875rem;
    border: 1.5px solid var(--ink-200);
    border-radius: 9px;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .btn-reset:hover {
        border-color: var(--ink-400);
        color: var(--ink-800);
    }
}

.contacto-info-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 18px;
    padding: clamp(1.25rem, 4vw, 2rem);
    height: 100%;
    box-shadow: var(--shadow-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--ink-100);
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-icon-wrap {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--gold-50);
    border: 1px solid var(--gold-200);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-wrap i {
    color: var(--gold-700);
    font-size: .8rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .95rem;
    transition: all var(--dur-fast) var(--ease-back);
}

@media (hover:hover) {
    .social-btn:hover {
        transform: translateY(-3px) scale(1.05);
    }
}

.social-btn-fb {
    background: #1877f2;
}

.social-btn-yt {
    background: #ff0000;
}

.social-btn-ig {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

/* ===== MAP ===== */
.map-wrap {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--ink-200);
    height: clamp(280px, 55vw, 420px);
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ===== SOCIAL BAR ===== */
.social-bar {
    background: var(--ink-950);
    padding: clamp(1.75rem, 4vw, 2.5rem) 0;
    position: relative;
    overflow: hidden;
}

.social-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .04), transparent);
}

.social-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: clamp(.75rem, 2vw, .85rem) clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 9px;
    font-weight: 600;
    font-size: .875rem;
    color: #fff;
    transition: all var(--dur-med) var(--ease-back);
    border: 1px solid rgba(255, 255, 255, .1);
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .social-bar-btn:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    }
}

.social-bar-btn-fb {
    background: #1877f2;
}

.social-bar-btn-yt {
    background: #ff0000;
}

.social-bar-btn-ig {
    background: linear-gradient(135deg, #f58529, #dd2a7b);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--ink-950);
    color: var(--ink-300);
    font-size: .875rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-700), transparent);
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: .63rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 1.1rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--ink-400);
    padding: .4rem 0;
    font-size: .875rem;
    transition: color var(--dur-fast) ease;
    min-height: 40px;
}

.footer-link i {
    font-size: .5rem;
    color: var(--gold-700);
    transition: transform var(--dur-fast) ease;
}

@media (hover:hover) {
    .footer-link:hover {
        color: var(--gold-400);
    }

    .footer-link:hover i {
        transform: translateX(3px);
    }
}

.footer-bottom {
    background: rgba(0, 0, 0, .4);
    border-top: 1px solid rgba(255, 255, 255, .04);
    padding: 1.1rem 0;
}

.footer-bottom p {
    font-size: .8rem;
    color: var(--ink-500);
}

/* ===== BACK TO TOP ===== */
#back-to-top {
    position: fixed;
    /* More space from bottom on mobile (above potential navigation bars) */
    bottom: clamp(1rem, 4vw, 1.5rem);
    right: clamp(1rem, 4vw, 1.5rem);
    width: 44px;
    height: 44px;
    background: var(--gold-600);
    color: #fff;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: all var(--dur-med) var(--ease-expo);
    box-shadow: var(--shadow-gold);
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

@media (hover:hover) {
    #back-to-top:hover {
        background: var(--gold-700);
        transform: translateY(-2px);
    }
}

/* ===== SWIPER ===== */
.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, .35);
    opacity: 1;
    transition: all var(--dur-med) ease;
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
    background: var(--gold-400);
    width: 18px;
    border-radius: 3px;
}

.swiper-button-next,
.swiper-button-prev {
    width: 34px;
    height: 34px;
    background: rgba(10, 8, 5, .5);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .1);
    transition: all var(--dur-fast) ease;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 11px;
    color: #fff;
    font-weight: 700;
}

@media (hover:hover) {

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        background: rgba(245, 158, 11, .4);
        border-color: var(--gold-500);
    }
}

/* ===== CTA BUTTONS ===== */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: clamp(.85rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--ink-900);
    color: var(--gold-400);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    border: 1px solid var(--gold-800);
    border-radius: 9px;
    transition: all var(--dur-med) var(--ease-expo);
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .view-all-btn:hover {
        background: var(--gold-600);
        color: #fff;
        border-color: var(--gold-600);
        transform: translateY(-2px);
        box-shadow: var(--shadow-gold);
    }
}

.view-all-btn-light {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: clamp(.85rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2.5rem);
    background: transparent;
    color: var(--gold-700);
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    border: 1.5px solid var(--gold-400);
    border-radius: 9px;
    transition: all var(--dur-med) var(--ease-expo);
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .view-all-btn-light:hover {
        background: var(--gold-600);
        color: #fff;
        border-color: var(--gold-600);
        transform: translateY(-2px);
        box-shadow: var(--shadow-gold);
    }
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--ink-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-600);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-700);
}

/* ===== MODAL ===== */
.modal-enter {
    animation: scaleIn .3s var(--ease-expo);
}

/* ===== INNER PAGES ===== */
.page-hero {
    position: relative;
    padding: clamp(5rem, 12vw, 9rem) 0 clamp(2.5rem, 6vw, 5rem);
    overflow: hidden;
    background: var(--ink-950);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold-900) 0%, var(--ink-950) 60%);
    opacity: .9;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.3) saturate(.5);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.page-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .25);
    color: var(--gold-300);
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    margin-bottom: 1rem;
    min-height: unset;
}

.page-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 9vw, 6rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.05;
    margin-bottom: .9rem;
}

.page-hero-title em {
    color: var(--gold-300);
    font-style: italic;
}

.page-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(.95rem, 3vw, 1.1rem);
    color: rgba(255, 255, 255, .5);
    max-width: 38rem;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb-bar {
    background: #fff;
    border-bottom: 1px solid var(--ink-100);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 1px 0 var(--ink-100);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-family: var(--font-body);
    color: var(--ink-400);
    overflow: hidden;
}

.breadcrumb a {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: var(--ink-500);
    transition: color var(--dur-fast) ease;
    white-space: nowrap;
}

@media (hover:hover) {
    .breadcrumb a:hover {
        color: var(--gold-700);
    }
}

.breadcrumb-sep {
    color: var(--ink-300);
    font-size: .58rem;
    flex-shrink: 0;
}

.breadcrumb-current {
    color: var(--ink-800);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Flash */
.flash-card {
    border-radius: 10px;
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    font-size: .875rem;
    font-weight: 500;
    border-left: 3px solid;
    margin-bottom: 1.75rem;
}

.flash-card.success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.flash-card.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

/* Fe article */
.fe-article {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    padding: clamp(1.25rem, 4vw, 2rem);
    transition: all var(--dur-med) var(--ease-expo);
    position: relative;
    overflow: hidden;
}

.fe-article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold-400), var(--gold-600));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--dur-med) var(--ease-expo);
}

@media (hover:hover) {
    .fe-article:hover::before {
        transform: scaleY(1);
    }

    .fe-article:hover {
        border-color: var(--gold-300);
        box-shadow: var(--shadow-lg);
        transform: translateX(4px);
    }
}

.fe-icon-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(245, 158, 11, .3);
    transition: transform var(--dur-med) var(--ease-back);
}

@media (hover:hover) {
    .fe-article:hover .fe-icon-wrap {
        transform: scale(1.1) rotate(5deg);
    }
}

.fe-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    color: var(--gold-100);
    position: absolute;
    top: -.5rem;
    right: .85rem;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.fe-blockquote {
    border-left: 2px solid var(--gold-400);
    padding: .8rem 1.1rem;
    background: var(--gold-50);
    border-radius: 0 7px 7px 0;
    margin-top: 1.1rem;
}

.fe-blockquote blockquote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: .95rem;
    color: var(--gold-900);
    line-height: 1.5;
}

.fe-blockquote footer {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .1em;
    color: var(--gold-700);
    margin-top: .4rem;
}

/* Inner sections */
.inner-section {
    padding: clamp(2.5rem, 6vw, 6rem) 0;
}

.inner-section+.inner-section {
    padding-top: 0;
}

.inner-section.bg-ink {
    background: var(--ink-950);
}

.inner-section.bg-soft {
    background: var(--ink-50);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2.25rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold-500), rgba(245, 158, 11, .1));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: .8rem;
    width: 9px;
    height: 9px;
    background: var(--gold-500);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .2);
}

.timeline-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 11px;
    padding: clamp(1rem, 3vw, 1.5rem);
    transition: all var(--dur-med) ease;
}

@media (hover:hover) {
    .timeline-card:hover {
        border-color: var(--gold-300);
        box-shadow: var(--shadow-md);
    }
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: .4rem;
}

.timeline-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 3.5vw, 1.3rem);
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: .4rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: .85rem;
}

.stat-item {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(245, 158, 11, .15);
    border-radius: 11px;
    padding: 1rem .85rem;
    text-align: center;
    transition: all var(--dur-med) ease;
}

@media (hover:hover) {
    .stat-item:hover {
        background: rgba(245, 158, 11, .08);
        border-color: rgba(245, 158, 11, .35);
    }
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    color: var(--gold-300);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: .58rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-top: .35rem;
}

/* Impact / program / video cards */
.impact-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    padding: clamp(1.25rem, 4vw, 2rem);
    height: 100%;
    transition: all var(--dur-med) var(--ease-expo);
}

@media (hover:hover) {
    .impact-card:hover {
        border-color: var(--gold-300);
        box-shadow: var(--shadow-xl);
        transform: translateY(-5px);
    }
}

.impact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
    transition: transform var(--dur-med) var(--ease-back);
}

@media (hover:hover) {
    .impact-card:hover .impact-card-icon {
        transform: scale(1.1) rotate(5deg);
    }
}

.impact-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: .65rem;
}

.impact-card p {
    font-size: .875rem;
    color: var(--ink-500);
    line-height: 1.65;
}

.program-card {
    background: #fff;
    border: 1.5px solid var(--ink-200);
    border-radius: 14px;
    padding: clamp(1.25rem, 4vw, 2rem);
    height: 100%;
    transition: all var(--dur-med) var(--ease-expo);
    position: relative;
    overflow: hidden;
}

@media (hover:hover) {
    .program-card:hover {
        border-color: var(--gold-400);
        box-shadow: var(--shadow-xl);
        transform: translateY(-4px);
    }
}

.program-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-med) var(--ease-expo);
}

@media (hover:hover) {
    .program-card:hover::after {
        transform: scaleX(1);
    }
}

.program-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: var(--gold-100);
    color: var(--gold-700);
    margin-bottom: 1.1rem;
    transition: transform var(--dur-med) var(--ease-back);
}

@media (hover:hover) {
    .program-card:hover .program-icon {
        transform: scale(1.1);
    }
}

.program-check {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .85rem;
    color: var(--ink-600);
    padding: .25rem 0;
}

.program-check::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--gold-500);
    border-radius: 50%;
    flex-shrink: 0;
}

.video-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 11px;
    overflow: hidden;
    transition: all var(--dur-med) ease;
    box-shadow: var(--shadow-sm);
}

@media (hover:hover) {
    .video-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-3px);
    }
}

.video-embed {
    aspect-ratio: 16/9;
    background: var(--ink-900);
    display: block;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.video-card-body {
    padding: 1.1rem;
}

.video-card-body h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-800);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .65rem;
    transition: color var(--dur-fast) ease;
}

@media (hover:hover) {
    .video-card:hover .video-card-body h3 {
        color: var(--gold-700);
    }
}

/* CTA section */
.cta-section {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem);
    background: linear-gradient(135deg, var(--gold-700), var(--gold-600), var(--gold-800));
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    text-align: center;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 600;
    color: #fff;
    line-height: 1.1;
    margin-bottom: .9rem;
}

.cta-section p {
    color: rgba(255, 255, 255, .75);
    font-size: clamp(.9rem, 2.5vw, 1rem);
    max-width: 38rem;
    margin: 0 auto 1.75rem;
}

.cta-btn-white {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background: #fff;
    color: var(--gold-800);
    font-weight: 700;
    font-size: .875rem;
    padding: .9rem 1.75rem;
    border-radius: 11px;
    transition: all var(--dur-med) var(--ease-back);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .cta-btn-white:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    }
}

.cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    font-weight: 600;
    font-size: .875rem;
    padding: .9rem 1.75rem;
    border-radius: 11px;
    border: 1.5px solid rgba(255, 255, 255, .3);
    transition: all var(--dur-med) ease;
    min-height: var(--touch-min);
}

@media (hover:hover) {
    .cta-btn-outline:hover {
        background: rgba(255, 255, 255, .1);
        border-color: rgba(255, 255, 255, .6);
        color: #fff;
    }
}

/* Info / schedule */
.info-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    padding: clamp(1.25rem, 4vw, 2rem);
    box-shadow: var(--shadow-md);
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .6rem 0;
    border-bottom: 1px solid var(--ink-100);
    font-size: .85rem;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-day {
    color: var(--ink-500);
}

.schedule-time {
    color: var(--ink-800);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: .78rem;
}

/* Mission card */
.mission-card {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    padding: clamp(1.25rem, 4vw, 2rem);
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: all var(--dur-med) ease;
}

@media (hover:hover) {
    .mission-card:hover {
        box-shadow: var(--shadow-lg);
        border-color: var(--gold-300);
    }
}

.mission-card h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: .9rem;
}

.mission-vision-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: .9rem;
    border: 1px solid var(--ink-100);
    border-radius: 9px;
    transition: all var(--dur-fast) ease;
}

@media (hover:hover) {
    .mission-vision-item:hover {
        border-color: var(--gold-200);
        background: var(--gold-50);
    }
}

.mission-vision-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: var(--gold-100);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-vision-icon i {
    color: var(--gold-700);
    font-size: .85rem;
}

/* Filter / media tabs */
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem 1rem;
    border-radius: 8px;
    font-size: .78rem;
    font-family: var(--font-mono);
    letter-spacing: .07em;
    font-weight: 700;
    border: 1.5px solid var(--ink-200);
    color: var(--ink-600);
    background: #fff;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
    min-height: 40px;
    white-space: nowrap;
}

@media (hover:hover) {
    .filter-btn:hover {
        border-color: var(--gold-400);
        color: var(--gold-700);
    }
}

.filter-btn.active {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: var(--gold-400);
}

.sermon-show-header {
    background: var(--ink-950);
    padding: clamp(6rem, 12vw, 11rem) 0 clamp(2.5rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

.sermon-show-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(180, 83, 9, .4), transparent 60%);
}

.media-tab {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1.1rem;
    border-radius: 9px;
    font-size: .78rem;
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: .07em;
    border: 1.5px solid var(--ink-200);
    color: var(--ink-600);
    background: #fff;
    cursor: pointer;
    transition: all var(--dur-fast) ease;
    min-height: 40px;
    white-space: nowrap;
}

.media-tab.active {
    background: var(--ink-900);
    border-color: var(--ink-900);
    color: var(--gold-400);
}

@media (hover:hover) {
    .media-tab:hover:not(.active) {
        border-color: var(--gold-400);
        color: var(--gold-700);
    }
}

.info-tips {
    background: var(--gold-50);
    border: 1px solid var(--gold-200);
    border-radius: 11px;
    padding: 1.1rem 1.35rem;
    margin-top: 1.35rem;
}

.info-tip {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .85rem;
    color: var(--ink-600);
    padding: .28rem 0;
}

.info-tip::before {
    content: '✓';
    color: var(--gold-600);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== PATTERNS ===== */
.bg-grain {
    position: relative;
}

.bg-grain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ===== MOBILE BREAKPOINTS ===== */

/* ── 640px and below ── */
@media (max-width: 640px) {

    /* Countdown — 2×2 grid */
    .grid.grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Map taller on mobile for usability */
    .map-wrap {
        height: 300px;
    }

    /* CTA section — stack buttons */
    .cta-section {
        border-radius: 14px;
    }

    /* Social bar buttons — wrapping flex */
    .social-bar .flex {
        flex-wrap: wrap;
        gap: .75rem;
        justify-content: center;
    }

    /* Filter bar — horizontal scroll instead of wrap */
    #filter-bar,
    [id$="filter-bar"],
    .flex.flex-wrap.justify-center.gap-2 {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: .5rem;
        /* Hide scrollbar visually */
        scrollbar-width: none;
    }

    #filter-bar::-webkit-scrollbar {
        display: none;
    }

    .filter-btn,
    .media-tab {
        scroll-snap-align: start;
        flex-shrink: 0;
    }

    /* Hero content — less padding, smaller subtitle */
    .hero-content {
        padding: 1.25rem 1.25rem 4rem;
    }

    .page-hero-subtitle {
        font-size: .9rem;
    }

    /* Breadcrumb — truncate more aggressively */
    .breadcrumb-current {
        max-width: 130px;
    }

    /* Form buttons — full-width stack */
    .flex.gap-3.pt-2 {
        flex-direction: column;
    }

    .btn-reset,
    .btn-submit {
        width: 100%;
        flex: unset;
    }

    /* Content cards — slightly smaller image on mobile */
    .content-card-img {
        height: clamp(160px, 45vw, 200px);
    }

    /* Sermon show header — less top padding */
    .sermon-show-header {
        padding: 5rem 0 2rem;
    }

    /* Apostolo section — ensure full-width image on mobile */
    .apostolo-img-side {
        min-height: 280px;
    }

    /* CTA buttons stack on small screens */
    .cta-section .flex {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn-white,
    .cta-btn-outline {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }
}

/* ── 768px and below ── */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2.2rem, 8.5vw, 3.5rem);
    }

    .page-hero-title {
        font-size: clamp(2.2rem, 9vw, 3.8rem);
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    #compact-days,
    #compact-hours,
    #compact-minutes,
    #compact-seconds {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    /* Footer columns — stack to 1 column */
    .site-footer .grid.lg\:grid-cols-3 {
        grid-template-columns: 1fr !important;
    }

    /* Social bar — stack text + buttons vertically */
    .social-bar .flex.flex-col.lg\:flex-row {
        gap: 1.25rem;
    }
}

/* ── 1024px and below ── */
@media (max-width: 1024px) {
    .apostolo-img-side {
        min-height: 360px;
    }
}

/* ===== HOVER-NONE (touch devices) — remove decorative transitions ===== */
@media (hover:none) {

    /* Don't shift elements on touch — prevents sticky hover states */
    .content-card:hover,
    .card-sobre:hover,
    .impact-card:hover,
    .program-card:hover,
    .mission-card:hover,
    .video-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
        border-color: var(--ink-200);
    }

    .card-cta:hover {
        transform: none;
    }

    .view-all-btn:hover,
    .view-all-btn-light:hover {
        transform: none;
    }

    .acao-cta-btn:hover {
        transform: none;
    }

    .apostolo-milestone:hover {
        transform: none;
    }

    .fe-article:hover {
        transform: none;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ===== ACTIVE TOUCH FEEDBACK ===== */
.active-touch {
    transform: scale(.98);
}