/* ==========================================================================
   Tabish Interior - Luxury Design System Stylesheet
   ========================================================================== */

/* --- Fonts & Variables --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-dark: #111111;
    --secondary-dark: #1a1a1a;
    --light-bg: #F9F6F0;
    --white: #ffffff;
    --gold: #C9A14A;
    --gold-hover: #b08937;
    --charcoal: #2b2b2b;
    --muted-gray: #666666;
    --light-gray: #e5e5e5;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s ease-in-out;
}

/* --- Global Reset & Micro-Scaffolding --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}
a:hover { color: var(--gold); }

/* --- Custom Preloader --- */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--primary-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
}
.luxury-spinner {
    width: 60px; height: 60px;
    border: 2px solid transparent;
    border-top: 2px solid var(--gold);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
}
.luxury-spinner::after {
    content: '';
    position: absolute;
    top: 6px; left: 6px; right: 6px; bottom: 6px;
    border: 2px solid transparent;
    border-bottom: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 2s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Scroll Progress Bar --- */
#scroll-progress {
    position: fixed;
    top: 0; left: 0; height: 3px;
    background: linear-gradient(to right, var(--gold), #f3e5ab);
    z-index: 10000;
    width: 0%;
}

/* --- Premium Navigation Header --- */
.navbar-luxury {
    padding: 25px 0;
    transition: var(--transition-smooth);
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar-luxury.scrolled {
    padding: 15px 0;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(201, 161, 74, 0.2);
}
.navbar-brand-luxury {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white) !important;
}
.navbar-brand-luxury span { color: var(--gold); }
.nav-link-luxury {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 8px 20px !important;
    position: relative;
    transition: var(--transition-fast);
}
.nav-link-luxury:hover, .nav-link-luxury.active {
    color: var(--gold) !important;
}
.nav-link-luxury::after {
    content: '';
    position: absolute;
    bottom: 0; left: 20px; right: 20px;
    height: 1px;
    background-color: var(--gold);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}
.nav-link-luxury:hover::after, .nav-link-luxury.active::after {
    transform: scaleX(1);
}

/* --- Luxury Buttons --- */
.btn-luxury {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 34px;
    border-radius: 50px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-luxury-gold {
    background-color: var(--gold);
    color: var(--white);
    border: 1px solid var(--gold);
}
.btn-luxury-gold:hover {
    background-color: transparent;
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(201, 161, 74, 0.15);
}
.btn-luxury-outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-luxury-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    transform: translateY(-3px);
}
.btn-luxury-dark {
    background-color: var(--primary-dark);
    color: var(--white);
    border: 1px solid var(--primary-dark);
}
.btn-luxury-dark:hover {
    background-color: transparent;
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* --- Structural Typography Utility --- */
.section-padding { padding: 120px 0; }
.bg-beige { background-color: var(--light-bg); }

.section-header {
    margin-bottom: 60px;
}
.section-subtitle {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-size: 42px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 60px; height: 2px;
    background-color: var(--gold);
}
.section-header.text-center .section-title::after {
    left: 50%; transform: translateX(-50%);
}

/* --- Hero Architecture --- */
.hero-luxury {
    position: relative;
    height: 100vh;
    min-height: 700px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.85) 0%, rgba(17, 17, 17, 0.4) 100%);
    z-index: -1;
}
.hero-luxury h1 {
    font-size: 64px;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 25px;
}
.hero-luxury p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 40px;
    font-weight: 300;
}

/* --- Inner Page Sub-Hero --- */
.sub-hero {
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}
.sub-hero h1 {
    font-size: 52px;
    color: var(--white);
}

/* --- Premium Services Cards --- */
.service-card {
    background-color: var(--white);
    padding: 50px 40px;
    border-radius: 4px;
    border: 1px solid var(--light-gray);
    transition: var(--transition-smooth);
    height: 100%;
    position: relative;
    top: 0;
}
.service-card:hover {
    top: -10px;
    box-shadow: 0 20px 40px rgba(17, 17, 17, 0.05);
    border-color: var(--gold);
}
.service-icon {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition-smooth);
}
.service-card:hover .service-icon {
    transform: scale(1.1);
}
.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}
.service-card p {
    font-size: 14px;
    color: var(--muted-gray);
    margin: 0;
}

/* --- Animated Counters --- */
.counter-section {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
}
.counter-box {
    text-align: center;
    padding: 30px 10px;
}
.counter-number {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--gold);
    display: block;
    margin-bottom: 5px;
}
.counter-title {
    font-family: var(--font-body);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Portfolio Project Display Grid --- */
.portfolio-filter-btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--charcoal);
    background: transparent;
    border: none;
    padding: 8px 24px;
    margin: 0 4px 10px 4px;
    position: relative;
    transition: var(--transition-fast);
}
.portfolio-filter-btn.active, .portfolio-filter-btn:hover {
    color: var(--gold);
}
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 30px;
    cursor: pointer;
}
.portfolio-img-wrapper {
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background-color: var(--light-bg);
}
.portfolio-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.portfolio-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(17, 17, 17, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transition: var(--transition-smooth);
}
.portfolio-card:hover img {
    transform: scale(1.08);
}
.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}
.portfolio-meta {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 8px;
    transform: translateY(15px);
    transition: var(--transition-smooth);
}
.portfolio-title {
    font-size: 22px;
    color: var(--white);
    margin-bottom: 12px;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}
.portfolio-card:hover .portfolio-meta,
.portfolio-card:hover .portfolio-title {
    transform: translateY(0);
}

/* --- Premium Swiper Testimonials --- */
.testimonials-slider {
    padding: 40px 0;
}
.testimonial-item {
    background-color: var(--white);
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(17, 17, 17, 0.02);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
    color: var(--charcoal);
    margin-bottom: 30px;
    line-height: 1.8;
}
.testimonial-client {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}
.testimonial-desig {
    font-size: 12px;
    color: var(--muted-gray);
}
.swiper-pagination-bullet-active {
    background: var(--gold) !important;
}

/* --- Creative Chronology / Process Steps --- */
.process-timeline {
    position: relative;
    padding: 40px 0;
}
.process-node {
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    padding: 40px;
    border-radius: 4px;
    position: relative;
    transition: var(--transition-smooth);
    height: 100%;
}
.process-node:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(17, 17, 17, 0.04);
}
.process-step-num {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 700;
    color: rgba(201, 161, 74, 0.12);
    position: absolute;
    top: 10px; right: 30px;
    line-height: 1;
}
.process-node h3 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 10px;
}

/* --- Call To Action Banners --- */
.cta-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: var(--white);
    text-align: center;
}
.cta-banner h2 {
    font-size: 44px;
    color: var(--white);
    margin-bottom: 20px;
}

/* --- Accordion Luxury Restyle --- */
.accordion-item-luxury {
    background-color: var(--white);
    border: 1px solid var(--light-gray) !important;
    margin-bottom: 15px;
    border-radius: 4px !important;
    overflow: hidden;
}
.accordion-button-luxury {
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--primary-dark) !important;
    background-color: var(--white) !important;
    padding: 20px 25px;
    box-shadow: none !important;
}
.accordion-button-luxury:not(.collapsed) {
    color: var(--gold) !important;
    border-bottom: 1px solid var(--light-gray);
}
.accordion-button-luxury::after {
    filter: brightness(0.1);
}

/* --- High-End Forms --- */
.form-group-luxury {
    margin-bottom: 25px;
}
.form-control-luxury {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--light-gray);
    border-radius: 0;
    padding: 12px 5px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--primary-dark);
    transition: var(--transition-fast);
}
.form-control-luxury:focus {
    background-color: transparent;
    box-shadow: none;
    border-bottom-color: var(--gold);
}
label.error {
    font-size: 11px;
    color: #cc0000;
    margin-top: 5px;
    display: block;
    font-family: var(--font-body);
}

/* --- Premium Footer --- */
.footer-luxury {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 90px 0 30px 0;
    font-size: 14px;
    border-top: 3px solid var(--gold);
}
.footer-title {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
    letter-spacing: 1px;
}
.footer-links-list {
    list-style: none;
    padding: 0; margin: 0;
}
.footer-links-list li {
    margin-bottom: 12px;
}
.footer-links-list a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
}
.footer-links-list a:hover {
    color: var(--gold);
    padding-left: 5px;
}
.newsletter-input-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    padding-bottom: 5px;
}
.newsletter-field {
    background: transparent;
    border: none;
    color: var(--white);
    padding: 8px 5px;
    width: 100%;
    font-size: 13px;
}
.newsletter-field:focus { outline: none; }
.newsletter-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    padding: 0 10px;
}
.social-icon-bar {
    margin-top: 25px;
}
.social-link-luxury {
    width: 38px; height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    transition: var(--transition-fast);
}
.social-link-luxury:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}
.footer-bottom-bar {
    margin-top: 70px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

/* --- Back to Top Controller --- */
#back-to-top {
    position: fixed;
    bottom: 30px; right: -60px;
    width: 45px; height: 45px;
    background-color: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#back-to-top.visible { right: 30px; }
#back-to-top:hover { background-color: var(--primary-dark); transform: translateY(-3px); }

/* --- Micro-Modal Popup Architecture --- */
.premium-popup-overlay {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(11,11,11,0.9);
    z-index: 10005;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.premium-popup-container {
    background: var(--white);
    max-width: 900px; width: 100%;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.popup-close-trigger {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 28px;
    color: var(--primary-dark);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-fast);
}
.popup-close-trigger:hover { color: var(--gold); }

/* --- Responsive Adaptability Matrix --- */
@media (max-width: 991.98px) {
    .navbar-luxury { background: var(--primary-dark) !important; padding: 15px 0; }
    .hero-luxury h1 { font-size: 46px; }
    .section-title { font-size: 32px; }
    .section-padding { padding: 80px 0; }
    .testimonial-item { padding: 30px; }
}
@media (max-width: 575.98px) {
    .hero-luxury h1 { font-size: 34px; }
    .hero-luxury p { font-size: 15px; }
    .btn-luxury { padding: 12px 24px; font-size: 12px; }
    .sub-hero h1 { font-size: 32px; }
}