/* ============================================
   PRICING PAGE - LUXURY SPA STYLE
   ============================================ */

/* Hero Section */
.pricing-hero-section {
    padding: 180px 0 100px;
    background-image: url('../images/pricing-1-page.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
}

.pricing-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,20,10,0.62) 0%, rgba(44,30,15,0.50) 100%);
    z-index: 1;
}

.pricing-hero-section .container {
    position: relative;
    z-index: 2;
}

.pricing-hero-section .hero-subtitle {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #daba9f;
    margin-bottom: 35px;
    display: inline-block;
    position: relative;
}

.pricing-hero-section .hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: #daba9f;
}

.pricing-hero-section .hero-title {
    font-family: 'Vollkorn', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.pricing-hero-section .hero-description {
    font-family: 'Jost', sans-serif;
    font-size: 18px;
    color: rgba(255,255,255,0.80);
    margin-bottom: 0;
}

/* ============================================
   SERVICES TAB SWITCHER — POLISHED UI
   ============================================ */

/* Fix #page overflow:hidden clipping tab panels */
#page {
    overflow-x: clip;
    overflow-y: visible !important;
}

/* Ensure footer-5 pt-8 renders correctly after overflow change */
#footer-5 {
    position: relative;
    z-index: 1;
}

.services-tabs-section {
    padding: 60px 0 160px;
    background: #fff;
    position: relative;
    z-index: 1;
}

/* ---- Nav Wrapper ---- */
.tab-nav-wrapper {
    display: flex;
    align-items: center;
    background: #f8f5f2;
    border-radius: 12px;
    padding: 14px 14px;
    margin-bottom: 50px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    gap: 10px;
    overflow: visible;
}

/* Viewport — clips scroll but allows top/bottom shadow */
.tab-nav-viewport {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

/* The actual scrolling row */
.tab-nav-scroll {
    display: flex;
    gap: 8px;
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding-right: 4px; /* prevent last button from touching viewport edge */
}

/* ---- Tab Button ---- */
.tab-btn {
    flex: 0 0 auto;
    width: 135px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 10px;
    border: 1.5px solid #b8956a;
    border-radius: 10px;
    background: #fffaf5;
    cursor: pointer;
    transition: all 0.28s ease;
    font-family: 'Jost', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #b8956a;
    text-align: center;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
}

.tab-btn .tab-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.28s ease;
}

.tab-btn .tab-icon svg {
    width: 28px;
    height: 28px;
    stroke: #b8956a;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.28s ease;
}

.tab-btn.active {
    background: linear-gradient(145deg, #c9a06e, #b8956a);
    border-color: #b8956a;
    color: #fff;
    box-shadow: 0 6px 20px rgba(184,149,106,0.4);
    transform: translateY(-2px);
}

.tab-btn.active .tab-icon svg { stroke: #fff; }

/* ---- Prev / Next Arrow Buttons ---- */
.tab-arrow-btn {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #b8956a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.28s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tab-arrow-btn:hover {
    background: #b8956a;
    border-color: #b8956a;
    color: #fff;
    box-shadow: 0 4px 14px rgba(184,149,106,0.3);
}

.tab-arrow-btn:disabled,
.tab-arrow-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.tab-arrow-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---- Content Panels ---- */
.tab-content-panel { display: none; }

.tab-content-panel.active {
    display: block;
    animation: fadeSlideUp 0.35s ease;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Panel Header */
.panel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ecddd0;
}

.panel-header-left h3 {
    font-family: 'Vollkorn', serif;
    font-size: 26px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 4px;
}

.panel-header-left p {
    font-family: 'Jost', sans-serif;
    font-size: 13.5px;
    color: #aaa;
    margin: 0;
}

.panel-header-badge {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b8956a;
    background: #fff5eb;
    border: 1px solid #e8d5be;
    border-radius: 20px;
    padding: 5px 14px;
    white-space: nowrap;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.service-chip {
    background: #fafafa;
    border: 1px solid #c9a06e;
    border-radius: 8px;
    padding: 14px 16px 14px 14px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    cursor: default;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 52px;
}

.service-chip::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c9a06e;
    flex-shrink: 0;
    margin-top: 5px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1199px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
    .tab-btn { width: 118px; height: 100px; font-size: 11px; }
    .services-tabs-section { padding: 50px 0 140px; }
}

/* ---- MOBILE: touch scroll, hide arrows, bigger tabs ---- */
@media (max-width: 767px) {

    /* Hero — fix iOS fixed background + navbar overlap */
    .pricing-hero-section {
        padding: 130px 0 60px;
        background-attachment: scroll;
        -webkit-background-attachment: scroll;
    }
    .pricing-hero-section .hero-title { font-size: 30px; }
    .pricing-hero-section .hero-description { font-size: 15px; }

    /* Allow mobile menu overlay to show above page */
    #page { overflow-x: visible !important; }

    /* Hide prev/next arrow buttons on mobile */
    .tab-arrow-btn { display: none !important; }

    /* Nav wrapper */
    .tab-nav-wrapper {
        padding: 10px 8px;
        gap: 0;
        margin-bottom: 28px;
        border-radius: 10px;
    }

    /* Viewport: enable native touch scroll with peek hint */
    .tab-nav-viewport {
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
        /* Show 3 full buttons + 50% of 4th as scroll hint */
        /* btn=110px, gap=8px: 3*110 + 2*8 + 0.5*110 = 330+16+55 = 401px */
        max-width: calc(3 * 110px + 2 * 8px + 55px);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
        mask-image: linear-gradient(to right, black calc(100% - 28px), transparent 100%);
    }
    .tab-nav-viewport::-webkit-scrollbar { display: none; }

    /* Scroll row: disable JS transform on mobile */
    .tab-nav-scroll {
        transform: none !important;
        transition: none !important;
        gap: 8px;
        padding: 4px 4px 4px 0;
    }

    /* Tab buttons */
    .tab-btn {
        width: 110px;
        height: 100px;
        font-size: 10.5px;
        gap: 8px;
        letter-spacing: 0.5px;
        padding: 10px 8px;
    }
    .tab-btn .tab-icon svg { width: 24px; height: 24px; }

    /* Panel header stacks vertically */
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
    .panel-header-left h3 { font-size: 20px; }
    .panel-header-badge { font-size: 10px; }

    /* Grid — 2 columns */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .service-chip { font-size: 13px; padding: 13px 12px; min-height: 50px; }

    /* Section padding */
    .services-tabs-section { padding: 36px 0 100px; }
}

@media (max-width: 480px) {
    .pricing-hero-section { padding: 110px 0 50px; }
    .pricing-hero-section .hero-title { font-size: 24px; }
    .pricing-hero-section .hero-description { font-size: 14px; }

    .tab-nav-wrapper { padding: 8px 6px; }
    .tab-btn { width: 100px; height: 96px; font-size: 10px; }
    .tab-btn .tab-icon svg { width: 22px; height: 22px; }
    /* btn=100px, gap=8px: 3*100 + 2*8 + 0.5*100 = 300+16+50 = 366px */
    .tab-nav-viewport {
        max-width: calc(3 * 100px + 2 * 8px + 50px);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 26px), transparent 100%);
        mask-image: linear-gradient(to right, black calc(100% - 26px), transparent 100%);
    }

    /* 1 column for very small screens with long chip text */
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .service-chip { font-size: 12.5px; padding: 12px 10px; }
    .panel-header-left h3 { font-size: 18px; }
    .panel-header-left p { font-size: 13px; }
}

@media (max-width: 360px) {
    .tab-btn { width: 90px; height: 90px; font-size: 9.5px; }
    /* btn=90px, gap=8px: 3*90 + 2*8 + 0.5*90 = 270+16+45 = 331px */
    .tab-nav-viewport {
        max-width: calc(3 * 90px + 2 * 8px + 45px);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
        mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .service-chip { font-size: 12px; padding: 11px 9px; }
}

/* ── Pre Bridal Sub-Categories ── */
.sub-category {
    margin-bottom: 32px;
}
.sub-category:last-child { margin-bottom: 0; }

.sub-cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid #e8d5be;
}
.sub-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.sub-cat-badge.silver {
    background: linear-gradient(135deg, #e8e8e8, #c0c0c0);
    color: #555;
    border: 1px solid #c0c0c0;
}
.sub-cat-badge.gold {
    background: linear-gradient(135deg, #f5e6c8, #b8956a);
    color: #6b4c1e;
    border: 1px solid #b8956a;
}
.sub-cat-badge.diamond {
    background: linear-gradient(135deg, #d4eaf7, #7ab8d9);
    color: #1a4a6b;
    border: 1px solid #7ab8d9;
}
