/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --teal: #14b8a6;
    --teal-dark: #0d9488;
    --teal-light: #2dd4bf;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-300: #d4d4d8;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-600: #52525b;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --white: #fff;

    /* Semantic tokens — light mode */
    --bg: var(--white);
    --bg-alt: var(--zinc-50);
    --bg-card-hover: var(--zinc-50);
    --text: var(--zinc-600);
    --text-heading: var(--zinc-800);
    --text-muted: var(--zinc-400);
    --text-nav: var(--zinc-800);
    --border: var(--zinc-100);
    --border-strong: var(--zinc-200);
    --accent: var(--teal);
    --accent-hover: var(--teal-dark);
    --ring: rgba(20, 184, 166, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.05);

    --font-main: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
    --bg: var(--zinc-900);
    --bg-alt: var(--zinc-800);
    --bg-card-hover: rgba(39, 39, 42, 0.5);
    --text: var(--zinc-400);
    --text-heading: var(--zinc-100);
    --text-muted: var(--zinc-500);
    --text-nav: var(--zinc-200);
    --border: rgba(63, 63, 70, 0.4);
    --border-strong: var(--zinc-700);
    --accent: var(--teal-light);
    --accent-hover: var(--teal);
    --ring: rgba(45, 212, 191, 0.1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: var(--zinc-900);
        --bg-alt: var(--zinc-800);
        --bg-card-hover: rgba(39, 39, 42, 0.5);
        --text: var(--zinc-400);
        --text-heading: var(--zinc-100);
        --text-muted: var(--zinc-500);
        --text-nav: var(--zinc-200);
        --border: rgba(63, 63, 70, 0.4);
        --border-strong: var(--zinc-700);
        --accent: var(--teal-light);
        --accent-hover: var(--teal);
        --ring: rgba(45, 212, 191, 0.1);
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.75;
    background: var(--bg);
    transition: background-color 0.15s, color 0.15s;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
    letter-spacing: -0.025em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }

p {
    margin-bottom: 0;
}

strong {
    color: var(--text-heading);
    font-weight: 600;
}

ul { list-style: none; }
address { font-style: normal; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-family: var(--font-main);
    font-size: 0.875rem;
    text-align: center;
    transition: background-color 0.15s, color 0.15s;
    cursor: pointer;
    border: none;
    outline-offset: 2px;
}

.btn-accent {
    background: var(--zinc-800);
    color: var(--zinc-100);
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--zinc-700);
    color: var(--zinc-100);
}

[data-theme="dark"] .btn-accent {
    background: var(--zinc-700);
}

[data-theme="dark"] .btn-accent:hover {
    background: var(--zinc-600);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-accent {
        background: var(--zinc-700);
    }
    :root:not([data-theme="light"]) .btn-accent:hover {
        background: var(--zinc-600);
    }
}

.btn-secondary {
    background: var(--bg-alt);
    color: var(--text-heading);
    font-weight: 500;
    border: none;
}

.btn-secondary:hover {
    background: var(--zinc-100);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(39, 39, 42, 0.5);
    color: var(--zinc-300);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--zinc-800);
    color: var(--zinc-50);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-secondary {
        background: rgba(39, 39, 42, 0.5);
        color: var(--zinc-300);
    }
    :root:not([data-theme="light"]) .btn-secondary:hover {
        background: var(--zinc-800);
        color: var(--zinc-50);
    }
}

/* === Header === */
.site-header {
    background: var(--bg);
    position: relative;
    z-index: 50;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 56px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo {
    height: 36px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Glass pill base */
.glass-pill {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
}

[data-theme="dark"] .glass-pill {
    background: rgba(39, 39, 42, 0.9);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .glass-pill {
        background: rgba(39, 39, 42, 0.9);
    }
}

/* Dark mode toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: box-shadow 0.15s;
    color: var(--zinc-500);
    padding: 0;
}

.theme-toggle:hover {
    color: var(--zinc-700);
}

[data-theme="dark"] .theme-toggle:hover {
    color: var(--zinc-300);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle:hover {
        color: var(--zinc-300);
    }
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

/* Mobile menu button */
.nav-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-nav);
}

.nav-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-toggle-bar {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* === Navigation === */
.main-nav {
    position: fixed;
    inset: 1rem;
    top: 5rem;
    z-index: 50;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

.main-nav.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.nav-list {
    display: flex;
    flex-direction: column;
}

.nav-list li a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-nav);
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: color 0.15s;
}

.nav-list li:last-child a {
    border-bottom: none;
}

.nav-list li a:hover,
.nav-list li a.active {
    color: var(--accent);
}

/* === Layout === */
.site-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.main-content {
    margin-bottom: 2rem;
}

/* === Photo Carousel === */
.photo-carousel {
    margin: 2.5rem -1rem;
    overflow: hidden;
    padding: 1rem 0;
}

.photo-carousel-inner {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.photo-carousel-item {
    flex: none;
    width: 11rem;
    aspect-ratio: 9/10;
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bg-alt);
}

.photo-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-carousel-item:nth-child(odd) { transform: rotate(2deg); }
.photo-carousel-item:nth-child(even) { transform: rotate(-2deg); }

/* === Hero === */
.hero {
    max-width: 42rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.hero p {
    margin-top: 1.5rem;
    font-size: 1rem;
    line-height: 1.75;
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.hero-social a {
    color: var(--zinc-500);
    transition: color 0.15s;
}

.hero-social a:hover {
    color: var(--zinc-600);
}

[data-theme="dark"] .hero-social a {
    color: var(--zinc-400);
}

[data-theme="dark"] .hero-social a:hover {
    color: var(--zinc-300);
}

.hero-social svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* === Home Content Grid === */
.home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

/* === Sermon Cards (homepage) === */
.sermon-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sermon-feed h2 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
}

/* === Cards (generic) — matches Node site Card component === */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card::before {
    content: '';
    position: absolute;
    inset: -1.5rem -1rem;
    z-index: 0;
    background: var(--bg-card-hover);
    border-radius: 1rem;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.15s, transform 0.15s;
}

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

.card > * {
    position: relative;
    z-index: 1;
}

.card-eyebrow {
    order: -1;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    padding-left: 1rem;
}

.card-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    width: 0.125rem;
    height: 1rem;
    border-radius: 9999px;
    background: var(--border-strong);
}

.card h2, .card h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.card h2 a, .card h3 a {
    color: var(--text-heading);
}

.card h2 a:hover, .card h3 a:hover {
    color: var(--accent);
}

.card p {
    font-size: 0.875rem;
    color: var(--text);
    margin-top: 0.5rem;
}

a.card-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a.card-link h3 {
    color: var(--text-heading);
    transition: color 0.15s;
}

a.card-link:hover h3 {
    color: var(--accent);
}

.card-cta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
}

.card-cta::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.75 5.75 9.25 8l-2.5 2.25' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.75 5.75 9.25 8l-2.5 2.25' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* === Info Box (sidebar) === */
.info-box {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.info-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: 0;
}

.info-box h3 svg {
    width: 24px;
    height: 24px;
    flex: none;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.info-box p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.info-box ul {
    margin-top: 0.75rem;
}

.info-box li {
    font-size: 0.875rem;
    padding: 0.125rem 0;
}

.info-box li strong {
    color: var(--text-heading);
}

.info-box .btn {
    margin-top: 0.75rem;
    width: 100%;
}

.quick-links-sidebar {
    margin-top: 0.75rem;
}

.quick-links-sidebar li {
    padding: 0.35rem 0;
    font-size: 0.875rem;
}

.quick-links-sidebar li a {
    font-weight: 500;
}

.sidebar-boxes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Newsletter form inside info-box */
.newsletter-form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.newsletter-form .form-input {
    border-radius: 0.375rem;
    border: 1px solid var(--border-strong);
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    background: var(--bg);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.newsletter-form .form-input::placeholder {
    color: var(--text-muted);
}

.newsletter-form .form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--ring);
}

/* === Service Times Banner === */
.service-times-banner {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-alt);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.times-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.time-card {
    padding: 1rem;
    background: var(--bg);
    border-radius: 0.5rem;
    border-left: 4px solid var(--accent);
}

.time-value {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.time-name {
    color: var(--text);
    font-size: 0.875rem;
}

/* === Category Cards === */
.categories { margin-bottom: 2rem; }

.category-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.category-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.15s, box-shadow 0.15s;
}

.category-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.category-card h3 {
    padding: 0.75rem 1rem;
    margin: 0;
    text-align: center;
}

/* === Mission === */
.mission {
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.mission p {
    font-size: 1.1rem;
    font-style: italic;
}

/* === School Banner === */
.school-banner {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.school-banner p { margin-bottom: 1rem; }

/* === Sermons Page === */
.sermon-filters { margin-bottom: 1.5rem; }

.filter-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-form select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 0.375rem;
    font-family: var(--font-main);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--bg);
}

.sermon-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sermon-card {
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    border-left: 4px solid var(--accent);
    transition: background-color 0.15s;
}

.sermon-card:hover {
    background: var(--bg-card-hover);
}

.sermon-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.sermon-card h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sermon-card h2 a { color: var(--text-heading); }
.sermon-card h2 a:hover { color: var(--accent); }

.sermon-speaker {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.sermon-series,
.sermon-scripture {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.btn-sm {
    padding: 0.35em 1em;
    font-size: 0.8125rem;
}

/* Sermon Detail */
.sermon-detail .sermon-date {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 1.5rem 0;
    border-radius: 1.5rem;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* === Bulletins === */
.bulletin-list { list-style: none; }

.bulletin-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.bulletin-list li:last-child { border-bottom: none; }

.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15em 0.5em;
    border-radius: 9999px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* === Classes === */
.class-division { margin-bottom: 2rem; }

.class-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.class-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}

.class-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.class-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.class-card h3 {
    padding: 0.75rem 1rem 0.25rem;
    margin: 0;
}

.class-ages,
.class-room,
.class-summary {
    padding: 0 1rem;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.class-room { color: var(--text-muted); }

.discover-link {
    display: block;
    padding: 0.5rem 1rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Class Detail */
.class-detail-image {
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
}

.class-info-table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.class-info-table th,
.class-info-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.class-info-table th {
    width: 100px;
    color: var(--text-muted);
    font-weight: 400;
}

.class-description { margin-bottom: 1.5rem; }

/* === Dynamic Forms === */
.dynamic-form { max-width: 500px; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-heading);
}

.form-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 0.375rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--ring);
}

.form-group.has-error .form-input { border-color: #ef4444; }

/* === Auth Forms === */
.auth-form {
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.auth-form p { margin-bottom: 1rem; }

.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-heading);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: 0.375rem;
    font-family: var(--font-main);
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--ring);
}

.auth-form .helptext {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.auth-form .errorlist {
    color: #ef4444;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.auth-links {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Dashboard === */
.dashboard-welcome { margin-bottom: 1.5rem; }

.role-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.2em 0.7em;
    border-radius: 9999px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    border-left: 4px solid var(--accent);
}

.dashboard-card h3 { margin-bottom: 0.25rem; }

.dashboard-card p {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

/* === Contact Page === */
.contact-info { margin-bottom: 2rem; }

.contact-card {
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.contact-card h2 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
}

.contact-card p { margin-bottom: 0.5rem; }

.contact-map { margin-bottom: 2rem; }
.contact-map iframe { border-radius: 1rem; }

/* === About / Visitors Pages === */
.about-welcome,
.about-mission,
.about-beliefs,
.about-visit {
    margin-bottom: 2rem;
}

.about-visit ul {
    margin: 0.75rem 0 0.75rem 1.25rem;
    list-style: disc;
}

.about-visit li { margin-bottom: 0.4rem; }

/* Pastoral Staff */
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.staff-member h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 0.25rem;
}

.staff-member p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.staff-email {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Visitors info sections — matches Node Section component */
.info-section {
    margin-bottom: 2.5rem;
}

.info-section h2 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-heading);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.info-section p {
    margin-bottom: 0.75rem;
}

.quick-links-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === Footer === */
.site-footer {
    margin-top: 8rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 1rem 4rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: var(--text-nav);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-copyright p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* === Tablet (768px+) === */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }

    .hero h1 {
        font-size: 3rem;
        line-height: 1.1;
    }

    .times-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .class-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .photo-carousel-item {
        width: 18rem;
        border-radius: 1rem;
    }

    .photo-carousel-inner {
        gap: 2rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }

    .newsletter-form {
        flex-direction: row;
        gap: 0;
    }

    .newsletter-form .form-input {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        flex: 1;
    }

    .newsletter-form .btn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        margin-top: 0 !important;
        width: auto !important;
        white-space: nowrap;
    }
}

/* === Desktop (1024px+) === */
@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }

    .main-nav,
    .main-nav.open {
        position: static;
        inset: auto;
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        transition: none;
    }

    .nav-list {
        flex-direction: row;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: none;
        border-radius: 9999px;
        padding: 0 0.25rem;
        box-shadow: var(--shadow-lg);
    }

    [data-theme="dark"] .nav-list {
        background: rgba(39, 39, 42, 0.9);
    }

    @media (prefers-color-scheme: dark) {
        :root:not([data-theme="light"]) .nav-list {
            background: rgba(39, 39, 42, 0.9);
        }
    }

    .nav-list li a {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 500;
        border-bottom: none;
    }

    .site-container {
        display: grid;
        grid-template-columns: 1fr 280px;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .site-container.full-width {
        display: block;
    }

    .main-content {
        margin-bottom: 0;
    }

    .sidebar {
        padding-top: 0;
    }

    .home-grid {
        grid-template-columns: 1fr 22rem;
        gap: 4rem;
    }

    h1 {
        font-size: 2.25rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
