/* ===== Font Face ===== */
@font-face {
    font-family: 'FlemishScript';
    src: url('/static/fonts/flemishscript_bt.woff2') format('woff2'),
         url('/static/fonts/flemishscript_bt.woff') format('woff'),
         url('/static/fonts/flemishscript_bt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
    --purple: #391457;
    --purple-dark: #24083a;
    --purple-light: #c4b5fd;
    --purple-muted: #e2d4f0;
    --cta: #8e43cc;
    --font-script: 'FlemishScript', cursive;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1200px;
    --transition: 0.2s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--purple-dark); }
ul { list-style: none; }
address { font-style: normal; }

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: background var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn-cta {
    background: var(--cta);
    color: var(--white);
}
.btn-cta:hover { background: #a93226; color: var(--white); }
.btn-primary {
    background: var(--purple);
    color: var(--white);
}
.btn-primary:hover { background: var(--purple-dark); color: var(--white); }
.btn-outline {
    background: transparent;
    color: var(--purple);
    border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: var(--white); }

/* ===== Admin Bar (logged-in staff) ===== */
.admin-bar {
    background: #1a1a2e;
    color: #fff;
    font-size: 0.8125rem;
    padding: 0.35rem 0;
    z-index: 200;
}
.admin-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.admin-bar-link {
    color: #aaa;
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
}
.admin-bar-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-bar-edit {
    background: #8e43cc;
    color: #fff;
    font-weight: 600;
}
.admin-bar-edit:hover { background: #a855f7; color: #fff; }
/* ===== Utility Nav ===== */
.utility-nav {
    background: var(--purple-dark);
    color: var(--white);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}
.utility-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.utility-links {
    display: flex;
    gap: 1.5rem;
}
.utility-links a { color: var(--purple-light); }
.utility-links a:hover { color: var(--white); }
.utility-phone {
    color: var(--white);
    font-weight: 600;
}
.utility-phone:hover { color: var(--purple-light); }

/* ===== Main Nav ===== */
.main-nav {
    background: var(--purple-dark);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-link { display: flex; align-items: center; }
.logo { height: 48px; width: auto; }
.main-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.main-nav-links > li > a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
}
.main-nav-links > li > a:hover { color: var(--purple-light); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 110;
}
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gray-800);
    font-size: 0.9375rem;
}
.dropdown-menu a:hover { background: var(--gray-50); color: var(--purple); }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.hamburger { position: relative; }
.hamburger::before,
.hamburger::after {
    content: "";
    position: absolute;
    left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Hamburger to X animation */
.mobile-menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* Mobile phone bar (visible only on mobile) */
.mobile-phone-bar { display: none; }

/* ===== Landing Header ===== */
.landing-header {
    background: var(--purple-dark);
    padding: 1rem 0;
}
.landing-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}
.hero h1 {
    font-family: var(--font-script);
    font-size: 3rem;
    font-weight: normal;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero p {
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}
.hero .btn { font-size: 1.125rem; padding: 0.875rem 2rem; }

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 4rem 0;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.service-card h3 {
    color: var(--purple);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

/* ===== Trust Bar ===== */
.trust-bar {
    background: var(--gray-50);
    padding: 3rem 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}
.trust-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.trust-item h4 {
    color: var(--purple);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}
.trust-item p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* ===== Obituary Grid ===== */
.obituary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}
.obituary-card {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    transition: box-shadow var(--transition);
}
.obituary-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.obituary-card .photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--purple-light);
}
.obituary-card .photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--purple-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple);
    font-size: 2rem;
    font-weight: 700;
}
.obituary-card h3 {
    color: var(--gray-800);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.obituary-card .dates {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* ===== Obituary Header ===== */
.obit-header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
}
.obit-header-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.obit-header .photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.obit-header .photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    flex-shrink: 0;
}
.obit-header h1 { font-family: var(--font-script); font-size: 2.5rem; font-weight: normal; margin-bottom: 0.5rem; }
.obit-header .life-dates { font-size: 1.125rem; opacity: 0.9; }
.obit-header .location { font-size: 0.9375rem; opacity: 0.8; margin-top: 0.25rem; }

/* ===== Obituary Tabs ===== */
.obit-tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2rem;
    overflow-x: auto;
}
.obit-tabs a {
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color var(--transition), border-color var(--transition);
}
.obit-tabs a:hover { color: var(--purple); }
.obit-tabs a.active {
    color: var(--purple);
    border-bottom-color: var(--purple);
}

/* ===== Obituary Content ===== */
.obit-content {
    padding: 2rem 0 4rem;
}
.obit-content .obituary-text {
    max-width: 800px;
    line-height: 1.8;
    font-size: 1.0625rem;
}
.obit-content .obituary-text p { margin-bottom: 1rem; }

.service-info {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}
.service-info h3 { color: var(--purple); margin-bottom: 0.75rem; }

/* Share bar */
.share-bar {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}
.share-bar a {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--gray-600);
}
.share-bar a:hover { border-color: var(--purple); color: var(--purple); }

/* ===== Guestbook ===== */
.guestbook-entries { margin-bottom: 3rem; }
.guestbook-entry {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}
.guestbook-entry:last-child { border-bottom: none; }
.guestbook-entry .author {
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 0.25rem;
}
.guestbook-entry .date {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}
.guestbook-entry .message { color: var(--gray-700); }

/* ===== Photo Gallery ===== */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.photo-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity var(--transition);
}
.photo-gallery img:hover { opacity: 0.85; }

/* ===== Alphabetical Nav ===== */
.alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
}
.alpha-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--purple);
    transition: background var(--transition), color var(--transition);
}
.alpha-nav a:hover { background: var(--purple); color: var(--white); }
.alpha-nav .alpha-all {
    width: auto;
    padding: 0 0.75rem;
    background: var(--purple);
    color: var(--white);
    border-radius: 4px;
}

/* ===== Results Summary ===== */
.results-summary {
    margin-bottom: 1rem;
    color: var(--gray-500);
    font-size: 0.9375rem;
}

/* ===== Obituary List Grid (5 columns for listing page) ===== */
.obituary-grid-list { grid-template-columns: repeat(5, 1fr); }

/* ===== Search Form ===== */
.search-form {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.search-form .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.search-form .form-group {
    flex: 1;
    min-width: 160px;
}
.search-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}
.search-form input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.9375rem;
    font-family: var(--font-family);
}
.search-form input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 2px var(--purple-muted);
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
}
.pagination a, .pagination span {
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 0.9375rem;
    color: var(--gray-600);
}
.pagination a:hover { border-color: var(--purple); color: var(--purple); }
.pagination .active {
    background: var(--purple);
    color: var(--white);
    border-color: var(--purple);
}

/* ===== Blog List ===== */
.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}
.blog-card {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.blog-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body {
    padding: 1.25rem;
}
.blog-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}
.blog-card h3 a { color: var(--gray-800); }
.blog-card h3 a:hover { color: var(--purple); }
.blog-card .date {
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}
.blog-card .excerpt {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Blog detail */
.blog-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
.blog-detail h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.blog-detail .date { color: var(--gray-400); margin-bottom: 2rem; }
.blog-detail .content { line-height: 1.8; }
.blog-detail .content h2 { margin: 2rem 0 1rem; color: var(--purple); }
.blog-detail .content h3 { margin: 1.5rem 0 0.75rem; }
.blog-detail .content p { margin-bottom: 1rem; }
.blog-detail .content p:has(> br:only-child) { margin-bottom: 0; line-height: 0; }
.obit-content .obituary-text p:has(> br:only-child) { margin-bottom: 0; line-height: 0; }
.blog-detail .content ul, .blog-detail .content ol { margin: 1rem 0; padding-left: 2rem; }
.blog-detail .content li { margin-bottom: 0.5rem; }
.blog-detail .content img { border-radius: 8px; margin: 1.5rem 0; }

/* ===== Contact Form ===== */
.contact-form {
    max-width: 600px;
}
.contact-form .form-group {
    margin-bottom: 1.25rem;
}
.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    color: var(--gray-700);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-family);
    transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 2px var(--purple-muted);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .btn { margin-top: 0.5rem; }

/* Honeypot */
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}
.page-header h1 { font-family: var(--font-script); font-size: 2.5rem; font-weight: normal; margin-bottom: 0.5rem; }
.page-header p { font-size: 1.125rem; opacity: 0.9; max-width: 640px; margin: 0 auto; }

/* ===== Page Content ===== */
.page-content {
    padding: 3rem 0;
}
.page-content h2 {
    color: var(--purple);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}
.page-content h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol { margin: 1rem 0; padding-left: 2rem; }
.page-content li { margin-bottom: 0.5rem; list-style: disc; }

/* Two-column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Location cards */
.location-card {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 2rem;
}
.location-card h3 {
    color: var(--purple);
    margin-bottom: 1rem;
}
.location-card address { margin-bottom: 0.75rem; }
.location-card a { font-weight: 600; }

/* ===== Timeline ===== */
.timeline {
    list-style: none;
    padding: 0;
    border-left: 3px solid var(--purple-light);
    margin: 1.5rem 0 2rem 1rem;
}
.timeline li {
    padding: 0.75rem 0 0.75rem 1.5rem;
    position: relative;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 1.1rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--purple);
    border: 2px solid var(--white);
}

/* ===== Landing Page ===== */
.landing-hero {
    background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
}
.landing-hero h1 { font-size: 2.25rem; margin-bottom: 1rem; }
.landing-hero p { font-size: 1.125rem; opacity: 0.9; margin-bottom: 1.5rem; }

.landing-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0;
}
.landing-benefits h2 {
    color: var(--purple);
    margin-bottom: 1rem;
}
.landing-benefits ul {
    padding-left: 1.5rem;
}
.landing-benefits li {
    list-style: disc;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
}

.landing-form {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 2rem;
}
.landing-form h2 {
    color: var(--purple);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* ===== Testimonials ===== */
/* ===== Chapel Gallery ===== */
.chapel-gallery { padding: 4rem 0; background: var(--gray-50); }
.chapel-gallery h2 {
    font-family: var(--font-script);
    font-size: 2.25rem;
    font-weight: normal;
    color: var(--purple);
    text-align: center;
    margin-bottom: 0.5rem;
}
.chapel-gallery > .container > p {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 2rem;
}
.chapel-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.chapel-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== Welcome Section ===== */
.welcome-section { padding: 4rem 0; background: var(--white); }
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.welcome-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.welcome-text h2 {
    font-family: var(--font-script);
    font-size: 2.25rem;
    font-weight: normal;
    color: var(--purple);
    margin-bottom: 1rem;
}
.welcome-text p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.welcome-text .btn { margin-top: 0.5rem; }

/* ===== Reviews ===== */
.reviews-header { margin-bottom: 2rem; }
.reviews-header h2 { margin-top: 0; }
.reviews-summary { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.reviews-summary .stars { color: #f59e0b; font-size: 1.5rem; letter-spacing: 2px; }
.reviews-summary .rating-text { color: var(--gray-600); font-size: 0.9375rem; }
.reviews-summary a { color: var(--purple); }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.review-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.5rem;
}
.review-stars { color: #f59e0b; font-size: 1.125rem; letter-spacing: 1px; margin-bottom: 0.75rem; }
.review-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin: 0 0 1rem;
    border: none;
    padding: 0;
}
.review-attribution {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}
.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
}
.review-source {
    font-size: 0.8125rem;
    color: var(--gray-500);
}
.reviews-cta {
    text-align: center;
    margin: 2rem 0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}
.video-grid .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}
.video-grid .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Recent Obituaries Section ===== */
.recent-obituaries {
    padding: 4rem 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
.section-header h2 {
    color: var(--purple);
    font-size: 1.75rem;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-bottom: 2rem;
}
.footer-col h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.footer-col a { color: var(--gray-400); }
.footer-col a:hover { color: var(--white); }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col address { color: var(--gray-400); line-height: 1.7; }

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding: 1.25rem 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}
.footer-legal {
    display: flex;
    gap: 1.5rem;
}
.footer-legal a { color: var(--gray-500); }
.footer-legal a:hover { color: var(--white); }

/* ===== Cemetery Tab ===== */
.cemetery-info {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 2rem;
}
.cemetery-info h3 { color: var(--purple); margin-bottom: 1rem; }
.cemetery-info p { margin-bottom: 0.5rem; }

/* ===== Alert / Flash ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ===== Resources ===== */
.resource-list { padding: 2rem 0; }
.resource-item {
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    margin-bottom: 1rem;
}
.resource-item h3 { color: var(--purple); margin-bottom: 0.5rem; }
.resource-item p { color: var(--gray-600); }

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--gray-500);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .utility-nav { display: none; }
    .mobile-phone-bar {
        display: block;
        background: var(--cta);
        text-align: center;
        padding: 0.5rem;
    }
    .mobile-phone-bar a {
        color: var(--white);
        font-weight: 600;
        font-size: 0.9375rem;
    }

    .mobile-menu-toggle { display: block; }
    .main-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--purple-dark);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        z-index: 100;
    }
    .main-nav-links.open { display: flex; }
    .main-nav-links > li { width: 100%; }
    .main-nav-links > li > a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    /* Mobile dropdown: hidden until toggled */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,0.05);
        display: none;
        padding-left: 1rem;
    }
    .has-dropdown.dropdown-open .dropdown-menu { display: block; }
    .has-dropdown:hover .dropdown-menu { display: none; }
    .has-dropdown.dropdown-open:hover .dropdown-menu { display: block; }
    .dropdown-toggle::after { content: ' +'; font-size: 0.75rem; }
    .dropdown-open .dropdown-toggle::after { content: ' -'; }
    .dropdown-menu a { color: var(--purple-light); padding: 0.5rem 1rem; }
    .main-nav { position: relative; }

    .hero h1 { font-size: 1.75rem; }
    .hero { padding: 2.5rem 0; }
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .trust-items { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .obituary-grid { grid-template-columns: repeat(2, 1fr); }
    .obituary-grid-list { grid-template-columns: repeat(3, 1fr); }
    .alpha-nav a { width: 32px; height: 32px; font-size: 0.8125rem; }
    .blog-list { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 2rem; }
    .landing-content { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .welcome-grid { grid-template-columns: 1fr; gap: 2rem; }
    .chapel-images { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }

    .obit-header-inner { flex-direction: column; text-align: center; }
    .obit-header h1 { font-size: 1.5rem; }
    .photo-gallery { grid-template-columns: repeat(2, 1fr); }

    .page-header h1 { font-size: 1.5rem; }
    .page-header { padding: 2rem 0; }

    .search-form .form-row { flex-direction: column; }
}

@media (max-width: 480px) {
    .obituary-grid { grid-template-columns: 1fr; }
    .obituary-grid-list { grid-template-columns: repeat(2, 1fr); }
    .trust-items { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .photo-gallery { grid-template-columns: 1fr; }
}
