/* ===== SPA CMS — CMS page builder section styles ===== */

/* ===== CSS VARIABLES (CMS-specific) ===== */
:root {
    --cms-gold: #c9a96e;
    --cms-gold-dark: #b08d4e;
    --cms-teal: #0d6e6e;
    --cms-teal-dark: #0a5454;
    --cms-teal-light: #1a8a8a;
    --cms-dark: #0a3d3d;
    --cms-dark-2: #062828;
    --cms-gray: #6b7280;
}

/* ===== SECTION HEADER (shared) ===== */
.cms-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.cms-section-title {
    font-family: 'Raleway', 'Cairo', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--cms-dark);
}
.cms-section-subtitle {
    font-size: 1.1rem;
    color: var(--cms-gray);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cms-section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--cms-teal), var(--cms-teal-light));
    border-radius: 3px;
    margin: 0 auto;
}

/* ===== HERO ===== */
.cms-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cms-dark) 0%, var(--cms-dark-2) 100%);
}
.cms-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: cmsHeroZoom 20s ease-in-out infinite alternate;
}
@keyframes cmsHeroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}
.cms-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.cms-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
    z-index: 1;
}
.cms-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem 1rem;
}
.cms-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    animation: cmsFadeUp 0.8s ease-out;
}
.cms-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    opacity: 0.92;
    font-weight: 300;
    line-height: 1.6;
    animation: cmsFadeUp 0.8s ease-out 0.2s both;
}
.cms-hero-scroll {
    margin-top: 3rem;
    display: inline-block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 15px;
    position: relative;
}
.cms-hero-scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cms-gold);
    animation: cmsScrollDot 1.8s ease-in-out infinite;
}
@keyframes cmsScrollDot {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 30px; }
}
@keyframes cmsFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HERO PREMIUM (particles) ===== */
.cms-hero-premium {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cms-hero-premium .cms-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}
.cms-hero-premium .cms-hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(26,138,138,0.4);
    border-radius: 50%;
    animation: cmsHeroParticle 15s linear infinite;
}
.cms-hero-premium .cms-hero-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.cms-hero-premium .cms-hero-particles span:nth-child(2) { left: 25%; animation-delay: 3s; }
.cms-hero-premium .cms-hero-particles span:nth-child(3) { left: 45%; animation-delay: 6s; }
.cms-hero-premium .cms-hero-particles span:nth-child(4) { left: 65%; animation-delay: 9s; }
.cms-hero-premium .cms-hero-particles span:nth-child(5) { left: 80%; animation-delay: 12s; }
.cms-hero-premium .cms-hero-particles span:nth-child(6) { left: 90%; animation-delay: 4s; }
@keyframes cmsHeroParticle {
    0% { bottom: -10px; opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { bottom: 110vh; opacity: 0; }
}

/* ===== SECTIONS ===== */
.cms-section { padding: 80px 0; }

/* ===== PREMIUM CARD (shared) ===== */
.cms-premium-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    height: 100%;
}
.cms-premium-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.cms-premium-card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 260px;
}
.cms-premium-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.cms-premium-card:hover .cms-premium-card-img { transform: scale(1.08); }
.cms-premium-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
}
.cms-premium-card-body { padding: 1.75rem; }
.cms-premium-card-title {
    font-family: 'Raleway', 'Cairo', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--cms-dark);
}
.cms-premium-card-desc {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
.cms-premium-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}
.cms-premium-price {
    font-family: 'Raleway', 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cms-teal);
}
.cms-premium-card-link {
    color: var(--cms-teal);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.3s ease;
}
.cms-premium-card-link:hover { gap: 0.7rem; color: var(--cms-teal-light); }
.cms-booking-btn-rounded {
    border-radius: 50px;
}

/* ===== CONTENT SECTION ===== */
.cms-content-premium {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #374151;
    max-width: 760px;
    margin: 0 auto;
}
.cms-content-premium h2, .cms-content-premium h3 {
    font-family: 'Raleway', 'Cairo', sans-serif;
    font-weight: 700;
    margin-top: 1.5em;
    color: var(--cms-dark);
}
.cms-content-premium p { margin-bottom: 1em; }
.cms-content-premium a { color: var(--cms-teal); text-decoration: none; }
.cms-content-premium a:hover { color: var(--cms-teal-light); text-decoration: underline; }

/* ===== CTA SECTION ===== */
.cms-cta-premium {
    background: linear-gradient(135deg, var(--cms-teal) 0%, var(--cms-teal-dark) 100%);
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}
.cms-cta-premium::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}
.cms-cta-premium::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cms-cta-premium > * { position: relative; z-index: 1; }
.cms-cta-premium-title {
    font-family: 'Raleway', 'Cairo', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.cms-cta-premium-desc {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.cms-cta-premium-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--cms-teal);
    font-weight: 700;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cms-cta-premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    color: var(--cms-teal);
    gap: 0.8rem;
}

/* ===== FEATURES SECTION ===== */
.cms-features-premium .cms-features-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26,138,138,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.cms-feature-glass {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}
.cms-feature-glass:hover {
    background: rgba(26,138,138,0.08);
    border-color: rgba(26,138,138,0.2);
    transform: translateY(-6px);
}
.cms-feature-glass-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--cms-teal), var(--cms-teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(13,110,110,0.3);
}
.cms-feature-glass-title {
    color: #fff !important;
    font-family: 'Raleway', 'Cairo', sans-serif;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.cms-feature-glass-desc {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}
.cms-features-container {
    position: relative;
    z-index: 1;
}
.cms-features-title { color: #fff; }
.cms-features-subtitle { color: rgba(255,255,255,0.6); }

/* ===== GALLERY SECTION ===== */
.cms-gallery-item {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.cms-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.cms-gallery-img-premium {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.cms-gallery-item:hover .cms-gallery-img-premium { transform: scale(1.08); }
.cms-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 1.75rem;
}
.cms-gallery-item:hover .cms-gallery-overlay { opacity: 1; }

/* ===== TESTIMONIALS SECTION ===== */
.cms-testimonial-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.cms-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.cms-testimonial-quote {
    font-family: 'Raleway', 'Cairo', sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(13,110,110,0.2);
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
}
.cms-testimonial-stars {
    color: #fbbf24;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}
.cms-testimonial-text {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1.5rem;
}
.cms-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}
.cms-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.cms-testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cms-teal), var(--cms-teal-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.cms-testimonial-name {
    font-weight: 700;
    color: var(--cms-dark);
    font-size: 0.95rem;
}
.cms-testimonial-role {
    color: #9ca3af;
    font-size: 0.8rem;
}

/* ===== VIDEO SECTION ===== */
.cms-video-premium {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.cms-video-premium video { border-radius: 24px; display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .cms-section { padding: 50px 0; }
}
