/* ═══════════════════════════════════════════════════════
   Tailor Trove — Public Website Styles
   Luxury · Elegant · Bilingual (EN/AR)
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700&display=swap');

/* ── CSS Variables ── */
:root {
    --tt-navy:       #0B1D3A;
    --tt-navy-light: #152A4A;
    --tt-gold:       #C8A96E;
    --tt-gold-light: #E0C992;
    --tt-gold-dark:  #A68B52;
    --tt-cream:      #FBF8F3;
    --tt-white:      #FFFFFF;
    --tt-charcoal:   #2C2C2C;
    --tt-text:       #4A4A4A;
    --tt-text-light: #7A7A7A;
    --tt-border:     #E8E0D4;
    --tt-shadow:     0 4px 24px rgba(11,29,58,0.08);
    --tt-shadow-lg:  0 12px 48px rgba(11,29,58,0.12);
    --tt-radius:     12px;
    --tt-radius-lg:  20px;
    --tt-transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    --font-heading:  'Playfair Display', Georgia, serif;
    --font-body:     'Inter', -apple-system, sans-serif;
    --font-arabic:   'Tajawal', 'Inter', sans-serif;
}

/* ── Base ── */
*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--tt-text);
    background: var(--tt-white);
    line-height: 1.7;
    margin: 0;
    overflow-x: hidden;
}

/* Pages with page-header need padding for fixed nav */
.tt-page-header { padding-top: 7rem; }

/* RTL Support */
html[dir="rtl"] body,
html[lang="ar"] body {
    font-family: var(--font-arabic);
}

html[dir="rtl"] .tt-navbar .navbar-nav { margin-right: auto !important; margin-left: 0 !important; }
html[dir="rtl"] .me-2 { margin-right: 0 !important; margin-left: 0.5rem !important; }
html[dir="rtl"] .me-3 { margin-right: 0 !important; margin-left: 1rem !important; }
html[dir="rtl"] .ms-auto { margin-left: 0 !important; margin-right: auto !important; }
html[dir="rtl"] .text-end { text-align: left !important; }
html[dir="rtl"] .text-start { text-align: right !important; }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    color: var(--tt-navy);
    font-weight: 600;
    line-height: 1.3;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6 {
    font-family: var(--font-arabic);
    font-weight: 700;
}

.tt-heading-xl { font-size: clamp(2.5rem,5vw,4rem); letter-spacing: -0.02em; }
.tt-heading-lg { font-size: clamp(2rem,4vw,3rem); }
.tt-heading-md { font-size: clamp(1.5rem,3vw,2rem); }
.tt-subheading { font-size: 1.15rem; color: var(--tt-text-light); font-weight: 400; max-width: 640px; margin-inline: auto; }

.tt-gold-text { color: var(--tt-gold); }
.tt-navy-text { color: var(--tt-navy); }

/* ── Navbar ── */
.tt-navbar {
    background: rgba(11,29,58,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    transition: var(--tt-transition);
    border-bottom: 1px solid rgba(200,169,110,0.15);
    z-index: 1000;
}
.tt-navbar.scrolled {
    background: rgba(11,29,58,0.99);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
}
.tt-navbar .navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tt-gold) !important;
    letter-spacing: 0.02em;
}
.tt-navbar .navbar-brand img {
    height: 36px;
    margin-right: 10px;
}
.tt-navbar .nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: var(--tt-transition);
    position: relative;
}
.tt-navbar .nav-link:hover,
.tt-navbar .nav-link.active {
    color: var(--tt-gold) !important;
}
.tt-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2px;
    background: var(--tt-gold);
    transition: transform 0.3s;
}
.tt-navbar .nav-link:hover::after,
.tt-navbar .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}
.tt-lang-switch {
    background: rgba(200,169,110,0.15);
    border: 1px solid rgba(200,169,110,0.3);
    color: var(--tt-gold) !important;
    border-radius: 8px;
    padding: 0.35rem 0.9rem !important;
    font-weight: 600;
    font-size: 0.85rem;
}
.tt-lang-switch:hover {
    background: rgba(200,169,110,0.25);
}

/* ── Hero Slider ── */
.tt-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--tt-navy);
}
.tt-hero-slides {
    position: absolute; inset: 0;
}
.tt-hero-slide {
    position: absolute; inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
    background-size: cover;
    background-position: center;
}
.tt-hero-slide.active { opacity: 1; }
.tt-hero-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(11,29,58,0.88) 0%, rgba(11,29,58,0.65) 50%, rgba(11,29,58,0.88) 100%);
}
.tt-hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 2rem;
}
.tt-hero h1 {
    color: var(--tt-white);
    font-size: clamp(2.8rem,6vw,5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.tt-hero h1 span { color: var(--tt-gold); }
.tt-hero p {
    color: rgba(255,255,255,0.8);
    font-size: clamp(1.1rem,2vw,1.35rem);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}
.tt-hero-dots {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; gap: 10px;
}
.tt-hero-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer; transition: var(--tt-transition);
    border: none;
}
.tt-hero-dot.active { background: var(--tt-gold); transform: scale(1.2); }

/* ── Buttons ── */
.tt-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: var(--tt-radius);
    font-weight: 600; font-size: 1rem;
    text-decoration: none; border: 2px solid transparent;
    transition: var(--tt-transition); cursor: pointer;
}
.tt-btn-gold {
    background: var(--tt-gold); color: var(--tt-navy);
    border-color: var(--tt-gold);
}
.tt-btn-gold:hover {
    background: var(--tt-gold-dark); border-color: var(--tt-gold-dark);
    color: var(--tt-white); transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(200,169,110,0.35);
}
.tt-btn-outline {
    background: transparent; color: var(--tt-white);
    border-color: rgba(255,255,255,0.4);
}
.tt-btn-outline:hover {
    background: var(--tt-white); color: var(--tt-navy);
    border-color: var(--tt-white); transform: translateY(-2px);
}
.tt-btn-navy {
    background: var(--tt-navy); color: var(--tt-white);
    border-color: var(--tt-navy);
}
.tt-btn-navy:hover {
    background: var(--tt-navy-light); transform: translateY(-2px);
    box-shadow: var(--tt-shadow-lg);
}

/* ── Sections ── */
.tt-section {
    padding: 6rem 0;
}
.tt-section-cream { background: var(--tt-cream); }
.tt-section-navy { background: var(--tt-navy); color: var(--tt-white); }
.tt-section-navy h2, .tt-section-navy h3 { color: var(--tt-white); }
.tt-section-navy p { color: rgba(255,255,255,0.8); }

.tt-section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.tt-section-divider {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-top: 1rem;
}
.tt-section-divider::before,
.tt-section-divider::after {
    content: ''; height: 1px; width: 40px;
    background: var(--tt-gold);
}
.tt-section-divider i { color: var(--tt-gold); font-size: 0.8rem; }

/* ── Feature Cards ── */
.tt-feature-card {
    background: var(--tt-white);
    border-radius: var(--tt-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--tt-transition);
    border: 1px solid var(--tt-border);
    height: 100%;
}
.tt-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tt-shadow-lg);
    border-color: var(--tt-gold);
}
.tt-feature-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: linear-gradient(135deg, var(--tt-gold), var(--tt-gold-light));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem; color: var(--tt-navy);
}
.tt-feature-card h4 {
    font-size: 1.3rem; margin-bottom: 0.75rem;
}
.tt-feature-card p {
    color: var(--tt-text-light); font-size: 0.95rem;
}

/* ── Stats ── */
.tt-stats { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.tt-stat { text-align: center; }
.tt-stat-number {
    font-family: var(--font-heading);
    font-size: 3rem; font-weight: 700; color: var(--tt-gold);
    line-height: 1;
}
.tt-stat-label {
    font-size: 0.9rem; color: rgba(255,255,255,0.7);
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* ── Pricing Cards ── */
.tt-pricing-card {
    background: var(--tt-white);
    border-radius: var(--tt-radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--tt-transition);
    border: 2px solid var(--tt-border);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
}
.tt-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--tt-shadow-lg);
}
.tt-pricing-card.featured {
    border-color: var(--tt-gold);
    box-shadow: 0 8px 40px rgba(200,169,110,0.2);
}
.tt-pricing-badge {
    position: absolute; top: 0; right: 0;
    background: var(--tt-gold); color: var(--tt-navy);
    padding: 6px 24px; font-size: 0.8rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    border-bottom-left-radius: var(--tt-radius);
}
html[dir="rtl"] .tt-pricing-badge { right: auto; left: 0; border-bottom-left-radius: 0; border-bottom-right-radius: var(--tt-radius); }
.tt-pricing-tier {
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--tt-gold-dark);
    font-weight: 700; margin-bottom: 0.5rem;
}
.tt-pricing-name { font-size: 1.5rem; margin-bottom: 1rem; }
.tt-pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem; font-weight: 700; color: var(--tt-navy);
    line-height: 1;
}
.tt-pricing-currency { font-size: 1.2rem; font-weight: 400; }
.tt-pricing-period { font-size: 0.9rem; color: var(--tt-text-light); margin-top: 0.25rem; }
.tt-pricing-features {
    list-style: none; padding: 0; margin: 1.5rem 0;
    text-align: start; flex-grow: 1;
}
.tt-pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.93rem;
    color: var(--tt-text);
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.tt-pricing-features li i {
    color: var(--tt-gold); font-size: 0.9rem; flex-shrink: 0;
}
.tt-pricing-features li.disabled {
    color: var(--tt-text-light);
    text-decoration: line-through;
}
.tt-pricing-features li.disabled i { color: #ccc; }

/* ── About ── */
.tt-about-image {
    border-radius: var(--tt-radius-lg);
    overflow: hidden;
    box-shadow: var(--tt-shadow-lg);
    position: relative;
}
.tt-about-image::after {
    content: '';
    position: absolute; inset: 0;
    border: 3px solid var(--tt-gold);
    border-radius: var(--tt-radius-lg);
    transform: translate(16px,16px);
    z-index: -1;
}
.tt-value-card {
    display: flex; gap: 1.25rem; align-items: flex-start;
    padding: 1.5rem; border-radius: var(--tt-radius);
    background: var(--tt-white);
    border: 1px solid var(--tt-border);
    transition: var(--tt-transition);
}
.tt-value-card:hover {
    border-color: var(--tt-gold);
    box-shadow: var(--tt-shadow);
}
.tt-value-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tt-gold), var(--tt-gold-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--tt-navy); font-size: 1.1rem;
}

/* ── Contact ── */
.tt-contact-card {
    background: var(--tt-white);
    border-radius: var(--tt-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--tt-shadow);
    border: 1px solid var(--tt-border);
}
.tt-contact-info-item {
    display: flex; gap: 1rem; align-items: flex-start;
    margin-bottom: 1.5rem;
}
.tt-contact-info-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--tt-cream);
    display: flex; align-items: center; justify-content: center;
    color: var(--tt-gold); font-size: 1.1rem;
}
.tt-form-control {
    display: block;
    width: 100%;
    border: 2px solid var(--tt-border);
    border-radius: var(--tt-radius);
    padding: 12px 16px; font-size: 0.95rem;
    transition: var(--tt-transition);
    background: var(--tt-cream);
    font-family: inherit;
}
.tt-form-control:focus {
    border-color: var(--tt-gold);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.15);
    outline: none;
    background: var(--tt-white);
}
html[dir="rtl"] .tt-form-control { text-align: right; }
html[dir="rtl"] .tt-form-control[dir="ltr"] { text-align: left; }
html[dir="rtl"] textarea.tt-form-control { text-align: right; }

/* ── Legal Pages ── */
.tt-legal { max-width: 860px; margin: 0 auto; }
.tt-legal h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--tt-navy); }
.tt-legal h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.tt-legal p, .tt-legal li { color: var(--tt-text); font-size: 0.97rem; line-height: 1.8; }
.tt-legal ul { padding-left: 1.5rem; }
html[dir="rtl"] .tt-legal ul { padding-left: 0; padding-right: 1.5rem; }
.tt-legal-updated {
    display: inline-block;
    background: var(--tt-cream);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--tt-text-light);
    margin-bottom: 1.5rem;
}

/* ── Testimonials ── */
.tt-testimonial {
    background: var(--tt-white);
    border-radius: var(--tt-radius-lg);
    padding: 2rem;
    border: 1px solid var(--tt-border);
    transition: var(--tt-transition);
}
.tt-testimonial:hover {
    box-shadow: var(--tt-shadow);
    border-color: var(--tt-gold);
}
.tt-testimonial-stars { color: var(--tt-gold); font-size: 0.9rem; margin-bottom: 0.75rem; }
.tt-testimonial-quote { font-style: italic; color: var(--tt-text); margin-bottom: 1rem; }
.tt-testimonial-author { font-weight: 600; color: var(--tt-navy); font-size: 0.9rem; }
.tt-testimonial-role { font-size: 0.8rem; color: var(--tt-text-light); }

/* ── Footer ── */
.tt-footer {
    background: var(--tt-navy);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}
.tt-footer h5 { color: var(--tt-gold); font-size: 1.1rem; margin-bottom: 1.25rem; }
.tt-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--tt-transition);
    font-size: 0.93rem;
}
.tt-footer a:hover { color: var(--tt-gold); }
.tt-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.85rem;
}
.tt-footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: var(--tt-transition);
    font-size: 1rem;
}
.tt-footer-social a:hover {
    background: var(--tt-gold);
    color: var(--tt-navy);
    transform: translateY(-3px);
}

/* ── CTA ── */
.tt-cta {
    background: linear-gradient(135deg, var(--tt-navy), var(--tt-navy-light));
    border-radius: var(--tt-radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tt-cta::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8A96E' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tt-cta > * { position: relative; z-index: 1; }

/* ── Page Header ── */
.tt-page-header {
    background: linear-gradient(135deg, var(--tt-navy), var(--tt-navy-light));
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tt-page-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--tt-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.tt-page-header h1 { color: var(--tt-white); margin-bottom: 0.5rem; }
.tt-page-header p { color: rgba(255,255,255,0.7); }
.tt-section-cream + .tt-page-header::after { background: var(--tt-cream); }

/* ── How it works ── */
.tt-step {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}
.tt-step-number {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tt-gold), var(--tt-gold-light));
    color: var(--tt-navy);
    font-family: var(--font-heading);
    font-size: 1.4rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}

/* ── Scroll animations ── */
.tt-reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.tt-reveal.visible {
    opacity: 1; transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .tt-hero h1 { font-size: 2.5rem; }
    .tt-section { padding: 4rem 0; }
    .tt-stats { gap: 2rem; }
    .tt-cta { padding: 3rem 1.5rem; }
}
@media (max-width: 575.98px) {
    .tt-hero h1 { font-size: 2rem; }
    .tt-hero p { font-size: 1rem; }
    .tt-btn { padding: 12px 24px; font-size: 0.9rem; }
    .tt-pricing-card { padding: 2rem 1.5rem; }
    .tt-stats { gap: 1.5rem; }
    .tt-stat-number { font-size: 2.2rem; }
}
