/* =========================================================
   St. Josaphat's Ukrainian Catholic Church
   Modern Site Stylesheet
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand */
    --c-blue: #1e3a5f;
    --c-blue-deep: #142845;
    --c-blue-soft: #3a5982;
    --c-gold: #c9a961;
    --c-gold-deep: #a88840;
    --c-gold-soft: #e6cf94;

    /* Surfaces */
    --c-cream: #fbf6ec;
    --c-cream-2: #f4ecd8;
    --c-white: #ffffff;
    --c-line: #e8dfc9;

    /* Text */
    --c-ink: #2c2820;
    --c-ink-soft: #5a5247;
    --c-mute: #8a8175;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(20, 40, 69, 0.08);
    --shadow-md: 0 8px 24px rgba(20, 40, 69, 0.12);
    --shadow-lg: 0 24px 60px rgba(20, 40, 69, 0.18);

    /* Layout */
    --container: 1200px;
    --container-narrow: 880px;
    --radius: 4px;
    --radius-lg: 12px;
    --header-h: 84px;

    /* Type */
    --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--c-ink);
    background: var(--c-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--c-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--c-gold-deep); }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--c-blue-deep);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--c-gold-deep);
    font-weight: 600;
    margin-bottom: 12px;
}

.center-text { text-align: center; }

.divider {
    display: block;
    width: 60px;
    height: 2px;
    background: var(--c-gold);
    margin: 18px auto 28px;
    border: 0;
}
.divider-left { margin-left: 0; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 246, 236, 0.92);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid var(--c-line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--c-blue-deep);
    font-family: var(--font-display);
    line-height: 1.1;
}
.brand:hover { color: var(--c-blue-deep); }

.brand-mark {
    width: 44px; height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background: #1e3a5f url('../images/ukraine-flag.jpg') center / cover no-repeat;
    box-shadow: inset 0 0 0 2px var(--c-gold-deep);
}
.brand-mark svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.15rem; font-weight: 600; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-ink-soft); font-family: var(--font-body); }

.nav-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-list a {
    color: var(--c-ink);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}
.nav-list a::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 0; height: 2px;
    background: var(--c-gold);
    transition: width 0.25s, left 0.25s;
}
.nav-list a:hover::after,
.nav-list a.is-active::after {
    left: 0; width: 100%;
}
.nav-list a:hover { color: var(--c-blue-deep); }

.nav-meta { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
    display: inline-flex;
    border: 1px solid var(--c-line);
    border-radius: 999px;
    padding: 3px;
    background: var(--c-white);
}
.lang-toggle button {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--c-ink-soft);
    padding: 4px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.lang-toggle button.is-on {
    background: var(--c-blue);
    color: var(--c-white);
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    width: 44px; height: 44px;
    cursor: pointer;
    padding: 0;
}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--c-blue-deep);
    margin: 5px auto;
    transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 0;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: var(--c-blue);
    color: var(--c-white);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-blue-deep); color: var(--c-white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold {
    background: var(--c-gold);
    color: var(--c-blue-deep);
}
.btn-gold:hover { background: var(--c-gold-deep); color: var(--c-white); transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--c-blue-deep);
    border: 1.5px solid var(--c-blue);
}
.btn-ghost:hover { background: var(--c-blue); color: var(--c-white); }
.btn-arrow::after {
    content: "→";
    font-family: var(--font-display);
    transition: transform 0.2s;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    display: grid;
    place-items: center;
    color: var(--c-white);
    overflow: hidden;
    isolation: isolate;
    padding: 120px 24px 80px;
    text-align: center;
}
.hero::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(20, 40, 69, 0.75) 0%, rgba(20, 40, 69, 0.55) 60%, rgba(168, 136, 64, 0.45) 100%);
    z-index: -1;
}
.hero-bg {
    position: absolute; inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}
.hero-inner { max-width: 880px; }

.hero-greetings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 56px);
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.hero-greetings::after {
    content: "";
    position: absolute;
}

.hero-greet,
.hero-greet-2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    line-height: 1.25;
    color: var(--c-gold-soft);
    margin: 0;
    font-weight: 500;
    text-align: center;
    flex: 0 1 auto;
    position: relative;
}
.hero-greet-2 { opacity: 0.92; }

/* Subtle gold divider between the two greetings */
.hero-greet::after {
    content: "";
    position: absolute;
    right: calc(-1 * clamp(12px, 2vw, 28px));
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: var(--c-gold-soft);
    opacity: 0.5;
}

@media (max-width: 720px) {
    .hero-greet::after { display: none; }
    .hero-greetings { gap: 18px; }
}
.hero h1 {
    color: var(--c-white);
    font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    margin-bottom: 18px;
}
.hero p.lead {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.92);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    color: var(--c-gold-soft);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.9rem;
    opacity: 0.85;
}
.hero-scroll::after {
    content: ""; display: block;
    width: 1px; height: 36px;
    background: var(--c-gold-soft);
    margin: 8px auto 0;
    animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
    0%, 100% { transform: scaleY(1); opacity: 0.4; }
    50% { transform: scaleY(1.4); opacity: 1; }
}

/* Page banner (smaller hero for inner pages) */
.page-banner {
    position: relative;
    min-height: 320px;
    display: grid;
    place-items: center;
    color: var(--c-white);
    text-align: center;
    padding: 100px 24px 60px;
    overflow: hidden;
    isolation: isolate;
}
.page-banner::before {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,40,69,0.85), rgba(20,40,69,0.7));
    z-index: -1;
}
.page-banner-bg {
    position: absolute; inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
}
.page-banner h1 { color: var(--c-white); margin: 0; }
.page-banner .crumbs {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-gold-soft);
    margin-bottom: 14px;
}

/* ---------- Mass times card ---------- */
.times-card {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-top: -120px;
    position: relative;
    z-index: 5;
}
.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 28px;
}
.time-cell {
    text-align: center;
    padding: 0 8px;
    border-right: 1px solid var(--c-line);
}
.time-cell:last-child { border-right: 0; }
.time-cell .day {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--c-blue-deep);
    margin-bottom: 4px;
}
.time-cell .when {
    font-size: 1.05rem;
    color: var(--c-ink);
    font-weight: 500;
}
.time-cell .note { font-size: 0.85rem; color: var(--c-mute); margin-top: 4px; }

/* ---------- Tabs (about page in-page tabs) ---------- */
.tabs-nav {
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    display: flex;
    gap: 4px;
    background: var(--c-cream);
    border-bottom: 1px solid var(--c-line);
    padding: 0 16px;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    justify-content: center;
}
.tabs-nav::-webkit-scrollbar { height: 4px; }
.tabs-nav::-webkit-scrollbar-thumb { background: var(--c-line); border-radius: 4px; }

.tab-btn {
    border: 0;
    background: transparent;
    padding: 18px 22px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-ink-soft);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.tab-btn:hover { color: var(--c-blue-deep); }
.tab-btn.is-active {
    color: var(--c-blue-deep);
    border-bottom-color: var(--c-gold);
    font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: tab-fade 0.25s ease-out; }

@keyframes tab-fade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
    .tabs-nav { justify-content: flex-start; }
    .tab-btn { padding: 14px 16px; font-size: 0.9rem; }
}

/* ---------- Watch strip (homepage live links) ---------- */
.watch-strip {
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 36px;
    align-items: center;
}
.watch-strip-text { max-width: 560px; }
.watch-strip-text h3 { font-size: 1.6rem; }

.live-dot {
    display: inline-block;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: #e53935;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.55);
    animation: live-pulse 1.8s ease-out infinite;
    vertical-align: middle;
}
@keyframes live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.55); }
    70%  { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

.watch-strip-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--c-white);
    font-family: var(--font-body);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    box-shadow: var(--shadow-sm);
    min-width: 220px;
}
.btn-social:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--c-white); filter: brightness(1.05); }
.btn-yt { background: #c4302b; }
.btn-fb { background: #1877f2; }
.btn-social-icon {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--c-white);
    flex-shrink: 0;
}
.btn-social-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.btn-social-text strong { font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; }
.btn-social-text small { font-size: 0.78rem; opacity: 0.88; margin-top: 2px; }

@media (max-width: 820px) {
    .watch-strip {
        grid-template-columns: 1fr;
        padding: 26px 22px;
        gap: 24px;
    }
    .watch-strip-actions { flex-direction: column; }
    .btn-social { width: 100%; min-width: 0; }
}

/* ---------- Cards ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-line);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-image {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--c-cream-2);
}
.card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-top: 0; }
.card-body p { color: var(--c-ink-soft); flex: 1; }
.card-link {
    margin-top: 14px;
    font-weight: 600;
    color: var(--c-blue);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.card-link::after { content: "→"; transition: transform 0.2s; }
.card-link:hover::after { transform: translateX(3px); }

/* Two-column feature */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.feature.reverse > :first-child { order: 2; }
.feature-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
}
.feature-text h2 { margin-bottom: 10px; }
.feature-text p { color: var(--c-ink-soft); font-size: 1.05rem; }

/* ---------- Bands / sections ---------- */
.band-cream { background: var(--c-cream-2); }
.band-white { background: var(--c-white); }
.band-blue {
    background: linear-gradient(160deg, var(--c-blue-deep) 0%, var(--c-blue) 100%);
    color: rgba(255,255,255,0.92);
}
.band-blue h1, .band-blue h2, .band-blue h3, .band-blue h4 { color: var(--c-white); }
.band-blue .eyebrow { color: var(--c-gold-soft); }

/* ---------- Quote / Greeting ---------- */
.greeting-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: 56px 56px 48px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-gold);
    position: relative;
}
.greeting-card::before {
    content: "“";
    position: absolute;
    top: -10px; left: 28px;
    font-family: var(--font-display);
    font-size: 7rem;
    line-height: 1;
    color: var(--c-gold);
    opacity: 0.4;
}
.greeting-card p { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.6; color: var(--c-ink); }
.greeting-card cite {
    display: block;
    margin-top: 18px;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--c-blue-deep);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------- Pastors / Timeline list ---------- */
.pastor-list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    border-top: 1px solid var(--c-line);
}
.pastor-list li {
    padding: 18px 24px;
    border-bottom: 1px solid var(--c-line);
    border-right: 1px solid var(--c-line);
    display: flex;
    flex-direction: column;
}
.pastor-list .years {
    font-family: var(--font-display);
    color: var(--c-gold-deep);
    font-size: 1.1rem;
    font-weight: 600;
}
.pastor-list .name { color: var(--c-blue-deep); font-weight: 500; }

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    margin: 0;
    list-style: none;
    padding: 0;
    background: var(--c-white);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.timeline-item {
    display: grid;
    grid-template-columns: 220px 1fr;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--c-line);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-item:hover { background: var(--c-cream); }

.timeline-year {
    grid-column: 1;
    grid-row: 1 / -1;
    padding: 22px 22px;
    background: linear-gradient(135deg, var(--c-cream-2) 0%, var(--c-cream) 100%);
    border-right: 3px solid var(--c-gold);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--c-blue-deep);
    font-size: 1.05rem;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    transition: background 0.2s ease, color 0.2s ease;
}
.timeline-item:hover .timeline-year {
    background: linear-gradient(135deg, var(--c-gold-soft) 0%, var(--c-cream-2) 100%);
    color: var(--c-blue-deep);
}

.timeline-item p {
    grid-column: 2;
    padding: 22px 28px;
    margin: 0;
    color: var(--c-ink);
    line-height: 1.7;
    font-size: 0.98rem;
}
.timeline-item p + p { padding-top: 0; padding-bottom: 22px; }
.timeline-item p:not(:last-child) { padding-bottom: 4px; }
.timeline-item strong { color: var(--c-blue-deep); font-weight: 600; }
.timeline-item em { color: var(--c-gold-deep); font-style: italic; }

@media (max-width: 640px) {
    .timeline-item { grid-template-columns: 1fr; }
    .timeline-year {
        grid-row: auto;
        grid-column: 1;
        padding: 14px 20px;
        border-right: 0;
        border-bottom: 2px solid var(--c-gold);
        font-size: 1rem;
    }
    .timeline-item p { padding: 18px 20px; grid-column: 1; }
}

/* ---------- Gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.gallery-item {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s;
}
.gallery-item.tall { aspect-ratio: 4/6; }
.gallery-item.wide { aspect-ratio: 4/3; grid-column: span 2; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item .caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(20,40,69,0.85));
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

/* ---------- Stat strip ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.stat-num {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--c-gold);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label { font-size: 0.95rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.85); }

/* ---------- Contact / forms ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-row {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--c-line);
}
.contact-row:last-child { border-bottom: 0; }
.contact-icon {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--c-cream-2);
    color: var(--c-blue-deep);
    display: grid; place-items: center;
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
}
.contact-row .label { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-mute); margin-bottom: 4px; }
.contact-row .value { font-size: 1.05rem; color: var(--c-ink); }

.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--c-line);
    height: 100%;
    min-height: 360px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--c-blue-deep);
    color: rgba(255,255,255,0.78);
    padding: 72px 0 28px;
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.site-footer h4 {
    color: var(--c-white);
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--c-gold-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.95rem; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--c-white); }
.footer-brand .brand-name { color: var(--c-white); }
.footer-brand .brand-sub { color: var(--c-gold-soft); }

.footer-blurb { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.7); }

.socials { display: flex; gap: 12px; margin-top: 18px; }
.social-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: var(--c-white) !important;
    display: grid; place-items: center;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background 0.2s;
}
.social-icon:hover { background: var(--c-gold); color: var(--c-blue-deep) !important; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

/* ---------- Language visibility ---------- */
[data-lang="ua"] { display: none !important; }
body.lang-ua [data-lang="en"] { display: none !important; }
body.lang-ua [data-lang="ua"] { display: revert !important; }

/* ---------- Utility ---------- */
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.list-clean li:last-child { border-bottom: 0; }

.icon-list { list-style: none; padding: 0; margin: 0; }
.icon-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--c-ink-soft);
}
.icon-list li::before {
    content: "✦";
    position: absolute;
    left: 0; top: 11px;
    color: var(--c-gold);
    font-size: 1.05rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .nav-list {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--c-cream);
        border-bottom: 1px solid var(--c-line);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 24px 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }
    .nav-list.is-open { max-height: 80vh; }
    .nav-list li { border-bottom: 1px solid var(--c-line); }
    .nav-list li:last-child { border-bottom: 0; }
    .nav-list a { display: block; padding: 14px 0; font-size: 1rem; }
    .nav-list a::after { display: none; }
    .nav-toggle { display: block; }

    .feature { grid-template-columns: 1fr; gap: 32px; }
    .feature.reverse > :first-child { order: initial; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

    .section { padding: 64px 0; }
    .greeting-card { padding: 36px 28px 32px; }
    .times-card { padding: 28px 20px; margin-top: -60px; }
    .time-cell { border-right: 0; border-bottom: 1px solid var(--c-line); padding-bottom: 18px; }
    .time-cell:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 540px) {
    body { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-num { font-size: 2.6rem; }
    .gallery-item.wide { grid-column: span 1; }
}
