/*
 * Builder Front-End Styles
 * Generated by Sassy Theme Builder — Phase 3+
 * Updated: Phase 4 — Core module front-end styles
 */

/* ── Layout structure ──────────────────────────────────────────────────────── */

.tb-section {
    width: 100%;
    box-sizing: border-box;
}

.tb-section--fullwidth {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.tb-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.tb-column {
    box-sizing: border-box;
    padding: 0 12px;
    min-width: 0;
}

@media (max-width: 768px) {
    .tb-column {
        width: 100% !important;
    }
}

/* ── Module base ───────────────────────────────────────────────────────────── */

.tb-module {
    box-sizing: border-box;
    margin-bottom: 0;
}

/* ── Text module ───────────────────────────────────────────────────────────── */

.tb-module--text .tb-text {
    line-height: 1.7;
}

.tb-module--text .tb-text p:last-child {
    margin-bottom: 0;
}

/* ── Heading module ────────────────────────────────────────────────────────── */

.tb-module--heading .tb-heading {
    margin: 0;
    line-height: 1.2;
}

/* ── Image module ──────────────────────────────────────────────────────────── */

.tb-module--image .tb-image-wrap {
    display: block;
    line-height: 0;
}

.tb-module--image .tb-image-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}

.tb-module--image .tb-image-wrap--center {
    text-align: center;
}

.tb-module--image .tb-image-wrap--right {
    text-align: right;
}

/* ── Button module ─────────────────────────────────────────────────────────── */

.tb-module--button .tb-button-wrap {
    line-height: 1;
}

.tb-module--button .tb-button-wrap--center {
    text-align: center;
}

.tb-module--button .tb-button-wrap--right {
    text-align: right;
}

.tb-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.tb-button:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.tb-button--fill {
    background-color: var(--color-primary, #c9a96e);
    color: #fff;
    border: none;
}

.tb-button--outline {
    background-color: transparent;
    color: var(--color-primary, #c9a96e);
    border: 2px solid currentColor;
}

.tb-button--text {
    background: none;
    border: none;
    padding-left: 0;
    padding-right: 0;
    color: var(--color-primary, #c9a96e);
}

/* ── Divider module ────────────────────────────────────────────────────────── */

.tb-module--divider .tb-divider {
    border: none;
    border-top-style: solid;
    border-top-width: 1px;
    border-top-color: #ddd;
    margin: 0;
    width: 100%;
}

/* ── Spacer module ─────────────────────────────────────────────────────────── */

.tb-module--spacer .tb-spacer {
    display: block;
}

/* ── Icon module ───────────────────────────────────────────────────────────── */

.tb-module--icon .tb-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tb-icon-wrap svg {
    display: block;
}

/* ── Blurb module ──────────────────────────────────────────────────────────── */

.tb-module--blurb .tb-blurb {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tb-blurb--top {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tb-blurb__icon {
    flex-shrink: 0;
    line-height: 0;
}

.tb-blurb__body {
    flex: 1;
    min-width: 0;
}

.tb-blurb__title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.tb-blurb__text {
    margin: 0;
    line-height: 1.6;
}

/* ── CTA module ────────────────────────────────────────────────────────────── */

.tb-module--cta .tb-cta {
    text-align: center;
    padding: 40px 24px;
}

.tb-cta__heading {
    margin: 0 0 12px;
}

.tb-cta__subtext {
    margin: 0 0 24px;
    opacity: 0.85;
}

.tb-cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--color-primary, #c9a96e);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.tb-cta-btn:hover {
    opacity: 0.88;
}

/* ── Code module ───────────────────────────────────────────────────────────── */

.tb-module--code .tb-code {
    /* No default chrome — raw output */
}

/* ── Product Showcase module ───────────────────────────────────────────────── */

.tb-module--product-showcase .tb-product-showcase {
    width: 100%;
}

.tb-product-showcase__section {
    margin-bottom: 48px;
}

.tb-product-showcase__section:last-child {
    margin-bottom: 0;
}

/* ── Visibility — Phase 5 ──────────────────────────────────── */

@media (min-width: 1025px) {
    .tb-hide-desktop { display: none !important; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .tb-hide-tablet  { display: none !important; }
}

@media (max-width: 768px) {
    .tb-hide-mobile  { display: none !important; }
}

/* ════════════════════════════════════════════════════════════
   Phase 6 — Extended Module Library
   ════════════════════════════════════════════════════════════ */

/* ── Accordion ─────────────────────────────────────────────── */
.tb-accordion           { border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; }
.tb-ac-item             { border-bottom: 1px solid #e5e5e5; }
.tb-ac-item:last-child  { border-bottom: none; }
.tb-ac-header           { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 20px; background: #fff; border: none; text-align: left; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s; gap: 12px; }
.tb-ac-header:hover     { background: #fafafa; }
.tb-ac-item.active .tb-ac-header { color: var(--color-primary, #c9a96e); }
.tb-ac-icon             { flex-shrink: 0; font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.tb-ac-body             { overflow: hidden; }
.tb-ac-content          { padding: 0 20px 18px; line-height: 1.7; }

/* ── Tabs ──────────────────────────────────────────────────── */
.tb-tabs                { }
.tb-tabs-nav            { display: flex; border-bottom: 2px solid #e5e5e5; gap: 0; flex-wrap: wrap; }
.tb-tab-btn             { padding: 10px 20px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 0.95rem; font-weight: 600; color: #888; cursor: pointer; transition: color .15s, border-color .15s; white-space: nowrap; }
.tb-tab-btn:hover       { color: #333; }
.tb-tab-btn.active      { color: var(--color-primary, #c9a96e); border-bottom-color: var(--color-primary, #c9a96e); }
.tb-tabs-body           { }
.tb-tab-pane            { padding: 20px 0; line-height: 1.7; }

/* ── Testimonial ───────────────────────────────────────────── */
.tb-testimonial             { padding: 32px; text-align: center; }
.tb-testimonial__stars      { font-size: 1.3rem; color: var(--color-primary, #c9a96e); letter-spacing: 2px; margin-bottom: 16px; }
.tb-testimonial__quote      { font-size: 1.1rem; font-style: italic; line-height: 1.7; margin: 0 0 24px; quotes: none; }
.tb-testimonial__quote::before,
.tb-testimonial__quote::after { content: none; }
.tb-testimonial__author     { display: flex; align-items: center; justify-content: center; gap: 12px; }
.tb-testimonial__avatar     { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tb-testimonial__meta       { display: flex; flex-direction: column; text-align: left; }
.tb-testimonial__name       { font-weight: 700; font-size: 0.95rem; }
.tb-testimonial__role       { font-size: 0.85rem; color: #888; }

/* ── Countdown ─────────────────────────────────────────────── */
.tb-countdown               { text-align: center; }
.tb-countdown__label        { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.tb-countdown__units        { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.tb-cd-unit                 { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.tb-cd-num                  { font-size: 3rem; font-weight: 800; line-height: 1; }
.tb-cd-lbl                  { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-top: 4px; }
.tb-cd-sep                  { font-size: 2.5rem; font-weight: 700; margin-bottom: 20px; opacity: 0.5; }

/* ── Counter ───────────────────────────────────────────────── */
.tb-counter                 { text-align: center; padding: 24px 16px; }
.tb-counter__number         { font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--color-primary, #c9a96e); }
.tb-counter__suffix         { font-size: 2.5rem; }
.tb-counter__label          { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #888; margin-top: 8px; }

/* ── Post Grid ─────────────────────────────────────────────── */
.tb-post-grid               { }
.tb-post-grid__heading      { font-size: 2rem; margin-bottom: 32px; }
.tb-post-grid__grid         { display: grid; grid-template-columns: repeat(var(--tb-pg-cols, 3), 1fr); gap: 28px; }
.tb-pg-card                 { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.tb-pg-card:hover           { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.tb-pg-card__thumb          { display: block; overflow: hidden; aspect-ratio: 16/9; }
.tb-pg-card__img            { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.tb-pg-card:hover .tb-pg-card__img { transform: scale(1.04); }
.tb-pg-card__body           { padding: 18px; }
.tb-pg-card__date           { font-size: 0.78rem; color: #999; margin-bottom: 6px; }
.tb-pg-card__title          { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.tb-pg-card__title a        { color: inherit; text-decoration: none; }
.tb-pg-card__title a:hover  { color: var(--color-primary, #c9a96e); }
.tb-pg-card__excerpt        { font-size: 0.875rem; color: #666; line-height: 1.6; margin: 0; }
.tb-post-grid__footer       { margin-top: 32px; text-align: center; }
.tb-pg-btn                  { display: inline-block; padding: 12px 32px; background: var(--color-primary, #c9a96e); color: #fff; font-weight: 700; text-decoration: none; border-radius: 4px; transition: opacity .2s; }
.tb-pg-btn:hover            { opacity: 0.85; }
@media (max-width: 900px) { .tb-post-grid__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tb-post-grid__grid { grid-template-columns: 1fr; } }

/* ── Video ─────────────────────────────────────────────────── */
.tb-video               { }
.tb-video__wrap         { position: relative; width: 100%; height: 0; overflow: hidden; }
.tb-video__iframe       { position: absolute; inset: 0; width: 100%; height: 100%; }
.tb-video__direct       { display: block; width: 100%; border-radius: 4px; }
.tb-video__error        { padding: 20px; background: #f5f5f5; border-radius: 4px; color: #999; font-size: 0.875rem; }

/* ── Slider ────────────────────────────────────────────────── */
.tb-slider              { position: relative; overflow: hidden; user-select: none; }
.tb-slider__track       { position: relative; }
.tb-slider__slide       { display: none; }
.tb-slider__slide.active { display: block; }
.tb-slider__slide img   { display: block; width: 100%; height: auto; max-height: 600px; object-fit: cover; }
.tb-slider__caption     { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px; background: rgba(0,0,0,.45); color: #fff; font-size: 0.9rem; }
.tb-slider__arrow       { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: none; padding: 8px 14px; font-size: 1.8rem; line-height: 1; cursor: pointer; z-index: 2; transition: background .15s; border-radius: 2px; }
.tb-slider__arrow:hover { background: rgba(0,0,0,.65); }
.tb-slider__arrow--prev { left: 8px; }
.tb-slider__arrow--next { right: 8px; }
.tb-slider__dots        { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.tb-slider__dot         { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); border: none; cursor: pointer; padding: 0; transition: background .15s, transform .15s; }
.tb-slider__dot.active  { background: #fff; transform: scale(1.3); }

/* ── Map ───────────────────────────────────────────────────── */
.tb-map                 { overflow: hidden; border-radius: 6px; }
.tb-map__iframe         { display: block; }

/* ── Social Icons ──────────────────────────────────────────── */
.tb-social-icons        { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tb-social-icons--left  { justify-content: flex-start; }
.tb-social-icons--center { justify-content: center; }
.tb-social-icons--right { justify-content: flex-end; }
.tb-social-icon         { display: inline-flex; align-items: center; justify-content: center; color: inherit; transition: color .15s, transform .15s; }
.tb-social-icon:hover   { transform: translateY(-2px); }
.tb-social-icon--instagram:hover { color: #e1306c; }
.tb-social-icon--facebook:hover  { color: #1877f2; }
.tb-social-icon--twitter:hover   { color: #1da1f2; }
.tb-social-icon--tiktok:hover    { color: #010101; }
.tb-social-icon--youtube:hover   { color: #ff0000; }
.tb-social-icon--whatsapp:hover  { color: #25d366; }
.tb-social-icon--linkedin:hover  { color: #0a66c2; }
.tb-social-icon--pinterest:hover { color: #e60023; }
.tb-social-icon--email:hover     { color: var(--color-primary, #c9a96e); }

/* ── Repeater (admin) ──────────────────────────────────────── */
.se-repeater            { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.se-rpt-row             { background: #222; border: 1px solid #3a3a3a; border-radius: 4px; padding: 8px; }
.se-rpt-sub             { margin-bottom: 6px; }
.se-rpt-sub:last-of-type { margin-bottom: 4px; }
.se-rpt-sub label       { display: block; font-size: 10px; color: #777; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.se-rpt-sub input,
.se-rpt-sub textarea    { width: 100%; background: #1a1a1a; border: 1px solid #444; color: #ddd; padding: 4px 6px; font-size: 11px; border-radius: 3px; box-sizing: border-box; }
.se-rpt-sub textarea    { min-height: 56px; resize: vertical; }
.se-rpt-del             { background: none; border: 1px solid #554; color: #c66; font-size: 10px; padding: 3px 8px; cursor: pointer; border-radius: 3px; margin-top: 4px; transition: background .15s; }
.se-rpt-del:hover       { background: #3a1a1a; }
.se-rpt-add             { width: 100%; background: #2a2a2a; border: 1px dashed #555; color: #aaa; padding: 6px; font-size: 11px; cursor: pointer; border-radius: 3px; transition: all .15s; }
.se-rpt-add:hover       { background: #333; color: #e87fa0; border-color: #e87fa0; }
