/* Treatments Page Styles */

/* 1. Hero Section */
.treatments-hero {
    position: relative;
    width: 100%;
    /* Use a placeholder image or a solid color. Assuming full-width-image from context or similar */
    /* background-image: url('../images/hero-reception.png');  -- Commented out, we will verify image */
    background-size: cover;
    background-position: center;
    height: 600px;
    /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align card to the right */
    padding: 0 max(4vmin, 20px);
}

.treatments-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.treatments-hero-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 45px 50px;
    border-radius: 24px;
    max-width: 520px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.treatments-hero-badge {
    background: #000;
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 24px;
}

.treatments-hero-title {
    font-size: 4.5rem;
    /* Much larger */
    font-weight: 700;
    margin: 0 0 24px 0;
    line-height: 1;
    /* Tighter line height */
    color: #000;
    letter-spacing: -0.02em;
}

.treatments-hero-description {
    font-size: 1.05rem;
    /* Smaller, more compact */
    color: #333;
    line-height: 1.5;
    margin-bottom: 28px;
    font-weight: 400;
}

.treatments-hero-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.treatments-hero-contact .contact-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
}

.treatments-hero-contact .contact-phone {
    font-size: 1.6rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.treatments-hero-contact .contact-phone:hover {
    color: #555;
}

/* 2. Treatments Grid Section - 和風高級設計 */
.treatments-grid-section {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #faf8f5 0%, #f5f2ed 100%);
    /* 柔和的米色漸變背景 */
    position: relative;
}

/* 添加和風裝飾元素 */
.treatments-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #d4a574, transparent);
    /* 金色裝飾線 */
}

.treatments-grid-section h2 {
    text-align: center;
    font-size: 3.6rem;
    font-family: 'Cinzel', serif;
    font-weight: 300;
    /* 更輕盈的字重 */
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    color: #2a2a2a;
    position: relative;
}

/* 標題下方的和風裝飾 */
.treatments-grid-section h2::after {
    content: '◆';
    display: block;
    text-align: center;
    font-size: 1rem;
    color: #d4a574;
    margin-top: 20px;
    margin-bottom: 60px;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    /* 全寬設計，移除 max-width */
    margin: 0;
    padding: 0 60px;
}

/* 和風卡片設計 */
.treatment-col {
    background: #ffffff;
    padding: 35px 28px;
    border-radius: 8px;
    /* 柔和的圓角 */
    border: 1px solid rgba(212, 165, 116, 0.15);
    /* 淡金色邊框 */
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(212, 165, 116, 0.08);
    /* 柔和的雙層陰影 */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 卡片懸停效果 */
.treatment-col:hover {
    transform: translateY(-8px);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 12px 40px rgba(212, 165, 116, 0.15);
    border-color: rgba(212, 165, 116, 0.3);
}

/* 和風裝飾元素 - 左上角 */
.treatment-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, transparent 100%);
    border-radius: 0 0 100% 0;
    transition: all 0.4s ease;
}

.treatment-col:hover::before {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, transparent 100%);
}

/* 分類標題 - 和風字體設計 */
.treatment-col h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #8b7355;
    /* 溫暖的棕色 */
    padding-bottom: 20px;
    border-bottom: 2px solid #f0e6d8;
    /* 米色分隔線 */
    margin-bottom: 28px;
    min-height: 70px;
    display: flex;
    align-items: flex-end;
    line-height: 1.5;
    position: relative;
    transition: color 0.3s ease;
}

/* 標題裝飾點 */
.treatment-col h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #d4a574, transparent);
    transition: width 0.4s ease;
}

.treatment-col:hover h3::after {
    width: 50px;
}

.treatment-col:hover h3 {
    color: #d4a574;
}

/* 列表樣式 */
.treatment-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.treatment-col li {
    margin-bottom: 14px;
    line-height: 1.6;
    position: relative;
    padding-left: 18px;
}

/* 和風列表裝飾 - 小圓點 */
.treatment-col li::before {
    content: '●';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.5rem;
    color: #d4a574;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.treatment-col li:hover::before {
    opacity: 1;
    transform: scale(1.3);
}

/* 鏈接樣式 */
.treatment-col li a {
    font-family: 'Inter', sans-serif;
    font-size: 1.45rem;
    color: #2a2a2a;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
}

/* 優雅的下劃線效果 */
.treatment-col li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #d4a574, #c99a6e);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.treatment-col li a:hover {
    color: #d4a574;
    transform: translateX(4px);
}

.treatment-col li a:hover::after {
    width: 100%;
}

/* 3. Popular Section */
.popular-section {
    padding: 60px 0 100px;
    background: #fff;
    text-align: center;
}

.popular-section h2 {
    font-size: 3.6rem;
    font-family: 'Cinzel', serif;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: #2a2a2a;
    margin-bottom: 50px;
}

.popular-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.popular-item {
    text-align: center;
    width: 200px;
}

.popular-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.popular-item:hover img {
    transform: translateY(-5px);
}

.popular-item span {
    display: block;
    margin-top: 15px;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
}

/* 響應式設計 */
@media (max-width: 1100px) {
    .treatments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .treatments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

    .treatments-grid-section {
        padding: 60px 0 40px;
    }

    .treatment-col {
        padding: 28px 22px;
    }

    .treatment-col h3 {
        font-size: 0.9rem;
        min-height: 60px;
    }

    .treatment-col li a {
        font-size: 1.3rem;
    }
}

@media (max-width: 500px) {
    .treatments-grid {
        grid-template-columns: 1fr;
    }

    .treatments-grid-section h2 {
        font-size: 2.8rem;
    }
}

/* =========================================
   Treatment Detail Template Styles
   ========================================= */

.treatment-template {
    background: #fff;
    padding-bottom: 80px;
}

/* Hero Section */
/* Hero Section for Custom Treatment */
.treatment-hero {
    position: relative;
    width: 100%;
    /* Revert to fixed height to match page-treatments.hbs */
    height: 600px;
    /* aspect-ratio: 727 / 259; -- Removed per user request to match other page */
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align card to right */
    padding: 0 max(4vmin, 60px);
    /* Slightly increased side padding */
}

.treatment-hero-content {
    max-width: 1300px;
    /* Increased width to allow card to sit better */
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    /* Card on the right */
}

/* Reusing & Adapting Consultation Card */
/* Reusing & Adapting Consultation Card */
.consultation-card-unified {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 80px 60px;
    /* Unified padding */
    border-radius: 40px;
    max-width: 650px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.consultation-card-unified .badge {
    background: #000;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 30px;
}

.consultation-card-unified h1,
.consultation-card-unified h2 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
}

.consultation-card-unified p {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 40px;
}

.consultation-card-unified .contact-info {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    line-height: 1.4;
}

.consultation-card-unified .contact-info a {
    font-size: 1.6rem;
    display: inline-block;
    margin-top: 5px;
    color: #000;
    text-decoration: none;
}

/* Main Content Area */
.treatment-body .container {
    max-width: 100%;
    margin: 0;
    padding: 60px 0;
}

.treatment-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 60px;
    font-family: 'Cinzel', serif;
    /* Matching existing typography */
    font-weight: 400;
}

/* 
   SPLIT LAYOUT (Generic Side-by-Side)
   Used for "Preparation" and "Process"
*/
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    margin: 100px 0;
}

.split-layout img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
    object-fit: cover;
    height: 100%;
    min-height: 450px;
}

.split-layout h3 {
    margin-top: 0;
    font-size: 2.2rem;
    margin-bottom: 30px;
    line-height: 1.2;
    font-weight: 700;
}

.split-layout ul {
    padding-left: 20px;
    list-style: none;
}

.split-layout li {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 10px;
}

/* Accordion Styles (Automatic JS Fallback) */
/* Accordion Styles (Now Static - Fully Visible) */
.accordion-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 0;
}

.accordion-item h3 {
    cursor: default;
    /* No longer clickable */
    margin: 0;
    padding: 25px 0 15px;
    /* Slight adjustment */
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}

/* Remove the (+/-) icons */
.accordion-item h3::after {
    content: none;
}

.accordion-item h3:hover {
    color: #000;
    /* No hover effect */
}

.accordion-content {
    max-height: none;
    /* Always visible */
    overflow: visible;
    padding-bottom: 25px;
    /* Add spacing below content */
}

/* Remove the active state styles as they are no longer needed */
/* .accordion-item.active .accordion-content ... REMOVED */

/* Native Ghost Toggle Card overrides */
.kg-toggle-card {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

.kg-toggle-heading {
    font-weight: 600 !important;
    font-size: 1.3rem !important;
}

.kg-toggle-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

/* Results / Gallery */
.gh-content .kg-gallery-container {
    margin: 60px 0;
}

.before-after-label {
    text-align: center;
    font-weight: 700;
    margin-bottom: 40px;
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .treatment-hero {
        justify-content: center;
        background-position: 20% center;
        /* Shift image */
        padding: 0 20px;
    }

    .consultation-card {
        padding: 30px;
        backdrop-filter: blur(8px);
        /* Less blur for performance */
    }

    .split-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .split-layout img {
        min-height: 300px;
        max-height: 500px;
        margin-bottom: 20px;
    }

    .treatment-title {
        font-size: 2.5rem;
    }
}