/* === Candy Bar Page - Reference Style === */

:root {
    --cb-bg-white: #ffffff;
    --cb-text-dark: #333333;
    --cb-text-light: #666666;
    --cb-gold-accent: #C5A059;
    --font-script: 'Great Vibes', cursive;
    /* Need to import this */
    --font-serif: 'Caudex', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    background-color: var(--cb-bg-white);
    color: var(--cb-text-dark);
}

/* Import Script Font */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* === Hero Section === */
.cb-ref-hero {
    position: relative;
    width: 100%;
    height: 85vh;
    /* Tall magazine style */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Centered Vertically */
    padding-top: 0;
    margin-top: -160px;
}

.cb-ref-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    /* Darker overlay for white text contrast */
}

.cb-ref-hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
}

.cb-ref-title-script {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cb-ref-subtitle-serif {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-top: -0.5rem;
    color: #f0f0f0;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.cb-ref-date {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: #e0e0e0;
    font-style: italic;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* === Main Split Layout === */
.cb-ref-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: block;
    /* Centered single column */
    /* grid-template-columns: 280px 1fr;  <-- Removed sidebar column */
    /* gap: 4rem; */
}

@media (max-width: 900px) {
    .cb-ref-container {
        grid-template-columns: 1fr;
    }
}

/* === Left Column === */
.cb-ref-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.cb-ref-section-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    display: block;
    text-align: center;
    scroll-margin-top: 120px;
    /* Account for fixed header */
}

/* Small 3-col grid in sidebar */
.cb-ref-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.cb-ref-mini-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cb-ref-mini-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Circle icons */
    object-fit: cover;
    margin-bottom: 0.5rem;
    border: 1px solid #eee;
}

.cb-ref-mini-label {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: #666;
}

.cb-ref-desc-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

.cb-ref-single-highlight {
    text-align: center;
}

.cb-ref-highlight-img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* === Right Content === */
.cb-ref-content {
    display: block;
    width: 100%;
}

.cb-ref-content>div {
    margin-bottom: 4rem;
}

/* Category Row (Horizontal Scroll) */
.cb-ref-cat-row {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    justify-content: center;
}

.cb-ref-cat-item {
    flex-shrink: 0;
    width: 140px;
    text-align: center;
}

.cb-ref-cat-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 1px solid #eee;
}

.cb-ref-cat-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #333;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.cb-ref-cat-sub {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Bento Grid (Gallery) === */
.cb-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4-column base */
    grid-auto-rows: 200px;
    /* Base row height */
    gap: 1rem;
}

/* Span classes */
.span-2-col {
    grid-column: span 2;
}

.span-2-row {
    grid-row: span 2;
}

.cb-bento-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Slight rounding */
    cursor: pointer;
}

.cb-bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cb-bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Full overlay for hover effect or just text placement */
    background: rgba(0, 0, 0, 0.1);
    /* Very subtle tint */
    display: flex;
    align-items: flex-end;
    /* Text at bottom */
    padding: 1.5rem;
    opacity: 1;
    transition: background 0.3s ease;
}

.cb-bento-item:hover .cb-bento-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.cb-bento-text,
.cb-bento-text-small {
    color: white;
    font-family: var(--font-serif);
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    /* Strong shadow for readability */
    margin: 0;
    letter-spacing: 1px;
}

.cb-bento-text {
    font-size: 1.4rem;
}

.cb-bento-text-small {
    font-size: 1rem;
}

/* === New Section: 3. Conceptul de Design === */
.cb-section-concept {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.cb-concept-flex {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cb-concept-box {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 2rem;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

/* === New Section: 4. Pachete (Pricing) === */
.cb-section-packages {
    background: #fff;
    /* White bg */
    padding: 4rem 1rem;
    border-top: 1px solid #f9f9f9;
}

.cb-pricing-table {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 2rem auto 0;
}

.cb-package-card {
    flex: 1;
    min-width: 280px;
    border: 1px solid #e0e0e0;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
    background: #fff;
}

.cb-package-card:hover {
    transform: translateY(-5px);
    border-color: var(--cb-gold-accent);
}

.cb-package-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.cb-package-subtitle {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
    display: block;
}

.cb-package-price {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--cb-gold-accent);
    font-weight: bold;
    margin-top: 1rem;
    display: block;
}

/* === Why Us Section - Bento Grid Redesign === */
.cb-why-us {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1eb 100%);
    padding: 6rem 2rem;
    position: relative;
}

.cb-why-us-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    color: #222;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
}

.cb-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card Sizes */
.cb-bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
}

.cb-bento-card.medium {
    grid-column: span 1;
    grid-row: span 1;
}

.cb-bento-card.wide {
    grid-column: span 2;
    grid-row: span 1;
}

/* Base Card Styling */
.cb-bento-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cb-bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Card Color Variants */
.cb-bento-card.dark {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.cb-bento-card.burgundy {
    background: linear-gradient(135deg, #6b2c3e 0%, #4a1f2c 100%);
}

.cb-bento-card.burgundy-dark {
    background: linear-gradient(135deg, #5a2535 0%, #3d1823 100%);
}

.cb-bento-card.green-dark {
    background: linear-gradient(135deg, #2d4a3e 0%, #1e3329 100%);
}

/* White text for dark cards */
.cb-bento-card.dark .cb-bento-title,
.cb-bento-card.burgundy .cb-bento-title,
.cb-bento-card.burgundy-dark .cb-bento-title,
.cb-bento-card.green-dark .cb-bento-title {
    color: #ffffff;
}

.cb-bento-card.dark .cb-bento-text,
.cb-bento-card.burgundy .cb-bento-text,
.cb-bento-card.burgundy-dark .cb-bento-text,
.cb-bento-card.green-dark .cb-bento-text {
    color: rgba(255, 255, 255, 0.9);
}

/* SVG Icon Styling */
.cb-bento-icon-svg {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.cb-bento-card.large .cb-bento-icon-svg {
    width: 100px;
    height: 100px;
}

/* PNG Icon Styling */
.cb-bento-icon-img {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: brightness(0) saturate(100%) invert(71%) sepia(65%) saturate(424%) hue-rotate(6deg) brightness(95%) contrast(87%);
}

.cb-bento-card.large .cb-bento-icon-img {
    width: 100px;
    height: 100px;
}

/* Icon Styling (old emoji - keeping for fallback) */
.cb-bento-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: grayscale(20%);
}

.cb-bento-card.large .cb-bento-icon {
    font-size: 4.5rem;
}

/* Typography */
.cb-bento-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 500;
}

.cb-bento-card.large .cb-bento-title {
    font-size: 2rem;
}

.cb-bento-text {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.cb-bento-card.large .cb-bento-text {
    font-size: 0.95rem;
}

/* Badge */
.cb-bento-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--cb-gold-accent);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
}

/* Stats Section */
.cb-bento-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

.cb-stat-item {
    text-align: center;
    flex: 1;
}

.cb-stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--cb-gold-accent);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.cb-stat-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Stats on dark green card */
.cb-bento-card.green-dark .cb-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Stats Divider */
.cb-stat-divider {
    width: 2px;
    height: 60px;
    background: rgba(212, 175, 55, 0.3);
    align-self: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cb-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .cb-bento-card.large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .cb-bento-card.medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    .cb-bento-card.wide {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .cb-why-us {
        padding: 4rem 1.5rem;
    }

    .cb-why-us-title {
        font-size: 2.2rem;
    }

    .cb-bento-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .cb-bento-card.large,
    .cb-bento-card.medium,
    .cb-bento-card.wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .cb-bento-card {
        padding: 2rem;
    }

    .cb-bento-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cb-stat-number {
        font-size: 2.5rem;
    }
}

/* === New Section: 6. Real Weddings Gallery === */
.cb-section-real {
    padding: 4rem 1rem;
    max-width: 1300px;
    margin: 0 auto;
}

.cb-real-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .cb-real-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cb-real-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* === New Section: 7. Flavor Palette === */
.cb-section-flavors {
    padding: 4rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cb-flavor-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.cb-flavor-item {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    text-align: center;
}

.cb-flavor-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    /* Slight softening */
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.cb-flavor-item:hover .cb-flavor-img {
    transform: scale(1.03);
}

.cb-flavor-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

/* === Process Section - Modern Horizontal Timeline === */
.cb-section-process {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1e9 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cb-section-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(197, 160, 89, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(197, 160, 89, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.cb-process-main-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    text-align: center;
    color: #2c2416;
    margin-bottom: 4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.cb-process-timeline {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

/* Connecting line between steps */
.cb-process-timeline::before {
    content: '';
    position: absolute;
    top: 80px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(to right,
            transparent 0%,
            var(--cb-gold-accent) 20%,
            var(--cb-gold-accent) 80%,
            transparent 100%);
    z-index: 0;
}

.cb-process-step {
    flex: 1;
    max-width: 320px;
    min-height: 280px;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Special styling for middle card (step 2) */
.cb-process-step:nth-child(2) {
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1e9 100%);
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.cb-process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(197, 160, 89, 0.15);
}

.cb-process-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--cb-gold-accent) 0%, #d4af6a 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.3);
    border: 3px solid white;
}

.cb-process-icon-wrapper {
    margin: 1.5rem 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cb-process-icon {
    width: 55px;
    height: 55px;
    object-fit: contain;
    opacity: 0.85;
    filter: grayscale(20%);
    transition: all 0.3s ease;
}

.cb-process-step:hover .cb-process-icon {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.cb-process-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: #2c2416;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.cb-process-desc {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 900px) {
    .cb-process-timeline {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .cb-process-timeline::before {
        display: none;
    }

    .cb-process-step {
        max-width: 400px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .cb-section-process {
        padding: 4rem 1rem;
    }

    .cb-process-main-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .cb-process-step {
        padding: 2rem 1.5rem;
    }

    .cb-process-title {
        font-size: 1.2rem;
    }


    .cb-process-desc {
        font-size: 0.9rem;
    }
}

/* === Carousel Styles === */
.cb-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 60px;
}

.cb-carousel-track-container {
    overflow: hidden;
    border-radius: 8px;
}

.cb-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
}

.cb-carousel-slide {
    min-width: calc(33.333% - 1.333rem);
    flex-shrink: 0;
}

/* Navigation Buttons */
.cb-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 2px solid var(--cb-gold-accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cb-carousel-btn:hover {
    background: var(--cb-gold-accent);
    transform: translateY(-50%) scale(1.1);
}

.cb-carousel-btn:hover svg {
    stroke: white;
}

.cb-carousel-btn svg {
    stroke: var(--cb-gold-accent);
    transition: stroke 0.3s ease;
}

.cb-carousel-prev {
    left: 0;
}

.cb-carousel-next {
    right: 0;
}

.cb-carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.cb-carousel-btn:disabled:hover {
    background: white;
    transform: translateY(-50%);
}

/* Pagination Dots */
.cb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.cb-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.cb-carousel-dot:hover {
    background: #bbb;
}

.cb-carousel-dot.active {
    background: var(--cb-gold-accent);
    width: 30px;
    border-radius: 5px;
}

/* Carousel Responsive Design */
@media (max-width: 900px) {
    .cb-carousel-slide {
        min-width: calc(50% - 1rem);
    }

    .cb-carousel-container {
        padding: 0 50px;
    }
}

@media (max-width: 600px) {
    .cb-carousel-slide {
        min-width: 100%;
    }

    .cb-carousel-track {
        gap: 1rem;
    }

    .cb-carousel-container {
        padding: 0 40px;
    }

    .cb-carousel-btn {
        width: 35px;
        height: 35px;
    }
}