/* ========================================
   Bury Spiritualist Centre
   3 Russell Street, Bury, BL9 5AX
   Calm, welcoming, modern
   ======================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --purple: #5b4a8a;
    --purple-dark: #483a6e;
    --purple-light: #7b6baa;
    --gold: #c9a84c;
    --gold-light: #e8d9a8;
    --lavender: #f9f7fd;
    --white: #ffffff;
    --grey-100: #f5f3f8;
    --grey-200: #e8e5ef;
    --grey-600: #6b6879;
    --grey-700: #4a4758;
    --grey-800: #2d2d3d;
    --radius: 10px;
    --radius-lg: 18px;
    --shadow: 0 4px 20px rgba(91,74,138,0.08);
    --shadow-lg: 0 8px 30px rgba(91,74,138,0.12);
    --max-width: 1000px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--grey-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.3; color: var(--grey-800); }
ul { list-style: none; }

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--purple);
    color: var(--white);
    padding: 8px 16px;
    z-index: 200;
    font-size: 0.9rem;
    transition: top var(--transition);
}

.skip-link:focus {
    top: 0;
    color: var(--white);
}

/* --- Header --- */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--purple);
    font-weight: 700;
    line-height: 1.3;
}

.header-brand span {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--grey-600);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    gap: 5px;
}

.header-nav a {
    font-size: 0.9rem;
    padding: 8px 15px;
    color: var(--grey-700);
    border-radius: 6px;
    transition: all var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
    background: var(--lavender);
    color: var(--purple);
}

.header-nav a.btn-contact {
    background: var(--purple);
    color: var(--white);
}

.header-nav a.btn-contact:hover {
    background: var(--purple-dark);
    color: var(--white);
}

.btn-tickets {
    background: var(--gold);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: background var(--transition);
}
.btn-tickets:hover {
    background: var(--purple);
    color: var(--white) !important;
}

.header-nav .nav-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lavender);
    padding: 0;
    margin-left: 2px;
}

.header-nav .nav-social:hover {
    background: var(--purple);
}

.header-nav .nav-social svg {
    width: 16px;
    height: 16px;
    fill: var(--purple);
    transition: fill var(--transition);
}

.header-nav .nav-social:hover svg {
    fill: var(--white);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    background: none;
    border: none;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--purple);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    background: var(--purple);
    padding: 70px 25px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('media/building-exterior.jpg') center/cover no-repeat;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
}

.hero-welcome {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.85rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 15px;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    margin-bottom: 8px;
}

.hero-address {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin-top: 15px;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

/* Page Hero */
.page-hero {
    background: var(--purple);
    padding: 45px 25px 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.12;
}

.page-hero--about::before { background-image: url('media/exterior-watercolour-left.jpg'); }
.page-hero--services::before { background-image: url('media/exterior-watercolour-right.jpg'); }
.page-hero--healing::before { background-image: url('media/interior-watercolour.jpg'); }
.page-hero--friends::before { background-image: url('media/cups-of-tea-watercolour.jpg'); }
.page-hero--contact::before { background-image: url('media/exterior-sketch-right.jpg'); }

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.3rem;
    color: var(--white);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.page-hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Sections --- */
.section {
    padding: 60px 25px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--grey-600);
    font-size: 0.95rem;
    max-width: 550px;
}

.bg-lavender { background: var(--lavender); }

/* Two column layout */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.two-col img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* --- Service Times Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.service-time-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--purple);
}

.service-time-card h3 {
    font-size: 1.1rem;
    color: var(--purple);
    margin-bottom: 8px;
}

.service-time-card .day {
    font-weight: 600;
    color: var(--grey-800);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.service-time-card .time {
    display: inline-block;
    background: var(--lavender);
    color: var(--purple);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.service-time-card p {
    color: var(--grey-600);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Speakers Table --- */
.speakers-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.speakers-table th {
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--grey-600);
    padding: 10px 15px;
    border-bottom: 2px solid var(--purple);
}

.speakers-table td {
    padding: 12px 15px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--grey-200);
}

.speakers-table tr:hover {
    background: var(--lavender);
}

/* --- About Content --- */
.history-timeline {
    border-left: 3px solid var(--gold-light);
    padding-left: 25px;
    margin-top: 20px;
}

.history-item {
    margin-bottom: 20px;
    position: relative;
}

.history-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
}

.history-item .date {
    font-weight: 600;
    color: var(--purple);
    font-size: 0.9rem;
}

.history-item p {
    color: var(--grey-700);
    font-size: 0.95rem;
}

/* Facilities grid */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.facility-card {
    text-align: center;
    padding: 25px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.08;
}

.facility-card--hall::before { background-image: url('media/interior-watercolour.jpg'); }
.facility-card--social::before { background-image: url('media/social-room-watercolour.jpg'); }
.facility-card--access::before { background-image: url('media/exterior-watercolour-right.jpg'); }

.facility-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.facility-card h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.facility-card p {
    color: var(--grey-600);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* Committee */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.committee-member {
    padding: 18px 20px;
    background: var(--lavender);
    border-radius: var(--radius);
}

.committee-member .role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 3px;
}

.committee-member .name {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--grey-800);
}

/* --- Healing Page --- */
.healing-note {
    background: var(--lavender);
    border-left: 4px solid var(--gold);
    padding: 20px 25px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 20px 0;
}

.healing-note p {
    color: var(--grey-700);
    font-size: 0.95rem;
    font-style: italic;
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-details-card {
    background: var(--lavender);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.contact-details-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--purple);
}

.contact-detail {
    margin-bottom: 18px;
}

.contact-detail strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 3px;
}

.contact-detail a { color: var(--grey-800); }
.contact-detail a:hover { color: var(--purple); }

/* Contact form */
.contact-form { margin-top: 10px; }

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--grey-700);
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--grey-200);
    border-radius: var(--radius);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.95rem;
    color: var(--grey-800);
    transition: border-color var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.form-group textarea {
    height: 130px;
    resize: vertical;
}

.honey { position: absolute; left: -9999px; }

.form-status {
    display: none;
    padding: 12px 18px;
    border-radius: var(--radius);
    margin-top: 15px;
    font-size: 0.9rem;
}

.form-status.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-status.error { background: #fce4ec; color: #c62828; border: 1px solid #ef9a9a; }

.map-container {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 25px;
    box-shadow: var(--shadow);
}

.map-container iframe { width: 100%; height: 100%; border: 0; }

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--purple);
    color: var(--white);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary:hover {
    background: var(--purple-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--purple);
    color: var(--purple);
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.btn-outline:hover {
    background: var(--purple);
    color: var(--white);
}

/* --- CTA Banner --- */
.cta-banner {
    background: var(--purple);
    padding: 50px 25px 70px;
    text-align: center;
    position: relative;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--grey-800);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

.cta-banner h2 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.cta-banner p {
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    margin: 0 auto 20px;
    font-size: 0.95rem;
}

.cta-banner .btn-primary {
    background: var(--gold);
    color: var(--grey-800);
}

.cta-banner .btn-primary:hover {
    background: var(--gold-light);
}

/* --- Footer --- */
.footer {
    background: var(--grey-800);
    padding: 30px 25px;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
}

.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--white); }
.footer p { margin-bottom: 5px; }

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    margin: 0 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.affiliations-bar {
    border-top: 1px solid #ddd;
    background: #fff;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.affiliation {
    display: flex;
    align-items: center;
    gap: 16px;
}

.affiliation img {
    height: 120px;
    width: auto;
    flex-shrink: 0;
}

.affiliation-text {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

.affiliation-text strong {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.affiliations-bar a {
    color: #555;
}

.affiliations-bar a:hover {
    color: #000;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .affiliations-bar {
        flex-direction: column;
        gap: 24px;
        padding: 24px 20px;
    }

    .affiliation {
        justify-content: center;
    }

    .hamburger { display: flex; }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 15px 25px;
        border-bottom: 1px solid var(--grey-200);
        box-shadow: var(--shadow);
    }

    .header-nav.active { display: flex; }

    .hero h1 { font-size: 2rem; }
    .page-hero h1 { font-size: 1.8rem; }

    .two-col { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .committee-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .section { padding: 40px 20px; }
    .committee-grid { grid-template-columns: 1fr; }
}
