/* ============================================
   PURA VIDA CASAS - SHARED STYLES
   Font: Cormorant Garamond + Raleway
   Colors: Teal + Warm Cream + Brown + Gold
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Raleway:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
    --teal: #4a9b8c;
    --teal-dark: #357a6d;
    --teal-light: #6bbdae;
    --white: #ffffff;
    --off-white: #f8f5f0;
    --cream: #f2ede6;
    --cream-dk: #e8e0d4;
    --brown: #3d2b1a;
    --brown-mid: #6b4c30;
    --gold: #c9a058;
    --text-dark: #2c2016;
    --text-mid: #5a4535;
    --text-light: rgba(255, 255, 255, 0.85);
    --nav-h: 70px;

    --cream-dark: var(--cream-dk);
    --cream-mid: var(--cream);
    --forest: var(--teal-dark);
    --forest-light: var(--teal);
    --sage: var(--teal-light);
    --gold-light: #d9b873;
    --text-body: var(--text-mid);
    --text-muted: rgba(90, 69, 53, 0.72);
    --border: rgba(61, 43, 26, 0.12);

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Raleway', sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;

    --radius: 4px;
    --radius-md: 8px;
    --shadow: 0 12px 30px rgba(61, 43, 26, 0.08);
    --shadow-lg: 0 18px 48px rgba(61, 43, 26, 0.16);
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---- TYPOGRAPHY ---- */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 500;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: 1.15rem;
}

p {
    color: var(--text-body);
    font-size: 0.97rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* ---- HERO SECTION ---- */
.hero-section {
    position: relative;
    min-height: 480px;
    height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--brown);
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: none;
    transform: none !important;
    transition: none;
    will-change: auto;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(44, 32, 22, 0.46), rgba(44, 32, 22, 0.54));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    padding: 5rem 1rem;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 680px;
    margin-top: 1rem;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.7;
}

.hero-content .d-flex {
    justify-content: center;
}

/* ---- BUTTONS ---- */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--white);
    color: var(--brown);
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid var(--white);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-primary-custom:hover {
    background-color: var(--cream);
    border-color: var(--cream);
    color: var(--brown);
    transform: translateY(-1px);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--white);
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, 0.7);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    color: var(--white);
}

.btn-dark-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    color: var(--teal-dark);
    padding: 0.75rem 1.8rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 2px solid var(--teal-dark);
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-dark-outline:hover {
    background-color: var(--teal-dark);
    color: var(--white);
}

/* ---- SECTION SPACING ---- */
.section-pad {
    padding: 90px 0;
}

.section-pad-sm {
    padding: 60px 0;
}

.section-pad-lg {
    padding: 100px 0;
}

/* ---- INTRO / TWO-COLUMN TEXT-IMAGE ---- */
.intro-section {
    background-color: var(--off-white);
}

.intro-section .intro-text h2 {
    margin-bottom: 1.2rem;
}

.intro-section .intro-text p {
    margin-bottom: 1rem;
    color: var(--text-body);
    font-size: 0.97rem;
    line-height: 1.8;
}

.intro-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.intro-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* ---- FEATURE CARDS GRID ---- */
.features-section {
    background-color: var(--cream);
}

.feature-card {
    background: var(--white);
    border-radius: 14px;
    padding: 1.9rem 1.6rem;
    height: 100%;
    border: 1px solid var(--border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: var(--shadow);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.2rem;
}

.feature-card h4 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: var(--text-dark);
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ---- SCHEDULE / TIMELINE ---- */
.schedule-section {
    background-color: var(--white);
}

.schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.45rem 2rem;
    border: 1px solid var(--border);
    border-left: 5px solid rgba(74, 155, 140, 0.58);
    border-radius: 18px;
    margin-bottom: 1.35rem;
    background: var(--white);
    transition: background 0.2s ease;
    box-shadow: var(--shadow);
}

.schedule-item:hover {
    background: var(--white);
}

.schedule-time {
    min-width: 105px;
    padding: 0.2rem 1.6rem 0.2rem 0;
    border-right: 2px solid var(--teal-dark);
    font-size: 1rem;
    font-weight: 600;
    color: var(--teal-dark);
    letter-spacing: 0;
    line-height: 1.3;
    text-align: center;
}

.schedule-badge {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 90px;
    text-align: center;
}

.badge-morning {
    background-color: rgba(74, 155, 140, 0.14);
    color: var(--teal-dark);
}

.badge-midday {
    background-color: #F5E8D5;
    color: #7A4F20;
}

.badge-afternoon {
    background-color: #E8EEF0;
    color: #2B4A5A;
}

.badge-evening {
    background-color: var(--brown);
    color: var(--white);
}

.schedule-body h5 {
    font-family: var(--font-display);
    font-size: 1.55rem;
    margin-bottom: 0.55rem;
    color: var(--text-dark);
    font-weight: 500;
}

.schedule-body p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.75;
}

.schedule-item:has(.schedule-time) {
    align-items: center;
    border-left-width: 1px;
    padding: 1.45rem 2.2rem;
}

.schedule-item:has(.schedule-time) .schedule-body {
    padding-left: 0.1rem;
}

/* ---- TESTIMONIAL ---- */
.testimonial-section {
    background-color: var(--cream-dk);
    text-align: center;
}

.testimonial-quote {
    font-family: var(--font-accent);
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
    max-width: 780px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--gold-light);
    position: absolute;
    top: -1.5rem;
    left: -2rem;
    line-height: 1;
    font-family: Georgia, serif;
    opacity: 0.5;
}

.testimonial-author {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.testimonial-role {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ---- IMAGE GALLERY ---- */
.gallery-section {
    background-color: var(--off-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 230px 230px;
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 260px;
    gap: 12px;
}

.gallery-grid-2col .gallery-item-tall {
    grid-row: span 2;
}

/* ---- FAQ ACCORDION ---- */
.faq-section {
    background-color: var(--white);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.4rem;
    background: var(--white);
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--cream);
}

.faq-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background 0.2s ease;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--forest);
    color: var(--white);
    border-color: var(--forest);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.4rem;
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.75;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 1.4rem 1.2rem;
}

/* ---- CTA BANNER ---- */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 90px 0;
    text-align: center;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(44, 32, 22, 0.72);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 0.8rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-section .btn-light-cta {
    display: inline-block;
    background: var(--white);
    color: var(--forest);
    padding: 0.85rem 2.2rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s;
}

.cta-section .btn-light-cta:hover {
    background: var(--cream);
    transform: translateY(-2px);
}

/* ---- SECTION HEADER ---- */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

/* ---- DAILY JOURNEY (Badge style) ---- */
.journey-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.45rem 1.7rem;
    border: 1px solid var(--border);
    border-left: 5px solid rgba(74, 155, 140, 0.58);
    border-radius: 14px;
    margin-bottom: 1.1rem;
    background: var(--white);
    box-shadow: var(--shadow);
}

/* ---- TWO-COL ACTIVITY GRID ---- */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
}

.activity-item {
    padding: 1.65rem 1.85rem;
    border: 1px solid var(--border);
    border-left: 5px solid rgba(74, 155, 140, 0.58);
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.activity-item h5 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.55rem;
    color: var(--text-dark);
    font-weight: 500;
}

.activity-item p {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* ---- RETREAT SCHEDULE TABLE ---- */
.retreat-schedule {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.retreat-schedule .day-header {
    background: var(--cream-dark);
    padding: 0.7rem 1.2rem;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
}

.retreat-row {
    display: flex;
    gap: 1rem;
    padding: 0.65rem 1.2rem;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.retreat-row:last-child {
    border-bottom: none;
}

.retreat-period {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 90px;
    text-transform: capitalize;
}

.retreat-activity {
    font-size: 0.9rem;
    color: var(--text-body);
}

/* ---- UTILITY ---- */
.text-gold {
    color: var(--gold);
}

.text-forest {
    color: var(--forest);
}

.text-muted {
    color: var(--text-muted);
}

.bg-cream {
    background-color: var(--cream-mid) !important;
}

.bg-cream-dk {
    background-color: var(--cream-dark) !important;
}

.bg-white {
    background-color: var(--white) !important;
}

.fw-300 {
    font-weight: 300;
}

/* ---- SAMPLE DINING CARDS ---- */
.dining-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.65rem 2rem;
}

.dining-card {
    padding: 1.8rem 2rem;
    border: 1px solid var(--border);
    border-left: 5px solid #df8468;
    border-radius: 14px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.dining-card h5 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 500;
}

.dining-card p {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.7;
}

.dining-note {
    text-align: center;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 1.2rem;
    font-family: var(--font-accent);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .hero-section {
        min-height: 460px;
    }

    .activity-grid {
        grid-template-columns: 1fr;
    }

    .dining-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .gallery-grid,
    .gallery-grid-2col {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .gallery-grid-2col .gallery-item-tall {
        grid-row: span 1;
    }

    .gallery-item {
        height: 220px;
    }

    .schedule-time {
        min-width: 76px;
        padding-right: 1rem;
        font-size: 0.85rem;
    }

    .schedule-item,
    .schedule-item:has(.schedule-time),
    .journey-item,
    .activity-item,
    .dining-card {
        padding: 1.25rem;
    }

    .schedule-item:has(.schedule-time) {
        gap: 1rem;
    }

    .section-pad {
        padding: 55px 0;
    }

    .intro-img img {
        height: 250px;
    }
}