/* Faith Lutheran Antioch WFEL & Sermons
   Pale-blue site framework plus sermon-table styling. */

:root {
    --blue-950: #123e5a;
    --blue-800: #1f5174;
    --blue-700: #0a5ea8;
    --blue-500: #2d7fc3;
    --blue-100: #dcecf7;
    --blue-50: #eef7fd;
    --line: #d7e8f5;
    --text: #171717;
    --muted: #52616d;
    --white: #fff;
    --shadow: 0 4px 18px rgba(25, 65, 91, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background: linear-gradient(145deg, var(--blue-50), var(--blue-100));
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--blue-950); text-decoration: underline; }

.site { min-height: 100vh; display: flex; flex-direction: column; }

.site-header { width: 100%; }

.responsive-img {
    max-width: 100%;   /* never wider than its container */
    height: auto;     /* keep the aspect ratio */
}

.banner {
    display: grid;
    min-height: 230px;
    color: var(--white);
    text-align: center;
    text-decoration: none;
    background:
/*        linear-gradient(rgba(18, 62, 150, .1), rgba(18, 62, 150, .2)), */
        url("/images/parts/banner.jpeg") left / cover no-repeat,
        linear-gradient(135deg, #78b3da, #275f87);
}
.banner:hover { color: var(--white); text-decoration: none; }
.banner-overlay { display: grid; align-content: center; justify-items: center; gap: .45rem; padding: 2rem 1.25rem; }
.banner-title { max-width: 850px; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.12; text-shadow: 0 2px 8px rgba(0, 0, 0, .28); }
.banner-subtitle { font-size: clamp(.98rem, 2vw, 1.15rem); line-height: 1.45; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); }

.main-nav { position: sticky; z-index: 20; top: 0; background: rgba(255, 255, 255, .97); box-shadow: 0 2px 10px rgba(18, 62, 90, .13); }
.nav-inner { width: min(1160px, calc(100% - 2rem)); min-height: 58px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { color: var(--blue-800); font-weight: 750; text-decoration: none; }
.nav-brand:hover { color: var(--blue-700); text-decoration: none; }
.menu { display: flex; align-items: stretch; align-self: stretch; margin: 0; padding: 0; list-style: none; }
.menu-item { position: relative; display: flex; align-items: stretch; }
.menu-link-row { display: flex; align-items: stretch; }
.menu-link, .submenu-toggle { display: flex; align-items: center; border: 0; color: var(--blue-950); background: transparent; font: inherit; font-weight: 650; cursor: pointer; }
.menu-link { padding: 0 1rem; }
.menu-link:hover, .submenu-toggle:hover, .menu-link.active { color: var(--blue-700); text-decoration: none; background: var(--blue-50); }
.submenu-toggle { padding: 0 .7rem 0 0; font-size: 1.25rem; }
.submenu { position: absolute; top: 100%; right: 0; width: max-content; min-width: 190px; max-height: min(70vh, 530px); overflow-y: auto; margin: 0; padding: .45rem 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu, .has-submenu.open > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a, .menu-note { display: block; padding: .55rem 1rem; color: var(--text); white-space: nowrap; }
.submenu a:hover, .submenu a.active { color: var(--blue-950); background: var(--blue-50); text-decoration: none; }
.menu-note { color: var(--muted); font-size: .9rem; }
.menu-toggle { display: none; border: 0; color: var(--blue-950); background: none; font: inherit; font-weight: 700; cursor: pointer; }
.menu-toggle span:last-child { margin-left: .45rem; font-size: 1.35rem; }

.page-content { width: min(1160px, calc(100% - 2rem)); flex: 1; margin: 2rem auto; }
.content-card { padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--white); border-radius: 14px; box-shadow: var(--shadow); }
.page-heading { margin-bottom: 1.35rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
h1, h2, h3 { color: var(--blue-800); line-height: 1.25; }
.content-card > h1:first-child, .page-heading h1 { margin: 0; }
.lead { margin: .4rem 0 0; color: var(--muted); font-size: 1.12rem; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { display: block; padding: 1.25rem; color: var(--text); border: 1px solid var(--line); border-radius: 10px; background: var(--blue-50); transition: transform .16s, box-shadow .16s; }
.feature-card:hover { color: var(--text); text-decoration: none; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(25, 65, 91, .12); }
.feature-card h2 { margin: 0 0 .35rem; font-size: 1.25rem; }.feature-card p { margin: 0; }
.site-footer { padding: 1rem; color: var(--muted); text-align: center; font-size: .9rem; }.site-footer p { margin: 0; }

/* Existing sermon-table styling. Use class="table" on sermon tables. */
.table { width: 100%; border-spacing: 0; border-collapse: separate; overflow: hidden; background: var(--white); border-radius: 12px; box-shadow: 0 3px 12px rgba(0, 0, 0, .12); }
.table tr:nth-child(even) { background: #f7fbfe; }
.table tr:hover { background: #eef7ff; }
.table td, .table th { padding: 18px 20px; color: #111; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { width: 190px; color: var(--blue-800); font-weight: 600; }
.table td:last-child { width: 180px; color: #555; white-space: nowrap; }
.table td p { margin: .35em 0; }
.fa, .fa-solid, .fa-brands { margin-right: .35em; color: var(--blue-500); }

@media (max-width: 700px) {
    .banner { min-height: 190px; }
    .nav-inner { position: relative; min-height: 56px; }
    .menu-toggle { display: inline-flex; align-items: center; padding: .65rem 0 .65rem .75rem; }
    .menu { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: .35rem 0; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 7px 12px rgba(18, 62, 90, .12); }
    .menu.open { display: flex; }
    .menu-item, .menu-link-row { display: block; }
    .menu-link-row { position: relative; }
    .menu-link { min-height: 48px; padding: .75rem 1rem; }
    .submenu-toggle { position: absolute; top: 0; right: .6rem; min-height: 48px; padding: 0 .65rem; }
    .submenu { position: static; display: none; width: 100%; max-height: none; padding: 0; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
    .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { display: none; }
    .has-submenu.open > .submenu { display: block; }
    .submenu a, .menu-note { padding-left: 2rem; white-space: normal; }
    .home-grid { grid-template-columns: 1fr; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table { overflow: visible; background: transparent; box-shadow: none; }
    .table tr { display: block; margin-bottom: 1rem; overflow: hidden; background: var(--white); border-radius: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .1); }
    .table td { width: auto !important; white-space: normal !important; border: 0; border-bottom: 1px solid #e5eef5; }
    .table td:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
