/* ==========================================
   Global Styles & Variables
   ========================================== */

:root {
    /* Colors are set dynamically by theme.css.php */
    --white: #ffffff;

    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;

    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--dark-color);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================
   Navigation
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-logo {
    height: 50px;
    width: 50px;
    object-fit: contain;
    border-radius: 50%;
}

.nav-brand-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: var(--white);
}

/* Gradient overlay for hero image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    opacity: 0.85;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dark-color);
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--white);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    color: var(--white);
    opacity: 0.95;
}

.hero-location {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    opacity: 0.9;
    font-weight: 300;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

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

.btn-light {
    background: var(--white);
    color: var(--primary-color);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    margin-left: 1rem;
}

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

/* ==========================================
   About Section
   ========================================== */

.about {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
    background: var(--white);
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================
   Section Titles
   ========================================== */

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light); /* Now #4a5b55 - WCAG AA compliant */
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ==========================================
   Services Section
   ========================================== */

.services {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
    background: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-image {
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: #4a6b5e; /* Darkened primary for WCAG AA contrast (4.5:1+) */
    margin-bottom: 0.25rem;
    font-size: 1.6rem;
}

.service-content p {
    line-height: 1.8;
}

.service-type {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a6d2f !important; /* Darkened gold for WCAG AA contrast (4.5:1+) */
    font-weight: 500;
    margin-bottom: 1rem !important;
}

.service-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color) !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
}

.service-price-options {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
}

.price-option-line {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
    font-size: 1rem;
    color: var(--dark-color);
}

.price-option-label {
    font-weight: 500;
    white-space: nowrap;
}

.price-option-dots {
    flex: 1;
    border-bottom: 2px dotted var(--secondary-color);
    margin: 0 0.25rem;
    min-width: 20px;
    position: relative;
    top: -3px;
}

.price-option-amount {
    font-weight: 600;
    white-space: nowrap;
    color: var(--dark-color);
}

/* ==========================================
   Add-ons Section
   ========================================== */

.addons {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
    background: var(--light-color);
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.addon-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.addon-image {
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.addon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.addon-card:hover .addon-image img {
    transform: scale(1.05);
}

/* Placeholder when a service or add-on has no image (or the file is missing):
   the leaf sprig on a light panel, so the card never shows a broken image */
.service-image.is-placeholder,
.addon-image.is-placeholder {
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-image.is-placeholder img,
.addon-image.is-placeholder img {
    width: auto;
    height: 72%;
    object-fit: contain;
}

.addon-content {
    padding: 2rem;
}

.addon-content h3 {
    color: #4a6b5e;
    margin-bottom: 0.25rem;
    font-size: 1.6rem;
}

.addon-content p {
    line-height: 1.8;
}

.addon-type {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8a6d2f !important;
    font-weight: 500;
    margin-bottom: 1rem !important;
}

.addon-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color) !important;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--light-color);
}

/* ==========================================
   Reviews Section
   ========================================== */

.reviews {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
    background: var(--white);
}

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

.review-card {
    background: var(--light-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
}

.review-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.review-card.visible:hover {
    transform: translateY(-4px);
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.review-stars .star-filled {
    color: #d4af6a;
}

.review-stars .star-empty {
    color: #d1d5db;
}

.review-text {
    flex: 1;
    margin-bottom: 1.25rem;
}

.review-text p {
    line-height: 1.8;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.review-source {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.reviews-cta {
    text-align: center;
    margin-top: 3rem;
}

.reviews-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--dark-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
}

.reviews-cta-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.reviews-cta-btn:hover svg path {
    fill: var(--white);
}

/* ==========================================
   Call to Action
   ========================================== */

.cta {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact {
    position: relative;
    z-index: 10;
    padding: 6rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h3 {
    color: #4a6b5e; /* Darkened primary for WCAG AA contrast */
    margin-bottom: 0.5rem;
}

.info-item h4 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-light);
    line-height: 1.8;
}

.phone-link {
    color: #4a6b5e; /* Darkened primary for WCAG AA contrast */
    font-weight: 600;
    font-size: 1.2rem;
}

.phone-link:hover {
    color: var(--accent-color);
}

.contact-note {
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--dark-color);
    transform: translateY(-2px);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.facebook:hover {
    background: #145dbf;
}

.social-link.instagram {
    background: #E1306C;
}

.social-link.instagram:hover {
    background: #c13584;
}

.social-link.booking {
    background: var(--accent-color);
    font-weight: 600;
}

.social-link.booking:hover {
    background: var(--dark-color);
}

.booking-link-wrap {
    margin: 1rem 0;
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--light-color);
    min-height: 300px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: block;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 300;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    position: relative;
    z-index: 10;
    background: var(--dark-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 1.5rem;
}

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

.footer-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 5px;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.85); /* Increased opacity for WCAG AA contrast */
    margin-bottom: 0.5rem;
}

.footer-brand a {
    color: rgba(255, 255, 255, 0.9); /* Increased opacity for WCAG AA contrast */
}

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

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9); /* Increased opacity for WCAG AA contrast */
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8); /* Increased opacity for WCAG AA contrast */
    font-size: 0.9rem;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-logo {
        height: 40px;
        width: 40px;
    }

    .nav-brand-text {
        font-size: 1.1rem;
    }

    .footer-logo {
        width: 70px;
        height: 70px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-location {
        font-size: 1rem;
    }

    .hero-content .btn {
        display: block;
        margin: 0.5rem auto;
        width: 80%;
        max-width: 300px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-intro {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.85rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .addons-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .review-card {
        padding: 1.5rem;
    }

    .reviews-cta-btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ==========================================
   Modular Section Templates
   ========================================== */

/* Base section styles */
.section-module {
    position: relative;
    z-index: 10;
    padding: 5rem 0;
}

/* Alternating backgrounds — exclude banner templates which handle their own */
.section-module:nth-child(even):not(.section-hero-banner):not(.section-cta-banner) {
    background: var(--white);
}

.section-module:nth-child(odd):not(.section-hero-banner):not(.section-cta-banner) {
    background: var(--light-color);
}

/* Hero Banner Template */
.section-hero-banner {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: var(--white);
    padding: 4rem 0;
    --section-text: #ffffff;
    --section-title: #ffffff;
    --section-subtitle: #ffffff;
}

/* Image overlay — hidden by default, shown only when a bg image is set */
.section-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    z-index: 0;
    display: none;
}

.section-hero-banner.has-bg-image::before {
    display: block;
    opacity: 0.85;
}

.section-hero-banner .section-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.section-hero-banner .section-title {
    font-size: 3.5rem;
    color: var(--section-title);
    margin-bottom: 1rem;
}

.section-hero-banner .section-subtitle {
    font-size: 1.5rem;
    color: var(--section-subtitle);
    margin-bottom: 1.5rem;
}

.section-hero-banner .section-text {
    font-size: 1.1rem;
    color: var(--section-text);
    margin-bottom: 2rem;
}

/* Image Left Template */
.section-image-left .section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-image-left .section-image {
    order: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-image-left .section-text-content {
    order: 2;
}

/* Image Right Template */
.section-image-right .section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-image-right .section-image {
    order: 2;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-image-right .section-text-content {
    order: 1;
}

/* Shared styles for image left/right */
.section-image-left .section-image img,
.section-image-right .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.section-image-left .section-title,
.section-image-right .section-title {
    text-align: left;
    font-size: 2.5rem;
}

.section-image-left .section-subtitle,
.section-image-right .section-subtitle {
    text-align: left;
    color: var(--section-subtitle, var(--primary-color));
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.section-image-left .section-text p,
.section-image-right .section-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Image Above Template */
.section-image-above .section-inner {
    text-align: center;
}

.section-image-above .section-image {
    max-width: 900px;
    margin: 0 auto 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.section-image-above .section-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.section-image-above .section-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Text Only Template */
.section-text-only {
    text-align: center;
}

.section-text-only .section-inner {
    max-width: 800px;
    margin: 0 auto;
}

.section-text-only .section-text p {
    font-size: 1.1rem;
    line-height: 1.9;
}

/* CTA Banner Template */
.section-cta-banner {
    text-align: center;
    color: var(--white);
    padding: 4rem 0;
    /* Set default theme values for CTA banner - fully opaque for WCAG AA contrast */
    --section-text: #ffffff;
    --section-title: #ffffff;
    --section-subtitle: #ffffff;
}

/* Default gradient background - only when no theme preset is applied */
.section-cta-banner:not([class*="section-theme-"]) {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
}

.section-cta-banner .section-title {
    color: var(--section-title);
    font-size: 2.5rem;
}

.section-cta-banner .section-subtitle {
    color: var(--section-subtitle);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.section-cta-banner .section-text {
    color: var(--section-text);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Quote / Testimonial Template */
.section-quote {
    text-align: center;
    padding: 5rem 0;
    background: var(--light-color);
}

.section-quote .section-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section-quote blockquote {
    font-family: var(--section-title-font, var(--font-heading));
    font-size: 2rem;
    font-style: italic;
    color: var(--section-title, var(--dark-color));
    line-height: 1.6;
    margin: 0;
    padding: 2rem 0;
    position: relative;
}

.section-quote blockquote::before {
    content: '"';
    font-size: 6rem;
    color: var(--section-accent, var(--primary-color));
    opacity: 0.3;
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, serif;
}

.section-quote .quote-attribution {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--section-text, #4a5b55); /* Updated for WCAG AA contrast */
    font-weight: 500;
}

/* Image Gallery Template */
.section-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.section-gallery .gallery-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.section-gallery .gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.section-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Full Width Image Template */
.section-full-width-image {
    padding: 0;
}

.section-full-width-image .section-image {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
}

.section-full-width-image .section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-full-width-image .image-caption {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    font-style: italic;
    color: var(--text-light); /* Now #4a5b55 - WCAG AA compliant */
}

/* Two Column Text Template */
.section-two-column .section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.section-two-column .section-title {
    grid-column: span 2;
    text-align: center;
    margin-bottom: 2rem;
}

.section-two-column .column {
    line-height: 1.8;
}

/* Section Button Styles */
.section-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 0.9rem;
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    margin-top: 1rem;
}

.section-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.section-cta-banner .section-btn,
.section-hero-banner .section-btn {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.section-cta-banner .section-btn:hover,
.section-hero-banner .section-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

/* Secondary button style */
.section-btn.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    margin-left: 0.5rem;
}

.section-btn.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.section-hero-banner .section-btn.btn-secondary,
.section-cta-banner .section-btn.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.section-hero-banner .section-btn.btn-secondary:hover,
.section-cta-banner .section-btn.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Outline button style */
.section-btn.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
    margin-left: 0.5rem;
}

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

/* Button container */
.section-buttons {
    margin-top: 1.5rem;
}

.section-buttons .section-btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* ==========================================
   Section Theme Variations
   CSS custom properties for section-specific theming
   ========================================== */

/* Section Theme CSS Variables - dark text defaults for content sections */
.section-module:not(.section-hero-banner):not(.section-cta-banner) {
    --section-text: var(--text-light);
    --section-title: var(--dark-color);
    --section-subtitle: var(--primary-color);
    --section-accent: var(--accent-color);
}

/* Apply color CSS variables to section elements */
.section-module .section-title {
    color: var(--section-title);
}

.section-module .section-subtitle,
.section-module .section-intro {
    color: var(--section-subtitle);
}

.section-module .section-text,
.section-module .section-text p,
.section-module p:not(.quote-attribution):not(.section-subtitle):not(.section-intro) {
    color: var(--section-text);
}

/* Font overrides - use separate class to ensure high specificity */
.section-module.has-custom-title-font .section-title {
    font-family: var(--section-title-font) !important;
}

.section-module.has-custom-title-weight .section-title {
    font-weight: var(--section-title-weight) !important;
}

.section-module.has-custom-title-size .section-title {
    font-size: var(--section-title-size) !important;
}

.section-module.has-custom-body-font .section-text,
.section-module.has-custom-body-font .section-text p,
.section-module.has-custom-body-font p.section-text,
.section-module.has-custom-body-font p:not(.quote-attribution):not(.section-subtitle):not(.section-intro) {
    font-family: var(--section-body-font) !important;
}

.section-module.has-custom-body-weight .section-text,
.section-module.has-custom-body-weight .section-text p,
.section-module.has-custom-body-weight p.section-text,
.section-module.has-custom-body-weight p:not(.quote-attribution):not(.section-subtitle):not(.section-intro) {
    font-weight: var(--section-body-weight) !important;
}

.section-module.has-custom-body-size .section-text,
.section-module.has-custom-body-size .section-text p,
.section-module.has-custom-body-size p.section-text,
.section-module.has-custom-body-size p:not(.quote-attribution):not(.section-subtitle):not(.section-intro) {
    font-size: var(--section-body-size) !important;
}

/* Theme Preset: Primary */
.section-theme-primary {
    background: var(--primary-color);
    --section-text: #ffffff;
    --section-title: #ffffff;
    --section-subtitle: #ffffff;
    --section-accent: var(--accent-color);
}

.section-theme-primary .section-btn {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.section-theme-primary .section-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.section-theme-primary .section-btn.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Theme Preset: Secondary */
.section-theme-secondary {
    background: var(--secondary-color);
    --section-text: var(--text-dark);
    --section-title: var(--dark-color);
    --section-subtitle: var(--dark-color);
    --section-accent: var(--accent-color);
}

/* Theme Preset: Highlight (Accent Color) */
.section-theme-highlight {
    background: var(--accent-color);
    --section-text: #ffffff;
    --section-title: #ffffff;
    --section-subtitle: #ffffff;
    --section-accent: #ffffff;
}

.section-theme-highlight .section-btn {
    background: var(--white);
    color: var(--accent-color);
    border-color: var(--white);
}

.section-theme-highlight .section-btn:hover {
    background: var(--dark-color);
    color: var(--white);
    border-color: var(--dark-color);
}

/* Theme Preset: Dark */
.section-theme-dark {
    background: var(--dark-color);
    --section-text: #ffffff;
    --section-title: #ffffff;
    --section-subtitle: #ffffff;
    --section-accent: var(--accent-color);
}

.section-theme-dark .section-btn {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.section-theme-dark .section-btn:hover {
    background: var(--white);
    color: var(--dark-color);
    border-color: var(--white);
}

.section-theme-dark .section-btn.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Theme Preset: Light */
.section-theme-light {
    background: var(--white);
    --section-text: var(--text-light);
    --section-title: var(--dark-color);
    --section-subtitle: var(--text-light);
    --section-accent: var(--accent-color);
}

/* Theme Preset: Muted */
.section-theme-muted {
    background: var(--light-color);
    --section-text: var(--text-light);
    --section-title: var(--dark-color);
    --section-subtitle: var(--text-light);
    --section-accent: var(--primary-color);
}

.section-theme-muted .section-btn {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Theme Preset: Gradient */
.section-theme-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    --section-text: #ffffff;
    --section-title: #ffffff;
    --section-subtitle: #ffffff;
    --section-accent: var(--accent-color);
}

.section-theme-gradient .section-btn {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.section-theme-gradient .section-btn:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.section-theme-gradient .section-btn.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Theme Preset: Custom - Uses inline CSS variables */
.section-theme-custom {
    /* All colors come from inline styles */
}

/* Responsive Adjustments for Section Templates */
@media (max-width: 768px) {
    .section-hero-banner .section-title {
        font-size: 2.5rem;
    }

    .section-hero-banner .section-subtitle {
        font-size: 1.2rem;
    }

    .section-image-left .section-inner,
    .section-image-right .section-inner,
    .section-two-column .section-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-image-left .section-image,
    .section-image-right .section-image {
        order: 1;
    }

    .section-image-left .section-text-content,
    .section-image-right .section-text-content {
        order: 2;
    }

    .section-two-column .section-title {
        grid-column: span 1;
    }

    .section-image-left .section-title,
    .section-image-right .section-title {
        text-align: center;
    }

    .section-image-left .section-subtitle,
    .section-image-right .section-subtitle {
        text-align: center;
    }

    .section-quote blockquote {
        font-size: 1.5rem;
    }
}

/* ==========================================
   Corner Leaves (per-section setting: corner_leaves)
   Sprig in the top-left and bottom-right corners, like the business card.
   Same drawing for both corners; the top-left one is turned 180 degrees.
   Drawn at z-index -1 inside the section's stacking context, so it sits
   above the section background but under the text and cards.
   ========================================== */
.has-corner-leaves {
    --leaf-size: clamp(90px, 14vw, 190px);
    position: relative;
    /* Keep the sprigs inside the section padding so they never sit under text or controls */
    padding-top: max(5rem, var(--leaf-size));
    padding-bottom: max(5rem, var(--leaf-size));
}

.has-corner-leaves::before,
.has-corner-leaves::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: var(--leaf-size);
    aspect-ratio: 1;
    background: url('../images/leaf-corner.svg') no-repeat center / contain;
    pointer-events: none;
}

.has-corner-leaves::before {
    top: 0;
    left: 0;
    transform: rotate(180deg);
}

.has-corner-leaves::after {
    bottom: 0;
    right: 0;
}

@media (max-width: 480px) {
    .has-corner-leaves {
        --leaf-size: 72px;
    }

    .has-corner-leaves::before,
    .has-corner-leaves::after {
        opacity: 0.8;
    }
}

/* Decoration only: drop it in high contrast / forced colors mode */
@media (forced-colors: active) {
    .has-corner-leaves::before,
    .has-corner-leaves::after {
        display: none;
    }
}

@media print {
    .has-corner-leaves::before,
    .has-corner-leaves::after {
        display: none;
    }
}
