/* ── Global Typography - Apple Inspired ──────────────────────────────────── */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #1d1d1f;
    font-weight: 400;
}

html {
    scroll-behavior: smooth;
}

/* Heading Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: #1d1d1f;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

h5 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.005em;
}

h6 {
    font-size: clamp(1.125rem, 1.5vw, 1.25rem);
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: #6e6e73;
    margin-bottom: 1.25rem;
}

a {
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

strong, b {
    font-weight: 600;
    color: #1d1d1f;
}

small {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #86868b;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height, 110px);
    position: relative;
    overflow: hidden;
}

.hero-image {
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    transform: scale(1.04);
    transition: transform 8s ease-out;
}

.hero-section:hover .hero-image {
    transform: scale(1);
}

/* No blur — sharp image, depth via layered gradient */
.hero-overlay {
    background:
        linear-gradient(to bottom,
            rgba(0, 10, 30, 0.55) 0%,
            rgba(0, 10, 30, 0.25) 40%,
            rgba(0, 10, 30, 0.70) 100%);
}

.hero-content {
    animation: heroFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    padding: 2rem 1rem;
}

.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.75rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    animation: fadeInDown 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.1s both;
}

.hero-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.005em;
    animation: fadeInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #004799 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.938rem;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 71, 153, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease;
    animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s both;
}

/* Ripple on active */
.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-btn:active::before {
    width: 300px;
    height: 300px;
}

.hero-btn i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

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

.hero-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 71, 153, 0.45);
    gap: 14px;
}

.hero-btn:hover i {
    transform: translateX(4px);
}

.hero-btn:active {
    transform: translateY(0);
}

/* ── Keyframes ────────────────────────────────────────────────────────────── */
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-eyebrow,
    .hero-title,
    .hero-subtitle,
    .hero-btn,
    .hero-content,
    .hero-image {
        animation: none;
        transform: none;
        transition: none;
    }

    .hero-btn:hover,
    .our-churches-card .btn-primary:hover {
        gap: 10px;
        transform: none;
    }
}

/* Fixed attachment doesn't work on iOS — fall back to scroll */
@supports (-webkit-touch-callout: none) {
    .hero-image {
        background-attachment: scroll;
    }
}

/* ── Church Cards ─────────────────────────────────────────────────────────── */
.our-churches-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.our-churches-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.our-churches-card .card-img-top {
    border-radius: 12px 12px 0 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1) saturate(1);
}

.our-churches-card:hover .card-img-top {
    filter: brightness(1.05) saturate(1.1);
}

.our-churches-card .card-body {
    padding: 1.75rem;
}

.our-churches-card .card-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.375rem, 2vw, 1.625rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 1.25rem;
    line-height: 1.25;
    color: #1d1d1f;
}

.our-churches-card .btn-primary {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #004799 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 0.938rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease, gap 0.3s ease;
}

.our-churches-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.our-churches-card .btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.our-churches-card .btn-primary i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.our-churches-card .btn-primary span {
    position: relative;
    z-index: 1;
}

.our-churches-card .btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: none;
    gap: 14px;
}

.our-churches-card .btn-primary:hover i {
    transform: translateX(4px);
}

.our-churches-card .btn-primary:active {
    transform: translateY(0);
}

/* ── Cards Container & Grid ───────────────────────────────────────────────── */
.churches-container {
    padding: 4rem 0;
}

.churches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (min-width: 768px) {
    .churches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .churches-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── JS-rendered card sub-elements ───────────────────────────────────────── */
.card-start-time,
.card-address,
.card-info-phone {
    margin: 0.4rem 0;
    font-size: 0.9rem;
}

.card-leaders {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.leader-entry {
    margin-top: 0.4rem;
}

.leader-name {
    display: block;
    font-weight: 600;
}

.card-address i,
.card-start-time i {
    margin-right: 0.25rem;
}

.card-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #25D366;
    text-decoration: none;
}

.card-whatsapp:hover {
    color: #1da851;
    text-decoration: underline;
}

.card-whatsapp i {
    font-size: 1rem;
}

/* ── Online Prayer schedule ───────────────────────────────────────────────── */
.card-schedule {
    font-size: 0.88rem;
}

.schedule-group {
    margin-bottom: 0.75rem;
}

.schedule-group:last-child {
    margin-bottom: 0;
}

.schedule-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #004799;
    margin-bottom: 0.25rem;
}

.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.7;
}

.schedule-list li i {
    margin-right: 0.25rem;
    font-size: 0.7rem;
    vertical-align: middle;
}

/* ── Icon ─────────────────────────────────────────────────────────────────── */
.bi-clock-fill {
    font-size: 0.9rem;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.feature-icon {
    transition: color 0.3s ease;
}

.feature-icon:hover {
    color: #007AFF;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.btn,
button {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.btn-apple {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    letter-spacing: -0.005em;
}

/* ── Utility Bar ──────────────────────────────────────────────────────────── */
.utility-bar {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.utility-bar__link {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.005em;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer h5,
footer h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

footer p,
footer a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ── Section Typography ───────────────────────────────────────────────────── */
.section-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 2rem;
    color: #1d1d1f;
}

.section-subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    font-weight: 400;
    line-height: 1.6;
    color: #6e6e73;
    margin-bottom: 3rem;
}

/* ── Utility Classes ──────────────────────────────────────────────────────── */
.text-accent {
    color: #007AFF;
    font-weight: 500;
}

.text-muted-apple {
    color: #86868b;
}

.text-primary-apple {
    color: #1d1d1f;
}
