/*
Theme Name: Taif Media
Theme URI: https://taifmedia.com
Author: طيف الإعلامية
Author URI: https://taifmedia.com
Description: قالب طيف الإعلامية — شركة دعاية وإعلان متكاملة. تصميم احترافي داكن بألوان البراند المخصصة.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taif-media
Tags: rtl-language, arabic, dark, business, portfolio, custom-colors
*/

/* =====================================================
   TAIF MEDIA WORDPRESS THEME
   Brand Colors: Purple #7B3F6E / Mid #9B5A8A / Bright #B87AAA
   Dark Luxury Theme · RTL Arabic
===================================================== */

/* Local Font - Expo Arabic */
@font-face {
    font-family: 'Expo Arabic';
    src: url('assets/fonts/expo/ExpoArabic-Light.woff2') format('woff2'),
         url('assets/fonts/expo/ExpoArabic-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Expo Arabic';
    src: url('assets/fonts/expo/ExpoArabic-Book.woff2') format('woff2'),
         url('assets/fonts/expo/ExpoArabic-Book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Expo Arabic';
    src: url('assets/fonts/expo/ExpoArabic-Bold.woff2') format('woff2'),
         url('assets/fonts/expo/ExpoArabic-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --tm-bg:      #0E0A0D;
    --tm-bg2:     #130E11;
    --tm-card:    #1C1520;
    --tm-card2:   #231828;
    --tm-card3:   #2A1D30;
    --tm-p:       #7B3F6E;
    --tm-pm:      #9B5A8A;
    --tm-pb:      #B87AAA;
    --tm-rose:    #C4749A;
    --tm-cream:   #F0E8E4;
    --tm-cd:      rgba(240,232,228,.65);
    --tm-cm:      rgba(240,232,228,.38);
    --tm-gold:    #C9A87C;
    --tm-green:   #5BAA8A;
    --tm-border:  rgba(155,90,138,.17);
    --tm-borderb: rgba(155,90,138,.45);
    --tm-nav-h:   66px;
    --tm-font:    'Expo Arabic', sans-serif;
    --tm-font-h:  'Expo Arabic', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--tm-bg);
    color: var(--tm-cream);
    font-family: var(--tm-font);
    overflow-x: hidden;
    line-height: 1.6;
    direction: rtl;
}

/* Noise overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: .45;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--tm-font-h);
    font-weight: 700;
    line-height: 1.2;
    color: var(--tm-cream);
}

p { line-height: 1.8; color: var(--tm-cd); }

/* ── Layout ── */
.tm-container { max-width: 1200px; margin: 0 auto; padding: 0 52px; }
.tm-section { padding: 88px 0; }
.tm-section--alt { background: var(--tm-card); }
.tm-section--dark { background: var(--tm-bg2); }

/* ── Eyebrow ── */
.tm-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.tm-eyebrow__line { width: 28px; height: 2px; background: var(--tm-pm); border-radius: 2px; }
.tm-eyebrow__text { font-size: .7rem; color: var(--tm-pb); letter-spacing: 3px; font-weight: 700; text-transform: uppercase; }

/* ── Section Headings ── */
.tm-title {
    font-size: clamp(28px, 3.8vw, 52px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 14px;
}
.tm-title span { color: var(--tm-pb); }
.tm-title--center { text-align: center; }

.tm-subtitle {
    font-size: .95rem;
    color: var(--tm-cd);
    max-width: 560px;
    line-height: 1.85;
    font-weight: 300;
    margin-bottom: 44px;
}
.tm-subtitle--wide { max-width: 740px; }
.tm-subtitle--center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 8px;
    font-family: var(--tm-font);
    font-size: .9rem;
    font-weight: 700;
    border: 2px solid transparent;
    transition: transform .2s, box-shadow .25s, background .2s, color .2s, border-color .2s;
    letter-spacing: .3px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}
.tm-btn:focus-visible {
    outline: 3px solid var(--tm-pb);
    outline-offset: 2px;
}

/* Primary */
.tm-btn--primary {
    background: linear-gradient(135deg, var(--tm-p) 0%, var(--tm-pm) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(123,63,110,.35);
}
.tm-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(123,63,110,.5);
    color: #fff;
}
.tm-btn--primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(123,63,110,.3); }

/* Outline */
.tm-btn--outline {
    background: transparent;
    border-color: var(--tm-borderb);
    color: var(--tm-pb);
}
.tm-btn--outline:hover {
    background: rgba(123,63,110,.1);
    border-color: var(--tm-pm);
    color: var(--tm-pb);
    transform: translateY(-2px);
}

/* WhatsApp Button */
.tm-btn--whatsapp {
    background: #25D366;
    border: 1px solid #25D366;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .25s ease;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .35);
}

.tm-btn--whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
}

/* Ghost — subtle, text-like */
.tm-btn--ghost {
    background: transparent;
    border-color: transparent;
    color: var(--tm-pb);
    padding-left: 4px;
    padding-right: 4px;
}
.tm-btn--ghost:hover { color: var(--tm-pm); background: rgba(123,63,110,.07); border-radius: 6px; }

/* Sizes */
.tm-btn--sm  { padding: 9px 20px; font-size: .82rem; gap: 6px; }
.tm-btn--lg  { padding: 16px 36px; font-size: 1rem; }
.tm-btn--full { width: 100%; }

/* ── Cards ── */
.tm-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    padding: 30px 26px;
    position: relative;
    overflow: hidden;
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.tm-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123,63,110,.07), transparent 60%);
    opacity: 0;
    transition: opacity .3s;
}
.tm-card:hover {
    border-color: var(--tm-borderb);
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0,0,0,.38), 0 0 26px rgba(123,63,110,.1);
}
.tm-card:hover::before { opacity: 1; }

/* ── Service Cards ── */
.tm-service-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    padding: 24px 20px;
    display: block;
    transition: border-color .3s, transform .25s, box-shadow .3s;
    text-decoration: none;
}
.tm-service-card:hover {
    border-color: var(--tm-borderb);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0,0,0,.3), 0 0 22px rgba(123,63,110,.08);
}
.tm-service-card__icon { font-size: 1.8rem; margin-bottom: 12px; display: block; }
.tm-service-card__title { font-size: .92rem; font-weight: 700; margin-bottom: 6px; color: var(--tm-cream); }
.tm-service-card__desc { font-size: .8rem; color: var(--tm-cm); line-height: 1.7; }
.tm-service-card__arrow { display: block; margin-top: 12px; font-size: .75rem; color: var(--tm-pb); font-weight: 700; opacity: 0; transition: opacity .3s, transform .3s; }
.tm-service-card:hover .tm-service-card__arrow { opacity: 1; transform: translateX(-4px); }

/* ── Portfolio Item ── */
.tm-work-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--tm-border);
    transition: transform .4s, border-color .3s;
}
.tm-work-item:hover { transform: scale(1.025); border-color: var(--tm-borderb); }
.tm-work-item__thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .5s; }
.tm-work-item:hover .tm-work-item__thumb { transform: scale(1.06); }
.tm-work-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14,10,13,.92) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity .35s;
}
.tm-work-item:hover .tm-work-item__overlay { opacity: 1; }
.tm-work-item__title { font-size: .93rem; font-weight: 700; margin-bottom: 3px; }
.tm-work-item__cat { font-size: .68rem; color: var(--tm-pb); letter-spacing: 2px; font-weight: 600; }

/* ── Pricing Cards ── */
.tm-price-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    padding: 34px 28px;
    position: relative;
    transition: border-color .3s, transform .3s;
}
.tm-price-card:hover { border-color: var(--tm-borderb); transform: translateY(-4px); }
.tm-price-card--featured {
    border-color: var(--tm-pm);
    background: linear-gradient(135deg, rgba(123,63,110,.12), var(--tm-card2));
}
.tm-price-card__badge {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--tm-p), var(--tm-pm));
    color: var(--tm-cream);
    padding: 5px 18px;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}
.tm-price-card__name { font-size: .95rem; font-weight: 700; color: var(--tm-cd); margin-bottom: 8px; }
.tm-price-card__price { font-family: var(--tm-font-h); font-size: 2.4rem; font-weight: 900; color: var(--tm-pb); line-height: 1; margin-bottom: 4px; }
.tm-price-card__price sub { font-size: 1rem; font-weight: 400; color: var(--tm-cm); }
.tm-price-card__type { font-size: .75rem; color: var(--tm-cm); margin-bottom: 6px; }
.tm-price-card__desc { font-size: .8rem; color: var(--tm-cm); margin-bottom: 22px; line-height: 1.6; padding-bottom: 18px; border-bottom: 1px solid var(--tm-border); }
.tm-price-card__list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }
.tm-price-card__list li { font-size: .82rem; color: var(--tm-cd); display: flex; align-items: flex-start; gap: 8px; line-height: 1.55; }
.tm-price-card__list li::before { content: '✓'; color: var(--tm-green); font-weight: 700; font-size: .82rem; flex-shrink: 0; margin-top: 2px; }
.tm-price-card__list li.na { color: var(--tm-cm); }
.tm-price-card__list li.na::before { content: '–'; color: rgba(255,255,255,.15); }

/* ── Testimonials ── */
.tm-testi {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    padding: 26px;
    transition: border-color .3s;
}
.tm-testi:hover { border-color: var(--tm-borderb); }
.tm-testi__stars { color: var(--tm-gold); font-size: .85rem; letter-spacing: 2px; margin-bottom: 12px; }
.tm-testi__text { font-size: .85rem; color: var(--tm-cd); line-height: 1.82; margin-bottom: 18px; font-style: italic; }
.tm-testi__text::before { content: '"'; color: var(--tm-pb); font-size: 1.4rem; line-height: 0; vertical-align: -7px; margin-left: 3px; }
.tm-testi__author { display: flex; align-items: center; gap: 10px; }
.tm-testi__avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(123,63,110,.2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; border: 1px solid var(--tm-borderb); object-fit: cover; }
.tm-testi__name { font-size: .82rem; font-weight: 700; }
.tm-testi__company { font-size: .72rem; color: var(--tm-cm); }

/* ── Stats ── */
.tm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.tm-stat { background: var(--tm-card2); padding: 36px 28px; text-align: center; }
.tm-stat__number { font-family: var(--tm-font-h); font-size: clamp(44px,5vw, 62px); font-weight: 900; color: var(--tm-pb); line-height: 1; display: block; }
.tm-stat__label { font-size: .82rem; color: var(--tm-cm); margin-top: 8px; letter-spacing: 1px; font-weight: 600; }

/* ── Trust Bar ── */
.tm-trust-bar {
    background: var(--tm-card);
    border-top: 1px solid var(--tm-border);
    border-bottom: 1px solid var(--tm-border);
    padding: 22px 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.tm-trust-item { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--tm-cd); font-weight: 500; }
.tm-trust-item__icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(123,63,110,.15); display: flex; align-items: center; justify-content: center; font-size: .9rem; flex-shrink: 0; }

/* ── Process Steps ── */
.tm-process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-top: 52px; }
.tm-process::before { content: ''; position: absolute; top: 28px; right: 10%; left: 10%; height: 1px; background: linear-gradient(to left, transparent, var(--tm-borderb), transparent); }
.tm-step { text-align: center; padding: 0 14px; position: relative; z-index: 1; }
.tm-step__circle { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--tm-pm); background: var(--tm-bg2); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 1.3rem; transition: background .3s, box-shadow .3s; }
.tm-step:hover .tm-step__circle { background: var(--tm-p); box-shadow: 0 0 24px rgba(123,63,110,.5); }
.tm-step__title { font-size: .88rem; font-weight: 700; margin-bottom: 8px; }
.tm-step__desc { font-size: .77rem; color: var(--tm-cm); line-height: 1.65; }

/* ── FAQ ── */
.tm-faq { max-width: 760px; margin: 44px auto 0; display: flex; flex-direction: column; gap: 7px; }
.tm-faq-item { background: var(--tm-card2); border: 1px solid var(--tm-border); border-radius: 11px; overflow: hidden; transition: border-color .3s; }
.tm-faq-item:hover { border-color: var(--tm-borderb); }
.tm-faq-item__question { padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; font-weight: 600; user-select: none; gap: 12px; }
.tm-faq-item__toggle { width: 26px; height: 26px; border-radius: 50%; background: rgba(123,63,110,.14); display: flex; align-items: center; justify-content: center; color: var(--tm-pb); font-size: 1rem; flex-shrink: 0; transition: transform .3s, background .3s; }
.tm-faq-item.open .tm-faq-item__toggle { transform: rotate(45deg); background: var(--tm-p); color: var(--tm-cream); }
.tm-faq-item__answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.tm-faq-item__answer-inner { padding: 0 22px 18px; padding-top: 14px; font-size: .85rem; color: var(--tm-cd); line-height: 1.85; border-top: 1px solid var(--tm-border); }
.tm-faq-item.open .tm-faq-item__answer { max-height: 300px; }

/* ── Hero ── */
.tm-hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 52px 70px; position: relative; overflow: hidden; }
.tm-hero__blob1 { position: absolute; top: -10%; right: -5%; width: 65vw; height: 65vw; background: radial-gradient(ellipse at 70% 30%, rgba(123,63,110,.17) 0%, transparent 65%); pointer-events: none; }
.tm-hero__blob2 { position: absolute; bottom: -20%; left: -10%; width: 45vw; height: 45vw; background: radial-gradient(ellipse at 30% 70%, rgba(155,90,138,.09) 0%, transparent 60%); pointer-events: none; }
.tm-hero__bg-letter { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-family: var(--tm-font-h); font-size: 55vw; font-weight: 900; color: transparent; -webkit-text-stroke: 1px rgba(123,63,110,.05); line-height: 1; pointer-events: none; user-select: none; }
.tm-hero__content { max-width: 640px; position: relative; z-index: 2; animation: tmSlideR .8s ease both; }
.tm-hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(123,63,110,.14); border: 1px solid var(--tm-borderb); padding: 6px 16px; border-radius: 100px; font-size: .72rem; color: var(--tm-pb); font-weight: 700; letter-spacing: 1px; margin-bottom: 22px; }
.tm-hero__badge::before { content: '✦'; color: var(--tm-gold); font-size: .65rem; }
.tm-hero__title { font-size: clamp(42px, 6vw, 72px); font-weight: 900; line-height: 1.5; letter-spacing: -2px; margin-bottom: 22px; }
.tm-hero__title span { color: var(--tm-pb); }
.tm-hero__desc { font-size: 1rem; color: var(--tm-cd); line-height: 1.88; font-weight: 300; margin-bottom: 36px; max-width: 520px; }
.tm-hero__cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.tm-hero__proof { display: flex; align-items: center; gap: 18px; }
.tm-proof-avatars { display: flex; }
.tm-proof-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--tm-bg); margin-left: -10px; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; background: var(--tm-card2); overflow: hidden; }
.tm-proof-avatar:first-child { margin-left: 0; }
.tm-proof-text { font-size: .8rem; color: var(--tm-cm); line-height: 1.55; }
.tm-proof-text strong { color: var(--tm-cream); font-weight: 700; }

/* ── Grids ── */
.tm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tm-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tm-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tm-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tm-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.tm-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 44px; }
.tm-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 44px; }

/* ── CTA Strip ── */
.tm-cta-strip { padding: 88px 52px; text-align: center; position: relative; overflow: hidden; background: linear-gradient(to bottom, var(--tm-bg2), rgba(123,63,110,.07) 50%, var(--tm-bg2)); }
.tm-cta-strip::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(123,63,110,.14), transparent 70%); pointer-events: none; }
.tm-cta-strip > * { position: relative; z-index: 1; }
.tm-cta-strip__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Sticky Bar ── */
.tm-sticky { position: fixed; bottom: 0; left: 0; right: 0; z-index: 700; background: rgba(14,10,13,.96); backdrop-filter: blur(20px); border-top: 1px solid var(--tm-borderb); padding: 14px 52px; display: flex; align-items: center; justify-content: space-between; transform: translateY(100%); transition: transform .4s ease; }
.tm-sticky.active { transform: translateY(0); }
.tm-sticky__text { font-size: .88rem; color: var(--tm-cd); }
.tm-sticky__text strong { color: var(--tm-cream); font-weight: 700; }
.tm-sticky__btns { display: flex; gap: 10px; }

/* ── Animations ── */
.tm-rv { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.tm-rv.in { opacity: 1; transform: translateY(0); }
.tm-d1 { transition-delay: .07s; } .tm-d2 { transition-delay: .14s; }
.tm-d3 { transition-delay: .21s; } .tm-d4 { transition-delay: .28s; }
.tm-d5 { transition-delay: .35s; } .tm-d6 { transition-delay: .42s; }

@keyframes tmSlideR { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes tmPulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .5; } }

/* ── Breadcrumb ── */
.tm-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-size: .73rem; color: var(--tm-cm); letter-spacing: 1px; flex-wrap: wrap; }
.tm-breadcrumb a { color: var(--tm-pb); transition: opacity .2s; }
.tm-breadcrumb a:hover { opacity: .7; }
.tm-breadcrumb__sep { opacity: .3; }

/* ── Blog Cards ── */
.tm-blog-card { background: var(--tm-card2); border: 1px solid var(--tm-border); border-radius: 14px; overflow: hidden; transition: border-color .3s, transform .3s; display: flex; flex-direction: column; }
.tm-blog-card:hover { border-color: var(--tm-borderb); transform: translateY(-3px); }
.tm-blog-card__thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tm-blog-card__thumb-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, rgba(123,63,110,.15), rgba(14,10,13,.9)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.tm-blog-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.tm-blog-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.tm-blog-card__cat { font-size: .65rem; color: var(--tm-pb); font-weight: 700; letter-spacing: 1.5px; background: rgba(123,63,110,.12); padding: 3px 10px; border-radius: 100px; border: 1px solid var(--tm-border); }
.tm-blog-card__date { font-size: .67rem; color: var(--tm-cm); }
.tm-blog-card__title { font-size: .95rem; font-weight: 700; margin-bottom: 9px; line-height: 1.45; color: var(--tm-cream); }
.tm-blog-card__excerpt { font-size: .8rem; color: var(--tm-cm); line-height: 1.75; margin-bottom: 16px; flex: 1; }
.tm-blog-card__link { font-size: .78rem; color: var(--tm-pb); font-weight: 700; display: flex; align-items: center; gap: 5px; transition: gap .2s; }
.tm-blog-card:hover .tm-blog-card__link { gap: 10px; }

/* ── Form ── */
.tm-form-card { background: var(--tm-card); border: 1px solid var(--tm-borderb); border-radius: 18px; padding: 38px; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.tm-form-group { margin-bottom: 12px; }
.tm-form-group label { display: block; font-size: .77rem; font-weight: 600; color: var(--tm-cd); margin-bottom: 5px; }
.tm-form-group input,
.tm-form-group select,
.tm-form-group textarea {
    width: 100%;
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--tm-cream);
    font-family: var(--tm-font);
    font-size: .88rem;
    outline: none;
    transition: border-color .3s, box-shadow .3s;
    direction: rtl;
}
.tm-form-group input:focus,
.tm-form-group select:focus,
.tm-form-group textarea:focus { border-color: var(--tm-pm); box-shadow: 0 0 0 3px rgba(123,63,110,.13); }
.tm-form-group textarea { resize: vertical; min-height: 90px; }
.tm-form-group select option { background: var(--tm-card2); }
.tm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Contact Info ── */
.tm-contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--tm-card2); border: 1px solid var(--tm-border); border-radius: 10px; margin-bottom: 10px; transition: border-color .3s; }
.tm-contact-item:hover { border-color: var(--tm-borderb); }
.tm-contact-item__icon { width: 40px; height: 40px; border-radius: 9px; background: rgba(123,63,110,.15); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.tm-contact-item__title { font-size: .88rem; font-weight: 700; margin-bottom: 2px; }
.tm-contact-item__value { font-size: .8rem; color: var(--tm-cm); }

/* ── Tag ── */
.tm-tag { display: inline-block; margin-top: 12px; padding: 3px 12px; background: rgba(123,63,110,.15); border: 1px solid var(--tm-borderb); border-radius: 100px; font-size: .67rem; color: var(--tm-pb); font-weight: 700; letter-spacing: 1px; }

/* ── Pagination ── */
.tm-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 52px; flex-wrap: wrap; }
.tm-pagination a,
.tm-pagination span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-size: .85rem; font-weight: 600; border: 1px solid var(--tm-border); background: var(--tm-card2); color: var(--tm-cd); transition: all .25s; }
.tm-pagination a:hover,
.tm-pagination .current { background: rgba(123,63,110,.15); border-color: var(--tm-borderb); color: var(--tm-pb); }

/* ── Single Post / Page Content ── */
.tm-entry-content { font-size: .95rem; color: var(--tm-cd); line-height: 1.95; }
.tm-entry-content h2 { font-size: 1.6rem; font-weight: 700; margin: 32px 0 14px; color: var(--tm-cream); }
.tm-entry-content h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; color: var(--tm-cream); }
.tm-entry-content p { margin-bottom: 18px; }
.tm-entry-content ul, .tm-entry-content ol { margin: 0 24px 18px 0; }
.tm-entry-content ul li, .tm-entry-content ol li { margin-bottom: 8px; color: var(--tm-cd); }
.tm-entry-content ul li::before { content: '✓'; color: var(--tm-pb); margin-left: 8px; font-weight: 700; }
.tm-entry-content blockquote { background: rgba(123,63,110,.08); border-right: 3px solid var(--tm-pm); border-radius: 8px; padding: 18px 22px; margin: 24px 0; font-style: italic; }
.tm-entry-content img { border-radius: 12px; margin: 24px 0; width: 100%; }

/* ── WP Alignment ── */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignright { float: left; margin: 0 24px 18px 0; }
.alignleft { float: right; margin: 0 0 18px 24px; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .tm-container { padding: 0 22px; }
    .tm-section { padding: 60px 0; }
    .tm-hero { padding: 80px 22px 50px; }
    .tm-trust-bar {
        padding: 16px 20px;
        gap: 14px 20px;
        justify-content: flex-start;
    }
    .tm-trust-item { font-size: .78rem; }
    .tm-grid-2, .tm-grid-3, .tm-grid-4, .tm-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .tm-stats { grid-template-columns: repeat(2, 1fr); }
    .tm-price-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-testi-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-work-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-process { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .tm-process::before { display: none; }
    .tm-sticky { padding: 12px 22px; }
}

@media (max-width: 640px) {
    .tm-grid-2, .tm-grid-3, .tm-grid-4, .tm-grid-5,
    .tm-stats, .tm-price-grid, .tm-testi-grid, .tm-work-grid { grid-template-columns: 1fr; }
.tm-hero__cta .tm-btn { width: 100%; }   /* Hero فقط */
.tm-btn--full { width: 100%; }            /* الـ class الصريح */
    .tm-btn { width: auto; justify-content: center; }
    .tm-cta-strip { padding: 60px 22px; }
    .tm-form-row { grid-template-columns: 1fr; }
}

/* =====================================================
   NAV — MISSING FROM INITIAL STYLE.CSS
===================================================== */

.tm-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    transition: background .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.tm-nav.scrolled {
    background: rgba(14,10,13,.96);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--tm-border);
    box-shadow: 0 4px 24px rgba(0,0,0,.3);
}
.tm-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 52px;
    height: var(--tm-nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.tm-nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.tm-nav__logo-img { height: 44px; width: auto; }
.tm-nav__logo-text {
    font-family: var(--tm-font-h);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--tm-cream);
    letter-spacing: -0.5px;
}
.tm-nav__menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2px;
}
.tm-nav__item { position: relative; }
.tm-nav__link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: .83rem;
    font-weight: 600;
    color: var(--tm-cd);
    border-radius: 8px;
    transition: color .25s, background .25s;
    white-space: nowrap;
    text-decoration: none;
}
.tm-nav__link:hover,
.tm-nav__item.active > .tm-nav__link { color: var(--tm-cream); background: rgba(155,90,138,.1); }
.tm-nav__item.active > .tm-nav__link { color: var(--tm-pb); }

/* Dropdown */
.tm-nav__arrow { font-size: .65rem; opacity: .5; transition: transform .25s; }
.tm-nav__item.has-dropdown:hover .tm-nav__arrow { transform: rotate(-90deg); opacity: 1; }
.tm-nav__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: rgba(19,14,17,.97);
    backdrop-filter: blur(16px);
    border: 1px solid var(--tm-borderb);
    border-radius: 12px;
    padding: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s, visibility .25s, transform .25s;
    box-shadow: 0 12px 36px rgba(0,0,0,.4);
    z-index: 100;
}
.tm-nav__item.has-dropdown:hover .tm-nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.tm-nav__dropdown-link {
    display: block;
    padding: 9px 14px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--tm-cd);
    border-radius: 7px;
    transition: background .2s, color .2s;
    text-decoration: none;
    white-space: nowrap;
}
.tm-nav__dropdown-link:hover { background: rgba(155,90,138,.12); color: var(--tm-pb); }

/* Nav Actions */
.tm-nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tm-nav__wa { display: none; }

/* Mobile Button */
.tm-nav__mob-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: rgba(155,90,138,.1);
    border: 1px solid var(--tm-border);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
}
.tm-nav__mob-btn span {
    display: block;
    height: 2px;
    background: var(--tm-cream);
    border-radius: 2px;
    transition: transform .3s, opacity .3s, width .3s;
}
.tm-nav__mob-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tm-nav__mob-btn.open span:nth-child(2) { opacity: 0; width: 0; }
.tm-nav__mob-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.tm-mob-menu {
    position: fixed;
    inset: 0;
    top: var(--tm-nav-h);
    background: rgba(14,10,13,.98);
    backdrop-filter: blur(24px);
    z-index: 490;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
}
.tm-mob-menu.open { transform: translateX(0); }
.tm-mob-menu__inner { padding: 28px 28px 60px; display: flex; flex-direction: column; gap: 4px; }
.tm-mob-menu__list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 4px; }
.tm-mob-menu__list li a,
.tm-mob-menu__inner > a {
    display: block;
    padding: 13px 16px;
    font-size: .95rem;
    font-weight: 600;
    color: var(--tm-cd);
    border-radius: 10px;
    transition: background .2s, color .2s;
    text-decoration: none;
}
.tm-mob-menu__list li a:hover,
.tm-mob-menu__list li.active a { background: rgba(155,90,138,.1); color: var(--tm-pb); }
.tm-mob-menu__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 20px; border-top: 1px solid var(--tm-border); }

/* =====================================================
   FOOTER — MISSING FROM INITIAL STYLE.CSS
===================================================== */

.tm-footer { background: var(--tm-bg2); border-top: 1px solid var(--tm-border); margin-top: auto; }

.tm-footer__top { padding: 72px 0 52px; }
.tm-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 44px;
}
.tm-footer__brand { }
.tm-footer__logo { margin-bottom: 16px; }
.tm-footer__logo img { height: 48px; width: auto; }
.tm-footer__brand-desc { font-size: .83rem; color: var(--tm-cm); line-height: 1.82; margin-bottom: 18px; }

.tm-footer__social { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-footer__social__link {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(155,90,138,.1);
    border: 1px solid var(--tm-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background .25s, border-color .25s, transform .2s;
}
.tm-footer__social__link:hover { background: rgba(155,90,138,.22); border-color: var(--tm-borderb); transform: translateY(-2px); }

.tm-footer__col-title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--tm-cream);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.tm-footer__links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.tm-footer__links li a {
    font-size: .83rem;
    color: var(--tm-cm);
    text-decoration: none;
    transition: color .2s;
    line-height: 1.5;
}
.tm-footer__links li a:hover { color: var(--tm-pb); }

.tm-footer__bottom {
    border-top: 1px solid var(--tm-border);
    padding: 18px 0;
}
.tm-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.tm-footer__copy { font-size: .78rem; color: var(--tm-cm); }
.tm-footer__bottom-links { display: flex; gap: 18px; list-style: none; padding: 0; margin: 0; }
.tm-footer__bottom-links li a { font-size: .75rem; color: var(--tm-cm); text-decoration: none; transition: color .2s; }
.tm-footer__bottom-links li a:hover { color: var(--tm-pb); }

/* =====================================================
   NAV + FOOTER RESPONSIVE
===================================================== */

@media (max-width: 1100px) {
    .tm-nav__inner { padding: 0 22px; }
    .tm-nav__menu { display: none; }
    .tm-nav__cta { display: none; }
    .tm-nav__wa { display: flex; }
    .tm-nav__mob-btn { display: flex; }

    .tm-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
    .tm-footer__grid { grid-template-columns: 1fr; gap: 28px; }
    .tm-footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* =====================================================
   FILTER BUTTONS (Portfolio / Blog)
===================================================== */
.tm-filter-btn {
    padding: 9px 20px;
    border-radius: 100px;
    font-family: var(--tm-font);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--tm-border);
    background: transparent;
    color: var(--tm-cd);
    transition: all .25s;
}
.tm-filter-btn:hover,
.tm-filter-btn.active {
    background: rgba(123,63,110,.15);
    border-color: var(--tm-borderb);
    color: var(--tm-pb);
}

/* =====================================================
   FLUENT FORMS WRAPPER (defined also in fluent-forms.php)
===================================================== */
.taif-ff-wrap { width: 100%; }

.taif-ff-notice {
    background: rgba(201,168,124,.1);
    border: 1px dashed rgba(201,168,124,.4);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: .83rem;
    color: rgba(240,232,228,.7);
    font-family: var(--tm-font);
    line-height: 1.7;
}
.taif-ff-notice a  { color: var(--tm-pb); }
.taif-ff-notice code {
    background: rgba(155,90,138,.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: .78rem;
}

/* =====================================================
   FOOTER WIDGET AREAS
===================================================== */

/* wrapper لكل عمود — يستوعب أي widget */
.tm-footer__area { min-width: 0; }

/* أوقات العمل widget */
.taif-widget-hours {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--tm-border);
}
.taif-widget-hours__title {
    font-size: .78rem;
    font-weight: 700;
    color: var(--tm-cream);
    margin-bottom: 10px;
    letter-spacing: .5px;
}
.taif-widget-hours__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    color: var(--tm-cd);
    padding: 5px 0;
    border-bottom: 1px solid rgba(155,90,138,.08);
}
.taif-widget-hours__time {
    color: var(--tm-pb);
    font-weight: 600;
}

/* نص مخصص في الـ widget */
.taif-widget-custom-text {
    margin-top: 14px;
    font-size: .8rem;
    color: var(--tm-cm);
    line-height: 1.75;
}
.taif-widget-custom-text a { color: var(--tm-pb); }

/* آخر المقالات widget */
.taif-recent-posts { display: flex; flex-direction: column; gap: 12px; }
.taif-recent-post {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--tm-border);
    list-style: none;
}
.taif-recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.taif-recent-post__thumb { flex-shrink: 0; display: block; }
.taif-recent-post__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.taif-recent-post__title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--tm-cd);
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.taif-recent-post__title:hover { color: var(--tm-pb); }
.taif-recent-post__date {
    font-size: .7rem;
    color: var(--tm-cm);
    display: block;
}

/* Admin notice في الفوتر */
.taif-admin-notice {
    margin-top: 28px;
    padding: 12px 18px;
    background: rgba(201,168,124,.07);
    border: 1px dashed rgba(201,168,124,.3);
    border-radius: 8px;
    font-size: .78rem;
    color: rgba(240,232,228,.55);
    text-align: center;
}
.taif-admin-notice a { color: var(--tm-pb); }
.taif-admin-notice strong { color: var(--tm-cream); }

/* Blog Sidebar */
.tm-sidebar-widget {
    margin-bottom: 32px;
    padding: 24px 22px;
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 12px;
}
.tm-sidebar-widget .tm-footer__links { margin-top: 0; }


/* =====================================================
   LIGHT MODE
   Strategy: CSS custom properties only — no duplicate rules
   تغيير الـ variables فقط، والـ components تتكيف تلقائياً
===================================================== */

[data-theme="light"] {
    /* Backgrounds — warm white, clear hierarchy */
    --tm-bg:   #F8F4F7;
    --tm-bg2:  #EEE8EC;
    --tm-card: #FFFFFF;
    --tm-card2:#FBF7FA;
    --tm-card3:#F3EDF1;

    /* Text — strong contrast (WCAG AA+) */
    --tm-cream: #130A10;           /* near-black for headings */
    --tm-cd:    rgba(19,10,16,.75);/* body text — readable */
    --tm-cm:    rgba(19,10,16,.48);/* muted — still AA compliant */

    /* Brand adjustments for light bg */
    --tm-p:   #6B2F5E;             /* slightly darker on light */
    --tm-pm:  #8A4A7A;
    --tm-pb:  #A3658F;
    --tm-gold: #A07040;            /* gold darker on light */

    /* Borders — visible on white */
    --tm-border:  rgba(100,50,90,.18);
    --tm-borderb: rgba(100,50,90,.45);
}

/* Body background — needs explicit override since body bg is set on element */
[data-theme="light"] body { background: var(--tm-bg); color: var(--tm-cream); }

/* Noise — lighter in light mode */
[data-theme="light"] body::after { opacity: .12; }

/* ── Nav ── */
[data-theme="light"] .tm-nav { border-bottom-color: transparent; }
[data-theme="light"] .tm-nav.scrolled {
    background: rgba(245,241,244,.95);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--tm-border);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
[data-theme="light"] .tm-nav__link         { color: var(--tm-cd); }
[data-theme="light"] .tm-nav__link:hover   { color: var(--tm-cream); background: rgba(123,63,110,.08); }
[data-theme="light"] .tm-nav__logo-text    { color: var(--tm-cream); }
[data-theme="light"] .tm-nav__mob-btn span { background: var(--tm-cream); }
[data-theme="light"] .tm-nav__dropdown {
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
[data-theme="light"] .tm-nav__dropdown-link { color: var(--tm-cd); }
[data-theme="light"] .tm-nav__dropdown-link:hover { color: var(--tm-p); background: rgba(123,63,110,.07); }

/* ── Mobile Menu ── */
[data-theme="light"] .tm-mob-menu { background: rgba(245,241,244,.99); }
[data-theme="light"] .tm-mob-menu__list li a { color: var(--tm-cd); }

/* ── Sections ── */
[data-theme="light"] .tm-section--alt { background: var(--tm-bg2); }
[data-theme="light"] .tm-section--dark { background: var(--tm-card2); }

/* ── Cards — all card-type elements ── */
[data-theme="light"] .tm-card,
[data-theme="light"] .tm-service-card,
[data-theme="light"] .tm-price-card,
[data-theme="light"] .tm-testi,
[data-theme="light"] .tm-faq-item,
[data-theme="light"] .tm-blog-card,
[data-theme="light"] .tm-blog-carousel__slide,
[data-theme="light"] .tm-form-card,
[data-theme="light"] .tm-contact-item,
[data-theme="light"] .taif-widget-hours,
[data-theme="light"] .tm-sidebar-widget,
[data-theme="light"] .taif-ff-notice {
    background: var(--tm-card);
    border-color: var(--tm-border);
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

[data-theme="light"] .tm-card:hover,
[data-theme="light"] .tm-service-card:hover,
[data-theme="light"] .tm-blog-carousel__slide:hover {
    border-color: var(--tm-borderb);
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

[data-theme="light"] .tm-price-card--featured {
    background: linear-gradient(135deg, rgba(123,63,110,.06), #fff);
    border-color: var(--tm-pm);
}

/* ── Typography on light ── */
[data-theme="light"] h1,[data-theme="light"] h2,
[data-theme="light"] h3,[data-theme="light"] h4,
[data-theme="light"] h5,[data-theme="light"] h6 { color: var(--tm-cream); }

[data-theme="light"] .tm-title { color: var(--tm-cream); }
[data-theme="light"] .tm-title span { color: var(--tm-p); }
[data-theme="light"] .tm-subtitle,
[data-theme="light"] p { color: var(--tm-cd); }
[data-theme="light"] .tm-eyebrow__text { color: var(--tm-pm); }
[data-theme="light"] .tm-eyebrow__line { background: var(--tm-pm); }

/* ── Buttons on light bg ── */
[data-theme="light"] .tm-btn--primary {
    box-shadow: 0 4px 16px rgba(107,47,94,.3);
    color: #fff;
}
[data-theme="light"] .tm-btn--primary:hover {
    box-shadow: 0 8px 24px rgba(107,47,94,.45);
}
[data-theme="light"] .tm-btn--outline {
    border-color: var(--tm-borderb);
    color: var(--tm-p);
    background: transparent;
}
[data-theme="light"] .tm-btn--outline:hover {
    background: rgba(107,47,94,.08);
    border-color: var(--tm-pm);
    color: var(--tm-p);
}

[data-theme="light"] .tm-btn--ghost { color: var(--tm-p); }

/* ── Trust Bar ── */
[data-theme="light"] .tm-trust-bar {
    background: var(--tm-card);
    border-color: var(--tm-border);
}
[data-theme="light"] .tm-trust-item { color: var(--tm-cd); }

/* ── Stats ── */
[data-theme="light"] .tm-stat { background: var(--tm-card2); }
[data-theme="light"] .tm-stat__label { color: var(--tm-cm); }

/* ── Process steps ── */
[data-theme="light"] .tm-step__circle {
    background: var(--tm-card);
    border-color: var(--tm-pm);
    box-shadow: 0 2px 12px rgba(123,63,110,.12);
}
[data-theme="light"] .tm-step__desc { color: var(--tm-cm); }

/* ── Portfolio ── */
[data-theme="light"] .tm-work-item { border-color: var(--tm-border); }

/* ── Testimonials ── */
[data-theme="light"] .tm-testi__text  { color: var(--tm-cd); }
[data-theme="light"] .tm-testi__company { color: var(--tm-cm); }
[data-theme="light"] .tm-testi__avatar {
    background: rgba(123,63,110,.1);
    border-color: var(--tm-borderb);
}

/* ── FAQ ── */
[data-theme="light"] .tm-faq-item__question { color: var(--tm-cream); }
[data-theme="light"] .tm-faq-item__answer-inner { color: var(--tm-cd); border-top-color: var(--tm-border); }
[data-theme="light"] .tm-faq-item__toggle { background: rgba(123,63,110,.1); color: var(--tm-p); }

/* ── Forms ── */
[data-theme="light"] .tm-form-group label { color: var(--tm-cd); }
[data-theme="light"] .tm-form-group input,
[data-theme="light"] .tm-form-group select,
[data-theme="light"] .tm-form-group textarea {
    background: #fff;
    border-color: var(--tm-border);
    color: var(--tm-cream);
}
[data-theme="light"] .tm-form-group input::placeholder,
[data-theme="light"] .tm-form-group textarea::placeholder { color: rgba(28,15,25,.28); }

/* ── Contact items ── */
[data-theme="light"] .tm-contact-item__title { color: var(--tm-cream); }
[data-theme="light"] .tm-contact-item__value { color: var(--tm-cm); }

/* ── Blog cards ── */
[data-theme="light"] .tm-blog-card__title  { color: var(--tm-cream); }
[data-theme="light"] .tm-blog-card__excerpt{ color: var(--tm-cm); }
[data-theme="light"] .tm-blog-card__date   { color: var(--tm-cm); }
[data-theme="light"] .tm-blog-carousel__title a { color: var(--tm-cream); }
[data-theme="light"] .tm-blog-carousel__excerpt { color: var(--tm-cm); }

/* ── Breadcrumb ── */
[data-theme="light"] .tm-breadcrumb { color: var(--tm-cm); }

/* ── Footer ── */
[data-theme="light"] .tm-footer {
    background: var(--tm-bg2);
    border-top-color: var(--tm-border);
}
[data-theme="light"] .tm-footer__bottom {
    background: var(--tm-card2);
    border-top-color: var(--tm-border);
}
[data-theme="light"] .tm-footer__brand-desc,
[data-theme="light"] .tm-footer__links li a,
[data-theme="light"] .tm-footer__bottom-links li a,
[data-theme="light"] .tm-footer__copy { color: var(--tm-cm); }
[data-theme="light"] .tm-footer__links li a:hover,
[data-theme="light"] .tm-footer__bottom-links li a:hover { color: var(--tm-p); }
[data-theme="light"] .tm-footer__col-title { color: var(--tm-cream); }
[data-theme="light"] .tm-footer__social__link {
    background: rgba(123,63,110,.08);
    border-color: var(--tm-border);
    color: var(--tm-p);
}

/* ── Sticky Bar ── */
[data-theme="light"] .tm-sticky {
    background: rgba(245,241,244,.97);
    border-top-color: var(--tm-borderb);
    box-shadow: 0 -2px 20px rgba(0,0,0,.07);
}
[data-theme="light"] .tm-sticky__text { color: var(--tm-cd); }

/* ── CTA Strip ── */
[data-theme="light"] .tm-cta-strip {
    background: linear-gradient(to bottom, var(--tm-bg2), rgba(123,63,110,.04) 50%, var(--tm-bg2));
}
[data-theme="light"] .tm-cta-strip::before {
    background: radial-gradient(circle, rgba(123,63,110,.08), transparent 70%);
}

/* ── Widget hours ── */
[data-theme="light"] .taif-widget-hours__row { color: var(--tm-cd); border-bottom-color: var(--tm-border); }
[data-theme="light"] .taif-widget-hours__time { color: var(--tm-p); }

/* ── Fluent Forms on light ── */
[data-theme="light"] .taif-ff-wrap input[type="text"],
[data-theme="light"] .taif-ff-wrap input[type="email"],
[data-theme="light"] .taif-ff-wrap input[type="tel"],
[data-theme="light"] .taif-ff-wrap textarea,
[data-theme="light"] .taif-ff-wrap select,
[data-theme="light"] .taif-ff-wrap label,
[data-theme="light"] .taif-ff-wrap .ff-el-form-control {
    background: #fff !important;
    border-color: var(--tm-border) !important;
    color: var(--tm-cream) !important;
}

/* ── Hero on light ── */
[data-theme="light"] .tm-hero__bg-letter { -webkit-text-stroke-color: rgba(123,63,110,.04); }
[data-theme="light"] .tm-hero__blob1 {
    background: radial-gradient(ellipse at 70% 30%, rgba(123,63,110,.08) 0%, transparent 65%);
}

/* ── Price card list ── */
[data-theme="light"] .tm-price-card__name  { color: var(--tm-cd); }
[data-theme="light"] .tm-price-card__type,
[data-theme="light"] .tm-price-card__desc  { color: var(--tm-cm); }
[data-theme="light"] .tm-price-card__list li { color: var(--tm-cd); }
[data-theme="light"] .tm-price-card__list li.na { color: var(--tm-cm); }

/* ── Filter buttons ── */
[data-theme="light"] .tm-filter-btn,
[data-theme="light"] .tm-blog-filter-btn {
    border-color: var(--tm-border);
    color: var(--tm-cd);
}
[data-theme="light"] .tm-filter-btn:hover,
[data-theme="light"] .tm-filter-btn.active,
[data-theme="light"] .tm-blog-filter-btn.active {
    background: rgba(123,63,110,.1);
    border-color: var(--tm-pm);
    color: var(--tm-p);
}

/* ── Admin notice ── */
[data-theme="light"] .taif-admin-notice { background: rgba(123,63,110,.05); border-color: rgba(123,63,110,.2); color: var(--tm-cm); }
[data-theme="light"] .taif-ff-notice    { background: rgba(201,168,124,.08); border-color: rgba(201,168,124,.3); color: var(--tm-cm); }

/* =====================================================
   THEME SWITCHER BUTTON
===================================================== */
.tm-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--tm-border);
    background: rgba(155,90,138,.08);
    color: var(--tm-cd);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background .25s, border-color .25s, color .25s;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.tm-theme-toggle:hover {
    background: rgba(155,90,138,.18);
    border-color: var(--tm-borderb);
    color: var(--tm-pb);
}

/* Animated icon swap */
.tm-theme-toggle__icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
    transition: opacity .3s ease, transform .35s ease;
}
.tm-theme-toggle__icon--moon { opacity: 1; transform: scale(1)   rotate(0deg);   }
.tm-theme-toggle__icon--sun  { opacity: 0; transform: scale(.5)  rotate(90deg);  }

[data-theme="light"] .tm-theme-toggle__icon--moon { opacity: 0; transform: scale(.5)  rotate(-90deg); }
[data-theme="light"] .tm-theme-toggle__icon--sun  { opacity: 1; transform: scale(1)   rotate(0deg);   }

[data-theme="light"] .tm-theme-toggle { color: var(--tm-p); border-color: var(--tm-border); }

/* =====================================================
   SVG ICON SYSTEM
===================================================== */
.taif-icon {
    display: inline-block;
    width: 1em; height: 1em;
    vertical-align: -.125em;
    flex-shrink: 0;
    overflow: visible;
    transition: transform .2s;
    /* default: stroke style */
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* filled icons */
.taif-icon--instagram,.taif-icon--twitter,.taif-icon--tiktok,
.taif-icon--facebook,.taif-icon--youtube,.taif-icon--snapchat,.taif-icon--whatsapp {
    fill: currentColor; stroke: none;
}
/* ── Fixed px sizes — prevents em inheritance blowup ──
   Rule: anything xl+ uses px, smaller sizes use em for
   natural inline scaling with surrounding text.          */

/* Inline / text-level (scales with surrounding text) */
.taif-icon--sm  { width:14px;  height:14px;  }
.taif-icon--md  { width:18px;  height:18px;  }
.taif-icon--lg  { width:22px;  height:22px;  }

/* Standalone display icons — fixed px, never inherited */
.taif-icon--xl  { width:32px;  height:32px;  flex-shrink:0; }
.taif-icon--2xl { width:40px;  height:40px;  flex-shrink:0; }

/* Semantic aliases — also fixed px */
.taif-icon--contact { width:18px;  height:18px;  flex-shrink:0; }
.taif-icon--social  { width:18px;  height:18px;  flex-shrink:0; }
.taif-icon--trust   { width:20px;  height:20px;  flex-shrink:0; }
.taif-icon--step    { width:24px;  height:24px;  flex-shrink:0; }
.taif-icon--moon,
.taif-icon--sun     { width:18px;  height:18px;  stroke-width:2; }

/* Hard cap — no icon should ever exceed this regardless of context */
.taif-icon { max-width:48px; max-height:48px; }

/* =====================================================
   BLOG CAROUSEL — Homepage + responsive
===================================================== */
.tm-blog-carousel {
    position: relative;
    overflow: hidden;
    margin-top: 8px;
    /* RTL: scroll direction is right→left, clip overflow */
    direction: rtl; /* track uses ltr so translateX works correctly */
}

.tm-blog-carousel__track {
    display: flex;
    flex-direction: row;       /* explicit: slides side by side */
    flex-wrap: nowrap;         /* never wrap to next line */
    gap: 0;                    /* gap handled via slide margin */
    transition: transform .45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
    align-items: stretch;
    /* JS sets width = slides × slideWidth, no CSS constraint needed */
}

/* Slide — width set entirely by JS via CSS custom property */
.tm-blog-carousel__slide {
    /* JS will set: style="width:Xpx" on each slide */
    flex: 0 0 auto;
    margin-left: 16px;         /* gap between slides — matches JS gap var */
    min-width: 260px;          /* absolute minimum so slides don't collapse */
    max-width: 480px;          /* cap so they don't grow too wide */
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .3s, box-shadow .3s;
    direction: rtl;            /* restore RTL for content inside */
}
.tm-blog-carousel__slide:first-child { margin-left: 0; }

.tm-blog-carousel__slide:hover {
    border-color: var(--tm-borderb);
    box-shadow: 0 14px 36px rgba(0,0,0,.25), 0 0 24px rgba(123,63,110,.08);
}

/* Thumbnail */
.tm-blog-card__thumb-link { display: block; overflow: hidden; }
.tm-blog-carousel__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.tm-blog-carousel__slide:hover .tm-blog-carousel__img { transform: scale(1.04); }

.tm-blog-carousel__placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(123,63,110,.14), rgba(14,10,13,.9));
    color: var(--tm-pb);
}

/* Body */
.tm-blog-carousel__body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.tm-blog-carousel__title {
    font-size: .97rem;
    font-weight: 700;
    line-height: 1.42;
    margin: 9px 0 8px;
}
.tm-blog-carousel__title a {
    color: var(--tm-cream);
    text-decoration: none;
    transition: color .2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tm-blog-carousel__title a:hover { color: var(--tm-pb); }

.tm-blog-carousel__excerpt {
    font-size: .82rem;
    color: var(--tm-cm);
    line-height: 1.75;
    margin-bottom: 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Controls */
.tm-carousel-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--tm-border);
    background: rgba(155,90,138,.08);
    color: var(--tm-cd);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: background .2s, border-color .2s, color .2s, transform .2s;
    flex-shrink: 0;
}
.tm-carousel-btn:hover {
    background: rgba(155,90,138,.2);
    border-color: var(--tm-borderb);
    color: var(--tm-pb);
    transform: scale(1.08);
}
.tm-carousel-btn:disabled {
    opacity: .3;
    pointer-events: none;
}

[data-theme="light"] .tm-carousel-btn { color: var(--tm-p); border-color: var(--tm-border); }
[data-theme="light"] .tm-carousel-btn:hover { background: rgba(123,63,110,.1); }


/* ── Blog Carousel Header ── */
.tm-blog-carousel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}
.tm-blog-carousel__header-text { flex: 1 1 auto; min-width: 0; }
.tm-blog-carousel__header-text .tm-title  { margin-bottom: 6px; }
.tm-blog-carousel__header-text .tm-subtitle { margin-bottom: 0; }

.tm-blog-carousel__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 8px; /* align with title baseline */
}

/* Dots */
.tm-blog-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
}
.tm-blog-carousel__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--tm-border);
    border: none;
    cursor: pointer;
    transition: background .25s, transform .25s, width .3s;
    padding: 0;
}
.tm-blog-carousel__dot.active {
    background: var(--tm-pm);
    width: 22px;
    border-radius: 4px;
}
[data-theme="light"] .tm-blog-carousel__dot.active { background: var(--tm-p); }

/* ── Responsive — JS handles slide width, CSS just sets overflow ── */
@media (max-width: 960px) {
    .tm-blog-carousel__slide { min-width: 240px; max-width: 380px; }
}
@media (max-width: 580px) {
    .tm-blog-carousel__slide { min-width: 260px; max-width: 320px; }
}

/* =====================================================
   FILTER BUTTONS
===================================================== */
.tm-filter-btn, .tm-blog-filter-btn {
    padding: 9px 20px;
    border-radius: 100px;
    font-family: var(--tm-font);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--tm-border);
    background: transparent;
    color: var(--tm-cd);
    transition: all .25s;
}
.tm-filter-btn:hover,.tm-filter-btn.active,
.tm-blog-filter-btn:hover,.tm-blog-filter-btn.active {
    background: rgba(123,63,110,.15);
    border-color: var(--tm-borderb);
    color: var(--tm-pb);
}

/* =====================================================
   WIDGET AREAS
===================================================== */
.tm-footer__area { min-width: 0; }
.taif-widget-hours { margin-top:14px; padding-top:14px; border-top:1px solid var(--tm-border); }
.taif-widget-hours__title { font-size:.78rem; font-weight:700; color:var(--tm-cream); margin-bottom:10px; letter-spacing:.5px; display:flex; align-items:center; gap:6px; }
.taif-widget-hours__row { display:flex; justify-content:space-between; align-items:center; font-size:.78rem; color:var(--tm-cd); padding:5px 0; border-bottom:1px solid rgba(155,90,138,.08); }
.taif-widget-hours__time { color:var(--tm-pb); font-weight:600; }
.taif-widget-custom-text { margin-top:14px; font-size:.8rem; color:var(--tm-cm); line-height:1.75; }
.taif-widget-custom-text a { color:var(--tm-pb); }
.taif-recent-posts { display:flex; flex-direction:column; gap:12px; }
.taif-recent-post { display:flex; align-items:flex-start; gap:10px; padding-bottom:12px; border-bottom:1px solid var(--tm-border); list-style:none; }
.taif-recent-post:last-child { border-bottom:none; padding-bottom:0; }
.taif-recent-post__thumb { flex-shrink:0; display:block; }
.taif-recent-post__body  { display:flex; flex-direction:column; gap:4px; min-width:0; }
.taif-recent-post__title { font-size:.82rem; font-weight:600; color:var(--tm-cd); line-height:1.45; text-decoration:none; transition:color .2s; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.taif-recent-post__title:hover { color:var(--tm-pb); }
.taif-recent-post__date  { font-size:.7rem; color:var(--tm-cm); display:block; }
.taif-admin-notice { margin-top:28px; padding:12px 18px; background:rgba(201,168,124,.07); border:1px dashed rgba(201,168,124,.3); border-radius:8px; font-size:.78rem; color:rgba(240,232,228,.55); text-align:center; }
.taif-admin-notice a { color:var(--tm-pb); }
.tm-sidebar-widget { margin-bottom:32px; padding:24px 22px; background:var(--tm-card2); border:1px solid var(--tm-border); border-radius:12px; }
.taif-ff-wrap { width:100%; }
.taif-ff-notice { background:rgba(201,168,124,.1); border:1px dashed rgba(201,168,124,.4); border-radius:8px; padding:14px 18px; font-size:.83rem; color:rgba(240,232,228,.7); font-family:var(--tm-font); line-height:1.7; }
.taif-ff-notice a { color:var(--tm-pb); }
.taif-ff-notice code { background:rgba(155,90,138,.15); padding:2px 6px; border-radius:4px; font-size:.78rem; }

/* =====================================================
   HERO — MULTI-LAYOUT SYSTEM
   Modes: text_only | split_image | fullscreen_slider | content_slider
===================================================== */

/* ── Slides wrapper ── */
.tm-hero__slides {
    display: contents; /* text_only: no wrapper behavior */
}
.tm-hero--slider .tm-hero__slides {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    /* full height handled by parent .tm-hero */
}

/* Individual slide */
.tm-hero__slide {
    display: none;
    width: 100%;
}
.tm-hero__slide.active { display: flex; }

/* ── Inner row (content + optional image) ── */
.tm-hero__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 52px 70px;
    position: relative;
    z-index: 2;
    min-height: 100vh;
    box-sizing: border-box;
}

/* ── text_only: same as before ── */
.tm-hero--text_only .tm-hero__inner {
    padding-top: 120px;
}
.tm-hero--text_only .tm-hero__content {
    max-width: 640px;
    animation: tmSlideR .8s ease both;
}

/* ── split_image / content_slider ── */
.tm-hero--split_image .tm-hero__inner,
.tm-hero--content_slider .tm-hero__inner {
    justify-content: space-between;
}
.tm-hero--split_image .tm-hero__content,
.tm-hero--content_slider .tm-hero__content {
    flex: 0 0 50%;
    max-width: 560px;
    animation: tmSlideR .7s ease both;
}

/* ── Image Side — image-right flips the layout ── */
.tm-hero--img-right .tm-hero__inner {
    flex-direction: row-reverse;
}
.tm-hero--img-right .tm-hero__content {
    animation: tmSlideL .7s ease both;
}
@keyframes tmSlideL {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Image Styles ── */
/* framed (default) — uses rings + shadow, already defined */

/* full — no rounded corners, no rings, edge-to-edge feel */
.tm-hero__image--full {
    border-radius: 12px;
    box-shadow: 0 24px 52px rgba(0,0,0,.45);
}
.tm-hero--img-full .tm-hero__ring { display: none; }

/* circle — circular crop */
.tm-hero__image--circle {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-position: center top;
    box-shadow:
        0 0 0 8px rgba(123,63,110,.15),
        0 0 0 16px rgba(123,63,110,.07),
        0 24px 52px rgba(0,0,0,.45);
}
.tm-hero__image-frame:has(.tm-hero__image--circle) .tm-hero__ring--1 {
    border-radius: 50%;
    border-style: dashed;
}
.tm-hero__image-frame:has(.tm-hero__image--circle) .tm-hero__float-badge {
    bottom: 8%;
    left: -10px;
}

/* ── fullscreen_slider ── */
.tm-hero--fullscreen_slider .tm-hero__slide {
    position: relative;
    min-height: 100vh;
}
.tm-hero--fullscreen_slider .tm-hero__slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    transition: opacity .8s ease;
    z-index: 0;
}
.tm-hero--fullscreen_slider .tm-hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(14,10,13,.85) 0%,
        rgba(14,10,13,.6) 50%,
        rgba(14,10,13,.4) 100%
    );
    z-index: 1;
}
.tm-hero--fullscreen_slider .tm-hero__content {
    max-width: 640px;
    animation: tmSlideR .7s ease both;
}

/* ── Hero sub-title line ── */
.tm-hero__sub {
    color: var(--tm-cd);
    font-size: .52em;
    font-weight: 300;
    display: block;
    margin-top: 6px;
    letter-spacing: 0;
    line-height: 1.6;
}

/* ── Image Column ── */
.tm-hero__image-col {
    flex: 0 0 45%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    animation: tmFadeUp .9s .2s ease both;
}

@keyframes tmFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tm-hero__image-frame {
    position: relative;
    border-radius: 24px;
    overflow: visible;
}

.tm-hero__image {
    width: 100%;
    aspect-ratio: 7 / 8;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow:
        0 32px 64px rgba(0,0,0,.5),
        0 0 0 1px rgba(155,90,138,.2);
}

/* Decorative rings */
.tm-hero__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
    z-index: 1;
}
.tm-hero__ring--1 {
    width: 110%;
    height: 110%;
    top: -5%;
    right: -5%;
    border-color: rgba(123,63,110,.2);
    animation: tmSpin 18s linear infinite;
}
.tm-hero__ring--2 {
    width: 125%;
    height: 125%;
    top: -12.5%;
    right: -12.5%;
    border-color: rgba(155,90,138,.1);
    animation: tmSpin 28s linear infinite reverse;
}
@keyframes tmSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Floating badge */
.tm-hero__float-badge {
    position: absolute;
    bottom: -16px;
    left: -20px;
    z-index: 3;
    background: var(--tm-card2);
    border: 1px solid var(--tm-borderb);
    border-radius: 100px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--tm-pb);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    animation: tmBobble 3s ease-in-out infinite;
}
@keyframes tmBobble {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* Image placeholder (admin only) */
.tm-hero__image-placeholder {
    width: 100%;
    aspect-ratio: 7/8;
    border-radius: 24px;
    border: 2px dashed var(--tm-borderb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--tm-cm);
    background: rgba(123,63,110,.04);
}
.tm-hero__image-placeholder-hint {
    font-size: .78rem;
    color: var(--tm-pb);
    text-decoration: underline;
}

/* ── Slider Navigation ── */
.tm-hero__slider-nav {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.tm-hero__nav-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
    color: rgba(255,255,255,.8);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .25s, border-color .25s, transform .2s;
    flex-shrink: 0;
}
.tm-hero__nav-btn:hover {
    background: rgba(123,63,110,.5);
    border-color: var(--tm-pm);
    color: #fff;
    transform: scale(1.1);
}

.tm-hero__nav-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tm-hero__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.3);
    cursor: pointer;
    transition: background .3s, width .3s, border-radius .3s;
    padding: 0;
}
.tm-hero__dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--tm-pm);
}

/* ── Slide transition animations ── */
.tm-hero__slide {
    opacity: 0;
    transition: opacity .6s ease;
    display: none;
}
.tm-hero__slide.active {
    display: flex;
    opacity: 1;
}
.tm-hero__slide.leaving {
    display: flex;
    opacity: 0;
}

/* ── Light mode adjustments ── */
[data-theme="light"] .tm-hero__image {
    box-shadow: 0 24px 52px rgba(0,0,0,.18), 0 0 0 1px rgba(123,63,110,.15);
}
[data-theme="light"] .tm-hero__float-badge {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
}
[data-theme="light"] .tm-hero__nav-btn {
    border-color: rgba(0,0,0,.15);
    background: rgba(255,255,255,.7);
    color: var(--tm-p);
}
[data-theme="light"] .tm-hero__nav-btn:hover {
    background: var(--tm-p);
    color: #fff;
}
[data-theme="light"] .tm-hero__dot { background: rgba(0,0,0,.2); }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .tm-hero__inner { gap: 36px; padding: 80px 22px 50px; }
    .tm-hero--split_image .tm-hero__content,
    .tm-hero--content_slider .tm-hero__content { flex: 0 0 52%; }
    .tm-hero__image-col { flex: 0 0 44%; }
}

@media (max-width: 768px) {
    .tm-hero__inner {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 28px;
        padding-top: 90px;
        min-height: auto;
    }
    .tm-hero--split_image .tm-hero__content,
    .tm-hero--content_slider .tm-hero__content,
    .tm-hero--fullscreen_slider .tm-hero__content { flex: none; max-width: 100%; }
    .tm-hero__image-col {
        flex: none;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    .tm-hero__image { aspect-ratio: 4/3; }
    .tm-hero__ring--1, .tm-hero__ring--2 { display: none; }
    .tm-hero__float-badge { bottom: -10px; left: 10px; font-size: .75rem; padding: 8px 14px; }
    .tm-hero__slider-nav { bottom: 18px; }
}

/* =====================================================
   PACKAGES PAGE — DEDICATED STYLES
===================================================== */

/* ── Hero ── */
.tm-pkgs-hero {
    position: relative;
    overflow: hidden;
    background: var(--tm-bg2);
    border-bottom: 1px solid var(--tm-border);
}
.tm-pkgs-hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 52px;
    flex-wrap: wrap;
}
.tm-pkgs-hero__text  { flex: 1 1 520px; }
.tm-pkgs-hero__stats {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    overflow: hidden;
}
.tm-pkgs-hero__stat {
    background: var(--tm-card2);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tm-pkgs-hero__stat-label {
    font-size: .75rem;
    color: var(--tm-cm);
    font-weight: 600;
    letter-spacing: .5px;
}

.tm-pkgs-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.tm-pkgs-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    color: var(--tm-cd);
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 100px;
    padding: 6px 14px;
}
.tm-pkgs-hero__trust-item .taif-icon { color: var(--tm-pb); }

/* ── Filter ── */
.tm-pkgs-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

/* ── Packages Grid ── */
.tm-pkgs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start; /* cards don't stretch — natural height */
}

/* ── Package Card ── */
.tm-pkg-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    padding: 28px 24px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.tm-pkg-card:hover {
    border-color: var(--tm-borderb);
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(0,0,0,.3), 0 0 28px rgba(123,63,110,.1);
}
.tm-pkg-card--featured {
    border-color: var(--tm-pm);
    background: linear-gradient(160deg, rgba(123,63,110,.1) 0%, var(--tm-card2) 40%);
    box-shadow: 0 8px 32px rgba(123,63,110,.2);
}
.tm-pkg-card--selected {
    border-color: var(--tm-pm) !important;
    box-shadow: 0 0 0 3px rgba(123,63,110,.25) !important;
}
/* Custom accent color support */
.tm-pkg-card[style*="--pkg-accent"] {
    border-color: var(--pkg-accent, var(--tm-border));
}
.tm-pkg-card[style*="--pkg-accent"] .tm-pkg-card__icon .taif-icon { color: var(--pkg-accent, var(--tm-pb)); }

.tm-pkg-card__badge {
    position: absolute;
    top: -13px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--tm-p), var(--tm-pm));
    color: var(--tm-cream);
    padding: 5px 18px;
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(123,63,110,.4);
}

.tm-pkg-card__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}
.tm-pkg-card__icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(123,63,110,.12);
    border: 1px solid var(--tm-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--tm-pb);
}
.tm-pkg-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tm-cream);
    line-height: 1.3;
    margin-bottom: 4px;
}
.tm-pkg-card__delivery {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    color: var(--tm-cm);
}

.tm-pkg-card__price-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 6px;
}
.tm-pkg-card__price {
    font-family: var(--tm-font-h);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--tm-pb);
    line-height: 1;
}
.tm-pkg-card--featured .tm-pkg-card__price { font-size: 2.6rem; }
.tm-pkg-card__unit {
    font-size: .82rem;
    color: var(--tm-cm);
    font-weight: 400;
}

.tm-pkg-card__desc {
    font-size: .82rem;
    color: var(--tm-cm);
    line-height: 1.65;
    margin-bottom: 14px;
}

/* Highlight strip */
.tm-pkg-card__highlight {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(123,63,110,.1);
    border: 1px solid var(--tm-borderb);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--tm-pb);
    margin-bottom: 16px;
}

.tm-pkg-card__divider {
    height: 1px;
    background: var(--tm-border);
    margin-bottom: 16px;
}

/* Features list */
.tm-pkg-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
    flex: 1; /* push button to bottom */
}
.tm-pkg-card__list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: .83rem;
    color: var(--tm-cd);
    line-height: 1.5;
}
.tm-pkg-card__list-item .taif-icon { color: var(--tm-green); flex-shrink: 0; margin-top: 2px; }
.tm-pkg-card__list-item--na { color: var(--tm-cm); }
.tm-pkg-card__list-item--na .taif-icon { color: rgba(255,255,255,.15); }

/* WA quick link */
.tm-pkg-card__wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    font-size: .75rem;
    color: var(--tm-cm);
    text-decoration: none;
    padding: 7px;
    border-radius: 8px;
    transition: background .2s, color .2s;
}
.tm-pkg-card__wa:hover { background: rgba(91,170,138,.1); color: #7dd4b4; }
.tm-pkg-card__wa .taif-icon { color: #7dd4b4; }

/* ── Custom Package CTA ── */
.tm-pkgs-custom { margin-top: 28px; }
.tm-pkgs-custom__inner {
    background: var(--tm-card2);
    border: 1px dashed var(--tm-borderb);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.tm-pkgs-custom__inner > div:first-child { color: var(--tm-pb); flex-shrink: 0; }
.tm-pkgs-custom__inner > div:nth-child(2) { flex: 1 1 280px; }
.tm-pkgs-custom__inner h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.tm-pkgs-custom__inner p  { font-size: .83rem; color: var(--tm-cm); margin: 0; }
.tm-pkgs-custom__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Why Us ── */
.tm-pkgs-why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.tm-pkgs-why__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    padding: 20px;
    transition: border-color .3s;
}
.tm-pkgs-why__item:hover { border-color: var(--tm-borderb); }
.tm-pkgs-why__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(123,63,110,.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--tm-pb);
    flex-shrink: 0;
}
.tm-pkgs-why__title { font-size: .95rem; font-weight: 700; margin-bottom: 5px; }
.tm-pkgs-why__desc  { font-size: .82rem; color: var(--tm-cm); line-height: 1.65; margin: 0; }

/* ── Form + Aside Layout ── */
.tm-pkgs-form-wrap {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}
.tm-pkgs-form-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(123,63,110,.1);
    border: 1px solid var(--tm-borderb);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 18px;
    font-size: .85rem;
    color: var(--tm-pb);
}
.tm-pkgs-form-selected .taif-icon { flex-shrink: 0; }
.tm-pkgs-form-selected strong { color: var(--tm-cream); }
.tm-pkgs-form-selected__clear {
    margin-right: auto;
    background: none;
    border: none;
    color: var(--tm-cm);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color .2s;
}
.tm-pkgs-form-selected__clear:hover { color: var(--tm-rose); }

/* Aside cards */
.tm-pkgs-aside-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
}
.tm-pkgs-aside-card h4 {
    font-size: .82rem;
    font-weight: 700;
    color: var(--tm-cm);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.tm-pkgs-aside-card--accented { border-color: var(--tm-borderb); }
.tm-pkgs-aside-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: .84rem;
    color: var(--tm-cd);
    transition: background .2s, color .2s;
    margin-bottom: 6px;
}
.tm-pkgs-aside-link:hover { background: rgba(123,63,110,.1); color: var(--tm-pb); }
.tm-pkgs-aside-link .taif-icon { color: var(--tm-pb); flex-shrink: 0; }
.tm-pkgs-aside-hours {
    display: flex;
    justify-content: space-between;
    font-size: .8rem;
    color: var(--tm-cd);
    padding: 6px 0;
    border-bottom: 1px solid var(--tm-border);
}
.tm-pkgs-aside-hours:last-child { border-bottom: none; }
.tm-pkgs-aside-hours__time { color: var(--tm-pb); font-weight: 600; }
.tm-pkgs-aside-guarantee {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .83rem;
    color: var(--tm-cd);
    padding: 7px 0;
    border-bottom: 1px solid var(--tm-border);
}
.tm-pkgs-aside-guarantee:last-child { border-bottom: none; }
.tm-pkgs-aside-guarantee .taif-icon { color: var(--tm-green); flex-shrink: 0; }

/* ── Light mode ── */
[data-theme="light"] .tm-pkg-card           { background: var(--tm-card); }
[data-theme="light"] .tm-pkg-card--featured { background: linear-gradient(160deg,rgba(123,63,110,.06),#fff 40%); }
[data-theme="light"] .tm-pkg-card:hover     { box-shadow: 0 14px 36px rgba(0,0,0,.12); }
[data-theme="light"] .tm-pkgs-hero__stat    { background: var(--tm-card2); }
[data-theme="light"] .tm-pkgs-aside-card    { background: var(--tm-card); }
[data-theme="light"] .tm-pkgs-custom__inner { background: var(--tm-card); }
[data-theme="light"] .tm-pkgs-why__item     { background: var(--tm-card); }
[data-theme="light"] .tm-pkg-card__list-item--na .taif-icon { color: rgba(0,0,0,.15); }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .tm-pkgs-grid         { grid-template-columns: repeat(2, 1fr); }
    .tm-pkgs-form-wrap    { grid-template-columns: 1fr; }
    .tm-pkgs-form-aside   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .tm-pkgs-form-aside .tm-pkgs-aside-card { margin-bottom: 0; }
}
@media (max-width: 720px) {
    .tm-pkgs-grid         { grid-template-columns: 1fr; }
    .tm-pkgs-hero__stats  { width: 100%; }
    .tm-pkgs-why__grid    { grid-template-columns: 1fr; }
    .tm-pkgs-form-aside   { grid-template-columns: 1fr; }
    .tm-pkgs-custom__inner{ flex-direction: column; gap: 16px; }
    /* Package page card buttons — keep inline on mobile */
    .tm-pkg-card .tm-btn,
    .tm-hp-pkg-card__actions .tm-btn { width: auto; }
    .tm-hp-pkg-card__order-btn { flex: 1; }
}

/* =====================================================
   HOMEPAGE PACKAGE CARDS + MODAL
===================================================== */

/* ── Grid ── */
.tm-hp-pkgs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 8px;
    align-items: start;
}

/* ── Card ── */
.tm-hp-pkg-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    padding: 26px 22px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: border-color .25s, transform .25s, box-shadow .3s;
    outline: none;
    user-select: none;
}
.tm-hp-pkg-card:hover,
.tm-hp-pkg-card:focus-visible {
    border-color: var(--tm-borderb);
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0,0,0,.28), 0 0 28px rgba(123,63,110,.1);
}
.tm-hp-pkg-card:focus-visible {
    box-shadow: 0 0 0 3px rgba(123,63,110,.4);
}
.tm-hp-pkg-card--featured {
    border-color: var(--tm-pm);
    background: linear-gradient(155deg, rgba(123,63,110,.1) 0%, var(--tm-card2) 45%);
    box-shadow: 0 6px 28px rgba(123,63,110,.18);
}
.tm-hp-pkg-card--featured:hover {
    box-shadow: 0 20px 48px rgba(123,63,110,.28);
}

.tm-hp-pkg-card__badge {
    position: absolute;
    top: -12px;
    right: 50%;
    transform: translateX(50%);
    background: linear-gradient(135deg, var(--tm-p), var(--tm-pm));
    color: var(--tm-cream);
    padding: 4px 16px;
    border-radius: 100px;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(123,63,110,.35);
}

.tm-hp-pkg-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tm-hp-pkg-card__icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(123,63,110,.12);
    border: 1px solid var(--tm-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--tm-pb);
    flex-shrink: 0;
    transition: background .25s;
}
.tm-hp-pkg-card:hover .tm-hp-pkg-card__icon {
    background: rgba(123,63,110,.22);
}
.tm-hp-pkg-card__name {
    font-size: .97rem;
    font-weight: 700;
    color: var(--tm-cream);
    line-height: 1.3;
}

.tm-hp-pkg-card__price {
    font-family: var(--tm-font-h);
    font-size: 2rem;
    font-weight: 900;
    color: var(--tm-pb);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.tm-hp-pkg-card--featured .tm-hp-pkg-card__price { font-size: 2.3rem; }
.tm-hp-pkg-card__unit {
    font-size: .8rem;
    font-weight: 400;
    color: var(--tm-cm);
    font-family: var(--tm-font);
}

.tm-hp-pkg-card__desc {
    font-size: .8rem;
    color: var(--tm-cm);
    line-height: 1.65;
    margin: 0;
}

/* Features preview */
.tm-hp-pkg-card__preview {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
}
.tm-hp-pkg-card__preview li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    color: var(--tm-cd);
}
.tm-hp-pkg-card__preview li .taif-icon { color: var(--tm-green); flex-shrink: 0; }
.tm-hp-pkg-card__more {
    color: var(--tm-pm) !important;
    font-style: italic;
    font-size: .75rem !important;
}

/* Actions row */
.tm-hp-pkg-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}
.tm-hp-pkg-card__details-btn {
    flex: 0 0 auto;
    padding: 10px 16px;
    font-size: .78rem;
    gap: 5px;
}
.tm-hp-pkg-card__order-btn {
    flex: 1;
    justify-content: center;
    font-size: .82rem;
}

/* ── Modal ── */
.tm-pkg-modal {
    position: fixed;
    inset: 0;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tm-pkg-modal[hidden] { display: none; }

.tm-pkg-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14,10,13,.78);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.tm-pkg-modal__panel {
    position: relative;
    background: var(--tm-card);
    border: 1px solid var(--tm-borderb);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,.5);
    z-index: 1;
    animation: taifModalIn .3s cubic-bezier(.34,1.56,.64,1) both;
    outline: none;
}
@keyframes taifModalIn {
    from { opacity: 0; transform: scale(.9) translateY(20px); }
    to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.tm-pkg-modal__close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--tm-border);
    background: var(--tm-card2);
    color: var(--tm-cm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background .2s, color .2s;
    z-index: 2;
}
.tm-pkg-modal__close:hover { background: var(--tm-card3); color: var(--tm-cream); }

.tm-pkg-modal__body {
    padding: 28px 26px 0;
}
.tm-pkg-modal__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--tm-p), var(--tm-pm));
    color: var(--tm-cream);
    padding: 4px 14px;
    border-radius: 100px;
    font-size: .67rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.tm-pkg-modal__head { margin-bottom: 8px; }
.tm-pkg-modal__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--tm-cream);
    margin-bottom: 6px;
    font-family: var(--tm-font-h);
}
.tm-pkg-modal__delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--tm-cm);
    margin-bottom: 4px;
}
.tm-pkg-modal__price {
    font-family: var(--tm-font-h);
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--tm-pb);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.tm-pkg-modal__desc {
    font-size: .85rem;
    color: var(--tm-cd);
    line-height: 1.75;
    margin-bottom: 14px;
}
.tm-pkg-modal__divider {
    height: 1px;
    background: var(--tm-border);
    margin: 14px 0;
}

/* Reuse pkg-card list styles inside modal */
.tm-pkg-modal__body .tm-pkg-card__list { margin-bottom: 8px; }

.tm-pkg-modal__footer {
    padding: 16px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--tm-border);
    margin-top: 18px;
    position: sticky;
    bottom: 0;
    background: var(--tm-card);
}

/* Light mode */
[data-theme="light"] .tm-hp-pkg-card         { background: var(--tm-card); }
[data-theme="light"] .tm-hp-pkg-card--featured{ background: linear-gradient(155deg,rgba(123,63,110,.06),#fff 45%); }
[data-theme="light"] .tm-pkg-modal__panel     { background: var(--tm-card); }
[data-theme="light"] .tm-pkg-modal__footer    { background: var(--tm-card); }
[data-theme="light"] .tm-pkg-modal__close     { background: var(--tm-card2); }
[data-theme="light"] .tm-pkg-modal__backdrop  { background: rgba(26,14,23,.6); }

/* Responsive */
@media (max-width: 960px) {
    .tm-hp-pkgs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .tm-hp-pkgs-grid { grid-template-columns: 1fr; }
    .tm-pkg-modal__panel { max-height: 92vh; border-radius: 16px 16px 0 0; align-self: flex-end; }
    .tm-pkg-modal { align-items: flex-end; padding: 0; }
    @keyframes taifModalIn {
        from { opacity: 0; transform: translateY(100%); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* =====================================================
   SINGLE PACKAGE PAGE — Hero Layout
===================================================== */
.tm-single-pkg-hero {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 52px;
    align-items: start;
}
.tm-single-pkg-hero__content { padding-top: 8px; }

.tm-single-pkg-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 20px;
    padding: 30px 26px 26px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    top: 0;
    /* sticky on scroll */
    position: sticky;
    top: 90px;
}
.tm-single-pkg-card--featured {
    border-color: var(--tm-pm);
    background: linear-gradient(155deg, rgba(123,63,110,.1) 0%, var(--tm-card2) 40%);
    box-shadow: 0 8px 36px rgba(123,63,110,.22);
}
.tm-single-pkg-card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(123,63,110,.12);
    border: 1px solid var(--tm-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--tm-pb);
    margin-bottom: 18px;
}
.tm-single-pkg-card__price-block { margin-bottom: 14px; }

/* Light mode */
[data-theme="light"] .tm-single-pkg-card         { background: var(--tm-card); }
[data-theme="light"] .tm-single-pkg-card--featured{ background: linear-gradient(155deg,rgba(123,63,110,.06),#fff 40%); }

/* Responsive */
@media (max-width: 960px) {
    .tm-single-pkg-hero {
        grid-template-columns: 1fr;
    }
    .tm-single-pkg-card { position: static; }
}

/* =====================================================
   ABOUT PAGE
===================================================== */
.tm-about-hero {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    padding-bottom: 52px;
}
.tm-about-hero__img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.tm-about-hero__stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--tm-border);
}
.tm-about-stat-card {
    background: var(--tm-card2);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tm-about-stat-card__icon { color: var(--tm-pb); margin-bottom: 4px; }

.tm-about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 36px;
}
.tm-about-value-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    padding: 24px 20px;
    transition: border-color .3s, transform .3s;
}
.tm-about-value-card:hover { border-color: var(--tm-borderb); transform: translateY(-3px); }
.tm-about-value-card__icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(123,63,110,.12);
    display: flex; align-items: center; justify-content: center;
    color: var(--tm-pb);
    margin-bottom: 14px;
}
.tm-about-value-card__title { font-size: .97rem; font-weight: 700; margin-bottom: 6px; }
.tm-about-value-card__desc  { font-size: .81rem; color: var(--tm-cm); line-height: 1.7; margin: 0; }

.tm-about-team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 36px;
}
.tm-about-team-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    transition: border-color .3s, transform .3s;
}
.tm-about-team-card:hover { border-color: var(--tm-borderb); transform: translateY(-4px); }
.tm-about-team-card__avatar {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: top;
    display: block;
}
.tm-about-team-card__avatar--placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123,63,110,.12);
    color: var(--tm-pb);
}
.tm-about-team-card__body { padding: 16px 14px 18px; }
.tm-about-team-card__name { font-size: .93rem; font-weight: 700; margin-bottom: 4px; }
.tm-about-team-card__role { font-size: .75rem; color: var(--tm-pb); margin-bottom: 6px; font-weight: 600; }
.tm-about-team-card__bio  { font-size: .75rem; color: var(--tm-cm); line-height: 1.6; margin: 0 0 10px; }
.tm-about-team-card__links { display: flex; justify-content: center; gap: 8px; }
.tm-about-team-card__link {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--tm-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--tm-cm);
    text-decoration: none;
    transition: background .2s, color .2s, border-color .2s;
}
.tm-about-team-card__link:hover { background: rgba(123,63,110,.15); color: var(--tm-pb); border-color: var(--tm-borderb); }

/* =====================================================
   PORTFOLIO PAGE
===================================================== */
.tm-portfolio-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}
.tm-portfolio-hero__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    padding: 16px 24px;
    flex-shrink: 0;
    min-width: 90px;
}
.tm-portfolio-hero__count span:first-child {
    font-family: var(--tm-font-h);
    font-size: 2rem;
    font-weight: 900;
    color: var(--tm-pb);
    line-height: 1;
}
.tm-portfolio-hero__count span:last-child { font-size: .75rem; color: var(--tm-cm); }

.tm-work-item__placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.3);
}
.tm-work-item__link { display: block; overflow: hidden; }
.tm-work-item__thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .5s ease; }
.tm-work-item:hover .tm-work-item__thumb { transform: scale(1.05); }

.tm-work-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.tm-work-item__year { font-size: .7rem; color: rgba(255,255,255,.5); }
.tm-work-item__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    margin-top: 6px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .3s, transform .3s;
}
.tm-work-item:hover .tm-work-item__cta { opacity: 1; transform: translateY(0); }

.tm-work-item__client {
    font-size: .75rem;
    color: rgba(255,255,255,.55);
    margin: 0;
}

.tm-portfolio-empty {
    text-align: center;
    padding: 72px 0;
    color: var(--tm-cm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* =====================================================
   SINGLE SERVICE PAGE
===================================================== */
.tm-svc-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 52px;
    align-items: center;
    padding-bottom: 52px;
}
.tm-svc-hero__img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 52px rgba(0,0,0,.4);
}
.tm-svc-hero__icon-block {
    width: 100%;
    aspect-ratio: 1;
    max-width: 320px;
    margin: 0 auto;
    border-radius: 24px;
    background: rgba(123,63,110,.1);
    border: 1px solid var(--tm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-pb);
}

.tm-svc-details {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 44px;
    align-items: start;
}
.tm-svc-details__features {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    padding: 24px;
    position: sticky;
    top: 90px;
}
.tm-svc-details__features-title {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--tm-pb);
}

.tm-svc-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 36px;
}
.tm-svc-gallery__item { border-radius: 10px; overflow: hidden; }
.tm-svc-gallery__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s; }
.tm-svc-gallery__item:hover .tm-svc-gallery__img { transform: scale(1.04); }

/* =====================================================
   BLOG ARCHIVE PAGE
===================================================== */
.tm-blog-archive-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.tm-blog-archive-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    padding: 14px 20px;
    flex-shrink: 0;
}
.tm-blog-archive-count span:first-child {
    font-family: var(--tm-font-h);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--tm-pb);
    line-height: 1;
}
.tm-blog-archive-count span:last-child { font-size: .72rem; color: var(--tm-cm); }

.tm-blog-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 8px;
}
/* Featured first post takes full width */
.tm-blog-archive-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
}
.tm-blog-archive-card {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .3s, transform .3s, box-shadow .3s;
}
.tm-blog-archive-card:hover {
    border-color: var(--tm-borderb);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,.22);
}
.tm-blog-archive-card__thumb-link { display: block; overflow: hidden; flex-shrink: 0; }
.tm-blog-archive-card__img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .5s; }
.tm-blog-archive-card--featured .tm-blog-archive-card__img { aspect-ratio: auto; height: 100%; }
.tm-blog-archive-card:hover .tm-blog-archive-card__img { transform: scale(1.04); }
.tm-blog-archive-card__placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg,rgba(123,63,110,.14),var(--tm-card3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-pb);
}
.tm-blog-archive-card--featured .tm-blog-archive-card__placeholder { aspect-ratio: auto; min-height: 280px; }
.tm-blog-archive-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.tm-blog-archive-card__title {
    font-size: .97rem;
    font-weight: 700;
    line-height: 1.38;
    margin: 0;
}
.tm-blog-archive-card__title a { color: var(--tm-cream); text-decoration: none; transition: color .2s; }
.tm-blog-archive-card__title a:hover { color: var(--tm-pb); }
.tm-blog-archive-card__title--lg { font-size: 1.3rem; }
.tm-blog-archive-card__excerpt {
    font-size: .82rem;
    color: var(--tm-cm);
    line-height: 1.72;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tm-blog-archive-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--tm-border);
}
.tm-blog-archive-card__author {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .75rem;
    color: var(--tm-cm);
}
.tm-blog-archive-card__author-img { border-radius: 50%; flex-shrink: 0; }

/* Light mode */
[data-theme="light"] .tm-about-value-card,
[data-theme="light"] .tm-about-team-card,
[data-theme="light"] .tm-about-stat-card,
[data-theme="light"] .tm-portfolio-hero__count,
[data-theme="light"] .tm-blog-archive-count,
[data-theme="light"] .tm-blog-archive-card,
[data-theme="light"] .tm-svc-details__features { background: var(--tm-card); }

/* Responsive */
@media (max-width: 1100px) {
    .tm-about-hero { grid-template-columns: 1fr; }
    .tm-about-hero__visual { order: -1; max-width: 460px; margin: 0 auto; }
    .tm-about-team-grid { grid-template-columns: repeat(2,1fr); }
    .tm-svc-hero { grid-template-columns: 1fr; }
    .tm-svc-details { grid-template-columns: 1fr; }
    .tm-svc-details__features { position: static; }
}
@media (max-width: 860px) {
    .tm-about-values-grid { grid-template-columns: repeat(2,1fr); }
    .tm-blog-archive-grid { grid-template-columns: 1fr 1fr; }
    .tm-blog-archive-card--featured { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
    .tm-about-values-grid { grid-template-columns: 1fr; }
    .tm-about-team-grid { grid-template-columns: 1fr 1fr; }
    .tm-blog-archive-grid { grid-template-columns: 1fr; }
    .tm-svc-gallery { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   LIGHT MODE — Additional contrast fixes
===================================================== */

/* Nav text on light — must be dark */
[data-theme="light"] .tm-nav__link { color: var(--tm-cd); font-weight: 500; }
[data-theme="light"] .tm-nav__link:hover { color: var(--tm-cream); background: rgba(107,47,94,.08); }
[data-theme="light"] .tm-nav__item.active > .tm-nav__link { color: var(--tm-p); }

/* Badge pill on light */
[data-theme="light"] .tm-hero__badge {
    background: rgba(107,47,94,.1);
    border-color: rgba(107,47,94,.3);
    color: var(--tm-p);
}

/* Eyebrow on light */
[data-theme="light"] .tm-eyebrow__text { color: var(--tm-p); font-weight: 700; }

/* Section titles on light */
[data-theme="light"] .tm-title { color: var(--tm-cream); }
[data-theme="light"] .tm-title span { color: var(--tm-p); }
[data-theme="light"] .tm-subtitle { color: var(--tm-cd); }

/* Service cards on light */
[data-theme="light"] .tm-service-card { background: var(--tm-card); }
[data-theme="light"] .tm-service-card__title { color: var(--tm-cream); }
[data-theme="light"] .tm-service-card .tm-service-card__icon { color: var(--tm-p); }

/* Package cards on light */
[data-theme="light"] .tm-hp-pkg-card__name { color: var(--tm-cream); }
[data-theme="light"] .tm-hp-pkg-card__price { color: var(--tm-p); }
[data-theme="light"] .tm-hp-pkg-card__desc { color: var(--tm-cm); }
[data-theme="light"] .tm-hp-pkg-card__preview li { color: var(--tm-cd); }
[data-theme="light"] .tm-hp-pkg-card__icon { background: rgba(107,47,94,.1); color: var(--tm-p); }

/* Blog carousel on light */
[data-theme="light"] .tm-blog-carousel__title a { color: var(--tm-cream); }
[data-theme="light"] .tm-blog-carousel__excerpt { color: var(--tm-cm); }
[data-theme="light"] .tm-blog-card__cat {
    background: rgba(107,47,94,.1);
    color: var(--tm-p);
}
[data-theme="light"] .tm-blog-card__date { color: var(--tm-cm); }
[data-theme="light"] .tm-blog-card__link { color: var(--tm-p); }
[data-theme="light"] .tm-blog-card__link:hover { color: var(--tm-pm); }

/* Blog archive on light */
[data-theme="light"] .tm-blog-archive-card__title a { color: var(--tm-cream); }
[data-theme="light"] .tm-blog-archive-card__excerpt { color: var(--tm-cm); }
[data-theme="light"] .tm-blog-archive-card__author { color: var(--tm-cm); }
[data-theme="light"] .tm-blog-archive-card__footer { border-top-color: var(--tm-border); }

/* Footer on light */
[data-theme="light"] .tm-footer__col-title { color: var(--tm-cream); }
[data-theme="light"] .tm-footer__links li a { color: var(--tm-cd); }
[data-theme="light"] .tm-footer__links li a:hover { color: var(--tm-p); }
[data-theme="light"] .tm-footer__brand-desc { color: var(--tm-cm); }
[data-theme="light"] .tm-footer__copy { color: var(--tm-cm); }
[data-theme="light"] .tm-social__link { color: var(--tm-cd); }
[data-theme="light"] .tm-social__link:hover { color: var(--tm-p); }

/* Stats on light */
[data-theme="light"] .tm-stat__number { color: var(--tm-p); }
[data-theme="light"] .tm-stat__label { color: var(--tm-cm); }

/* Process steps on light */
[data-theme="light"] .tm-step__title { color: var(--tm-cream); }
[data-theme="light"] .tm-step__desc { color: var(--tm-cm); }
[data-theme="light"] .tm-step__circle { color: var(--tm-p); border-color: var(--tm-p); }

/* Testimonials on light */
[data-theme="light"] .tm-testi__stars { color: var(--tm-gold); }
[data-theme="light"] .tm-testi__text { color: var(--tm-cd); }
[data-theme="light"] .tm-testi__name { color: var(--tm-cream); }
[data-theme="light"] .tm-testi__company { color: var(--tm-cm); }

/* FAQ on light */
[data-theme="light"] .tm-faq-item__question { color: var(--tm-cream); font-weight: 600; }
[data-theme="light"] .tm-faq-item__answer-inner { color: var(--tm-cd); }

/* Package detail page on light */
[data-theme="light"] .tm-pkg-card__price { color: var(--tm-p); }
[data-theme="light"] .tm-pkg-card__list-item { color: var(--tm-cd); }
[data-theme="light"] .tm-pkg-card__list-item--na { color: var(--tm-cm); }
[data-theme="light"] .tm-pkg-card__highlight { color: var(--tm-p); background: rgba(107,47,94,.08); border-color: rgba(107,47,94,.25); }

/* Proof avatars on light */
[data-theme="light"] .tm-proof-avatar { background: rgba(107,47,94,.1); color: var(--tm-p); }
[data-theme="light"] .tm-proof-text strong { color: var(--tm-cream); }
[data-theme="light"] .tm-stars { color: var(--tm-gold); }

/* Packages page aside on light */
[data-theme="light"] .tm-pkgs-aside-hours { color: var(--tm-cd); border-bottom-color: var(--tm-border); }
[data-theme="light"] .tm-pkgs-aside-hours__time { color: var(--tm-p); }
[data-theme="light"] .tm-pkgs-aside-guarantee { color: var(--tm-cd); }
[data-theme="light"] .tm-pkgs-form-selected { background: rgba(107,47,94,.08); border-color: rgba(107,47,94,.3); color: var(--tm-p); }
[data-theme="light"] .tm-pkgs-form-selected strong { color: var(--tm-cream); }

/* About page on light */
[data-theme="light"] .tm-about-value-card__title { color: var(--tm-cream); }
[data-theme="light"] .tm-about-value-card__desc  { color: var(--tm-cm); }
[data-theme="light"] .tm-about-team-card__name { color: var(--tm-cream); }
[data-theme="light"] .tm-about-team-card__role { color: var(--tm-p); }
[data-theme="light"] .tm-about-team-card__bio  { color: var(--tm-cm); }

/* Single service on light */
[data-theme="light"] .tm-svc-hero__icon-block { background: rgba(107,47,94,.08); border-color: var(--tm-border); color: var(--tm-p); }
[data-theme="light"] .tm-svc-details__features-title { color: var(--tm-p); }

/* Breadcrumb on light */
[data-theme="light"] .tm-breadcrumb { color: var(--tm-cm); }
[data-theme="light"] .tm-breadcrumb a { color: var(--tm-p); }
[data-theme="light"] .tm-breadcrumb a:hover { color: var(--tm-pm); }

/* Carousel controls on light */
[data-theme="light"] .tm-theme-toggle { color: var(--tm-p); border-color: var(--tm-border); background: rgba(107,47,94,.06); }
[data-theme="light"] .tm-theme-toggle:hover { background: rgba(107,47,94,.14); }

/* =====================================================
   PORTFOLIO — Redesigned work grid
===================================================== */

/* Masonry-style varied grid */
.tm-work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 32px;
}

/* Override old simple item with richer design */
.tm-work-item {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--tm-border);
    background: var(--tm-card2);
    transition: transform .35s cubic-bezier(.4,0,.2,1),
                border-color .3s,
                box-shadow .35s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.tm-work-item:hover {
    transform: translateY(-6px);
    border-color: var(--tm-borderb);
    box-shadow: 0 18px 44px rgba(0,0,0,.3), 0 0 28px rgba(123,63,110,.1);
}

/* Thumbnail */
.tm-work-item__link { display: block; overflow: hidden; flex-shrink: 0; }
.tm-work-item__thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform .55s cubic-bezier(.4,0,.2,1);
}
.tm-work-item:hover .tm-work-item__thumb { transform: scale(1.06); }

/* Placeholder */
.tm-work-item__placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.25);
    transition: color .3s;
}
.tm-work-item:hover .tm-work-item__placeholder { color: rgba(255,255,255,.5); }

/* Overlay — always visible at bottom, expands on hover */
.tm-work-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,6,10,.95) 0%,
        rgba(10,6,10,.6) 45%,
        transparent 75%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px 16px;
    transition: opacity .35s;
}
/* Always show a thin strip; full overlay on hover */
.tm-work-item__overlay { opacity: .6; }
.tm-work-item:hover .tm-work-item__overlay { opacity: 1; }

.tm-work-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s .05s, transform .3s .05s;
}
.tm-work-item:hover .tm-work-item__meta { opacity: 1; transform: translateY(0); }

.tm-work-item__cat {
    font-size: .65rem;
    color: var(--tm-pb);
    letter-spacing: 1.5px;
    font-weight: 700;
    text-transform: uppercase;
}
.tm-work-item__year {
    font-size: .65rem;
    color: rgba(255,255,255,.4);
}

.tm-work-item__title {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
    line-height: 1.35;
}
.tm-work-item__title a {
    color: inherit;
    text-decoration: none;
}
.tm-work-item__client {
    font-size: .72rem;
    color: rgba(255,255,255,.5);
    margin: 0 0 6px;
}

.tm-work-item__cta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .73rem;
    font-weight: 600;
    color: var(--tm-pb);
    text-decoration: none;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .3s .1s, transform .3s .1s, color .2s;
    margin-top: 4px;
}
.tm-work-item:hover .tm-work-item__cta { opacity: 1; transform: translateY(0); }
.tm-work-item__cta:hover { color: var(--tm-cream); }

/* Category badge (top-left) */
.tm-work-item__cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(14,10,13,.65);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 100px;
    padding: 4px 10px;
    font-size: .65rem;
    font-weight: 700;
    color: rgba(255,255,255,.85);
    letter-spacing: .5px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .3s, transform .3s;
}
.tm-work-item:hover .tm-work-item__cat-badge { opacity: 1; transform: translateY(0); }

/* Grid layout variations — make it more dynamic */
.tm-work-grid .tm-work-item:nth-child(4n+1) {
    grid-column: span 1;
}
/* Every 7th item spans 2 columns for visual interest */
.tm-work-grid .tm-work-item:nth-child(7n+1):not(:first-child) {
    grid-column: span 2;
}
.tm-work-grid .tm-work-item:nth-child(7n+1):not(:first-child) .tm-work-item__thumb,
.tm-work-grid .tm-work-item:nth-child(7n+1):not(:first-child) .tm-work-item__placeholder {
    aspect-ratio: 16/7;
}

/* Light mode portfolio */
[data-theme="light"] .tm-work-item { background: var(--tm-card); border-color: var(--tm-border); }
[data-theme="light"] .tm-work-item:hover {
    box-shadow: 0 14px 36px rgba(0,0,0,.14), 0 0 20px rgba(107,47,94,.08);
}
[data-theme="light"] .tm-work-item__cat-badge {
    background: rgba(255,255,255,.85);
    color: var(--tm-p);
    border-color: rgba(107,47,94,.2);
}

/* Responsive */
@media (max-width: 900px) {
    .tm-work-grid { grid-template-columns: repeat(2, 1fr); }
    .tm-work-grid .tm-work-item:nth-child(7n+1):not(:first-child) { grid-column: span 1; }
    .tm-work-grid .tm-work-item:nth-child(7n+1):not(:first-child) .tm-work-item__thumb,
    .tm-work-grid .tm-work-item:nth-child(7n+1):not(:first-child) .tm-work-item__placeholder { aspect-ratio: 4/3; }
}
@media (max-width: 560px) {
    .tm-work-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   TAXONOMY ARCHIVE HERO
===================================================== */
.tm-taxonomy-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.tm-taxonomy-hero__count {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 12px;
    padding: 18px 24px;
    flex-shrink: 0;
    min-width: 90px;
}
.tm-taxonomy-hero__count span:first-child {
    font-family: var(--tm-font-h);
    font-size: 2rem;
    font-weight: 900;
    color: var(--tm-pb);
    line-height: 1;
}
.tm-taxonomy-hero__count span:last-child { font-size: .75rem; color: var(--tm-cm); }
[data-theme="light"] .tm-taxonomy-hero__count { background: var(--tm-card); }

/* =====================================================
   MOBILE BUTTON OVERRIDES — prevent full-width bleed
   Only .tm-btn--full and hero CTA get width:100%
===================================================== */
@media (max-width: 640px) {

    /* Inline / card buttons — never go full width */
    .tm-service-card .tm-btn,
    .tm-hp-pkg-card .tm-btn:not(.tm-btn--full),
    .tm-pkg-card .tm-btn:not(.tm-btn--full),
    .tm-work-item .tm-btn,
    .tm-blog-card .tm-btn,
    .tm-filter-btn,
    .tm-carousel-btn,
    .tm-hero__nav-btn,
    .tm-pkg-modal__close,
    .tm-pkgs-hero__trust-item,
    .tm-pkgs-aside-link,
    .tm-pkg-card__wa { width: auto !important; }

    /* Package card action row — keep side by side */
    .tm-hp-pkg-card__actions {
        display: flex;
        gap: 8px;
    }
    .tm-hp-pkg-card__details-btn { flex-shrink: 0; }
    .tm-hp-pkg-card__order-btn   { flex: 1; }

    /* Single package card CTA — full width is OK */
    .tm-single-pkg-card .tm-btn--full,
    .tm-pkgs-form-main .tm-btn--full,
    .tm-pkgs-aside-card .tm-btn--full { width: 100% !important; }

    /* About / service hero CTAs — stack on mobile */
    .tm-about-hero .tm-hero__cta,
    .tm-svc-hero .tm-hero__cta { flex-direction: column; align-items: stretch; }
    .tm-about-hero .tm-hero__cta .tm-btn,
    .tm-svc-hero .tm-hero__cta .tm-btn { width: 100%; }
}

/* =====================================================
   CLIENTS CAROUSEL + PAGE
===================================================== */

/* ── Carousel wrapper ── */
.tm-clients-wrap { width: 100%; }

.tm-clients-header { margin-bottom: 32px; }
.tm-clients-title  { margin-bottom: 0; }

/* Carousel container — masks overflow for infinite scroll */
.tm-clients-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

/* Pause on hover */
.tm-clients-carousel:hover .tm-clients-track { animation-play-state: paused; }

/* Track — single row, animates left */
.tm-clients-track {
    display: flex;
    align-items: center;
    gap: 0;
    width: max-content;
    animation: taifClientsScroll 32s linear infinite;
}

@keyframes taifClientsScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); } /* -50% because track is duplicated */
}

/* Individual logo */
.tm-client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    flex-shrink: 0;
    border-left: 1px solid var(--tm-border);
    min-width: 160px;
    height: 88px;
    transition: opacity .3s;
}
.tm-client-logo:hover { opacity: .75; }
.tm-client-logo:first-child { border-right: 1px solid var(--tm-border); }

.tm-client-logo img {
    max-width: 140px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Desaturate logos — colorize on hover */
    filter: grayscale(100%) brightness(1.8) opacity(.6);
    transition: filter .35s;
}
.tm-client-logo:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
}

/* Text fallback */
.tm-client-logo--text .tm-client-logo__name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--tm-cm);
    white-space: nowrap;
    transition: color .3s;
}
.tm-client-logo--text:hover .tm-client-logo__name { color: var(--tm-pb); }

/* ── Clients Grid ── */
.tm-clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.tm-client-card { border-radius: 14px; overflow: hidden; }
.tm-client-card__inner {
    background: var(--tm-card2);
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    position: relative;
}
a.tm-client-card__inner:hover {
    border-color: var(--tm-borderb);
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,.22);
}

.tm-client-card__logo-wrap {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
}
.tm-client-card__logo {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(80%) opacity(.7);
    transition: filter .3s;
}
a.tm-client-card__inner:hover .tm-client-card__logo {
    filter: grayscale(0%) opacity(1);
}

.tm-client-card__logo-placeholder {
    width: 64px; height: 64px;
    border-radius: 12px;
    background: rgba(123,63,110,.14);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--tm-pb);
}

.tm-client-card__body  { flex: 1; }
.tm-client-card__name  {
    font-size: .92rem;
    font-weight: 700;
    color: var(--tm-cream);
    margin-bottom: 4px;
    line-height: 1.3;
}
.tm-client-card__sector {
    font-size: .7rem;
    font-weight: 700;
    color: var(--tm-pb);
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.tm-client-card__desc {
    font-size: .78rem;
    color: var(--tm-cm);
    line-height: 1.6;
    margin: 0;
}
.tm-client-card__since {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    color: var(--tm-cm);
    margin-top: 8px;
}
.tm-client-card__since .taif-icon { color: var(--tm-pb); }

.tm-client-card__ext {
    position: absolute;
    bottom: 14px;
    left: 14px;
    color: var(--tm-pb);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity .3s, transform .3s;
}
a.tm-client-card__inner:hover .tm-client-card__ext {
    opacity: 1;
    transform: translateX(0);
}

/* Light mode */
[data-theme="light"] .tm-client-logo img { filter: grayscale(100%) brightness(.6) opacity(.55); }
[data-theme="light"] .tm-client-logo:hover img { filter: none; }
[data-theme="light"] .tm-client-card__inner { background: var(--tm-card); }
[data-theme="light"] .tm-client-card__name { color: var(--tm-cream); }
[data-theme="light"] .tm-client-card__logo { filter: grayscale(80%) opacity(.6); }
[data-theme="light"] a.tm-client-card__inner:hover .tm-client-card__logo { filter: none; }

/* Responsive */
@media (max-width: 1100px) { .tm-clients-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 720px)  { .tm-clients-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 420px)  { .tm-clients-grid { grid-template-columns: 1fr; } }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .tm-clients-track { animation: none; }
}
