/* ==========================================================================
   Church Landing Page - modern, responsive design
   ========================================================================== */

:root {
    --color-primary: #1b2a4a;
    --color-primary-dark: #101a30;
    --color-primary-light: #2f4270;
    --color-accent: #d4af37;
    --color-accent-light: #f0d585;
    --color-accent-dark: #a8842a;
    --color-bg: #f6f5f1;
    --color-bg-alt: #ffffff;
    --color-text: #262a33;
    --color-text-muted: #6b7280;
    --color-border: #e8e6df;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 24px rgba(16, 26, 48, 0.08);
    --shadow-hover: 0 16px 36px rgba(16, 26, 48, 0.16);
    --shadow-accent: 0 10px 28px rgba(212, 175, 55, 0.35);
    --max-width: 1180px;
    --font-heading: "Playfair Display", "Georgia", serif;
    --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--color-accent);
    color: #1a1a1a;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

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

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em 0;
    font-weight: 700;
    color: var(--color-primary-dark);
    font-family: var(--font-heading);
}

.section {
    padding: 80px 0;
    scroll-margin-top: 96px;
}

.section-alt {
    background-color: var(--color-bg-alt);
    position: relative;
}

.section-eyebrow {
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.35rem;
    text-align: center;
    margin-bottom: 44px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ---------------- Scroll reveal ---------------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }

/* ---------------- Buttons ---------------- */

.btn {
    display: inline-block;
    padding: 11px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-position 0.5s ease;
    border: none;
    letter-spacing: 0.3px;
}

.btn-live {
    background: linear-gradient(120deg, var(--color-accent-dark), var(--color-accent), var(--color-accent-light));
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: #1f1a05;
    box-shadow: var(--shadow-accent);
}

.btn-live:hover {
    background-position: 100% 0%;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(212, 175, 55, 0.45);
}

.btn-outline {
    border: 2px solid var(--color-accent);
    color: var(--color-accent-light);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #1f1a05;
    transform: translateY(-3px);
    box-shadow: var(--shadow-accent);
}

.btn-ghost {
    border: 2px solid var(--color-primary);
    color: var(--color-primary-dark);
    background: rgba(27,42,74,0.04);
}

.btn-ghost:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
}

.hero-ctas-secondary {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---------------- Header ---------------- */

.site-header {
    background: rgba(16, 26, 48, 0.92);
    backdrop-filter: blur(10px);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

.site-header.is-scrolled .header-inner {
    padding: 8px 24px;
}

.site-header.is-scrolled .logo {
    height: 48px;
    width: 48px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 24px;
    transition: padding 0.3s var(--ease);
}

.logo-block {
    flex: 0 0 auto;
}

.logo {
    height: 66px;
    width: 66px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 5px;
    box-shadow: 0 0 0 2px var(--color-accent), 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: height 0.3s var(--ease), width 0.3s var(--ease), transform 0.3s var(--ease);
}

.logo:hover {
    transform: scale(1.06);
}

.church-title {
    flex: 1 1 auto;
    text-align: center;
}

.church-title h1 {
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 0.4px;
    font-size: 1.5rem;
    margin: 0;
    background: linear-gradient(90deg, #fff 0%, var(--color-accent-light) 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: title-shine 6s linear infinite;
}

@keyframes title-shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.church-title .tagline {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: var(--color-accent-light);
    font-weight: 400;
    font-family: var(--font-body);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tagline-flourish {
    color: var(--color-accent);
    font-size: 0.7rem;
    opacity: 0.75;
}

.header-shimmer {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-light), var(--color-accent), var(--color-accent-light), transparent);
    background-size: 200% 100%;
    animation: shimmer-sweep 5s linear infinite;
    opacity: 0.85;
}

@keyframes shimmer-sweep {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav {
    background: var(--color-primary-dark);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
    display: flex;
    gap: 30px;
    padding: 8px 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.site-nav a {
    color: #e6e9f5;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.4px;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.site-nav a:hover {
    color: var(--color-accent-light);
    border-color: var(--color-accent);
}

/* ---------------- Hero / Verse ---------------- */

.hero {
    background: #ffffff;
    color: var(--color-text);
    padding: 24px 0 50px;
    min-height: calc(100vh - 190px);
    display: flex;
    align-items: center;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero-photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 36%;
    right: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 12%;
    background-repeat: no-repeat;
    mask-image: linear-gradient(90deg, transparent 0%, black 18%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 18%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 0% 0%, rgba(16, 26, 48, 0.32), transparent 18%),
        radial-gradient(circle at 15% 20%, rgba(212,175,55,0.10), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(212,175,55,0.08), transparent 45%),
        linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.92) 30%, rgba(255,255,255,0.35) 40%, rgba(255,255,255,0) 52%);
}

.hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin-left: 40px;
    margin-right: auto;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-bottom: 8px;
}

.hero-eyebrow-icon {
    color: var(--color-accent);
    font-size: 0.95rem;
    flex: 0 0 auto;
}

.hero-eyebrow-line {
    flex: 1 1 auto;
    max-width: 220px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
}

.hero-heading {
    margin-bottom: 8px;
    line-height: 1.08;
}

.hero-heading-line1,
.hero-heading-line2 {
    display: block;
    font-size: 3.2rem;
}

.hero-heading-line1 {
    color: var(--color-primary-dark);
}

.hero-heading-line2 {
    color: var(--color-primary-light);
}

.hero-subtext {
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 0 18px;
    font-size: 1.05rem;
}

.verse-card {
    background: #faf8f2;
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: var(--radius);
    padding: 18px 24px;
    max-width: 720px;
    margin: 14px 0 0;
    position: relative;
    box-shadow: 0 12px 30px rgba(16,26,48,0.12);
}

.verse-card::before {
    content: "\201C";
    position: absolute;
    top: -6px;
    left: 24px;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--color-accent);
    opacity: 0.5;
    line-height: 1;
}

.verse-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 8px;
}

.verse-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--color-text);
}

.verse-reference {
    color: var(--color-accent-dark);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

/* ---------------- Cards / grids ---------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.empty-state {
    color: var(--color-text-muted);
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;
}

.card {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    transform: scaleX(1);
}

.announcement-card {
    padding: 0;
}

.announcement-card .card-body {
    padding: 30px;
}

.announcement-card .card-image {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.announcement-card h3 {
    font-size: 1.2rem;
}

.card-date {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* ---------------- Service / Fellowship / Prayer Timings ---------------- */

.service-timing-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.service-timing-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.service-timing-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--color-accent);
}

.service-timing-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-accent-light);
}

.service-timing-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-timing-tamil {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
}

.service-timing-english {
    font-size: 0.88rem;
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---------------- Media / Live / Videos ---------------- */

.live-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    background: linear-gradient(120deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    border-radius: var(--radius);
    padding: 24px 30px;
    margin-bottom: 40px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.live-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 0 rgba(255, 77, 77, 0.6);
    animation: pulse 1.6s infinite;
}

.live-embed-wrap {
    max-width: 900px;
    margin: 0 auto 40px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    background: #000;
}

.live-embed {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
}

.video-thumb {
    display: block;
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    border: 1px solid var(--color-border);
}

.video-thumb:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

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

.video-thumb:hover .thumb-wrap img {
    transform: scale(1.08);
}

.thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumb:hover .thumb-wrap::after {
    opacity: 1;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.9);
    color: #1f1a05;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s var(--ease), background 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

.video-thumb:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--color-accent);
}

.video-title {
    padding: 16px 18px;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

/* ---------------- Celebrations ---------------- */

.celebration-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.celebration-block {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}

.celebration-block h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
}

.celebration-block h3 .icon {
    font-size: 1.4rem;
}

.celebration-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.celebration-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    width: 122px;
    padding: 18px 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.celebration-list li:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--color-accent);
}

.avatar {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
}

.avatar-wrap {
    position: relative;
    width: 58px;
    height: 58px;
}

.celebration-list .avatar {
    width: 58px;
    height: 58px;
    overflow: hidden;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

.avatar-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-initials {
    color: #fff;
}

.celebration-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    border: 2px solid var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Cycle a few accent palettes across celebrants so the grid isn't monotone */
.celebration-list li:nth-child(4n+2) .avatar {
    background: linear-gradient(135deg, #7a2e46, #c9a0ad);
}

.celebration-list li:nth-child(4n+3) .avatar {
    background: linear-gradient(135deg, #1f5f5b, #7fd1c3);
}

.celebration-list li:nth-child(4n+4) .avatar {
    background: linear-gradient(135deg, #4a3b6b, #b6a4d6);
}

.celebration-list .details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.celebration-list .name {
    font-weight: 600;
    font-size: 0.85rem;
    word-break: break-word;
}

.celebration-list .date {
    color: var(--color-accent-dark);
    font-weight: 700;
    font-size: 0.78rem;
}

.grouped-list li.grouped-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 100%;
    gap: 18px;
    padding: 18px 22px 18px 26px;
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.grouped-list li.grouped-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
}

.grouped-date-badge {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: #fff;
    box-shadow: 0 8px 18px rgba(16, 26, 48, 0.2);
    position: relative;
    z-index: 1;
}

.grouped-date-badge .day {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
}

.grouped-date-badge .month {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
    opacity: 0.85;
}

.grouped-names {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    flex: 1 1 auto;
    padding-top: 4px;
    position: relative;
    z-index: 1;
}

.name-pill {
    display: inline-block;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.name-pill:hover {
    transform: translateY(-2px);
}

/* Birthdays: warm gold theme */
.grouped-list.birthdays li.grouped-item::before {
    background: linear-gradient(180deg, var(--color-accent-light), var(--color-accent-dark));
}

.grouped-list.birthdays .grouped-date-badge {
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
}

.grouped-list.birthdays .name-pill:hover {
    background: rgba(212, 175, 55, 0.16);
    border-color: var(--color-accent);
}

/* Anniversaries: rose theme, echoing the site's alternate accent palette */
.grouped-list.anniversaries li.grouped-item::before {
    background: linear-gradient(180deg, #c9a0ad, #7a2e46);
}

.grouped-list.anniversaries .grouped-date-badge {
    background: linear-gradient(135deg, #7a2e46, #c9738f);
}

.grouped-list.anniversaries .name-pill:hover {
    background: rgba(122, 46, 70, 0.12);
    border-color: #c9738f;
}

/* Subtle floating decorations - low opacity, gentle motion, purely ambient */
.grouped-list li.grouped-item::after {
    position: absolute;
    top: 8px;
    right: 22px;
    font-size: 1.6rem;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    animation: grouped-item-float 5.5s ease-in-out infinite;
}

.grouped-list li.grouped-item:nth-child(3n+2)::after {
    right: 52px;
    top: 14px;
    font-size: 1.2rem;
    opacity: 0.16;
    animation-delay: -1.8s;
    animation-duration: 6.5s;
}

.grouped-list li.grouped-item:nth-child(3n+3)::after {
    right: 78px;
    top: 20px;
    font-size: 1rem;
    opacity: 0.14;
    animation-delay: -3.4s;
    animation-duration: 7.5s;
}

.grouped-list.birthdays li.grouped-item::after {
    content: "\1F388";
}

.grouped-list.birthdays li.grouped-item:nth-child(3n+2)::after {
    content: "\1F389";
}

.grouped-list.birthdays li.grouped-item:nth-child(3n+3)::after {
    content: "\2728";
}

.grouped-list.anniversaries li.grouped-item::after {
    content: "\1F495";
}

.grouped-list.anniversaries li.grouped-item:nth-child(3n+2)::after {
    content: "\1F339";
}

.grouped-list.anniversaries li.grouped-item:nth-child(3n+3)::after {
    content: "\2728";
}

@keyframes grouped-item-float {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-7px) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
    .grouped-list li.grouped-item::after {
        animation: none;
    }
}

.celebration-list li.empty {
    width: 100%;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 8px;
    color: var(--color-text-muted);
}

.celebration-list li.empty:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* ---------------- Pastorate leadership ---------------- */

.clergy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 26px;
    margin-bottom: 56px;
}

.clergy-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.clergy-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.clergy-card h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.avatar.clergy-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    overflow: hidden;
    font-size: 1.4rem;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.4);
}

.clergy-role {
    color: var(--color-accent-dark);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0;
}

.committee-heading {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 28px;
}

.committee-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.committee-member {
    width: 110px;
    text-align: center;
}

.avatar.committee-avatar {
    width: 68px;
    height: 68px;
    margin: 0 auto 10px;
    overflow: hidden;
    font-size: 1rem;
    box-shadow: 0 0 0 3px rgba(27, 42, 74, 0.15);
}

.committee-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    word-break: break-word;
}

/* Officers (Secretary, Treasurer, etc.) get a slightly highlighted card */
.committee-member.has-role {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-sm);
    padding: 14px 8px 12px;
}

.committee-member.has-role .avatar.committee-avatar {
    box-shadow: 0 0 0 3px var(--color-accent);
}

.committee-member.has-role .committee-name {
    color: var(--color-accent-dark);
}

.committee-role {
    display: block;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--color-accent-dark);
    margin-bottom: 4px;
}

/* ---------------- Leadership posts ---------------- */

.leader-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.leader-card {
    text-align: left;
}

.leader-role {
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.75rem;
    color: var(--color-accent-dark);
    font-weight: 700;
    margin-bottom: 10px;
}

.leader-body {
    color: var(--color-text);
    margin-bottom: 18px;
}

.leader-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.leader-author {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--color-bg);
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--color-border);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.pdf-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #1f1a05;
    transform: translateY(-2px);
}

.pdf-icon {
    font-size: 1rem;
}

/* ---------------- PDF modal ---------------- */

.pdf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(16, 26, 48, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease);
}

.pdf-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.pdf-modal {
    background: #fff;
    border-radius: var(--radius);
    width: min(900px, 100%);
    height: min(85vh, 1100px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    transform: scale(0.94) translateY(12px);
    transition: transform 0.3s var(--ease);
}

.pdf-modal-overlay.open .pdf-modal {
    transform: scale(1) translateY(0);
}

.pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg);
}

.pdf-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--color-primary-dark);
}

.pdf-modal-close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.pdf-modal-close:hover {
    background: var(--color-border);
    color: var(--color-primary-dark);
}

.pdf-modal-frame {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    background: #525659;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .pdf-modal {
        height: 90vh;
    }
}

/* ---------------- Prayer request form ---------------- */

.prayer-modal {
    height: auto;
    max-height: 90vh;
}

.prayer-modal-body {
    overflow-y: auto;
    padding: 26px 28px 30px;
}

.prayer-intro {
    color: var(--color-text-muted);
    margin: 0 0 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.form-field {
    margin-bottom: 16px;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary-dark);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    display: block;
    color: #b3261e;
    font-size: 0.8rem;
    margin-top: 6px;
}

.form-error-banner {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f4c7c3;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.88rem;
    margin: 0 0 18px;
}

.prayer-submit-btn {
    border: none;
    cursor: pointer;
}

.prayer-success {
    text-align: center;
    padding: 30px 10px 10px;
}

.prayer-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-dark), var(--color-accent));
    color: #1f1a05;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.prayer-success p {
    color: var(--color-text);
    font-size: 1.05rem;
    max-width: 380px;
    margin: 0 auto;
}

/* ---------------- Footer ---------------- */

.site-footer {
    background: var(--color-primary-dark);
    color: #d9def0;
    padding-top: 64px;
    position: relative;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    padding-bottom: 44px;
}

.footer-col h3,
.footer-col h4 {
    color: #fff;
}

.footer-col h3 {
    font-family: var(--font-heading);
}

.footer-col p {
    margin: 8px 0;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, transform 0.25s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.social-icon:hover {
    background: var(--color-accent);
    transform: translateY(-3px);
}

.social-icon:hover svg {
    fill: #1f1a05;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    color: #b7bdd6;
}

/* ---------------- Back to top ---------------- */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #1f1a05;
    border: none;
    box-shadow: var(--shadow-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 200;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent-dark);
    transform: translateY(-3px);
}

/* ---------------- Responsive breakpoints ---------------- */

@media (max-width: 992px) {
    .hero-heading-line1,
    .hero-heading-line2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
    }

    .site-nav.open {
        display: block;
    }

    .nav-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .church-title {
        order: 3;
        flex-basis: 100%;
    }

    .header-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .nav-toggle {
        margin-left: auto;
    }

    .section {
        padding: 52px 0;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero {
        padding: 70px 0 80px;
        min-height: auto;
        display: block;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtext {
        margin: 0 auto 28px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .verse-card {
        margin: 32px auto 0;
    }

    .hero-photo {
        left: 0;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .hero-overlay {
        background:
            radial-gradient(circle at 15% 20%, rgba(212,175,55,0.12), transparent 40%),
            radial-gradient(circle at 85% 80%, rgba(212,175,55,0.10), transparent 45%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.84) 45%, rgba(255, 255, 255, 0.92) 100%);
    }
}

@media (max-width: 480px) {
    .logo {
        height: 52px;
        width: 52px;
    }

    .verse-card {
        padding: 24px;
    }

    .verse-text {
        font-size: 1.15rem;
    }

    .live-banner {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        right: 16px;
        bottom: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}
