/* High-End Editorial Palette */
:root {
    --black: #050505;
    --charcoal: #111111;
    --dark-grey: #222222;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --gold: #c5a880; /* Premium Champagne Gold */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide default cursor for computers to show our luxury trailing cursor */
@media (pointer: fine) {
    body, a, input, textarea, button { cursor: none; }
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: 'Cinzel', serif;
    font-weight: 400;
}

/* ========================================= */
/* REAL FABRIC THREAD TRAIL CURSOR           */
/* ========================================= */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 10px; 
    height: 10px;
    background-color: var(--gold);
    /* Needle tip shape */
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); 
    z-index: 20001; 
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.cursor-dot.hovering {
    transform: translate(-50%, -50%) scale(1.8);
    background-color: #a88d66; /* Slightly darker gold on hover */
}

/* The individual pieces of the trailing thread */
.fabric-thread-dot {
    position: fixed;
    top: 0; left: 0;
    background-color: var(--gold);
    border-radius: 50%;
    z-index: 20000;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
}

.fabric-thread-dot.hovering {
    background-color: rgba(197, 168, 128, 0.4);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: padding 0.4s ease;
}

.logo {
    font-size: 1.6rem; 
    letter-spacing: 3px;
    color: var(--black);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--black);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 1px;
    bottom: -4px; left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-ig {
    display: flex;
    align-items: center;
    color: var(--black);
    transition: color 0.3s ease;
}
.nav-ig:hover { color: var(--gold); }
.nav-ig::after { display: none; }

/* Sections Base */
.section-dark {
    position: relative;
    background-color: var(--charcoal);
    color: var(--white);
    overflow: hidden;
}

.section-light {
    position: relative;
    color: var(--black);
    overflow: hidden;
}

/* FOOLPROOF BACKGROUND IMAGES */
.hero-bg-img, .section-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlays */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.6); 
    z-index: 1;
}

.dark-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.85); 
    z-index: 1;
}

.light-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(245, 247, 250, 0.55); 
    z-index: 1;
}

/* Hero Content */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
}

.hero .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 1.5rem;
    color: var(--gold);
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #e2e8f0;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.btn-light {
    background-color: var(--white);
    color: var(--black);
}
.btn-light:hover {
    background-color: var(--gold);
    color: var(--white);
}

.btn-dark {
    background-color: var(--black);
    color: var(--white);
}
.btn-dark:hover {
    background-color: var(--gold);
    color: var(--white);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
}
.btn-gold:hover {
    background-color: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline-gold {
    background-color: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-outline-gold:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* Garments Section */
.capabilities {
    padding: 8rem 5%;
}

.section-heading {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    letter-spacing: 2px;
}
.text-gold { color: var(--gold); }

.heading-line {
    width: 1px;
    height: 60px;
    background-color: var(--black);
    margin: 1.5rem auto;
}
.line-gold { background-color: var(--gold); }

/* Editorial Grids */
.editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 10;
}

/* UPGRADED CARDS */
.card {
    background: var(--white);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); 
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.dark-card {
    background: rgba(25, 25, 25, 0.9);
}

.card:hover {
    transform: translateY(-12px); 
    box-shadow: 0 25px 50px rgba(0,0,0,0.15); 
}

.card-image {
    height: 380px;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover .card-image {
    transform: scale(1.06); 
}

.card-content {
    padding: 2rem 1.5rem;
    flex-grow: 1; 
    text-align: center;
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.dark-card h3 {
    color: var(--white);
    margin-bottom: 0;
}

.card p {
    font-size: 0.9rem;
    color: #444;
}

/* Split Contact Section */
.contact-section {
    display: flex;
    min-height: 80vh;
}

.contact-image {
    flex: 1;
    background: url('https://images.unsplash.com/photo-1504198458649-3128b932f49e?auto=format&fit=crop&q=80') center/cover;
    filter: grayscale(100%);
}

.contact-form-wrapper {
    flex: 1;
    background-color: var(--off-white);
    padding: 6rem 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom: 1px solid var(--gold);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--black);
    color: #888;
    text-align: center;
    padding: 5rem 5%;
}

.copyright {
    margin-top: 2rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Stitch Thread Scroll Rail */
.thread-rail {
    position: fixed;
    top: 0;
    left: 22px;
    width: 2px;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
}

.thread-rail-track {
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 100%;
    background-image: linear-gradient(to bottom, rgba(197,168,128,0.25) 60%, transparent 0%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
}

.thread-rail-fill {
    position: absolute;
    top: 0; left: 0;
    width: 2px;
    height: 0%;
    background-image: linear-gradient(to bottom, var(--gold) 60%, transparent 0%);
    background-size: 2px 10px;
    background-repeat: repeat-y;
    transition: height 0.1s linear;
}

.thread-needle {
    position: absolute;
    left: -4px;
    top: 0%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(197,168,128,0.7);
    transition: top 0.1s linear;
}

@media (max-width: 900px) {
    .thread-rail { display: none; }
}

/* Hero Video Background */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Product Spec List on Cards */
.card-specs {
    list-style: none;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    text-align: left;
}

.card-specs li {
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}

.card-specs li span {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    flex-shrink: 0;
}

.dark-card .card-specs { border-top-color: rgba(255,255,255,0.15); }
.dark-card .card-specs li { color: #ccc; }

.lightbox-trigger { cursor: pointer; }
@media (pointer: fine) { .lightbox-trigger { cursor: none; } }

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 9997;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.5);
    animation: whatsapp-pulse 2.2s infinite;
    z-index: -1;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

@keyframes whatsapp-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 900px) {
    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* Product Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 5, 5, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 5%;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    background: var(--white);
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.lightbox-overlay.active .lightbox-content {
    transform: translateY(0);
}

.lightbox-image {
    flex: 1.2;
    background-size: cover;
    background-position: center;
    min-height: 320px;
}

.lightbox-info {
    flex: 1;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.lightbox-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.lightbox-info p {
    font-size: 0.95rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.lightbox-specs {
    list-style: none;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 1.5rem;
}

.lightbox-specs li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.lightbox-specs li span {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    flex-shrink: 0;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
}

.lightbox-close:hover { background: var(--gold); }

@media (max-width: 700px) {
    .lightbox-content { flex-direction: column; overflow-y: auto; }
    .lightbox-image { min-height: 220px; }
    .lightbox-info { padding: 2rem 1.5rem; }
}

/* Handmade Support Banner */
.handmade-banner {
    background-color: var(--charcoal);
    padding: 5rem 5%;
    position: relative;
    overflow: hidden;
}

.handmade-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.handmade-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.handmade-banner-text .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold);
    margin-bottom: 1rem;
    display: block;
}

.handmade-banner-text h3 {
    color: var(--white);
    font-size: 2.1rem;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.handmade-banner-text p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.2rem;
}

/* Footer Social Row */
.footer-social {
    margin: 1.8rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-social a:hover { color: var(--gold); }

.footer-social-divider { color: #555; }

/* ========================================= */
/* Mobile Responsiveness (Google Compliant)  */
/* ========================================= */
@media (max-width: 900px) {
    /* Header Fixes - Stacks the logo and menu neatly */
    header { 
        flex-direction: column; 
        padding: 1.2rem 5%; 
        gap: 1rem; 
    }
    .nav-links { 
        gap: 1rem; 
        flex-wrap: wrap; 
        justify-content: center; 
    }

    /* Hero Fixes - Centers text and scales down massive fonts */
    .hero { 
        text-align: center; 
    }
    .hero-content { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        margin: 0 auto;
    }
    .hero h1 { 
        font-size: 3rem; 
    }
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Grid Fixes - Forces exactly one column on phones so nothing bleeds off screen */
    .editorial-grid {
        grid-template-columns: 1fr; 
        gap: 2rem;
    }

    /* Contact & Banner Fixes */
    .contact-section { flex-direction: column; }
    .contact-image { height: 40vh; }
    .contact-form-wrapper { padding: 4rem 5%; }
    .handmade-banner-text h3 { font-size: 1.6rem; }
    
    /* Footer Fixes */
    .footer-social { flex-direction: column; gap: 0.6rem; }
    .footer-social-divider { display: none; }
    
    /* Elements to Adjust for Touch Screens */
    .thread-rail { display: none; } /* Hidden on mobile */
    .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* Extra adjustments for ultra-small phones (e.g., iPhone SE) */
@media (max-width: 400px) {
    .hero h1 { font-size: 2.4rem; }
    .nav-links a { font-size: 0.7rem; }
}