/* ==========================================================================
   Ethiopian Message Believers — UI Design System
   ========================================================================== */

:root {
    --ds-font: 'Plus Jakarta Sans', 'Noto Sans Ethiopic', system-ui, sans-serif;
    --ds-radius-sm: 10px;
    --ds-radius-md: 16px;
    --ds-radius-lg: 24px;
    --ds-radius-xl: 32px;
    --ds-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ds-surface: rgba(15, 23, 42, 0.55);
    --ds-surface-elevated: rgba(255, 255, 255, 0.08);
    --ds-border: rgba(255, 255, 255, 0.12);
    --ds-border-strong: rgba(255, 255, 255, 0.22);
    --ds-glow-blue: rgba(59, 130, 246, 0.35);
    --ds-glow-orange: rgba(234, 88, 12, 0.4);
}

body {
    font-family: var(--ds-font);
    background: #0a0f1a;
}

/* Ambient background layer */
.ambient-mesh {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(30, 64, 175, 0.45), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(234, 88, 12, 0.2), transparent 50%),
        radial-gradient(ellipse 50% 60% at 50% 100%, rgba(30, 64, 175, 0.25), transparent 55%),
        linear-gradient(180deg, #0a0f1a 0%, #111827 40%, #0f172a 100%);
}

.background-overlay::before {
    opacity: 0.6;
}

.background-overlay::after {
    opacity: 0;
}

.home-section.active ~ .background-overlay::after,
body:has(.home-section.active) .background-overlay::after {
    opacity: 0;
}

/* ─── Header ─── */
.site-header {
    background: rgba(10, 15, 26, 0.72);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--ds-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.site-header.is-scrolled {
    background: rgba(10, 15, 26, 0.92);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-orange) 0%, #f97316 100%);
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px var(--ds-glow-orange);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title {
    font-size: 1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.site-header .logo {
    display: none;
}

.nav-list {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ds-border);
    border-radius: 999px;
    padding: 0.35rem;
    gap: 0.15rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    font-size: 0.82rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 600;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--brand-orange) 0%, #f97316 100%);
    box-shadow: 0 4px 16px var(--ds-glow-orange);
}

.main {
    margin-top: 76px;
}

/* ─── Page sections ─── */
.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-orange-light);
    background: rgba(234, 88, 12, 0.15);
    border: 1px solid rgba(234, 88, 12, 0.35);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.page-section .section-title {
    margin-bottom: 0.75rem;
    font-size: clamp(2rem, 5vw, 2.75rem);
}

.page-section .section-subtitle {
    margin-top: 0;
    margin-bottom: 0;
}

.page-section {
    position: relative;
}

.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(600px, 90%);
    height: 200px;
    background: radial-gradient(ellipse, rgba(30, 64, 175, 0.15), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ─── Home layout: slideshow + text ─── */
:root {
    --header-height: 76px;
}

body:has(.home-section.active) .main {
    padding-top: 0;
    padding-bottom: 0;
}

.home-section.section {
    min-height: calc(100dvh - var(--header-height)) !important;
    min-height: calc(100vh - var(--header-height)) !important;
    padding: 0 !important;
    overflow: hidden;
}

.home-section {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
}

.home-section.active {
    display: block !important;
}

.home-layout {
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    height: calc(100dvh - var(--header-height));
    height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    width: 100%;
}

.home-slider-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: clamp(0.65rem, 2.5vw, 1.25rem);
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 26, 1) 100%);
    overflow: hidden;
}

/* Centered image box — image sits inside, not as section background */
.home-image-frame {
    flex: 1 1 auto;
    width: min(94%, 820px);
    max-height: calc(100% - 2rem);
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--ds-radius-lg);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.home-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 180px;
}

.home-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.5rem, 2vw, 1rem);
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease-in-out, visibility 0.9s;
    z-index: 0;
}

.home-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.home-slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: var(--ds-radius-sm);
    user-select: none;
    -webkit-user-drag: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.home-slider-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.45);
    background: transparent;
    text-align: center;
    padding: 1rem;
}

.home-slider-placeholder i {
    font-size: 3rem;
    opacity: 0.5;
}

.home-slider-dots {
    position: relative;
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.home-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

.home-slider-dot.active,
.home-slider-dot:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    transform: scale(1.15);
}

.home-text-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: clamp(1rem, 3vw, 2rem) 0 clamp(1.25rem, 4vw, 2.5rem);
    background: linear-gradient(180deg, rgba(10, 15, 26, 0.55) 0%, rgba(10, 15, 26, 0.2) 100%);
}

.home-text-panel .container {
    width: 100%;
}

.hero {
    text-align: center;
    padding: 0;
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ds-border);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeUp 0.7s var(--ds-ease) both;
}

.hero-badge i {
    color: var(--brand-orange-light);
}

.hero-title {
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    animation: fadeUp 0.7s var(--ds-ease) 0.1s both;
}

.hero-title-accent {
    background: linear-gradient(135deg, #fff 0%, #fdba74 50%, var(--brand-orange) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    animation: fadeUp 0.7s var(--ds-ease) 0.2s both;
}

.hero-verse {
    position: relative;
    margin: 0 auto 2rem;
    max-width: 680px;
    padding: 2rem 2.25rem 1.75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid var(--ds-border-strong);
    border-radius: var(--ds-radius-lg);
    backdrop-filter: blur(20px);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: fadeUp 0.7s var(--ds-ease) 0.3s both;
}

.hero-verse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-orange));
}

.hero-verse-icon {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    font-size: 1.5rem;
    color: var(--brand-orange);
    opacity: 0.5;
}

.hero-verse-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    line-height: 1.75;
    font-weight: 500;
    margin: 0;
    padding-left: 0.5rem;
}

.hero-verse-ref {
    display: block;
    text-align: right;
    margin-top: 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-orange-light);
    font-style: normal;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    animation: fadeUp 0.7s var(--ds-ease) 0.4s both;
}

.btn-hero-primary {
    padding: 1rem 1.75rem;
    font-size: 1rem;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, var(--brand-orange) 0%, #f97316 100%);
    color: white;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 12px 32px var(--ds-glow-orange);
    transition: transform 0.25s var(--ds-ease), box-shadow 0.25s;
    text-transform: none;
    letter-spacing: 0;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px var(--ds-glow-orange);
}

.btn-hero-ghost {
    padding: 1rem 1.75rem;
    font-size: 1rem;
    border-radius: 999px;
    border: 1px solid var(--ds-border-strong);
    background: rgba(255, 255, 255, 0.06);
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
    text-transform: none;
    letter-spacing: 0;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Explore / Bento cards */
.explore-block {
    margin-top: 1rem;
    animation: fadeUp 0.8s var(--ds-ease) 0.5s both;
}

.explore-header {
    text-align: center;
    margin-bottom: 2rem;
}

.explore-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.35rem;
}

.explore-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.bento-grid .card {
    padding: 1.75rem 1.5rem;
    text-align: left;
    border-radius: var(--ds-radius-lg);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid var(--ds-border);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    animation: cardIn 0.6s var(--ds-ease) forwards;
}

.bento-grid .card:nth-child(1) { animation-delay: 0.55s; }
.bento-grid .card:nth-child(2) { animation-delay: 0.62s; }
.bento-grid .card:nth-child(3) { animation-delay: 0.69s; }
.bento-grid .card:nth-child(4) { animation-delay: 0.76s; }
.bento-grid .card:nth-child(5) { animation-delay: 0.83s; }
.bento-grid .card:nth-child(6) { animation-delay: 0.9s; }

.card--wide {
    grid-column: span 2;
}

.card-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    transition: transform 0.35s var(--ds-ease);
}

.card--sermons .card-icon-wrap { background: rgba(30, 64, 175, 0.35); color: #93c5fd; }
.card--songs .card-icon-wrap { background: rgba(234, 88, 12, 0.25); color: #fdba74; }
.card--testimonials .card-icon-wrap { background: rgba(168, 85, 247, 0.25); color: #d8b4fe; }
.card--services .card-icon-wrap { background: rgba(16, 185, 129, 0.25); color: #6ee7b7; }
.card--multimedia .card-icon-wrap { background: rgba(236, 72, 153, 0.25); color: #f9a8d4; }
.card--about .card-icon-wrap { background: rgba(245, 158, 11, 0.25); color: #fcd34d; }

.bento-grid .card i {
    font-size: 1.35rem;
    background: none;
    -webkit-text-fill-color: currentColor;
    filter: none;
    margin: 0;
}

.bento-grid .card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.bento-grid .card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    flex: 1;
    margin-bottom: 1rem;
}

.card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-orange-light);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.25s var(--ds-ease);
}

.bento-grid .card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.bento-grid .card:hover .card-icon-wrap {
    transform: scale(1.08) rotate(-3deg);
}

.bento-grid .card:hover .card-link {
    gap: 0.65rem;
}

.bento-grid .card::before {
    display: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hide legacy home blocks */
.verse-container {
    display: none;
}

/* ─── Unified content cards ─── */
.song-item,
.media-card,
.picture-item {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    backdrop-filter: blur(16px);
    border: 1px solid var(--ds-border) !important;
    border-radius: var(--ds-radius-md) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
}

.song-item h3,
.media-card h3 {
    color: white !important;
}

.song-item p,
.media-card .media-description,
.media-card .media-meta {
    color: rgba(255, 255, 255, 0.65) !important;
}

.media-card {
    border-left: 3px solid var(--brand-orange) !important;
}

.sermon-item,
.sermon-item h3 {
    color: white;
}

.sermon-item small {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Search inputs */
.search-container input {
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--ds-border) !important;
}

.search-container input:focus {
    border-color: var(--brand-orange) !important;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2) !important;
}

.lang-btn {
    border-radius: 999px !important;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--brand-orange), #f97316) !important;
    border-color: transparent !important;
}

/* Buttons refresh */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), #2563eb) !important;
    border: none !important;
    border-radius: 999px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.btn-secondary {
    border-radius: 999px !important;
    text-transform: none !important;
}

/* Multimedia tabs */
.multimedia-tab {
    border-radius: 999px !important;
}

.multimedia-tab.active {
    background: linear-gradient(135deg, var(--brand-orange), #f97316) !important;
    border-color: transparent !important;
}

.video-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid var(--ds-border);
}

.video-card h3 {
    color: white !important;
}

.video-card .video-description {
    color: rgba(255, 255, 255, 0.65) !important;
}

/* About panel */
.about-panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.about-panel p {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-item {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-md) !important;
}

.contact-item span {
    color: white !important;
}

.contact-item i {
    color: var(--brand-orange-light) !important;
}

/* Footer */
.site-footer {
    background: rgba(10, 15, 26, 0.95);
    border-top: 1px solid var(--ds-border);
    padding: 2.5rem 0;
    margin-top: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    text-align: left;
}

.footer-brand strong {
    display: block;
    font-size: 1rem;
}

.footer-brand span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand-orange), #f97316);
    color: white;
}

.footer-inner {
    gap: 1.5rem;
}

.footer-social a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ds-border);
}

.footer-social a:hover {
    background: var(--brand-orange);
    border-color: var(--brand-orange);
    transform: translateY(-2px);
}

/* Section backgrounds — subtle glass panels */
.sermons-section,
.songs-section,
.testimonials-section,
.services-section,
.multimedia-section {
    background: transparent;
}

.section-title::after {
    width: 48px;
    height: 3px;
    border-radius: 999px;
}

/* Picture gallery polish */
.picture-item {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)) !important;
    border-radius: var(--ds-radius-md) !important;
    overflow: hidden;
    border: 1px solid var(--ds-border) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25) !important;
}

.picture-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35) !important;
}

.picture-info {
    background: rgba(15, 23, 42, 0.85);
}

.picture-info h3 {
    color: white !important;
}

.picture-info small {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card--wide {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .brand-sub {
        display: none;
    }

    .nav-list {
        position: fixed;
        top: 72px;
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        border-radius: var(--ds-radius-lg);
        padding: 1rem;
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.35s var(--ds-ease);
        z-index: 999;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.85rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 72px;
    }

    .home-layout {
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    }

    .hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .hero-verse-text {
        font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    }
}

@media (max-width: 600px) {
    .home-layout {
        height: calc(100dvh - var(--header-height));
        height: calc(100svh - var(--header-height));
    }

    .home-text-panel {
        padding: 1rem 0 1.25rem;
    }

    .hero-verse {
        padding: 1.25rem 1rem;
    }

    .home-image-frame {
        width: min(96%, 100%);
        border-radius: var(--ds-radius-md);
    }

    .footer-brand {
        flex-direction: column;
        text-align: center;
    }
}

/* Landscape phones: keep 50/50 but ensure slider fills width */
@media (max-height: 500px) and (orientation: landscape) {
    .home-layout {
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    }

    .home-text-panel {
        padding: 0.5rem 0;
    }

    .hero-verse {
        padding: 0.75rem 1rem;
        margin-bottom: 0;
    }

    .hero-lead {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-slide {
        transition: none;
    }

    .hero-title,
    .hero-lead,
    .hero-verse {
        animation: none;
    }
}
