/*
Theme Name: CACS - Centre for Applied Carmelite Spirituality
Theme URI: https://cacs.org.uk
Author: CACS Development Team
Author URI: https://cacs.org.uk
Description: Custom WordPress theme for the Centre for Applied Carmelite Spirituality. Features full WooCommerce integration, registration forms, and donation functionality.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cacs
Tags: custom, spiritual, nonprofit, woocommerce, education

This theme, like WordPress, is licensed under the GPL.
*/

:root {
    /* Brand palette — CTA brown replaces gold buttons site-wide */
    --gold: #955217;
    --gold-bright: #A85F1F;
    --gold-deep: #955217;
    --gold-light: #E8D5A8;
    --gold-pale: #F5ECD8;
    --cta: #955217;
    --cta-hover: #7A4214;
    --brown-deep: #3D2E1F;
    --brown-medium: #5C4A38;
    --brown-warm: #6B5744;
    --white: #FFFFFF;
    --white-warm: #FDFBF7;
    --grey-light: #F7F5F2;
    --grey-medium: #E8E4DF;
    --text-dark: #2D2419;
    --text-medium: #5C5245;
    --text-light: #5C5257;
    --shadow-soft: 0 4px 20px rgba(61, 46, 31, 0.08);
    --shadow-medium: 0 8px 40px rgba(61, 46, 31, 0.12);
    --shadow-gold: 0 8px 30px rgba(149, 82, 23, 0.25);
}

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

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.25;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--gold-deep);
}

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

/* ===================================================================
   WORDPRESS ALIGNMENT CLASSES
   =================================================================== */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: 1200px;
}

.alignfull {
    max-width: 100%;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ===================================================================
   HEADER & NAVIGATION  
   =================================================================== */
.site-header {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--grey-medium);
}

/* Utility Bar */
.utility-bar {
    background: var(--brown-deep);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.utility-bar a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.utility-bar a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.utility-bar .divider {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
}

.utility-bar .btn-utility {
    background: var(--gold);
    color: var(--white) !important;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.utility-bar .btn-utility:hover {
    background: var(--gold-bright);
}

.utility-bar .btn-utility-outline {
    border: 1px solid var(--gold-light);
    color: var(--gold-light) !important; /* #E8D5A8 — same as footer Newsletter */
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
}

.utility-bar .btn-utility-outline:hover {
    background: var(--gold-light);
    color: var(--brown-deep) !important;
}

/* Legacy header-top support */
.header-top,
.top-bar {
    background: var(--brown-deep);
    color: var(--white-warm);
    padding: 0.5rem 2rem;
    font-size: 0.85rem;
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.header-top a,
.top-bar a {
    color: var(--gold-bright);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-top a:hover,
.top-bar a:hover {
    color: var(--white);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: var(--gold);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-gold);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--brown-deep);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Navigation */
nav,
.main-navigation,
.main-nav {
    display: flex;
    gap: 0;
}

nav a,
.main-navigation a,
.main-nav a {
    color: var(--text-medium);
    text-decoration: none;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::after,
.main-navigation a::after,
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav a:hover,
.main-navigation a:hover,
.main-nav a:hover {
    color: var(--brown-deep);
}

nav a:hover::after,
nav a.active::after,
.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after,
.main-navigation .current_page_item a::after,
.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

nav a.active,
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a,
.main-nav a.active {
    color: var(--brown-deep);
}

/* Nav Buttons */
.nav-btn,
.main-nav .nav-btn {
    background: var(--gold);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 500;
}

.nav-btn::after,
.main-nav .nav-btn::after {
    display: none !important;
}

.nav-btn:hover,
.main-nav .nav-btn:hover {
    background: var(--gold-deep);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon {
    position: relative;
    color: var(--text-medium);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: var(--gold);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
}

.donate-button {
    background: var(--gold);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.donate-button:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Main Content */
main,
#main-content,
.site-main {
    padding-top: 115px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--grey-medium);
    border-radius: 6px;
    font-size: 1.5rem;
    color: var(--brown-deep);
    cursor: pointer;
    padding: 0.35rem 0.65rem;
    line-height: 1;
    transition: all 0.25s ease;
}

.mobile-menu-toggle:hover {
    border-color: var(--gold);
    color: var(--gold-deep);
}

.mobile-menu-toggle.active {
    background: var(--gold-pale);
    border-color: var(--gold);
}

/* ===================================================================
   MAIN CONTENT 
   =================================================================== */
main {
    padding-top: 135px;
    min-height: 50vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--brown-deep);
    color: var(--white-warm);
}

.section-light {
    background: var(--grey-light);
}

.section-gold {
    background: var(--gold-pale);
}

/* ===================================================================
   HERO SECTIONS
   =================================================================== */
.hero {
    background: var(--brown-deep);
    padding: 7rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

.hero.hero--photo {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.hero.hero--photo::before {
    display: none;
}

.welcome-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    max-height: 320px;
    object-position: center;
}

.mission-section {
    padding: 5rem 0;
}

.mission-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.mission-split-image {
    min-height: 100%;
}

.mission-split-image img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: block;
}

.mission-split--equal .mission-box {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

@media (max-width: 800px) {
    .mission-split {
        grid-template-columns: 1fr;
    }
    .hero.hero--photo {
        min-height: 50vh;
        padding: 4rem 1.25rem;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.hero h1 span {
    color: var(--gold-light); /* #E8D5A8 — same as footer Newsletter */
    font-style: italic;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn, 
.button,
button:not(.mobile-menu-toggle),
input[type="submit"],
.wp-block-button__link,
.woocommerce-button,
.add_to_cart_button,
.single_add_to_cart_button {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

.btn-primary,
.button.alt,
input[type="submit"],
.add_to_cart_button,
.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--cta) !important;
    color: var(--white) !important;
    border-color: var(--cta) !important;
}

.btn-primary:hover,
.button.alt:hover,
input[type="submit"]:hover,
.add_to_cart_button:hover,
.single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--cta-hover) !important;
    color: var(--white) !important;
    border-color: var(--cta-hover) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: var(--white) !important;
    color: var(--cta) !important;
    border-color: var(--white) !important;
}

.btn-secondary:hover {
    background: transparent !important;
    color: var(--white) !important;
    border-color: var(--white) !important;
}

.btn-outline {
    background: var(--white) !important;
    color: var(--cta) !important;
    border-color: var(--cta) !important;
}

.btn-outline:hover {
    background: var(--cta) !important;
    color: var(--white) !important;
    border-color: var(--cta) !important;
}

/* Solid brown CTA on dark sections (overrides white secondary look when needed) */
.btn-cta-brown {
    background: var(--cta) !important;
    color: var(--white) !important;
    border-color: var(--cta) !important;
}

.btn-small {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

/* ===================================================================
   HOMEPAGE SECTIONS
   =================================================================== */

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--brown-deep);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 650px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 1.5rem auto;
    border-radius: 2px;
}

/* Welcome Section */
.welcome {
    background: var(--white);
    padding: 5rem 0;
}

.welcome-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.welcome-text h2 {
    font-size: 2.5rem;
    color: var(--brown-deep);
    margin-bottom: 1.5rem;
}

.welcome-text p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.7;
}

.welcome-video {
    flex: 1;
    min-width: 400px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-caption {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.video-feature {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.video-inline {
    margin: 2rem 0;
}

/* Events List */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-item {
    background: var(--white);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--grey-medium);
    transition: all 0.3s ease;
}

.event-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-medium);
}

.event-icon {
    width: 65px;
    height: 65px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 2.5rem;
}

.event-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
}

.event-content h4 {
    font-size: 1.3rem;
    color: var(--brown-deep);
    margin-bottom: 0.5rem;
}

.event-content p {
    color: var(--text-medium);
    line-height: 1.65;
    margin-bottom: 1rem;
}

/* Programme Cards */
.programmes-section {
    background: var(--grey-light);
    padding: 5rem 0;
}

.programmes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
}

.programme-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid var(--grey-medium);
    display: flex;
    flex-direction: column;
}

.programme-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gold);
}

.programme-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--brown-deep);
}

.programme-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.45s ease;
}

.programme-card:hover .programme-card-image img {
    transform: scale(1.04);
}

.programme-card-image .tag {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    display: inline-block;
    background: #955217;
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Programmes page — Dharmisha palette #955217 */
.programmes-page .course-lead {
    color: #955217 !important;
}
.programmes-page .btn-primary,
.programmes-page .btn-primary.btn-small {
    background: #955217 !important;
    border-color: #955217 !important;
    color: #fff !important;
}
.programmes-page .btn-primary:hover {
    background: #7a4214 !important;
    border-color: #7a4214 !important;
}
.programmes-page .btn-outline,
.programmes-page .btn-outline.btn-small {
    background: #fff !important;
    border-color: #955217 !important;
    color: #955217 !important;
}
.programmes-page .btn-outline:hover {
    background: #955217 !important;
    color: #fff !important;
}

/* Events — View links #95521F */
.events-page .event-view-link,
.events-page .event-meta-link {
    color: #95521F !important;
}

/* Event detail hero photo + CTAs */
.ministry-hero.ministry-hero--photo {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 42vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* Sacred Encounter: keep the top of the cross in frame (image is panoramic) */
.ministry-hero.ministry-hero--photo.ministry-hero--sem {
    background-position: 70% top;
    min-height: 36vh;
}
.ministry-hero.ministry-hero--photo::before {
    display: none;
}
.event-detail-page .btn-primary {
    background: #95521F !important;
    border-color: #95521F !important;
    color: #fff !important;
}
.event-detail-page .btn-outline {
    background: #fff !important;
    border-color: #95521F !important;
    color: #95521F !important;
}
.event-detail-page .btn-outline:hover {
    background: #95521F !important;
    color: #fff !important;
}

.programme-card-header {
    background: var(--brown-deep);
    color: var(--white);
    padding: 1.75rem;
    position: relative;
}

.programme-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 70px;
    background: var(--gold);
    opacity: 0.2;
    border-radius: 50%;
    transform: translate(30%, 30%);
}

.programme-card-header h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.programme-card-header .tag {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.programme-card--image .programme-card-body {
    padding: 1.35rem 1.5rem 0.75rem;
    flex: 1;
}

.programme-card--image .programme-card-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--brown-deep);
    margin: 0 0 0.75rem;
    line-height: 1.3;
    text-transform: none;
}

.programme-card-body {
    padding: 1.75rem;
}

.programme-card-body p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.65;
}

.programme-card-footer {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

/* Stats Section */
.stats {
    background: var(--gold);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item h3 {
    font-size: 3.25rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stat-item p {
    color: rgba(255,255,255,0.95);
    font-size: 1.05rem;
    font-weight: 500;
}

.mission-box--preview-554021 {
    background: #554021 !important;
    margin: 0;
}

/* Hero: keep outline companion CTA readable on photo banners */
.hero .btn-secondary,
.ministry-hero .btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}
.hero .btn-secondary:hover,
.ministry-hero .btn-secondary:hover {
    background: #fff !important;
    color: #955217 !important;
}

/* About page — leadership 2+3, tradition images, brown palette */
.about-page .section-divider {
    background: #412D17;
}
.about-page .team-info .role,
.about-page .tradition-card .subtitle {
    color: #412D17;
}
.about-page .tradition-card.doctor {
    border-top: none;
}
.tradition-card.doctor {
  border-top: none;
}
.tradition-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.about-page .team-card:hover {
    border-color: #554021;
}
.about-hero {
    min-height: 42vh;
    padding: 5rem 2rem;
}
.about-hero h1 {
    color: var(--white);
    margin-bottom: 0;
}
.leadership-row {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}
.leadership-row--top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.leadership-row--bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tradition-group-heading {
    font-size: 1.5rem;
    color: var(--brown-deep);
    text-align: center;
    margin-bottom: 1.5rem;
}
.tradition-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.tradition-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tradition-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tradition-card-image {
    margin: -0.25rem -0.25rem 1.25rem;
    border-radius: 8px;
    overflow: hidden;
}
.tradition-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.tradition-note {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-medium);
    font-style: italic;
}
.about-page .team-bio p {
    color: var(--text-medium);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 900px) {
    .leadership-row--bottom,
    .tradition-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 640px) {
    .leadership-row--top,
    .leadership-row--bottom,
    .tradition-grid--2,
    .tradition-grid--4 {
        grid-template-columns: 1fr;
    }
    .tradition-card-image img {
        height: 200px;
    }
}

/* Mission Box */
.mission-box {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    padding: 4rem 3rem;
    border-radius: 12px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-medium);
    margin: 5rem auto;
}

.mission-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.mission-box p {
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.95);
}

/* Testimonials */
.testimonials-section {
    background: var(--white);
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.testimonial-text {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--brown-deep);
}

.testimonial-info h4 {
    font-size: 1rem;
    color: var(--brown-deep);
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===================================================================
   CARDS & GRID LAYOUTS
   =================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-image {
    width: 100%;
    height: 220px;
    background: var(--grey-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--brown-deep);
}

.card-text {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-footer {
    padding: 0 2rem 2rem;
}

/* ===================================================================
   SECTIONS WITH BACKGROUNDS
   =================================================================== */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-size: 2.75rem;
    color: var(--brown-deep);
    margin-bottom: 1rem;
}

.section-heading p {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

.section-dark .section-heading h2 {
    color: var(--gold-bright);
}

.section-dark .section-heading p {
    color: rgba(255, 255, 255, 0.85);
}

/* ===================================================================
   WOOCOMMERCE STYLES
   =================================================================== */
.woocommerce-page,
.woocommerce {
    font-family: 'DM Sans', sans-serif;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.woocommerce ul.products li.product {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    text-align: center;
    padding: 2rem;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.woocommerce ul.products li.product img {
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--brown-deep);
    margin-bottom: 0.75rem;
}

.woocommerce ul.products li.product .price {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    margin: 1rem 0;
}

.woocommerce div.product {
    padding: 3rem 0;
}

.woocommerce div.product .product_title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--brown-deep);
}

.woocommerce div.product p.price {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 600;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    background: var(--gold-pale);
    border-top-color: var(--gold);
}

.woocommerce-cart table.cart {
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.woocommerce-cart table.cart td {
    border: none;
    padding: 1.5rem;
}

.woocommerce-cart .cart_totals {
    background: var(--grey-light);
    padding: 2rem;
    border-radius: 12px;
}

/* ===================================================================
   FORMS
   =================================================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="password"],
textarea,
select,
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--grey-medium);
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(196, 148, 46, 0.1);
}

label,
.woocommerce label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
    background: var(--brown-deep);
    color: var(--white-warm);
    padding: 4rem 0 1.5rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-widget h3 {
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget li {
    margin-bottom: 0.75rem;
}

.footer-widget a {
    color: var(--white-warm);
    transition: color 0.3s ease;
}

.footer-widget a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

.social-links a {
    color: #fff;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #fff;
    opacity: 0.85;
    transform: translateY(-3px);
}

/* ===================================================================
   UTILITY CLASSES
   =================================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gold { color: var(--gold); }
.text-brown { color: var(--brown-deep); }
.text-white { color: var(--white); }

.bg-gold { background: var(--gold); }
.bg-brown { background: var(--brown-deep); }
.bg-light { background: var(--grey-light); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .section-heading h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 135px;
        left: -100%;
        width: 300px;
        height: calc(100vh - 135px);
        background: var(--white);
        box-shadow: var(--shadow-medium);
        padding: 2rem;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .main-navigation.active {
        left: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid var(--grey-medium);
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
    
    .main-navigation a::after {
        display: none;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
}

@media (max-width: 900px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-heading h2 {
        font-size: 2rem;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        text-align: center;
    }
    
    .header-main {
        padding: 1rem 1.5rem;
    }
    
    .logo-title {
        font-size: 1.3rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-heading h2 {
        font-size: 1.75rem;
    }
    
    .btn, .button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-gold);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-deep);
    transform: translateY(-2px);
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.team-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--grey-medium);
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: var(--shadow-medium);
    border-color: var(--gold);
}

.team-photo {
    height: 160px;
    background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-deep) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-photo-placeholder {
    width: 90px;
    height: 90px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--white);
    font-weight: 600;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h4 {
    font-size: 1.1rem;
    color: var(--brown-deep);
    margin-bottom: 0.25rem;
}

.team-info .role {
    color: var(--gold-deep);
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-info p {
    color: var(--text-medium);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Legacy team styles for compatibility */
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-gold);
}

.team-card h3 {
    font-size: 1.25rem;
    color: var(--brown-deep);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   CARMELITE TRADITION / SAINTS
   ============================================ */
.carmelite-tradition {
    background: var(--grey-light);
}

.saints-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.saint-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.saint-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.saint-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.saint-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.saint-card h3 {
    font-size: 1.1rem;
    color: var(--brown-deep);
    margin-bottom: 0.75rem;
}

.saint-card p {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   VALUES SECTION
   ============================================ */
.values {
    background: var(--white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--brown-deep);
}

.value-card p {
    color: var(--text-medium);
    font-size: 0.95rem;
}

/* ============================================
   EVENTS PAGE
   ============================================ */
.events {
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.event-box {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 50px rgba(61, 46, 31, 0.18);
}

/* Different background colors for each event card */
.event-box:nth-child(1) {
    background: linear-gradient(135deg, #C9A961 0%, #B8954A 100%);
}

.event-box:nth-child(2) {
    background: linear-gradient(135deg, #5E4B3C 0%, #4A3A2E 100%);
}

.event-box:nth-child(3) {
    background: linear-gradient(135deg, #5B7B5A 0%, #4A6349 100%);
}

.event-box:nth-child(4) {
    background: linear-gradient(135deg, #5B7BA8 0%, #4A6390 100%);
}

.event-icon {
    text-align: center;
    padding-top: 2rem;
}

.event-header {
    color: var(--white);
    padding: 1.5rem 2rem 0.5rem;
    text-align: center;
}

.event-header-alt {
    background: transparent;
}

.event-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.event-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    color: var(--white);
    font-weight: 600;
    margin-top: 0.5rem;
}

.event-date {
    font-size: 0.9rem;
    opacity: 0.9;
}

.event-body {
    background: var(--white);
    padding: 2rem;
    flex-grow: 1;
    border-radius: 0 0 12px 12px;
}

.event-body p {
    color: var(--text-medium);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.event-frequency {
    color: var(--gold-deep);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.event-features {
    list-style: none;
    margin-bottom: 2rem;
}

.event-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--text-medium);
    position: relative;
}

.event-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 600;
}

/* ============================================
   TIMELINE
   ============================================ */
.upcoming-events {
    background: var(--grey-light);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-soft);
}

.timeline-date {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-item h3 {
    color: var(--brown-deep);
    margin-bottom: 0.75rem;
}

.timeline-item p {
    color: var(--text-medium);
    margin-bottom: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--brown-deep);
    color: var(--white-warm);
}

.footer-top {
    padding: 4rem 2rem 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col h4 {
    color: var(--gold-light);
    font-size: 0.95rem;
    margin: 1.5rem 0 1rem;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--gold-light);
}

.contact-info li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-info li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.contact-info li a:hover {
    color: var(--gold-light);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.social-links a {
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 0.85;
    color: #fff;
}

.social-links--icons {
    gap: 1rem !important;
}
.social-links--icons a {
    color: #ffffff !important;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    background: transparent;
}
.social-links--icons a:hover {
    background: rgba(255,255,255,0.12);
    color: #ffffff !important;
}
.social-links--icons a svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: #ffffff !important;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.55);
}

.newsletter-consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: rgba(255,255,255,0.8);
    font-size: 0.78rem;
    line-height: 1.45;
    cursor: pointer;
}

.newsletter-consent input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.newsletter-consent a {
    color: var(--gold-light);
    text-decoration: underline;
}

.newsletter-success {
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.95rem;
}

.newsletter-form button {
    align-self: flex-start;
}

@media (max-width: 640px) {
    .newsletter-name-row {
        grid-template-columns: 1fr;
    }
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 2rem;
    text-align: center;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--gold-light);
}

/* ============================================
   RESPONSIVE - ADDITIONAL
   ============================================ */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .saints-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid,
    .saints-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .team-grid,
    .saints-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* LearningHub Hero */
.learninghub-hero {
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-light) 100%);
  padding: 5rem 2rem;
  text-align: center;
}

/* Photo variant: the banner image sits behind a brown overlay so the heading
   stays readable over the busy screen content in the photograph. */
.learninghub-hero.learninghub-hero--photo {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 34vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.learninghub-hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.learninghub-hero p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  max-width: 700px;
  margin: 0 auto;
}

/* Course Tiles Grid */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.course-tile {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.course-tile-image {
  position: relative;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.course-tile-content {
  padding: 1.5rem;
}

.price {
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 600;
}

.duration {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Companions Hero */
.companions-hero {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

.companions-hero h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.companions-hero .tagline {
  font-size: 1.4rem;
  font-style: italic;
  font-family: 'Playfair Display', serif;
  color: rgba(255,255,255,0.95);
}

/* Membership Levels */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.level-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.level-card.featured {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
  position: relative;
}

.level-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gold);
}

.level-card.featured .level-header {
  border-bottom-color: var(--white);
}

.level-header h4 {
  font-size: 1.5rem;
  color: var(--brown-deep);
  margin-bottom: 0.5rem;
}

.level-card.featured .level-header h4 {
  color: var(--white);
}

.amount {
  font-size: 2rem;
  color: var(--gold);
  font-weight: 600;
}

.level-card.featured .amount {
  color: var(--white);
}

.level-body ul {
  list-style: none;
  padding: 0;
}

.level-body ul li {
  padding: 0.5rem 0;
  color: var(--text-medium);
}

.level-card.featured .level-body ul li {
  color: var(--white);
}

/* Ministry Hero */
.ministry-hero {
    background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-medium) 100%);
    padding: 4.5rem 2rem;
    text-align: center;
    position: relative;
}

.ministry-hero::before {
    display: none;
}

.ministry-hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.ministry-hero .mission {
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    font-family: 'Playfair Display', serif;
}

.ministry-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

/* Tradition Cards */
.tradition-card {
  background: var(--grey-light);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.tradition-card .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tradition-card h4 {
  font-size: 1.25rem;
  color: var(--brown-deep);
  margin-bottom: 0.5rem;
}

.tradition-card .subtitle {
  font-style: italic;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.tradition-card p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.7;
}

.tradition-card.doctor {
  border-top: none;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.team-photo-placeholder {
  font-size: 1.5rem;
  color: var(--gold-deep);
  font-weight: 600;
}

.team-info h4 {
  font-size: 1.2rem;
  color: var(--brown-deep);
  margin-bottom: 0.25rem;
}

.team-info .role {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.team-info p {
  color: var(--text-medium);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Directors Grid */
.directors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.director-card {
    background: var(--grey-light);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.director-card:hover {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.director-photo {
    width: 85px;
    height: 85px;
    background: var(--gold);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 600;
}

.director-card h5 {
    font-size: 1rem;
    color: var(--brown-deep);
    margin-bottom: 0.25rem;
}

.director-card .specialty {
    color: var(--gold-deep);
    font-size: 0.82rem;
    font-weight: 500;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--brown-deep);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item svg {
    width: 22px;
    height: 22px;
    stroke: var(--gold);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-item strong {
    display: block;
    color: var(--brown-deep);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--gold-deep);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--brown-deep);
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--grey-medium);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0.9rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

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

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

/* Summit Section */
.summit-hero {
    background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-warm) 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
    border-radius: 8px;
    margin-bottom: 2rem;
}

.summit-hero h2 {
    font-size: 2rem;
    color: var(--gold-bright);
    margin-bottom: 0.5rem;
}

.summit-hero h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.summit-hero .dates {
    font-size: 1.25rem;
    color: var(--gold-bright);
    font-weight: 600;
}

.summit-hero .tagline {
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.9;
}

.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.speaker-card {
    background: var(--grey-light);
    padding: 1.25rem;
    border-radius: 8px;
    text-align: center;
}

.speaker-card h5 {
    font-size: 0.95rem;
    color: var(--brown-deep);
    margin-bottom: 0.25rem;
}

.speaker-card p {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Store Hero */
.store-hero {
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-medium) 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.store-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.store-hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
}

/* Store Categories */
.store-categories {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.store-category-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--gold-light);
  background: transparent;
  color: var(--brown-deep);
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.store-category-btn.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.store-category-btn:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-image {
  background: var(--gold-pale);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.product-info {
  padding: 1.5rem;
}

.product-info h4 {
  font-size: 1.2rem;
  color: var(--brown-deep);
  margin-bottom: 0.75rem;
}

.product-info p {
  color: var(--text-medium);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.product-info .price {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
}

/* ========== SUPPORT US PAGE ========== */
.support-hero {
    background: var(--brown-deep);
    padding: 4rem 2rem;
    text-align: center;
}
.support-hero h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}
.support-hero p {
    color: var(--gold-light);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
}
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 992px) {
    .campaigns-grid { grid-template-columns: 1fr; }
}
.campaign-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.campaign-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 50px rgba(61, 46, 31, 0.15);
}
.campaign-card-header {
    padding: 2rem;
    text-align: center;
}
.campaign-card:nth-child(1) .campaign-card-header {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
}
.campaign-card:nth-child(2) .campaign-card-header {
    background: linear-gradient(135deg, var(--brown-medium) 0%, var(--brown-deep) 100%);
}
.campaign-card:nth-child(3) .campaign-card-header {
    background: linear-gradient(135deg, #5a8f5a 0%, #3d6b3d 100%);
}
.campaign-card-header .icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}
.campaign-card-header h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}
.campaign-card-header .amount {
    color: var(--white);
    font-size: 1.75rem;
    font-weight: 700;
    opacity: 0.95;
}
.campaign-card-body {
    padding: 1.75rem;
    flex: 1;
}
.campaign-card-body p {
    color: var(--text-medium);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.campaign-card-body ul {
    list-style: none;
}
.campaign-card-body li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-medium);
    font-size: 0.9rem;
}
.campaign-card-body li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}
.campaign-card-footer {
    padding: 1.5rem 1.75rem;
    border-top: 1px solid var(--grey-light);
    text-align: center;
}
.donate-amounts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.donate-amount {
    width: 80px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 6px;
    background: var(--white);
    color: var(--gold-deep);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.donate-amount:hover, .donate-amount.active {
    background: var(--gold);
    color: var(--white);
}
.donate-other {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.donate-other input {
    width: 100px;
    padding: 0.6rem;
    border: 2px solid var(--grey-medium);
    border-radius: 6px;
    font-size: 1rem;
}
.donate-other input:focus {
    border-color: var(--gold);
    outline: none;
}

/* ========== VALUES GRID (SEM PAGE) ========== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.value-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}
.value-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
}
.value-card h4 {
    color: var(--brown-deep);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}
.value-card .tagline {
    font-style: italic;
    color: var(--gold-deep);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}
.value-card p {
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ========== SACRED ENCOUNTER MINISTRY PAGE ========== */
.sem-intro {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 950px;
    margin: 0 auto 3rem;
}
.sem-intro-logo img {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 50%;
    display: block;
}
.sem-intro-text p {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin: 0;
}
.sem-statements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 950px;
    margin: 0 auto;
    align-items: stretch;
}
.sem-statement {
    background: #554021;
    color: var(--white);
    padding: 2.25rem 2rem;
    border-radius: 12px;
}
.sem-statement h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.sem-statement p {
    color: rgba(255,255,255,0.95);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.sem-statement ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sem-statement li {
    position: relative;
    padding: 0.4rem 0 0.4rem 1.5rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.65;
}
.sem-statement li::before {
    content: '\2022';
    position: absolute;
    left: 0.25rem;
    color: #E8D5A8;
}
.sem-services {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sem-services li {
    position: relative;
    padding: 0.85rem 0 0.85rem 1.75rem;
    color: var(--text-medium);
    border-bottom: 1px solid var(--grey-medium);
}
.sem-services li:last-child {
    border-bottom: none;
}
.sem-services li::before {
    content: '\2726';
    position: absolute;
    left: 0;
    color: #955217;
    font-weight: bold;
}
.sem-key {
    text-align: center;
    color: var(--text-medium);
    font-size: 0.92rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}
.sem-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 0.5rem;
    vertical-align: middle;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
.sem-dot--yes {
    background: #174A17;
    border-color: #174A17;
}
.sem-dot--no {
    background: #B42318;
}
.sem-directors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: start;
}
.sem-director {
    background: var(--white);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
}
.sem-director.is-open {
    box-shadow: var(--shadow-medium);
}
.sem-director-photo {
    width: 130px;
    height: 130px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: var(--grey-light);
    transform: translateZ(0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.sem-director-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}
.sem-director h4 {
    color: var(--brown-deep);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.sem-director-location {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 0.85rem;
}
.sem-director-services {
    list-style: none;
    margin: 0 auto 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: auto auto;
    justify-content: center;
    justify-items: stretch;
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.55rem;
    width: 100%;
    max-width: 100%;
}
.sem-director-services li,
.sem-service {
    display: contents;
    color: var(--text-medium);
    font-size: 0.9rem;
}
.sem-service-name {
    background: none;
    color: var(--brown-deep);
    padding: 0;
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.25;
    text-align: right;
}
.sem-service-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    box-sizing: border-box;
    margin-top: 0;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.sem-service--yes .sem-service-status,
.sem-service-status--yes {
    background: #DCFCE7;
    color: #174A17;
}
.sem-service--no .sem-service-status,
.sem-service-status--no {
    background: #FBEAEA;
    color: #8B1A1A;
}
.sem-key .sem-service-status {
    margin-top: 0;
    display: inline-flex;
    width: auto;
    min-width: 8.5rem;
    justify-content: center;
}
.sem-director .sem-profile-toggle {
    background: #955217 !important;
    border-color: #955217 !important;
    color: #fff !important;
    font-size: 0.9rem;
    padding: 0.55rem 1.5rem;
}
.sem-director-profile {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--grey-medium);
    text-align: left;
}
.sem-director-profile p {
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 0.85rem;
}
.sem-director-profile p:last-child {
    margin-bottom: 0;
}
.sem-contact {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 1050px;
    margin: 0 auto;
}
.sem-form-intro {
    color: var(--text-medium);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}
.sem-form-success {
    background: #EDF6ED;
    border-left: 4px solid #2C8C2C;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.75rem;
}
.sem-form-success p {
    color: #1F5F1F;
    margin-bottom: 0.35rem;
}
.sem-form-error {
    background: #FBEDEC;
    border-left: 4px solid #5C0701;
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.75rem;
}
.sem-form-error p {
    color: #5C0701;
    margin: 0;
}
.sem-form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.sem-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.sem-form-field {
    margin-bottom: 1.25rem;
}
.sem-form-field label {
    display: block;
    font-weight: 600;
    color: var(--brown-deep);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.sem-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    font-size: 0.92rem;
    line-height: 1.6;
    cursor: pointer;
}
.sem-form-consent input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}
.sem-form button[type="submit"] {
    background: #955217 !important;
    border-color: #955217 !important;
    color: #fff !important;
}
.sem-support {
    background: #554021;
    color: var(--white);
    border-radius: 12px;
    padding: 2rem 1.85rem;
}
.sem-support h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
}
.sem-support p {
    color: rgba(255,255,255,0.95);
    font-size: 0.95rem;
    line-height: 1.7;
}
.sem-support-btn {
    display: inline-block;
    margin-top: 1.25rem;
    background: var(--white) !important;
    border-color: var(--white) !important;
    color: #554021 !important;
}
.sem-support-email {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}
.sem-support-email a {
    color: #E8D5A8;
    font-weight: 600;
}
@media (max-width: 1024px) {
    .sem-directors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 820px) {
    .sem-intro {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .sem-intro-logo img {
        max-width: 180px;
    }
    .sem-statements,
    .sem-contact,
    .sem-form-row {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .sem-directors-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 900px) {
    body.menu-open {
        overflow: hidden;
    }

    .container {
        padding: 0 1rem;
    }
    
    .hero h1, .ministry-hero h1 {
        font-size: 2rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }
    
    .header-main {
        flex-wrap: wrap;
        padding: 0.85rem 1rem;
    }
    
    .logo {
        margin-bottom: 0;
        max-width: calc(100% - 64px);
    }

    .logo-subtitle {
        letter-spacing: 0.08em;
        font-size: 0.62rem;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }
    
    .main-nav {
        display: block;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
    }

    .main-nav.is-open {
        max-height: 80vh;
        opacity: 1;
        margin-top: 0.8rem;
        padding-top: 0.4rem;
        border-top: 1px solid var(--grey-medium);
        pointer-events: auto;
    }
    
    .main-nav a {
        display: block;
        padding: 0.85rem 0.75rem;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid var(--grey-light);
    }

    .main-nav a.nav-btn {
        margin: 0.5rem 0 0;
        text-align: center;
    }
    
    .utility-bar {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.45rem;
        font-size: 0.85rem;
    }

    .utility-bar .divider {
        display: none;
    }
    
    .team-grid,
    .programmes-grid,
    .events-grid,
    .values-grid,
    .tradition-card {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
    }
    
    section {
        padding: 2rem 0 !important;
    }
    
    .section-header h2 {
        font-size: 2rem !important;
    }
}

@media (min-width: 901px) and (max-width: 1024px) {
    .team-grid,
    .programmes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===================================================================
   MOBILE LAYOUT — keeps every page within the viewport on phones
   =================================================================== */

/* Nothing may push the page wider than the screen. `clip` is used rather
   than `hidden` so the fixed header and anchor scrolling still behave. */
html {
    overflow-x: clip;
}

body {
    overflow-x: clip;
    overflow-wrap: break-word;
}

img,
iframe,
video,
svg,
table {
    max-width: 100%;
}

/* Grid and flex children default to min-width:auto, which lets wide
   content (embeds, long words) stretch the whole row. */
.welcome-content > *,
.welcome-media > *,
.mission-split > *,
.contact-grid > *,
[class$="-grid"] > *,
[class*="-grid "] > * {
    min-width: 0;
}

/* The horizontal nav needs ~1070px to fit; below that it was being clipped
   off the right edge, so the burger menu takes over from 1080px down. */
@media (max-width: 1080px) {
    /* The header is fixed on desktop with a hardcoded 135px offset. On smaller
       screens the utility bar wraps onto extra rows and grows past that,
       hiding the top of each page — so the header scrolls with the content. */
    .site-header {
        position: static;
    }

    main,
    #main-content,
    .site-main {
        padding-top: 0;
    }

    body.menu-open {
        overflow: hidden;
    }

    .header-main {
        flex-wrap: wrap;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .main-nav {
        display: block;
        width: 100%;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.35s ease, opacity 0.25s ease, margin-top 0.25s ease;
    }

    .main-nav.is-open {
        max-height: 80vh;
        opacity: 1;
        margin-top: 0.8rem;
        padding-top: 0.4rem;
        border-top: 1px solid var(--grey-medium);
        pointer-events: auto;
        overflow-y: auto;
    }

    .main-nav a {
        display: block;
        padding: 0.85rem 0.75rem;
        text-align: left;
        width: 100%;
        border-bottom: 1px solid var(--grey-light);
    }

    .main-nav a.nav-btn {
        margin: 0.5rem 0 0;
        text-align: center;
    }
}

@media (max-width: 900px) {
    .container {
        width: 100%;
        max-width: 100%;
    }

    /* Two-column content layouts stack */
    .welcome-content,
    .mission-split,
    .contact-grid,
    .cards-grid,
    .testimonials-grid,
    .courses-grid,
    .products-grid,
    .campaigns-grid,
    .levels-grid,
    .directors-grid,
    .speakers-grid,
    .tradition-grid--2,
    .tradition-grid--4,
    .leadership-row--top,
    .leadership-row--bottom,
    .footer-widgets {
        grid-template-columns: 1fr !important;
        gap: 1.75rem;
    }

    /* The video embed carried a hard 400px floor, wider than most phones */
    .welcome-video,
    .welcome-media,
    .video-container {
        min-width: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    .stats-grid,
    .saints-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.25rem;
    }

    .hero,
    .ministry-hero,
    .about-hero {
        min-height: 0;
        padding: 3rem 1rem;
    }

    .hero.hero--photo,
    .learninghub-hero.learninghub-hero--photo {
        background-position: center 28%;
    }

    .ministry-hero.ministry-hero--photo.ministry-hero--sem {
        background-position: center top;
    }

    .tradition-card-image img,
    .programme-card-image img,
    .mission-split-image img {
        object-position: center top;
    }

    /* Comfortable tap targets, and 16px inputs so Android doesn't zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px;
    }

    .btn,
    .button,
    button:not(.mobile-menu-toggle),
    input[type="submit"] {
        min-height: 44px;
    }

    /* Buttons sat side by side overflow narrow screens */
    .hero-buttons,
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        margin: 0 !important;
    }
}

@media (max-width: 560px) {
    .stats-grid,
    .saints-grid,
    .newsletter-name-row {
        grid-template-columns: 1fr !important;
    }

    .utility-bar {
        gap: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }

    .section-header h2,
    .section-heading h2 {
        font-size: 1.6rem !important;
    }

    .hero h1,
    .ministry-hero h1 {
        font-size: 1.75rem !important;
    }
}

/* ========== CONTEMPLATIVE CIRCLES PAGE ========== */
.ccc-intro {
    max-width: 900px;
    margin: 0 auto;
}
.ccc-intro p {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.ccc-intro p:last-child {
    margin-bottom: 0;
}
.ccc-points {
    max-width: 850px;
    margin: 2rem auto 0;
}
.ccc-saints-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.ccc-saints-grid .value-card .tagline {
    margin-bottom: 0;
}
.ccc-lead {
    text-align: center;
    color: var(--text-medium);
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.75;
}
.ccc-meetings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}
.ccc-meetings-grid .programme-card-image {
    height: 220px;
}
.ccc-meetings-grid .programme-card-image img {
    object-position: center 22%;
}
@media (max-width: 1024px) {
    .ccc-saints-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 820px) {
    .ccc-meetings-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    .ccc-saints-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== LEARNING HUB ========== */
.lh-how {
    background: var(--grey-light);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 3.5rem;
}
.lh-how h3 {
    font-size: 1.35rem;
    color: var(--brown-deep);
    margin-bottom: 1.5rem;
    text-align: center;
}
.lh-how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.lh-how-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}
.lh-how-steps h4 {
    color: var(--brown-deep);
    margin-bottom: 0.5rem;
}
.lh-how-steps p {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
}
@media (max-width: 640px) {
    .lh-how-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
