/* ============================================================
   PAVILION PAGE STYLESHEET
   Scope: .rivel-pavilion-template
   Depends on: global.css (design tokens: --clr-*, --font-*, --transition-*)
   Mirrors the visual language, spacing rhythm and component patterns
   already established on the homepage (hero, pav-config, spa-accordion,
   vision-grid, rivel-proposal) so this page reads as part of the same
   site, not a bolt-on.
   ============================================================ */

.rivel-pavilion-template *,
.rivel-pavilion-template *::before,
.rivel-pavilion-template *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.rivel-pavilion-template a { text-decoration: none; color: inherit; }
.rivel-pavilion-template ul { list-style: none; }
.rivel-pavilion-template button { border: none; background: none; cursor: pointer; font-family: inherit; }
.rivel-pavilion-template img { max-width: 100%; display: block; }

.rivel-pavilion-template .editorial-italic {
    font-family: var(--font-editorial);
    font-style: italic;
    font-weight: 500;
}
.rivel-pavilion-template .eyebrow-light-bg {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: var(--clr-terracotta);
}
.rivel-pavilion-template .eyebrow-dark-bg {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-primary);
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-bottom: 1rem;
    color: var(--clr-warm-ivory);
}
.rivel-pavilion-template .btn-icon-wrapper,
.rivel-pavilion-template .btn-icon-wrapper-outline,
.rivel-pavilion-template .btn-circle-icon,
.rivel-pavilion-template .btn-circle {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}
.rivel-pavilion-template .btn-icon-wrapper { background-color: var(--clr-primary-green); color: var(--clr-warm-ivory); }
.rivel-pavilion-template .btn-icon-wrapper-outline { border: 1px solid rgba(245,242,233,0.4); color: var(--clr-warm-ivory); }
.rivel-pavilion-template .btn-circle-icon,
.rivel-pavilion-template .btn-circle { background-color: var(--clr-primary-green); color: var(--clr-warm-ivory); }

/* ============================================================
   HERO -- identical structure/CSS to the homepage hero. Only the
   copy differs in the PHP markup; background image should be a
   real / approved Pavilion render.
   ============================================================ */
.rivel-pavilion-template .hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    margin-top: 0 !important;
    display: flex;
    align-items: flex-end;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
    color: var(--clr-warm-ivory);
    isolation: isolate;
}
.rivel-pavilion-template .hero-bg-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -2;
}
.rivel-pavilion-template .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(210deg, rgba(16,42,32,0.10) 0%, rgba(16,42,32,0.75) 60%, rgba(10,26,20,0.95) 100%);
    z-index: -1;
}
.rivel-pavilion-template .hero-container {
    width: 100%; max-width: 1280px; margin: 0 auto;
    display: flex; flex-direction: column; justify-content: space-between; gap: 4rem;
}
.rivel-pavilion-template .hero-content-left { display: flex; flex-direction: column; max-width: 750px; padding-top: 0; }
.rivel-pavilion-template .hero-eyebrow {
    font-family: var(--font-primary); font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    margin-top: 1rem; margin-bottom: 1rem; color: var(--clr-warm-ivory);
}
.rivel-pavilion-template .hero-title {
    font-family: var(--font-primary); font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 700; text-transform: uppercase; line-height: 0.98;
    letter-spacing: -0.035em; margin-bottom: 1.25rem;
}
.rivel-pavilion-template .hero-description {
    font-family: var(--font-primary); font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.6; color: rgba(245,242,233,0.85); max-width: 480px;
    margin-top: 0; margin-bottom: 2.25rem;
}
.rivel-pavilion-template .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.rivel-pavilion-template .btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-primary); font-weight: 600; font-size: 1rem;
    border-radius: 50px; transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.rivel-pavilion-template .btn:hover { transform: translateY(-2px); }
.rivel-pavilion-template .hero-btn-primary {
    background-color: var(--clr-warm-ivory); color: var(--clr-primary-green);
    padding: 0.375rem 0.375rem 0.375rem 1.5rem;
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    gap: 1rem;
}
.rivel-pavilion-template .hero-btn-secondary {
    background-color: transparent; color: var(--clr-warm-ivory);
    border: 1px solid rgba(245,242,233,0.4);
    padding: 0.375rem 1.5rem 0.375rem 0.375rem;
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    gap: 1rem;
}
.rivel-pavilion-template .hero-features-right { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
.rivel-pavilion-template .hero-feature-item { display: flex; align-items: center; gap: 1rem; }
.rivel-pavilion-template .feature-icon { flex-shrink: 0; opacity: 0.9; }
.rivel-pavilion-template .feature-text { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rivel-pavilion-template .text-ivory { color: var(--clr-warm-ivory); }
.rivel-pavilion-template .text-terracotta { color: var(--clr-terracotta); }

@media (min-width: 768px) {
    .rivel-pavilion-template .hero-section { padding: 8rem 2rem 4rem; }
    .rivel-pavilion-template .hero-container { max-width: 1280px; flex-direction: row; align-items: flex-end; }
    .rivel-pavilion-template .hero-content-left { max-width: 700px; }
    .rivel-pavilion-template .hero-features-right { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding-bottom: 1rem; }
}
@media (min-width: 1024px) {
    .rivel-pavilion-template .hero-section { padding: 10rem 4rem 5rem; }
    .rivel-pavilion-template .hero-features-right { flex-direction: row; gap: 2.5rem; }
}
@media (max-width: 767px) {
    .rivel-pavilion-template .hero-section { min-height: 100svh; padding: 7rem 1.5rem 3rem; align-items: flex-end; }
    .rivel-pavilion-template .hero-container { gap: 2.5rem; }
    .rivel-pavilion-template .hero-content-left { max-width: 100%; }
    .rivel-pavilion-template .hero-title { font-size: clamp(1.7rem, 8vw, 2.5rem); margin-top: 2rem; margin-bottom: 1rem; }
    .rivel-pavilion-template .hero-description { font-size: 0.9rem; max-width: 100%; margin-bottom: 1.75rem; }
    .rivel-pavilion-template .hero-actions { gap: 0.75rem; }
    .rivel-pavilion-template .hero-features-right { width: 100%; gap: 1rem; flex-wrap: wrap; }
}

/* ============================================================
   STATS STRIP -- reused verbatim for "01 -- The Pavilion" facts.
   ============================================================ */
.rivel-pavilion-template .stats-strip-section {
    background-color: var(--clr-deep-green);
    padding: 2.5rem 1.5rem;
}
.rivel-pavilion-template .stats-strip-container {
    max-width: 1320px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem;
    text-align: center;
}
.rivel-pavilion-template .stat-item { display: flex; flex-direction: column; gap: 0.4rem; }
.rivel-pavilion-template .stat-value {
    font-family: var(--font-primary); font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 2rem); color: var(--clr-warm-ivory);
}
.rivel-pavilion-template .stat-label {
    font-family: var(--font-primary); font-size: 0.6875rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em; color: rgba(245,242,233,0.65);
}
@media (min-width: 768px) {
    .rivel-pavilion-template .stats-strip-container { grid-template-columns: repeat(5, 1fr); }
}

/* ============================================================
   01 -- THE PAVILION (intro split, same skeleton as estate-ov)
   ============================================================ */
.rivel-pavilion-template .estate-ov-section { padding: 6rem 1.5rem; background-color: var(--clr-warm-ivory); }
.rivel-pavilion-template .estate-ov-container { max-width: 1320px; margin: 0 auto; }
.rivel-pavilion-template .estate-ov-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.rivel-pavilion-template .estate-ov-image-col { border-radius: 12px; overflow: hidden; }
.rivel-pavilion-template .estate-ov-img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.rivel-pavilion-template .estate-ov-content-inner { max-width: 520px; }
.rivel-pavilion-template .estate-ov-title {
    font-family: var(--font-editorial); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2; color: var(--clr-text-primary); margin-bottom: 1.25rem;
}
.rivel-pavilion-template .estate-ov-desc { font-size: 1rem; color: var(--clr-text-secondary); margin-bottom: 1.75rem; }
.rivel-pavilion-template .estate-ov-tags {
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--clr-text-muted); margin-bottom: 2rem; padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.rivel-pavilion-template .estate-ov-btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    background-color: var(--clr-primary-green); color: var(--clr-warm-ivory);
    padding: 0.375rem 0.375rem 0.375rem 1.5rem; border-radius: 50px;
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    transition: transform var(--transition-fast);
}
.rivel-pavilion-template .estate-ov-btn:hover { transform: translateY(-2px); }
@media (min-width: 1024px) {
    .rivel-pavilion-template .estate-ov-grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; }
    .rivel-pavilion-template .estate-ov-grid.reverse { direction: rtl; }
    .rivel-pavilion-template .estate-ov-grid.reverse > * { direction: ltr; }
}

/* Small feature-tick list used inside the "01" intro */
.rivel-pavilion-template .pv-tick-list { display: grid; grid-template-columns: 1fr; gap: 0.9rem; margin-bottom: 2rem; }
.rivel-pavilion-template .pv-tick-item { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; color: var(--clr-text-primary); }
.rivel-pavilion-template .pv-tick-icon {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    background-color: var(--clr-soft-sage); color: var(--clr-primary-green);
    display: flex; align-items: center; justify-content: center;
}
@media (min-width: 640px) { .rivel-pavilion-template .pv-tick-list { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   03 -- PAVILION CONFIGURATIONS
   Reused verbatim from the homepage configurator (same IDs/JS hooks).
   ============================================================ */
.rivel-pavilion-template .pav-config-section { padding: 6rem 1.5rem; background-color: var(--clr-warm-ivory); }
.rivel-pavilion-template .pav-config-container { max-width: 1320px; margin: 0 auto; }
.rivel-pavilion-template .pav-config-intro { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.rivel-pavilion-template .pav-config-title {
    font-family: var(--font-primary); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase; line-height: 1.15; color: var(--clr-text-primary);
}
.rivel-pavilion-template .pav-config-desc { font-size: 1rem; color: var(--clr-text-secondary); max-width: 520px; }
.rivel-pavilion-template .pav-config-tabs {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem;
}
.rivel-pavilion-template .pav-tab {
    padding: 0.6rem 1.15rem; border-radius: 50px; border: 1px solid rgba(32,36,31,0.15);
    font-family: var(--font-primary); font-size: 0.8125rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em; color: var(--clr-text-secondary);
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.rivel-pavilion-template .pav-tab.active,
.rivel-pavilion-template .pav-tab:hover {
    background-color: var(--clr-primary-green); color: var(--clr-warm-ivory); border-color: var(--clr-primary-green);
}
.rivel-pavilion-template .pav-config-stage { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.rivel-pavilion-template .pav-visual {
    position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
    background-color: var(--clr-deep-green); user-select: none;
}
.rivel-pavilion-template .pav-compare-image { position: absolute; inset: 0; }
.rivel-pavilion-template .pav-compare-image img { width: 100%; height: 100%; object-fit: cover; }
.rivel-pavilion-template .pav-compare-after { z-index: 2; }
.rivel-pavilion-template .pav-compare-label {
    position: absolute; top: 1rem; z-index: 3; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-warm-ivory);
    background-color: rgba(16,42,32,0.55); padding: 0.3rem 0.7rem; border-radius: 50px;
}
.rivel-pavilion-template .pav-compare-label-after { left: 1rem; }
.rivel-pavilion-template .pav-compare-label-before { right: 1rem; }
.rivel-pavilion-template .pav-future-badge {
    position: absolute; bottom: 1rem; left: 1rem; z-index: 3; font-size: 0.6rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,242,233,0.85);
    background-color: rgba(16,42,32,0.55); padding: 0.3rem 0.7rem; border-radius: 50px;
}
.rivel-pavilion-template .pav-compare-divider {
    position: absolute; top: 0; bottom: 0; left: 50%; z-index: 4;
    width: 2px; background-color: var(--clr-warm-ivory); cursor: ew-resize;
    transform: translateX(-50%);
}
.rivel-pavilion-template .pav-compare-hitarea { position: absolute; inset: 0 -20px; }
.rivel-pavilion-template .pav-compare-handle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%; background-color: var(--clr-warm-ivory);
    color: var(--clr-primary-green); display: flex; align-items: center; justify-content: center;
    gap: 0.15rem; font-size: 0.8rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.rivel-pavilion-template .pav-slider-tip {
    position: absolute; bottom: 3.5rem; left: 50%; transform: translateX(-50%);
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--clr-warm-ivory); background-color: rgba(16,42,32,0.6); padding: 0.4rem 0.9rem;
    border-radius: 50px; white-space: nowrap; z-index: 4; transition: opacity 0.3s;
}
.rivel-pavilion-template .pav-slider-tip.hidden { opacity: 0; pointer-events: none; }
.rivel-pavilion-template .pav-controls { position: absolute; bottom: 1rem; right: 1rem; z-index: 4; display: flex; gap: 0.5rem; }
.rivel-pavilion-template .pav-ctrl {
    width: 36px; height: 36px; border-radius: 50%; background-color: rgba(245,242,233,0.9);
    color: var(--clr-primary-green); display: flex; align-items: center; justify-content: center;
    transition: background-color var(--transition-fast);
}
.rivel-pavilion-template .pav-ctrl:hover { background-color: var(--clr-warm-ivory); }
.rivel-pavilion-template .pav-meta { display: flex; flex-direction: column; gap: 1.5rem; }
.rivel-pavilion-template .pav-meta-copy h3 { font-family: var(--font-primary); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.05em; color: var(--clr-primary-green); margin-bottom: 0.4rem; }
.rivel-pavilion-template .pav-meta-copy p { font-size: 0.9rem; color: var(--clr-text-secondary); }
.rivel-pavilion-template .pav-meta-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rivel-pavilion-template .pav-stat-item { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem; background-color: var(--clr-soft-cream); border-radius: 8px; }
.rivel-pavilion-template .pav-stat-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clr-text-muted); }
.rivel-pavilion-template .pav-stat-val { font-size: 0.85rem; font-weight: 600; color: var(--clr-text-primary); }

/* Interactive stage hidden for reduced motion; static gallery takes over */
@media (prefers-reduced-motion: reduce) {
    .rivel-pavilion-template .pav-interactive-only { display: none; }
}
.rivel-pavilion-template .pav-static-gallery { display: none; }
@media (prefers-reduced-motion: reduce) {
    .rivel-pavilion-template .pav-static-gallery { display: block; }
}
.rivel-pavilion-template .pav-static-gallery-heading { font-family: var(--font-primary); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; }
.rivel-pavilion-template .pav-static-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.rivel-pavilion-template .pav-static-item { border-radius: 8px; overflow: hidden; position: relative; }
.rivel-pavilion-template .pav-static-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.rivel-pavilion-template .pav-static-item figcaption {
    position: absolute; bottom: 0.6rem; left: 0.6rem; font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; color: var(--clr-warm-ivory);
    background-color: rgba(16,42,32,0.6); padding: 0.25rem 0.6rem; border-radius: 50px;
}
.rivel-pavilion-template .pav-static-gallery-note { font-size: 0.75rem; color: var(--clr-text-muted); margin-top: 1rem; }

.rivel-pavilion-template .pav-features-bar {
    display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start;
    background-color: var(--clr-primary-green); color: var(--clr-warm-ivory);
    border-radius: 12px; padding: 2rem; margin-top: 3rem;
}
.rivel-pavilion-template .pav-features-heading { font-size: 0.8rem; color: var(--clr-warm-ivory); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; opacity: 0.8; }
.rivel-pavilion-template .pav-features-list { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.rivel-pavilion-template .pav-feature-item { display: flex; align-items: center; gap: 0.75rem; }
.rivel-pavilion-template .pav-feature-text { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; }
.rivel-pavilion-template .pav-cta-btn {
    display: inline-flex; align-items: center; gap: 0.75rem;
    background-color: var(--clr-warm-ivory); color: var(--clr-primary-green);
    padding: 0.375rem 0.375rem 0.375rem 1.5rem; border-radius: 50px;
    font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
@media (min-width: 1024px) {
    .rivel-pavilion-template .pav-config-intro { flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .rivel-pavilion-template .pav-visual { aspect-ratio: 21/9; }
    .rivel-pavilion-template .pav-meta-stats { grid-template-columns: repeat(4, 1fr); }
    .rivel-pavilion-template .pav-features-bar { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 768px) { .rivel-pavilion-template .pav-config-section { padding: 0 1.5rem; } }

/* ============================================================
   SHARED: split feature sections (04 Performance & Fitness,
   05 Yoga & Movement) -- image + copy + tick/spec list.
   ============================================================ */
.rivel-pavilion-template .sp-section { padding: 6rem 1.5rem; }
.rivel-pavilion-template .sp-section.alt { background-color: var(--clr-soft-cream); }
.rivel-pavilion-template .sp-container { max-width: 1320px; margin: 0 auto; }
.rivel-pavilion-template .sp-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
.rivel-pavilion-template .sp-img-col { border-radius: 12px; overflow: hidden; }
.rivel-pavilion-template .sp-img-col img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.rivel-pavilion-template .sp-content-col { max-width: 560px; }
.rivel-pavilion-template .sp-title { font-family: var(--font-editorial); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 1.1rem; color: var(--clr-text-primary); }
.rivel-pavilion-template .sp-desc { font-size: 1rem; color: var(--clr-text-secondary); margin-bottom: 1.75rem; }
.rivel-pavilion-template .sp-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.5rem; }
.rivel-pavilion-template .sp-spec-item { display: flex; align-items: flex-start; gap: 0.65rem; }
.rivel-pavilion-template .sp-spec-icon {
    width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
    background-color: var(--clr-primary-green); color: var(--clr-warm-ivory);
    display: flex; align-items: center; justify-content: center;
}
.rivel-pavilion-template .sp-spec-text { font-size: 0.85rem; color: var(--clr-text-primary); line-height: 1.4; padding-top: 0.2rem; }
@media (min-width: 1024px) {
    .rivel-pavilion-template .sp-grid { grid-template-columns: 1fr 1.1fr; gap: 5rem; }
    .rivel-pavilion-template .sp-grid.reverse-order .sp-img-col { order: 2; }
}

/* ============================================================
   06 -- CORPORATE, WEDDING & EVENTS (card grid, exp- pattern)
   ============================================================ */
.rivel-pavilion-template .ev-section { padding: 6rem 1.5rem; background-color: var(--clr-warm-ivory); }
.rivel-pavilion-template .ev-container { max-width: 1320px; margin: 0 auto; }
.rivel-pavilion-template .ev-header-split { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.rivel-pavilion-template .ev-title { font-family: var(--font-editorial); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; color: var(--clr-text-primary); }
.rivel-pavilion-template .ev-desc { font-size: 1rem; color: var(--clr-text-secondary); max-width: 560px; }
.rivel-pavilion-template .ev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.rivel-pavilion-template .ev-card-std {
    position: relative; border-radius: 12px; overflow: hidden; display: block; isolation: isolate;
    aspect-ratio: 1/1;
}
.rivel-pavilion-template .ev-std-img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
    transition: transform 0.5s ease;
}
.rivel-pavilion-template .ev-card-std:hover .ev-std-img { transform: scale(1.05); }
.rivel-pavilion-template .ev-std-overlay {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(0deg, rgba(16,42,32,0.85) 0%, rgba(16,42,32,0.1) 60%, transparent 100%);
}
.rivel-pavilion-template .ev-std-content {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; color: var(--clr-warm-ivory);
}
.rivel-pavilion-template .ev-std-title { font-family: var(--font-primary); color: var(--clr-warm-ivory); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; margin-bottom: 0.3rem; }
.rivel-pavilion-template .ev-std-text { font-size: 0.85rem; color: rgba(245,242,233,0.85); }
@media (min-width: 1024px) { .rivel-pavilion-template .ev-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

/* ============================================================
   MOBILE FIX — EVENT CARDS
   Desktop/tablet layout remains unchanged
   ============================================================ */
@media (max-width: 767px) {

    .rivel-pavilion-template .ev-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .rivel-pavilion-template .ev-card-std {
        /*
         * Give the cards slightly more vertical space
         * so longer titles/descriptions have room.
         */
        aspect-ratio: 4 / 5;
    }

    .rivel-pavilion-template .ev-std-content {
        left: 0;
        right: 0;
        bottom: 0;

        /*
         * Slightly smaller horizontal padding,
         * but more usable vertical space.
         */
        padding: 1.1rem 0.9rem 1.15rem;
    }

    .rivel-pavilion-template .ev-std-title {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 0.4rem;
    }

    .rivel-pavilion-template .ev-std-text {
        font-size: 0.78rem;
        line-height: 1.45;
    }

}

/* ============================================================
   07 -- CAPACITY & PRACTICAL INFO (accordion, spa-acc pattern)
   ============================================================ */
.rivel-pavilion-template .cap-section { padding: 6rem 1.5rem; background-color: var(--clr-deep-green); color: var(--clr-warm-ivory); }
.rivel-pavilion-template .cap-container { max-width: 1320px; margin: 0 auto; }
.rivel-pavilion-template .cap-header { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.rivel-pavilion-template .cap-title { font-family: var(--font-editorial); color: var(--clr-warm-ivory); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.25; }
.rivel-pavilion-template .cap-desc { font-size: 0.95rem; color: rgba(245,242,233,0.75); max-width: 560px; }
.rivel-pavilion-template .cap-accordion-wrapper { display: flex; flex-direction: column; gap: 0.75rem; }
.rivel-pavilion-template .cap-acc-panel {
    border: 1px solid rgba(245,242,233,0.15); border-radius: 10px; overflow: hidden; cursor: pointer;
    transition: background-color var(--transition-fast);
}
.rivel-pavilion-template .cap-acc-panel.active { background-color: rgba(245,242,233,0.06); }
.rivel-pavilion-template .cap-acc-closed { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; }
.rivel-pavilion-template .cap-num { font-family: var(--font-editorial); font-style: italic; font-size: 1.1rem; color: var(--clr-soft-sage); width: 1.5rem; }
.rivel-pavilion-template .cap-acc-closed h3 { font-family: var(--font-primary); color: var(--clr-warm-ivory); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.03em; flex-grow: 1; }
.rivel-pavilion-template .cap-acc-chevron { transition: transform var(--transition-fast); opacity: 0.6; }
.rivel-pavilion-template .cap-acc-panel.active .cap-acc-chevron { transform: rotate(180deg); }
.rivel-pavilion-template .cap-acc-open {
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.4rem;
}
.rivel-pavilion-template .cap-acc-panel.active .cap-acc-open { max-height: 220px; padding: 0 1.4rem 1.4rem; }
.rivel-pavilion-template .cap-acc-open p { font-size: 0.875rem; color: rgba(245,242,233,0.8); line-height: 1.6; margin-bottom: 0.75rem; }
.rivel-pavilion-template .cap-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--clr-soft-sage); }

/* ============================================================
   08 -- PAVILION + THE ESTATE (vision-grid hover-swap pattern)
   ============================================================ */
.rivel-pavilion-template .pe-section { background-color: var(--clr-primary-green); color: var(--clr-warm-ivory); }
.rivel-pavilion-template .pe-intro-area { padding: 5rem 1.5rem 3rem; }
.rivel-pavilion-template .pe-header-split { max-width: 1320px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }
.rivel-pavilion-template .pe-heading { font-family: var(--font-editorial); color: var(--clr-warm-ivory); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; }
.rivel-pavilion-template .pe-desc { font-size: 1rem; color: rgba(245,242,233,0.8); max-width: 560px; }
.rivel-pavilion-template .pe-interactive-area { position: relative; min-height: 420px; isolation: isolate; }
.rivel-pavilion-template .pe-bgs { position: absolute; inset: 0; z-index: -2; }
.rivel-pavilion-template .pe-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.rivel-pavilion-template .pe-bg.active { opacity: 1; }
.rivel-pavilion-template .pe-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(16,42,32,0.95) 10%, rgba(16,42,32,0.4) 60%, rgba(16,42,32,0.2) 100%); }
.rivel-pavilion-template .pe-grid { display: grid; grid-template-columns: 1fr; }
.rivel-pavilion-template .pe-col {
    padding: 2.5rem 1.5rem; border-top: 1px solid rgba(245,242,233,0.15);
    transition: background-color var(--transition-fast);
}
.rivel-pavilion-template .pe-col:hover, .rivel-pavilion-template .pe-col:focus { background-color: rgba(245,242,233,0.06); }
.rivel-pavilion-template .pe-col-title { font-family: var(--font-primary); color: var(--clr-soft-cream); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.rivel-pavilion-template .pe-col-desc { font-size: 0.875rem; color: rgba(245,242,233,0.75); max-width: 320px; }
@media (min-width: 1024px) { .rivel-pavilion-template .pe-grid { grid-template-columns: repeat(4, 1fr); } }


/* ---- Group Proposal Section (matches sitewide proposal component) ---- */
.rivel-pavilion-template .rivel-proposal-section { background-color: var(--clr-soft-cream); padding: 5rem 1.5rem; }
.rivel-pavilion-template .rivel-proposal-container { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 2.5rem; }
.rivel-pavilion-template .proposal-title { font-family: var(--font-editorial); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.15; color: var(--clr-primary-green);}
.rivel-pavilion-template .proposal-italic { display: block; font-family: var(--font-editorial); font-style: italic; color: var(--clr-primary-green); }
.rivel-pavilion-template .proposal-subtext { font-size: 1rem; line-height: 1.7; color: var(--clr-text-secondary); max-width: 420px; margin-top: 1.25rem; }
.rivel-pavilion-template .proposal-form-box { background-color: #ffffff; border-radius: 18px; padding: 2rem; box-shadow: 0 16px 40px rgba(16,42,32,0.08); }
.rivel-pavilion-template .form-box-header { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(32,36,31,0.1); }
.rivel-pavilion-template .form-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; color: var(--clr-terracotta); text-transform: uppercase; }
.rivel-pavilion-template .form-title { font-family: var(--font-editorial); font-size: 1.375rem; font-weight: 600; }
.rivel-pavilion-template .form-header-meta { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
@media (min-width: 1024px) {
    .rivel-pavilion-template .rivel-proposal-container { flex-direction: row; gap: 4rem; }
    .rivel-pavilion-template .rivel-proposal-left, .rivel-pavilion-template .rivel-proposal-right { flex: 1; }
    .rivel-pavilion-template .form-box-header { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

