.history{margin-top:var(--spacing-lg)}
.history .subsection{margin-bottom:var(--spacing-lg)}
.history h3{color:var(--primary-color);margin-bottom:var(--spacing-md)}
.people-list{list-style:disc;margin-left:1.25rem}
.burial{background:linear-gradient(180deg,rgba(255,255,255,0.6),transparent);padding:var(--spacing-md);border-radius:8px;margin-top:var(--spacing-lg)}
.people .people-list li{margin-bottom:0.5rem}
.facilities,.practical{margin-top:var(--spacing-lg)}

/* History figure styling: constrain image size and style captions */
.history-image{ text-align:center; margin: 1.25rem 0; }
.history-image img{ max-width:600px; width:100%; height:auto; border-radius:8px; box-shadow: var(--shadow-sm); display:inline-block; }
.history-image figcaption{ font-size:0.95rem; color:var(--text-medium); margin-top:0.5rem; }

@media (max-width: 768px) {
    .history-image img{ max-width:100%; }
}

/* Meeting / Where We Meet styles */
.hero.meet{
    min-height:60vh;
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('images/Ash_chapel.png');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
}
.meet-card{
    background: rgba(255,255,255,0.96);
    color: var(--text-dark);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 850px;
    margin: 0 auto;
}
.meeting-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:var(--spacing-md);margin-top:var(--spacing-md)}
.meeting-item h4{margin-bottom:var(--spacing-xs);color:var(--primary-color)}
.map-placeholder{width:100%;height:300px;border-radius:8px;background:linear-gradient(135deg,#eee,#f9f9f9);display:flex;align-items:center;justify-content:center;color:#666;border:1px dashed #ddd}
/* ============================================
   ASH CHAPEL WEBSITE - IMPROVED STYLESHEET
   ============================================
   
   IMPROVEMENTS FROM UX BEST PRACTICES:
   ✓ Better visual hierarchy & spacing
   ✓ Modern, welcoming design
   ✓ Clearer call-to-actions
   ✓ Professional typography
   ✓ Smooth animations
   ✓ Improved readability
   
   ORIGINAL STYLE BACKED UP AS: styles-original.css
   ============================================ */

/* ============================================
   1. CSS VARIABLES
   ============================================ */
:root {
    /* Colors */
    --primary-color: #8B4513;
    --primary-dark: #6B3410;
    --primary-light: #A0522D;
    --secondary-color: #D4A574;
    --accent-color: #2C5F2D;
    
    /* Text & Backgrounds */
    --text-dark: #2C2416;
    --text-medium: #5C5446;
    --text-light: #FFFFFF;
    --background-light: #FAFAF8;
    --background-white: #FFFFFF;
    
    /* Spacing - More Generous for Better UX */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --spacing-xxl: 8rem;
    
    /* Typography */
    --text-xs: 0.875rem;
    --text-sm: 1rem;
    --text-md: 1.125rem;
    --text-lg: 1.25rem;
    --text-xl: 1.75rem;
    --text-xxl: 2.5rem;
    --text-xxxl: 3.5rem;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--background-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: var(--text-xxl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
    color: var(--text-medium);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   3. NAVIGATION - Cleaner & More Modern
   ============================================ */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-logo h3 {
    color: var(--primary-color);
    font-size: var(--text-lg);
    margin: 0;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(139, 69, 19, 0.05);
}

.nav-links a.active {
    color: var(--text-light);
    background: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: var(--text-xl);
    cursor: pointer;
}

/* ============================================
   4. HERO SECTIONS - More Engaging
   ============================================ */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Match the meeting banner: chapel photo with a subtle dark overlay for legibility */
    background-image: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('images/Ash_chapel.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    overflow: hidden;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
}

.hero p {
    font-size: var(--text-xl);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    color: var(--text-light);
}

/* ============================================
   5. CONTENT SECTIONS - Better Hierarchy
   ============================================ */
section {
    padding: var(--spacing-xxl) 0;
}

section:nth-child(even) {
    background: var(--background-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--text-medium);
    margin-top: var(--spacing-lg);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.two-column img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Info Cards - Modern Card Design */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.info-card {
    background: var(--background-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.1);
    position: relative;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: var(--spacing-xl) auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }

.timeline-date {
    flex: 0 0 120px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    font-size: var(--text-xl);
}

.timeline-marker {
    flex: 0 0 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 5px solid var(--background-light);
    margin: 0 var(--spacing-md);
    z-index: 1;
}

.timeline-content {
    flex: 1;
    background: var(--background-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Events */
.events-list {
    max-width: 900px;
    margin: 0 auto;
}

.event-item {
    background: var(--background-white);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: var(--spacing-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.event-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.event-date {
    flex: 0 0 100px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--text-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
}

.event-date .day {
    font-size: var(--text-xxxl);
    font-weight: 700;
    display: block;
    line-height: 1;
}

.event-date .month {
    font-size: var(--text-sm);
    display: block;
    margin-top: var(--spacing-xs);
    text-transform: uppercase;
}

/* Buttons - Clear CTAs */
.btn {
    display: inline-block;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--text-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   6. FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--text-dark), #1a1410);
    color: #FFFFFF;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h3 {
    color: #F5DEB3;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-section p,
.footer-section li {
    color: #E8E8E8;
    line-height: 1.8;
}

.footer-section a {
    color: #F5DEB3;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #FFE4B5;
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255,255,255,0.2);
    color: #D8D8D8;
    font-size: 0.95rem;
}

/* ============================================
   7. RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    
    .nav-links {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: var(--spacing-lg);
        transition: left 0.3s;
    }
    
    .nav-links.active { left: 0; }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    }
    
    .nav-links a {
        display: block;
        padding: var(--spacing-md);
    }
    
    .two-column { grid-template-columns: 1fr; }
    
    .timeline::before { left: 30px; }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: 80px;
    }
    
    .timeline-date {
        position: absolute;
        left: 0;
        top: 0;
    }
    
    .timeline-marker {
        position: absolute;
        left: 20px;
        top: 5px;
        margin: 0;
    }
    
    .event-item { flex-direction: column; }
    .event-date { width: 100%; }
}

@media (max-width: 480px) {
    section { padding: var(--spacing-lg) 0; }
    .info-cards { grid-template-columns: 1fr; }
}

/* ============================================
   8. ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   9. ACCESSIBILITY & UTILITIES
   ============================================ */

/* Visible focus for keyboard users */
:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Skip link (hidden until focused) */
.skip-link{
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-link:focus{
    position: fixed;
    left: var(--spacing-md);
    top: var(--spacing-md);
    width: auto;
    height: auto;
    background: var(--background-white);
    color: var(--text-dark);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    z-index: 2000;
}

/* Utility helpers */
.cta-row{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}
.text-center{text-align:center}
.max-width-800{max-width:800px;margin:0 auto}
.lead{font-size:var(--text-md)}
.mt-lg{margin-top:var(--spacing-lg)}
.muted{opacity:0.6}

/* Panels and card utilities used to replace inline styles */
.panel-highlight{
    background: var(--background-white);
    color: var(--text-dark); 
    padding: var(--spacing-xl); 
    border-radius: 8px; 
    margin-bottom: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid var(--accent-color);
}
.panel-inner{max-width:800px;margin:0 auto;text-align:center}
.panel-image{
    width:100%;
    max-width:600px;
    border-radius:8px;
    box-shadow:0 6px 20px rgba(0,0,0,0.12);
    margin:0 auto;
    display:block;
}
.service-time{font-size:var(--text-lg);font-weight:600;color:var(--primary-color);}
.card-plain{background:white;padding:var(--spacing-md);margin-bottom:var(--spacing-md);border-radius:8px;box-shadow:var(--shadow-sm);border-left:4px solid var(--secondary-color)}

/* Chapel Information specific styles */
.history{margin-top:var(--spacing-lg)}
.history .subsection{margin-bottom:var(--spacing-lg)}
.history h3{color:var(--primary-color);margin-bottom:var(--spacing-md)}
.people-list{list-style:disc;margin-left:1.25rem}
.burial{background:linear-gradient(180deg,rgba(255,255,255,0.6),transparent);padding:var(--spacing-md);border-radius:8px;margin-top:var(--spacing-lg)}
.people .people-list li{margin-bottom:0.5rem}
.facilities,.practical{margin-top:var(--spacing-lg)}

/* Social icons used in footers and contact sections */
.social-icons{display:flex;gap:0.5rem;align-items:center;margin-top:0.5rem}
.social-icon{display:inline-flex;align-items:center;gap:0.5rem;padding:0.35rem 0.6rem;border-radius:999px;background:rgba(255,255,255,0.06);color:var(--text-light);transition:transform 0.15s ease,background 0.15s}
.social-icon svg{width:20px;height:20px;flex:0 0 20px;display:block}
.social-icon .social-label{font-size:0.95rem;color:var(--text-light);font-weight:600;line-height:1}
.social-icon:hover{transform:translateY(-3px);background:rgba(255,255,255,0.12);color:var(--secondary-color)}
.social-icon:focus{outline:3px solid var(--secondary-color);outline-offset:3px}
.social-icon.facebook{background:#1877F2}
.social-icon.nextdoor{background:#00A844}
@media (max-width: 480px) {
    .social-icon .social-label{display:none}
}
