/* =========================================
   1. CONFIGURARE GENERALA
   ========================================= */
:root {
    --cb-bg-dark: #050505;
    --cb-bg-panel: #111111;
    --cb-gold-start: #D4AF37;
    --cb-gold-end: #F2D06B;
    --cb-text-main: #ffffff;
    --cb-text-muted: #cccccc;
    --cb-border: rgba(212, 175, 55, 0.3);
}

body.page-template-cabina-final,
.cb-wrapper {
    background-color: var(--cb-bg-dark) !important;
    color: var(--cb-text-main) !important;
    font-family: 'Be Vietnam Pro', sans-serif !important;
    line-height: 1.4;
    margin: 0; padding: 0;
    padding-bottom: 0; 
}

/* Ascundem elementele standard ale temei */
.page-template-cabina-final .entry-title,
.page-template-cabina-final .page-header,
.site-header, #masthead, .kadence-header, #colophon, .site-footer { 
    display: none !important; 
}

.cb-wrapper h1, .cb-wrapper h2, .cb-wrapper h3, .cb-wrapper h4 {
    color: #ffffff !important; margin-top: 0; font-weight: 800; letter-spacing: -0.5px;
}

.cb-wrapper { width: 100%; overflow-x: hidden; } 
.cb-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.cb-section { padding: 60px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.bg-panel { background-color: var(--cb-bg-panel); }

/* Gradient Text */
.txt-gradient {
    background: linear-gradient(90deg, var(--cb-gold-start), #fff, var(--cb-gold-end));
    -webkit-background-clip: text; background-clip: text; color: transparent !important; display: inline-block;
}

/* Butoane */
.btn-glow {
    display: inline-block; padding: 12px 30px;
    background: linear-gradient(135deg, var(--cb-gold-start), #bfa07a);
    color: #000 !important; font-weight: 800; text-transform: uppercase;
    text-decoration: none; border-radius: 4px; border: none; font-size: 0.85rem; cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); transition: 0.3s; margin-top: 15px;
}
.btn-glow:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(212, 175, 55, 0.6); }

/* =========================================
   2. HERO SECTION
   ========================================= */
.cb-hero {
    min-height: 85vh;
    background: linear-gradient(to right, rgba(5,5,5,0.9), rgba(5,5,5,0.6), rgba(5,5,5,0.2)), url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1920&auto=format&fit=crop');
    background-size: cover; background-position: center;
    display: flex; align-items: center; position: relative;
    text-align: center;
}
.hero-content { 
    max-width: 900px; position: relative; z-index: 2; margin: 0 auto;
}
.hero-content h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }

.hero-subtitle {
    color: #ddd; font-size: 1.1rem; margin-bottom: 15px; display: block;
}

/* Lista Servicii Hero */
.hero-services-list {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px;
}
.hero-service-item { color: #fff; font-weight: 700; white-space: nowrap; }
.hero-service-separator { color: var(--cb-gold-start); margin: 0 5px; }

.desktop-btns { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }

/* =========================================
   3. STATS
   ========================================= */
.stats-bar {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border: 1px solid var(--cb-border);
    display: flex; justify-content: space-around; padding: 20px;
    margin-top: -40px; position: relative; z-index: 10;
    border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}
.stat-item { text-align: center; }
.stat-item > div { display: flex; justify-content: center; align-items: baseline; width: 100%; }
.stat-val { font-size: 2rem; font-weight: 900; color: var(--cb-gold-start) !important; display: inline-block; }
.stat-lbl { font-size: 0.8rem; text-transform: uppercase; color: #aaa !important; letter-spacing: 1px; display: block; margin-top: 2px; }

/* =========================================
   4. LAYOUTS
   ========================================= */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; text-align: left; }

.gradient-frame { position: relative; padding: 3px; background: linear-gradient(45deg, var(--cb-gold-start), #000, var(--cb-gold-start)); border-radius: 10px; }
.gradient-frame img { width: 100%; display: block; border-radius: 7px; filter: contrast(1.1); }

/* --- SERVICII --- */
.services-list { display: flex; flex-direction: column; gap: 40px; }

.service-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; 
    align-items: center;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 15px;
}

.service-row:nth-child(even) .service-img-wrap { order: -1; }

.service-img-wrap {
    position: relative; padding: 3px; 
    background: linear-gradient(135deg, #D4AF37, #333, #D4AF37);
    border-radius: 10px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.6);
    transition: 0.3s; 
    max-width: 400px; 
    margin: 0 auto;
}

.service-img-wrap.mobile-frame { max-width: 240px; border-radius: 15px; background: #000; border: 2px solid #333; overflow: hidden; }
.service-img-wrap.mobile-frame video { border-radius: 12px; width: 100%; height: 100%; object-fit: cover; display: block; }
.service-img-wrap.portrait-limit { max-width: 260px; }
.service-img-wrap.landscape-limit { max-width: 320px; }

.service-img-wrap img { width: 100%; display: block; border-radius: 7px; border: none; }
.service-img-wrap img.zoomable { cursor: zoom-in; }

.service-content h3 { font-size: 1.5rem; color: var(--cb-gold-start) !important; margin-bottom: 10px; }
.service-content p { color: #ccc; font-size: 0.9rem; margin-bottom: 15px; line-height: 1.4; }

/* =========================================
   GALERIE & RECENZII
   ========================================= */
.swiper-container-wrapper { position: relative; padding: 0 30px; }
.myGallerySwiper, .myReviewSwiper { width: 100%; padding-top: 20px; padding-bottom: 40px; }

.swiper-slide-gallery {
    background-position: center; background-size: cover;
    height: 250px; border-radius: 10px; border: 1px solid #333; overflow: hidden; 
}
.swiper-slide-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.swiper-slide-gallery:hover img { transform: scale(1.1); }
.swiper-slide-gallery:hover { border-color: var(--cb-gold-start); }

.review-card {
    background: var(--cb-bg-panel); border: 1px solid var(--cb-border); border-radius: 12px; padding: 25px; height: 100%; position: relative; 
    display: flex; flex-direction: column; justify-content: flex-start; transition: 0.3s;
}
.review-card:hover { border-color: var(--cb-gold-start); box-shadow: 0 5px 20px rgba(212, 175, 55, 0.1); }
.review-header { display: flex; align-items: center; margin-bottom: 20px; }
.review-avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cb-gold-start); margin-right: 15px; }
.review-info h4 { font-size: 1rem !important; margin: 0 0 5px 0 !important; color: #fff; }
.review-stars { color: #f1c40f; font-size: 0.8rem; }
.review-text { font-size: 0.9rem; color: #ccc; font-style: italic; line-height: 1.5; margin-bottom: 0; }
.google-logo-review { position: absolute; top: 20px; right: 20px; width: 20px; opacity: 0.9; }

/* Sageti Swiper */
.swiper-button-next-gallery, .swiper-button-prev-gallery,
.swiper-button-next-review, .swiper-button-prev-review {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; color: var(--cb-gold-start) !important; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.swiper-button-next-gallery, .swiper-button-next-review { right: 0; }
.swiper-button-prev-gallery, .swiper-button-prev-review { left: 0; }
.swiper-button-next-gallery:after, .swiper-button-prev-gallery:after,
.swiper-button-next-review:after, .swiper-button-prev-review:after {
    font-family: swiper-icons; font-size: 1.8rem !important; font-weight: bold; text-transform: none!important; line-height: 1;
}
.swiper-button-next-gallery:after, .swiper-button-next-review:after { content: 'next'; }
.swiper-button-prev-gallery:after, .swiper-button-prev-review:after { content: 'prev'; }

/* =========================================
   5. PRICING (Ascuns)
   ========================================= */
.pricing-grid { display: none; }

/* =========================================
   6. FORMULAR
   ========================================= */
.save-date-section { text-align: center; }
.save-date-title { font-size: 3rem; margin-bottom: 10px; line-height: 1.2; }

.form-box {
    background: var(--cb-bg-panel); border: 1px solid var(--cb-gold-start); padding: 30px; border-radius: 15px;
    max-width: 800px; margin: 30px auto 0 auto; box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; text-align: left; }
.form-group label { display: block; color: #aaa; margin-bottom: 5px; font-size: 0.85rem; }

.form-control {
    width: 100%; padding: 0 15px; background: #000; border: 1px solid #333; color: #fff;
    border-radius: 4px; font-family: inherit; font-size: 1rem;
    height: 52px; min-height: 52px; line-height: 50px; box-sizing: border-box;
}

input[type="date"] { color-scheme: dark; }
::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

.form-full { grid-column: span 2; }
.msg-success { background: rgba(76, 209, 55, 0.1); border: 1px solid #4cd137; color: #4cd137; padding: 15px; border-radius: 8px; margin-top: 20px; }
.msg-error { background: rgba(232, 65, 24, 0.1); border: 1px solid #e84118; color: #e84118; padding: 15px; border-radius: 8px; margin-top: 20px; }

/* --- NOILE BUTOANE DE CONTACT IN FORMULAR (DESKTOP - AURIU GRADIENT) --- */
.desktop-form-contacts {
    display: flex; gap: 15px; justify-content: center; margin-top: 20px; 
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
}
.btn-contact-form {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 15px; /* Compacte */
    
    /* Acelasi gradient auriu ca tema */
    background: linear-gradient(135deg, var(--cb-gold-start), #bfa07a);
    color: #000 !important;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px; 
    font-size: 0.85rem; 
    border: none;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}
.btn-contact-form i { font-size: 1.1rem; }

.btn-contact-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}


/* =========================================
   7. BARA PLUTITOARE (DOAR MOBIL - FULL WIDTH)
   ========================================= */
.mobile-sticky-bar { 
    display: none; /* Ascuns pe desktop */
    position: fixed; bottom: 0; left: 0; 
    width: 100%; /* FULL WIDTH */
    height: 60px;
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); 
    border-top: 1px solid var(--cb-gold-start);
    z-index: 9999; justify-content: space-around; align-items: center; 
    padding: 0; box-sizing: border-box;
    border-radius: 0; /* Fara colturi rotunjite */
}

.sticky-btn { 
    flex: 1; text-align: center; color: #fff; text-decoration: none; font-size: 0.75rem; font-weight: bold; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%;
    transition: 0.3s;
}
.sticky-btn i { font-size: 1.2rem; margin-bottom: 3px; color: var(--cb-gold-start); }

.sticky-btn.cta-main { 
    background: var(--cb-gold-start); color: #000; border-radius: 30px; margin: 8px; height: 40px; 
    flex-direction: row; gap: 8px; flex: 1.5; box-shadow: none;
}
.sticky-btn.cta-main i { color: #000; margin: 0; }

@keyframes icon-pulse {
    0% { transform: scale(1); text-shadow: 0 0 0 rgba(212, 175, 55, 0.7); }
    50% { transform: scale(1.2); text-shadow: 0 0 10px rgba(212, 175, 55, 1); }
    100% { transform: scale(1); text-shadow: 0 0 0 rgba(212, 175, 55, 0.7); }
}
.mobile-sticky-bar > .sticky-btn:not(.cta-main) i { animation: icon-pulse 2s infinite ease-in-out; }

.mobile-hint { display: none; } 

/* LIGHTBOX */
.lightbox-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 99999;
    align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.lightbox-content {
    max-width: 90%; max-height: 90%;
    border: 2px solid var(--cb-gold-start); border-radius: 8px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); animation: zoomIn 0.3s ease;
}
.lightbox-close {
    position: absolute; top: 20px; right: 30px;
    font-size: 3rem; color: #fff; cursor: pointer; z-index: 100000; transition: 0.3s;
}
.lightbox-close:hover { color: var(--cb-gold-start); transform: rotate(90deg); }
@keyframes zoomIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* =========================================
   8. OPTIMIZARI MOBILE (MAX 900px)
   ========================================= */
@media (max-width: 900px) {
    .cb-wrapper { padding-bottom: 70px; } /* Loc pentru bara pe mobil */
    .cb-section { padding: 40px 0; }
    .split-grid { grid-template-columns: 1fr; gap: 30px; text-align: left !important; }
    .split-grid h2, .split-grid h4 { text-align: center; } .split-grid h2 { font-size: 1.8rem !important; }
    .form-grid { grid-template-columns: 1fr; } .form-full { grid-column: span 1; }
    .save-date-title { font-size: 1.8rem; }
    .stats-bar { flex-direction: column; gap: 25px; margin-top: -30px; align-items: center; padding: 25px; }
    .stat-val { font-size: 1.8rem; } .stat-item { width: 100%; flex: 0 0 auto; }
    .services-list { gap: 30px; }
    .service-row { grid-template-columns: 1fr; gap: 20px; text-align: center; padding: 25px; margin-bottom: 10px; }
    .service-row:nth-child(even) .service-img-wrap { order: -1; }
    
    .service-img-wrap.mobile-frame { max-width: 180px; } 
    .service-img-wrap.portrait-limit { max-width: 190px; } 
    .service-img-wrap.landscape-limit { max-width: 250px; } 
    .service-img-wrap { order: -1; max-width: 100%; }

    .swiper-container-wrapper { padding: 0 10px; } .swiper-slide-gallery { height: 200px; } 
    .swiper-button-next-gallery:after, .swiper-button-prev-gallery:after, .swiper-button-next-review:after, .swiper-button-prev-review:after { font-size: 1.5rem !important; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 0.9rem !important; white-space: nowrap; width: 100%; overflow: hidden; text-overflow: ellipsis; }
    .hero-services-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; justify-items: center; }
    .hero-service-separator { display: none; } 
    .hero-service-item { font-size: 0.9rem; background: rgba(255,255,255,0.1); padding: 5px 10px; border-radius: 4px; width: 100%; text-align: center; white-space: normal; }
    
    .pricing-grid { display: none; } 
    .desktop-btns { display: none; }
    
    /* Afisam bara pe mobil */
    .mobile-sticky-bar { display: flex; }
    
    /* Ascundem butoanele din formular pe mobil (sunt in bara) */
    .desktop-form-contacts { display: none; }
}