/* Custom variables for Illumination retreat */
:root {
    --light-beige: #eeedea;
    --dark-beige: #c7c1b7;
    --light-purple: #b9a9b2;
    --dark-purple: #422a46;
    --gold: #FAB030;
    --white: #ffffff;
    --text-color: #3a3a3a;
    --accent-color: #315858;
    --script-font: 'Great Vibes', cursive;
    --serif-font: 'Poppins', Helvetica, Arial, sans-serif;
}

#page-container {
    padding-top: 0 !important;
}

#main-header,
#main-header .et_builder_inner_content {
    z-index: 10000 !important;
    position: relative;
}

.illumination-page {
    position: relative;
    z-index: 1;
}

/* ── Base ─────────────────────────────────── */
.illumination-page {
    font-family: "Poppins", Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.15rem;
    overflow-x: hidden;
}

.illumination-page h1,
.illumination-page h2,
.illumination-page h3,
.illumination-page h4 {
    font-family: 'itc-avant-garde-gothic-pro', Helvetica, Arial, sans-serif;
    color: var(--dark-purple);
    font-weight: 300;
    line-height: 1.3;
}

/* ── Calligraphy & serif accent classes ──── */
.script-text {
    font-family: var(--script-font);
    font-weight: 400;
}

.serif-text {
    font-family: var(--serif-font);
    font-weight: 300;
}

.serif-italic {
    font-family: var(--serif-font);
    font-weight: 300;
    font-style: italic;
}

/* ── Fade-in animations ───────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* ── Letter section backgrounds ──────────── */
.letter-flowers {
    position: relative;
    background: url('/wp-content/themes/jvp-main/fiji-2026/jvp-background.jpg') center / cover no-repeat;
    background-color: var(--white);
    background-blend-mode: luminosity;
}

.letter-flowers::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.64);
    z-index: 0;
}

.letter-flowers::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/wp-content/themes/jvp-main/fiji-2026/tropical-flowers-v2.svg') center bottom / contain no-repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* ── Hero ─────────────────────────────────── */
.illumination-hero {
    position: relative;
    background: url('/wp-content/themes/jvp-main/fiji-2026/fiji-v6.jpeg') center/cover no-repeat;
    background-color: var(--accent-color);
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 60px 40px;
    margin: 0 auto;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4.5rem;
    letter-spacing: 8px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: var(--dark-purple) !important;
}

.hero-tagline {
    font-family: var(--script-font);
    font-size: 2.2rem;
    color: var(--dark-purple);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.hero-subtitle {
    color: var(--dark-purple);
    font-size: 2rem;
    font-weight: 300;
}

.hero-date {
    font-size: 1rem;
    color: var(--dark-purple);
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 25px;
    display: inline-block;
    border-top: 1px solid rgba(66, 42, 70, 0.3);
    border-bottom: 1px solid rgba(66, 42, 70, 0.3);
    padding: 12px 35px;
    font-weight: 400;
}

/* ── Section base ─────────────────────────── */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-letter {
    max-width: 900px;
    text-align: left;
    font-size: 1.25rem;
    color: var(--text-color);
    padding-bottom: 220px;
}

/* ── Arched image ─────────────────────────── */
.arched-image-wrapper {
    text-align: center;
    margin-top: -150px;
    position: relative;
    z-index: 5;
}

.arched-image {
    display: inline-block;
    border-top-left-radius: 250px;
    border-top-right-radius: 250px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    background-color: var(--light-beige);
    width: 100%;
    max-width: 450px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.arched-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.arched-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/5;
    object-fit: cover;
}

/* ── Gallery section ──────────────────────── */
.gallery-section {
    background-color: var(--white);
    padding: 80px 20px 40px;
    text-align: center;
}

.gallery-heading {
    font-family: 'itc-avant-garde-gothic-pro', Helvetica, Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--dark-purple);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.gallery-subheading {
    font-family: var(--script-font);
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 10px;
    font-weight: 400;
}

/* ── Intro section ────────────────────────── */
.intro-section {
    background-color: var(--light-beige);
    padding: 60px 20px 40px;
    position: relative;
}

.intro-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: url('/wp-content/themes/jvp-main/fiji-2026/tropical-flowers-v2.svg') bottom center / auto 100% repeat-x;
    opacity: 0.35;
    pointer-events: none;
}

/* ── Box layout ───────────────────────────── */
.box-layout {
    background-color: var(--white);
    padding: 70px 60px;
    margin: 0 auto;
    max-width: 1000px;
    border: 3px solid var(--gold);
    text-align: center;
    font-size: 1.25rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
}

.box-layout h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--dark-purple);
}

.box-layout .box-subtitle {
    font-family: var(--script-font);
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 30px;
    font-weight: 400;
}

.box-layout p {
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 400;
    color: var(--text-color);
}

/* ── Buttons ──────────────────────────────── */
.btn-primary {
    display: inline-block;
    background-color: var(--gold);
    color: var(--white);
    padding: 20px 50px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 3px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.15rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(66, 42, 70, 0.2);
}

.btn-primary:hover {
    background-color: var(--dark-purple);
    color: var(--white);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(66, 42, 70, 0.3);
}

/* ── Styled list ──────────────────────────── */
ul.styled-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

ul.styled-list li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

ul.styled-list li::before {
    content: "\2022";
    color: var(--gold);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: -2px;
}

/* ── Layout helpers ───────────────────────── */
.flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    align-items: center;
}

.flex-col {
    flex: 1;
    min-width: 300px;
}

/* ── Letter section ───────────────────────── */
.letter-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.letter-image {
    flex-shrink: 0;
    width: 320px;
    position: sticky;
    top: 120px;
}

.letter-image .arched-image {
    width: 100%;
    max-width: 320px;
}

.letter-text {
    flex: 1;
}

.letter-text p {
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 400;
    color: var(--text-color);
}

.letter-greeting {
    font-family: var(--script-font) !important;
    font-size: 2.2rem !important;
    color: var(--dark-purple);
    margin-bottom: 20px;
}

.letter-signature {
    margin-top: 35px;
    font-style: italic;
}

.letter-signature .love {
    font-size: 1.15rem;
    font-style: italic;
}

.letter-signature .name {
    font-family: var(--script-font);
    font-size: 3rem;
    color: var(--dark-purple);
    display: block;
    margin-top: 5px;
}

/* ── Bio sections ─────────────────────────── */
.bio-section {
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
    overflow: visible;
}

.bio-section .section {
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 10;
}

.bio-section .flex-col.image-col {
    max-width: 45%;
    text-align: center;
}

.bio-section .arched-image {
    margin-top: -150px;
}

.bio-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.bio-images .arched-image.secondary {
    margin-top: 0;
    max-width: 450px;
    border-radius: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.bio-images .arched-image.secondary img {
    aspect-ratio: 3/2;
}

.bio-heading {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400 !important;
    color: var(--gold) !important;
}

.bio-subheading {
    font-family: var(--script-font);
    font-size: 2.4rem;
    color: var(--gold);
    margin-bottom: 25px;
    font-weight: 400;
}

.bio-section-title {
    font-size: 1.3rem;
    color: var(--dark-purple);
    font-style: italic;
    font-weight: 400;
    margin-bottom: 5px;
}

/* ── Gold divider ─────────────────────────── */
.gold-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 25px auto;
}

.gold-divider-left {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 20px 0;
}

/* ── Transformational card ────────────────── */
.transform-card {
    text-align: center;
    max-width: 900px;
    padding: 60px;
    background-color: var(--light-beige);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 10;
    margin: 0 auto;
}

.transform-card h2 {
    font-family: var(--script-font);
    font-size: 2.8rem;
    color: var(--gold);
    font-weight: 400;
    line-height: 1.4;
}

.transform-card .lead {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: var(--gold);
    font-style: italic;
    font-weight: 400;
    line-height: 1.9;
}

.transform-card .closing {
    margin-top: 40px;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--dark-purple);
    font-weight: 400;
    line-height: 1.9;
}

.transform-card .section-label {
    text-align: left;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--gold);
}

/* ── Venue carousel ───────────────────────── */
.carousel-wrapper {
    position: relative;
    max-width: 100%;
    margin: 20px 0 40px;
    overflow: visible;
}

.venue-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 50px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.venue-carousel::-webkit-scrollbar {
    display: none;
}

.venue-carousel img {
    height: 400px;
    width: auto;
    min-width: 250px;
    max-width: 85vw;
    object-fit: cover;
    border-radius: 20px;
    scroll-snap-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.venue-carousel img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
}

/* Carousel navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

.carousel-arrow:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(178, 138, 43, 0.3);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0 0;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dark-beige);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--gold);
}

/* ── Venue / CTA section ──────────────────── */
.venue-cta-section {
    background-color: var(--light-beige);
    padding: 80px 0 60px;
    border-top: 1px solid var(--gold);
    border-bottom: 5px solid var(--dark-purple);
    position: relative;
    overflow: hidden;
}

.event-recap {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(178, 138, 43, 0.2);
}

.event-recap h3 {
    font-size: 2.2rem;
    color: var(--gold);
    font-family: 'itc-avant-garde-gothic-pro', sans-serif;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.event-recap .date {
    font-size: 1.4rem;
    color: var(--dark-purple);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.event-recap .subtitle {
    font-family: var(--script-font);
    font-size: 1.8rem;
    color: #4a4a4a;
    margin-top: 10px;
}

.venue-heading {
    font-size: 2.2rem;
    color: var(--dark-purple);
    margin-bottom: 20px;
}

.venue-description {
    color: var(--text-color);
    font-size: 1.15rem;
    line-height: 1.9;
    font-weight: 400;
}

.contact-box {
    margin-top: 40px;
    padding: 35px 45px;
    border: 2px solid var(--gold);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-box .hint {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.contact-box a {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: var(--dark-purple);
}

.contact-box a.underline {
    text-decoration: underline;
}

.contact-box a.phone {
    text-decoration: none;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 980px) {
    .bio-section .flex-col.image-col {
        max-width: 100%;
    }

}

@media (max-width: 768px) {
    .flex-row {
        flex-direction: column;
    }

    .arched-image-wrapper {
        margin-top: 0;
    }

    .box-layout {
        padding: 30px;
    }

    /* Hero - use mobile-optimized image, match 4/5 aspect ratio */
    .illumination-hero {
        background-image: url('/wp-content/themes/jvp-main/fiji-2026/fiji-v6-mobile-optimised.png');
        background-position: center center;
        min-height: 0;
        aspect-ratio: 4 / 5;
        padding: 80px 20px;
    }

    .bio-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .bio-section .arched-image {
        margin-top: 0;
        max-width: 300px;
    }

    .bio-images .arched-image.secondary {
        max-width: 300px;
    }

    .bio-section .flex-col.image-col {
        max-width: 100%;
    }

    .transform-card {
        padding: 30px 20px;
    }

    .transform-card h2 {
        font-size: 2rem;
    }

    .venue-carousel img {
        height: 280px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 16px 35px;
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .section {
        padding: 50px 20px;
    }

    /* Dear Friends - adjust background to show James on left */
    .letter-flowers {
        background-position: left center;
    }

    .letter-flowers::before {
        background: rgba(255, 255, 255, 0.75);
    }

    .letter-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .letter-image {
        width: 250px;
        position: static;
    }

    .letter-greeting {
        font-size: 1.8rem !important;
    }

    .letter-signature .name {
        font-size: 2.2rem;
    }

    .letter-text p {
        font-size: 1.05rem;
    }

    .bio-heading {
        font-size: 1.4rem;
    }

    .bio-subheading {
        font-size: 1.8rem;
    }

    .contact-box {
        padding: 25px 20px;
    }

    .intro-section::after {
        height: 120px;
    }
}

@media (max-width: 480px) {

    .illumination-hero {
        padding: 60px 15px;
    }

    .box-layout .box-subtitle {
        font-size: 1.5rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .carousel-arrow.prev {
        left: 5px;
    }

    .carousel-arrow.next {
        right: 5px;
    }

    .letter-flowers::before {
        background: rgba(255, 255, 255, 0.82);
    }

    .letter-text p {
        font-size: 1rem;
    }

    .bio-heading {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .bio-subheading {
        font-size: 1.5rem;
    }

    .event-recap h3 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .venue-heading {
        font-size: 1.6rem;
    }

    .venue-carousel img {
        height: 240px;
    }

    .intro-section::after {
        height: 80px;
    }
}