/* ================================================
   TEAM GLAM — Editorial Accordion Widget
   Luxury minimalist accordion layout
   ================================================ */

/* ── Outer Wrapper & Container ───────────────────── */
.tg-acc-wrap {
    width: 100%;
    background-color: #f7f7f7;
    padding: 100px 40px;
    box-sizing: border-box;
}

.tg-acc-container {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ── Header Section ──────────────────────────────── */
.tg-acc-header {
    text-align: center;
    margin-bottom: 80px;
}

.tg-acc-title {
    font-family: 'beaufort-pro', serif;
    font-size: 48px;
    font-weight: 400;
    line-height: 1.15;
    color: #111111;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.tg-acc-subtitle {
    font-family: 'beaufort-pro', serif;
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    color: #222222;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ── Accordion List & Dividers ───────────────────── */
.tg-acc-list {
    width: 100%;
    border-top: 1px solid #333333;
    border-bottom: 1px solid #333333;
}

.tg-acc-item {
    border-bottom: 1px solid #e0e0e0;
    transition: border-color 0.25s ease;
}

.tg-acc-item:last-child {
    border-bottom: none;
}

/* ── Accordion Trigger Button ────────────────────── */
.tg-acc-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 24px 0;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.2s ease;
    gap: 16px;
}

.tg-acc-trigger:hover {
    opacity: 0.75;
}

.tg-acc-item-title {
    font-family: 'beaufort-pro', serif;
    font-size: 18px;
    font-weight: 400;
    color: #111111;
    letter-spacing: 0.01em;
    flex: 1;
    text-align: left;
    margin: 0;
}

/* ── Toggle Icon (+ / -) ─────────────────────────── */
.tg-acc-icon {
    position: relative;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0;
    color: #111111;
}

.tg-acc-icon-dash,
.tg-acc-icon-plus {
    position: absolute;
    background-color: currentColor;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Horizontal bar (dash) */
.tg-acc-icon-dash {
    width: 16px;
    height: 1px;
}

/* Vertical bar (plus) */
.tg-acc-icon-plus {
    width: 1px;
    height: 16px;
    transform: scaleY(1);
}

/* Active State: hide vertical bar to turn + into — */
.tg-acc-item.is-active .tg-acc-icon-plus {
    transform: scaleY(0);
    opacity: 0;
}

/* ── Accordion Content Panel ─────────────────────── */
.tg-acc-panel {
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.tg-acc-content {
    font-family: 'brandon-grotesque', sans-serif;
    font-size: var(--tg-body-font-size, 18px);
    line-height: 1.65;
    color: #333333;
    padding: 0 0 32px 0;
}

.tg-acc-content p {
    margin: 0 0 16px;
}

.tg-acc-content p:last-child {
    margin-bottom: 0;
}

.tg-acc-content a {
    color: #cbb279;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.tg-acc-content a:hover {
    color: #000000;
}

/* ── CTA Button ──────────────────────────────────── */
.tg-acc-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.tg-acc-btn {
    display: inline-block;
    font-family: 'brandon-grotesque', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    background-color: #000000;
    padding: 14px 36px;
    border: none;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease;
}

.tg-acc-btn:hover {
    background-color: #333333;
    color: #ffffff;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
    .tg-acc-title    { font-size: 38px; }
    .tg-acc-subtitle { font-size: 32px; }
    .tg-acc-wrap     { padding: 80px 30px; }
    .tg-acc-header   { margin-bottom: 60px; }
}

@media (max-width: 767px) {
    .tg-acc-title    { font-size: 28px !important; }
    .tg-acc-subtitle { font-size: 24px !important; }
    .tg-acc-wrap     { padding: 48px 16px !important; width: 100% !important; box-sizing: border-box !important; }
    .tg-acc-header   { margin-bottom: 32px !important; }
    .tg-acc-trigger  { padding: 18px 0 !important; gap: 12px !important; width: 100% !important; box-sizing: border-box !important; }
    .tg-acc-item-title {
        font-size: var(--tg-accordion-title-size-mobile, 20px) !important;
        line-height: 1.35 !important;
        flex: 1 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }
    .tg-acc-content  { font-size: 13px !important; }
    .tg-acc-btn-wrap { margin-top: 36px !important; }
}
