/* TeamEnergy Retreats — design tokens from brand & mockup */
:root {
    --te-green: #1a362e;
    --te-green-dark: #142820;
    --te-green-light: #2d5a4a;
    --te-navy: #002147;
    --te-cream: #f9f7f2;
    --te-beige: #efe9df;
    --te-orange: #e67e22;
    --te-gold: #d4a017;
    --te-text: #1c1c1c;
    --te-text-muted: #5c5c5c;
    --te-white: #ffffff;
    --te-radius: 12px;
    --te-radius-pill: 50px;
    --te-shadow: 0 4px 24px rgba(26, 54, 46, 0.08);
    --te-shadow-lg: 0 8px 32px rgba(26, 54, 46, 0.12);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Source Sans 3', 'Segoe UI', sans-serif;
    --container-max: 1200px;
    --header-h: 88px;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--te-text);
    background: var(--te-white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.te-serif {
    font-family: var(--font-serif);
    color: var(--te-green);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a { color: var(--te-green); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--te-green-light); }

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

.te-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* Header */
.te-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(26, 54, 46, 0.06);
    min-height: var(--header-h);
}

.te-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.te-logo img { height: 52px; width: auto; }

.te-nav {
    display: none;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    justify-content: center;
}

.te-nav a, .te-nav .te-nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--te-green);
    padding: 0.5rem 0.85rem;
    white-space: nowrap;
}

.te-nav a:hover { color: var(--te-green-light); }

.te-nav-dropdown { position: relative; }
.te-nav-dropdown .dropdown-menu {
    border: none;
    box-shadow: var(--te-shadow-lg);
    border-radius: var(--te-radius);
    padding: 0.5rem;
    margin-top: 0.25rem;
}

.te-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--te-radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
}

.te-btn-primary {
    background: var(--te-green);
    color: var(--te-white);
    border-color: var(--te-green);
}
.te-btn-primary:hover {
    background: var(--te-green-dark);
    border-color: var(--te-green-dark);
    color: var(--te-white);
}

.te-btn-outline {
    background: transparent;
    color: var(--te-green);
    border-color: var(--te-green);
}
.te-btn-outline:hover {
    background: var(--te-green);
    color: var(--te-white);
}

.te-btn-white {
    background: var(--te-white);
    color: var(--te-green);
    border-color: var(--te-white);
}
.te-btn-white:hover {
    background: var(--te-cream);
    color: var(--te-green-dark);
}

.te-btn-outline-white {
    background: transparent;
    color: var(--te-white);
    border-color: var(--te-white);
}
.te-btn-outline-white:hover {
    background: var(--te-white);
    color: var(--te-green);
}

.te-mobile-toggle {
    display: flex;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--te-green);
    padding: 0.25rem;
}

@media (min-width: 992px) {
    .te-nav { display: flex; }
    .te-mobile-toggle { display: none; }
}

/* Hero */
.te-hero {
    position: relative;
    min-height: clamp(480px, 72vh, 620px);
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.te-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 45%, rgba(255,255,255,0.2) 100%);
}

.te-hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 3rem 0;
}

.te-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    margin-bottom: 1rem;
    color: var(--te-green);
}

.te-hero-lead {
    font-size: 1.05rem;
    color: var(--te-text-muted);
    margin-bottom: 1.75rem;
}

.te-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.te-btn-video {
    background: var(--te-white);
    color: var(--te-green);
    border-color: var(--te-white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.te-btn-video:hover {
    background: var(--te-cream);
    color: var(--te-green-dark);
    border-color: var(--te-cream);
}

/* Sections */
.te-section { padding: 4rem 0; }
.te-section-cream { background: var(--te-cream); }
.te-section-title {
    text-align: center;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 2.5rem;
}

.te-section-title.te-sans {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--te-text);
    letter-spacing: 0.01em;
}

/* Category cards — icon above image, six across on desktop */
.te-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 576px) { .te-category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .te-category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .te-category-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }

.te-category-grid { padding-top: 1.25rem; }

.te-category-card {
    border-radius: var(--te-radius);
    overflow: visible;
    background: var(--te-white);
    box-shadow: var(--te-shadow);
    transition: transform .3s, box-shadow .3s;
    text-align: center;
    padding: 0 0 1.25rem;
}

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

.te-category-icon {
    width: 52px;
    height: 52px;
    margin: -26px auto 0.75rem;
    background: var(--te-white);
    border: 2px solid rgba(26, 54, 46, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--te-green);
    font-size: 1.2rem;
    box-shadow: var(--te-shadow);
    position: relative;
    z-index: 2;
}

.te-category-card-img {
    margin: 0 0.65rem;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.te-category-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.te-category-body { padding: 0.85rem 0.75rem 0; }
.te-category-body h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--te-green);
}
.te-category-body p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--te-text-muted);
    line-height: 1.5;
}

/* Journey — dashed connectors between steps */
.te-journey {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem 0;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.te-journey-step {
    flex: 0 0 100%;
    max-width: 160px;
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}

@media (min-width: 768px) {
    .te-journey-step { flex: 1 1 0; min-width: 0; }
}

.te-journey-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 0.85rem;
    border: 2px dashed rgba(26, 54, 46, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--te-green);
    background: var(--te-white);
}

.te-journey-step h4 {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--te-green);
}

.te-journey-step p {
    font-size: 0.78rem;
    color: var(--te-text-muted);
    margin: 0;
    line-height: 1.45;
}

@media (min-width: 768px) {
    .te-journey-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 38px;
        left: calc(50% + 42px);
        width: calc(100% - 84px);
        height: 0;
        border-top: 2px dashed rgba(26, 54, 46, 0.22);
    }
    .te-journey-step:not(:last-child)::before {
        content: '›';
        position: absolute;
        top: 30px;
        right: -6px;
        color: rgba(26, 54, 46, 0.35);
        font-size: 1rem;
        font-weight: 700;
        z-index: 1;
    }
}

/* Featured programs carousel */
.te-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.te-section-header h2 { margin: 0; text-align: left; font-size: 2rem; }
.te-link-arrow { font-weight: 600; font-size: 0.95rem; }

.te-programs-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.te-program-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: var(--te-radius);
    overflow: hidden;
    background: var(--te-white);
    box-shadow: var(--te-shadow);
}

.te-program-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.te-program-card-body { padding: 1.15rem 1.25rem 1.35rem; }
.te-program-card-body h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
}

.te-program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: 0.8rem;
    color: var(--te-text-muted);
}

.te-program-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

.te-program-price {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(26, 54, 46, 0.08);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--te-green);
}

.te-carousel-wrap { position: relative; padding: 0 2.5rem; }

.te-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(26, 54, 46, 0.12);
    background: var(--te-white);
    color: var(--te-text-muted);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--te-shadow);
    transition: background .2s, color .2s;
}

.te-carousel-btn:hover {
    background: var(--te-cream);
    color: var(--te-green);
}

.te-carousel-btn--prev { left: 0; }
.te-carousel-btn--next { right: 0; }

@media (min-width: 768px) {
    .te-carousel-btn { display: flex; }
    .te-carousel-wrap { padding: 0 3rem; }
}

/* Dual CTA */
.te-dual-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) { .te-dual-cta { grid-template-columns: 1fr 1fr; } }

.te-cta-card {
    border-radius: var(--te-radius);
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.te-cta-card-dark {
    background: var(--te-green);
    color: var(--te-white);
}

.te-cta-card-dark h2, .te-cta-card-dark h3 { color: var(--te-white); }

.te-cta-card-dark .te-cta-list li i { color: rgba(255, 255, 255, 0.9); }

.te-cta-card-light {
    background: var(--te-beige);
    color: var(--te-text);
}

.te-cta-card h2 {
    font-size: 1.65rem;
    margin-bottom: 0.75rem;
}

.te-cta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.te-cta-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.te-cta-card-img {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid rgba(255, 255, 255, 0.35);
    box-shadow: var(--te-shadow-lg);
    pointer-events: none;
}

.te-cta-card-light .te-cta-card-img {
    border-color: rgba(26, 54, 46, 0.08);
}

.te-cta-card .te-btn { align-self: flex-start; max-width: calc(100% - 150px); }

@media (min-width: 992px) {
    .te-cta-card { padding-right: 9rem; min-height: 340px; }
    .te-cta-card-img { width: 165px; height: 165px; right: 1.5rem; }
}

/* Venues */
.te-venues-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .te-venues-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

.te-venue-card {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(26, 54, 46, 0.08);
}

.te-venue-card img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.te-map-placeholder {
    background: linear-gradient(180deg, #e8f0ec 0%, var(--te-cream) 100%);
    border-radius: var(--te-radius);
    padding: 1.5rem;
    min-height: 220px;
    position: relative;
    overflow: hidden;
}

.te-map-placeholder svg {
    width: 100%;
    max-height: 200px;
    display: block;
}

.te-map-pin {
    fill: var(--te-green);
    opacity: 0.85;
}

/* Testimonials */
.te-testimonial-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0;
}

.te-testimonial-card {
    flex: 0 0 min(100%, 360px);
    scroll-snap-align: center;
    background: var(--te-white);
    border-radius: var(--te-radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--te-shadow);
}

.te-testimonial-card .quote-icon {
    font-size: 2.75rem;
    color: var(--te-green);
    opacity: 0.35;
    line-height: 1;
    margin-bottom: 0.35rem;
}

#testimonials .te-carousel-wrap { max-width: 100%; }

.te-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.te-testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Upcoming — horizontal row items per design */
.te-upcoming-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid rgba(26, 54, 46, 0.1);
    border-radius: var(--te-radius);
    overflow: hidden;
    background: var(--te-white);
}

@media (min-width: 992px) {
    .te-upcoming-row {
        grid-template-columns: repeat(5, 1fr);
        border: none;
        background: transparent;
        gap: 0.75rem;
    }
}

.te-upcoming-card {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(26, 54, 46, 0.08);
    background: var(--te-white);
}

@media (min-width: 992px) {
    .te-upcoming-card {
        flex-direction: column;
        border: 1px solid rgba(26, 54, 46, 0.1);
        border-radius: var(--te-radius);
        overflow: hidden;
    }
}

.te-upcoming-card:last-child { border-bottom: none; }

.te-upcoming-date {
    flex: 0 0 88px;
    background: var(--te-green);
    color: var(--te-white);
    text-align: center;
    padding: 0.85rem 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1.25;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 992px) {
    .te-upcoming-date { flex: none; padding: 0.75rem; }
}

.te-upcoming-date .month {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.9;
}

.te-upcoming-body {
    flex: 1;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.te-upcoming-body h4 {
    font-size: 0.92rem;
    margin: 0 0 0.25rem;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--te-green);
}

.te-upcoming-body a {
    margin-top: 0.35rem;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Pre-footer CTA */
.te-prefooter {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
}

.te-prefooter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 54, 46, 0.55);
}

.te-prefooter .te-container { position: relative; z-index: 2; padding: 3rem 1.25rem; }

.te-prefooter h2 {
    color: var(--te-white);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: 1.75rem;
}

.te-prefooter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

.te-btn-prefooter {
    background: rgba(26, 54, 46, 0.75);
    color: var(--te-white);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    padding: 0.85rem 1.65rem;
    font-size: 0.95rem;
}

.te-btn-prefooter:hover {
    background: rgba(26, 54, 46, 0.92);
    color: var(--te-white);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Footer */
.te-footer {
    background: var(--te-green);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 0 1.5rem;
}

.te-footer a { color: rgba(255, 255, 255, 0.85); }
.te-footer a:hover { color: var(--te-white); }

.te-footer h5 {
    color: var(--te-white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.te-footer-logo img { height: 48px; filter: brightness(0) invert(1); margin-bottom: 1rem; }

.te-footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.te-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.te-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    font-size: 0.85rem;
    text-align: center;
}

@media (min-width: 768px) {
    .te-footer-bottom { text-align: right; }
}


/* Page hero (inner pages) */
.te-page-hero {
    background: var(--te-cream);
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.te-page-hero h1 { margin: 0; font-size: 2.5rem; }

/* Auth cards */
.te-auth-wrap {
    min-height: calc(100vh - var(--header-h) - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--te-cream);
}

.te-auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--te-white);
    border-radius: var(--te-radius);
    padding: 2.5rem;
    box-shadow: var(--te-shadow-lg);
}

.te-auth-card .te-logo-auth { text-align: center; margin-bottom: 1.5rem; }
.te-auth-card .te-logo-auth img { height: 56px; margin: 0 auto; }

/* Utilities */
.te-text-white { color: var(--te-white) !important; }
.te-bg-cream { background: var(--te-cream); }
.object-cover { object-fit: cover; }

/* CMS HTML from CKEditor */
.cms-content img { max-width: 100%; height: auto; border-radius: 8px; }
.cms-content table { width: 100%; margin: 1rem 0; }
.cms-content blockquote {
    border-left: 4px solid var(--te-green);
    padding-left: 1rem;
    color: var(--te-text-muted);
    font-style: italic;
}

@media (max-width: 991.98px) {
    .te-cta-card-img { width: 38%; opacity: 0.7; }
    .te-section { padding: 3rem 0; }
}
