/* --- GLOBAL UTILITIES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
/* Renamed from text-gold to text-accent for flexibility */
.text-accent {
    color: var(--accent-copper);
    font-style: italic;
}

/* --- HEADER MODULE (Glassmorphism) --- */
.main-header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98); /* Slightly higher opacity for clean look */
    backdrop-filter: blur(10px);
    /* Subtle Green Tinted Border */
    border-bottom: 1px solid rgba(13, 38, 31, 0.08);
    transition: var(--transition-lux);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* --- LOGO STYLES --- */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    color: var(--primary-dark); /* Deep Forest Green */
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Navigation Links (Desktop) */
.nav-menu .nav-list {
    display: flex;
    gap: 50px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-dark);
    position: relative;
    transition: opacity 0.3s ease, color 0.3s ease;
}

/* Minimalist Hover Effect */
.nav-list:hover .nav-link { opacity: 0.5; }
.nav-list .nav-link:hover { 
    opacity: 1; 
    color: var(--accent-copper); /* Copper on Hover */
}

/* --- ICONS & ACTIONS --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: transform 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
    color: var(--accent-copper);
    transform: translateY(-2px);
}

/* --- HAMBURGER BUTTON (SVG) --- */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark); /* Uses your Deep Green theme */
    padding: 0;
    margin-left: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Make sure the SVG inherits the color */
.hamburger-btn svg {
    display: block;
    stroke: currentColor;
}

/* Hover Effect: Turns Copper & slight zoom */
.hamburger-btn:hover {
    color: var(--accent-copper);
    transform: scale(1.1);
}

/* --- SIDEBAR DRAWER --- */
.sidebar-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 350px;
    height: 100vh;
    background-color: var(--pure-white);
    z-index: 2000;
    padding: 40px;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.sidebar-drawer.active { right: 0; }

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.sidebar-overlay.active { opacity: 1; pointer-events: all; }

/* --- HERO SECTION (Cinematic Parallax) --- */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark); /* Deep Green BG */
    color: var(--pure-white);
}

/* Parallax Background Wrapper */
.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: 1;
    will-change: transform;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75; /* Slightly cleaner image visibility */
}

/* Gradient Overlay - Updated to Green Tones */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient from Deep Forest transparent to Deep Forest solid */
    background: linear-gradient(to bottom, rgba(13, 38, 31, 0.3), rgba(13, 38, 31, 0.85));
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    margin-top: 60px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-copper);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.5s;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5.5rem;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 30px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 0.8s;
}

.hero-description {
    max-width: 500px;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.1s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 600;
    transition: var(--transition-lux);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--pure-white);
    color: var(--primary-dark);
    margin-right: 15px;
    border: 1px solid var(--pure-white);
}

.btn-primary:hover {
    background-color: var(--accent-copper);
    border-color: var(--accent-copper);
    color: var(--pure-white);
}

.btn-outline {
    border: 1px solid rgba(255,255,255,0.4);
    color: var(--pure-white);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--pure-white);
    color: var(--accent-copper);
}

/* Animation Keyframes */
@keyframes fadeUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ---------------------------- SECTION UTILITIES ---------------------------- */

.section-padding {
    padding: 100px 0;
    background-color: var(--bg-light); /* Subtle Cool Grey/Green */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-dark);
}

/* --- PRODUCT GALLERY GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px;
    margin-bottom: 60px;
}

/* Card Structure */
.product-card {
    position: relative;
    cursor: pointer;
}

/* Image Area */
.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #EAEFEA; /* Slightly green-tinted placeholder */
    overflow: hidden;
    margin-bottom: 20px;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .card-img {
    transform: scale(1.05);
}

/* Badge */
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-dark);
    color: var(--pure-white);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 12px;
    z-index: 2;
}

/* Hover Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 38, 31, 0.1); /* Green tint overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .card-overlay { opacity: 1; }

/* "View Specs" Button */
.btn-quick-view {
    background-color: var(--pure-white);
    color: var(--primary-dark);
    padding: 12px 25px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s ease, background-color 0.3s ease;
}

.product-card:hover .btn-quick-view { transform: translateY(0); }

.btn-quick-view:hover {
    background-color: var(--primary-dark);
    color: var(--pure-white);
}

/* Card Text Details */
.card-details { text-align: center; }

.card-brand {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.card-price {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* Link with Arrow */
.section-footer { text-align: center; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--primary-dark);
    border-bottom: 1px solid transparent;
    transition: gap 0.3s ease;
}

.link-arrow:hover {
    gap: 15px;
    border-bottom: 1px solid var(--primary-dark);
}

/* --- MOBILE RESPONSIVENESS FIX --- */

/* Tablet & Mobile (Max width 992px) */
@media (max-width: 992px) {
    .nav-menu { display: none; }
    .sidebar-drawer { width: 80%; }
}

/* Mobile Only (Max width 768px) */
@media (max-width: 768px) {
    /* 1. Reduce Container Padding */
    .container { padding: 0 15px; }

    /* 2. Shrink Logo Text & Image */
    .brand-logo { font-size: 1.1rem; gap: 8px; }
    .logo-img { height: 30px; }

    /* 3. Tighten Actions */
    .nav-actions { gap: 10px; }
    .icon-btn svg { width: 20px; height: 20px; }

    /* 5. Adjust Hero Text */
    .hero-content { margin-top: 40px; }
    .hero-title { font-size: 3rem; margin-bottom: 20px; }
    .hero-description { font-size: 0.95rem; line-height: 1.6; }

    /* Stack Buttons */
    .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-right: 0;
        margin-bottom: 12px;
        padding: 14px 0;
    }
}

/* --- UNIQUE SCULPTURAL SHAPES --- */

/* Shape 1: The "Cathedral Arch" (For Janome / Professional) 
   Why: Represents high-end elegance and embroidery precision.
*/
.product-grid .product-card:nth-child(1) .card-image-wrapper {
    border-radius: 50% 50% 4px 4px / 20% 20% 4px 4px; /* Sophisticated arch */
    transition: border-radius 0.5s ease;
}

.product-grid .product-card:nth-child(1):hover .card-image-wrapper {
    border-radius: 4px; /* Returns to rectangle on hover for a clear view */
}

/* Fix Badge Position for Arch (Center it so it's not cut off) */
.product-grid .product-card:nth-child(1) .card-badge {
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 20px;
}


/* Shape 2: The "Industrial Bevel" (For Usha / Best Seller) 
   Why: Represents heavy-duty strength and structure.
*/
.product-grid .product-card:nth-child(2) .card-image-wrapper {
    border-radius: 0;
    /* Creates a technical "cut" on top-left and bottom-right */
    clip-path: polygon(
        30px 0, 100% 0, 
        100% 100%, 
        0 100%, 0 30px
    );
    transition: clip-path 0.5s ease;
}

/* Fix Badge Position for Cut (Move it right to avoid the cut) */
.product-grid .product-card:nth-child(2) .card-badge {
    left: 35px; /* Pushed inward */
    background-color: var(--accent-copper); /* Copper badge for contrast */
}


/* Shape 3: The "Organic Leaf" (For Jack / New Arrival) 
   Why: Represents modern speed, smoothness, and direct-drive tech.
*/
.product-grid .product-card:nth-child(3) .card-image-wrapper {
    border-radius: 4px 100px 4px 4px; /* Large curve on top-right */
}

.product-grid .product-card:nth-child(3):hover .card-image-wrapper {
    border-radius: 4px; /* Returns to rectangle */
}

/* Badge is safe on the left, but let's style it modern */
.product-grid .product-card:nth-child(3) .card-badge {
    border-radius: 0 10px 10px 0; /* Modern flag style */
    padding-left: 15px;
    left: 0;
}


/* --- DARK MODE UTILITIES --- */
.bg-dark {
    background-color: var(--primary-dark);
    color: var(--pure-white);
}

.text-white {
    color: var(--pure-white);
}

/* --- ESSENTIALS MOSAIC --- */
.essentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    align-items: center; /* Vertically centers items if heights differ */
}

.essential-card {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease;
}

.essential-card:hover {
    transform: translateY(-10px); /* Floating effect */
}

/* Image Handling */
.essential-img-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
    background-color: rgba(255,255,255,0.05); /* Subtle glass bg */
}

.essential-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    filter: brightness(0.9);
}

.essential-card:hover .essential-img {
    transform: scale(1.1);
    filter: brightness(1);
}

/* --- THE UNIQUE SHAPES --- */

/* Shape 1: The Blade (Diagonal Cut) */
.card-blade .essential-img-wrapper {
    /* Cuts the top-right and bottom-left sharply */
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 85%);
}

/* Shape 2: The Pattern (Geometric Tag) */
.card-pattern .essential-img-wrapper {
    /* Looks like a hang-tag or pattern piece */
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 20%);
}

/* Shape 3: The Spool (Organic Arch) */
.card-spool .essential-img-wrapper {
    /* Soft rounded top and bottom */
    border-radius: 100px 100px 0 0;
}


/* --- TEXT STYLING --- */
.essential-info {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1); /* Subtle divider */
    padding-top: 20px;
}

.essential-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--pure-white);
}

.essential-info p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 10px;
}

.essential-info .price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

/* --- HERITAGE SECTION (Editorial Split) --- */
.heritage-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Split 50/50 */
    gap: 80px;
    align-items: center;
}

/* Text Side */
.heritage-content {
    padding-right: 20px;
}

.heritage-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 450px; /* Optimal reading width */
    text-align: justify; /* Editorial look */
}

/* Stats Row */
.heritage-stats {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    border-top: 1px solid var(--border-subtle);
    padding-top: 30px;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-copper);
}

/* Signature Block */
.signature-block {
    font-family: 'Bodoni Moda', serif; /* Using serif as "handwritten" stand-in */
}

.signature-text {
    display: block;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--primary-dark);
}

.founder-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* Visual Side */
.heritage-visual {
    position: relative;
}

/* The Frame Effect */
.visual-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    /* Create a border frame effect */
    border: 1px solid var(--primary-dark);
    padding: 15px; /* Space between border and image */
}

.heritage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) sepia(20%); /* Vintage luxury tone */
    transition: filter 0.5s ease;
}

/* Hover: Bring color back slightly */
.heritage-visual:hover .heritage-img {
    filter: grayscale(0%);
}

/* --- RESPONSIVE ADJUSTMENT --- */
@media (max-width: 992px) {
    .heritage-wrapper {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 50px;
    }

    .heritage-content {
        padding-right: 0;
        text-align: center;
    }
    
    .heritage-text {
        margin: 0 auto 40px; /* Center text */
        text-align: center;
    }

    .heritage-stats {
        justify-content: center;
    }

    .visual-frame {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* --- SERVICES GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.service-card {
    padding: 40px 20px;
    border: 1px solid rgba(255,255,255,0.1); /* Subtle border */
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-copper); /* Copper glow on hover */
}

/* Icons */
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(194, 155, 97, 0.1); /* Low opacity Copper */
    color: var(--accent-copper);
    margin-bottom: 25px;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.service-card:hover .service-icon {
    background-color: var(--accent-copper);
    color: var(--primary-dark);
}

/* Typography */
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--pure-white);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}


/* --- CONTACT SECTION LAYOUT --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50/50 Split */
    gap: 80px;
    align-items: start;
}

/* --- THE CONCIERGE FORM --- */
.concierge-form {
    margin-top: 40px;
    max-width: 450px;
}

.form-group {
    position: relative;
    margin-bottom: 35px;
}

/* Floating Label Input Styles */
.form-input {
    width: 100%;
    padding: 10px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--primary-dark);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(13, 38, 31, 0.2);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    border-bottom-color: var(--accent-copper);
}

.form-label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s ease all;
}

/* Float logic: Move label up when focused or has text */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -20px;
    font-size: 0.75rem;
    color: var(--accent-copper);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Radio Tags Styles */
.input-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-tag input { display: none; } /* Hide real radio */

.radio-tag span {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(13, 38, 31, 0.2);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
}

.radio-tag input:checked + span {
    background-color: var(--primary-dark);
    color: var(--pure-white);
    border-color: var(--primary-dark);
}

/* --- RIGHT COL: INFO CARD --- */
.info-card {
    padding: 60px;
    box-shadow: 20px 20px 0px rgba(13, 38, 31, 0.1); 
    background-color: var(--primary-dark);
}

.info-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 20px;
    color: var(--pure-white);
}

.info-item { margin-bottom: 30px; }

.info-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    color: var(--accent-copper);
}

.text-white { color: var(--pure-white); }
.bg-dark { background-color: var(--primary-dark); }

/* --- STITCH MODAL THEATRE (Animation CSS) --- */
.stitch-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.stitch-modal.active {
    opacity: 1;
    pointer-events: all;
}

.stitch-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 38, 31, 0.95); /* Deep Forest Overlay */
    backdrop-filter: blur(8px);
}

.stitch-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

/* Typography Reveal */
.stitch-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--pure-white);
    margin-bottom: 20px;
    clip-path: inset(0 100% 0 0); /* Text starts hidden */
}

.stitch-modal.active .stitch-title {
    animation: textReveal 1.5s ease forwards;
}

.stitch-message {
    font-family: var(--font-body);
    color: var(--accent-copper);
    margin-top: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease 1.5s; /* Delay until stitch is done */
}

.stitch-modal.active .stitch-message {
    opacity: 1;
    transform: translateY(0);
}

.close-stitch {
    margin-top: 30px;
    opacity: 0;
    transition: opacity 0.5s ease 2s; /* Appears last */
}

.stitch-modal.active .close-stitch { opacity: 1; }

/* --- THE ANIMATION PHYSICS --- */
.stitch-animation-wrapper {
    position: relative;
    width: 300px;
    height: 4px;
    margin: 0 auto 30px;
    background: rgba(255,255,255,0.1); /* Track */
    border-radius: 2px;
}

.copper-thread {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; /* Starts empty */
    background-color: var(--accent-copper);
    box-shadow: 0 0 10px var(--accent-copper); /* Glowing thread */
    border-radius: 2px;
}

.golden-needle {
    position: absolute;
    top: -8px; 
    left: 0;
    width: 60px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
    opacity: 0;
}

/* Trigger Animation Classes */
.stitch-modal.active .copper-thread {
    animation: threadGrow 1.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

.stitch-modal.active .golden-needle {
    animation: needleMove 1.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

/* Keyframes */
@keyframes threadGrow {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes needleMove {
    0% { left: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; } /* Disappear at end */
}

@keyframes textReveal {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

/* Mobile Fixes */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .info-card {
        padding: 40px;
        box-shadow: 10px 10px 0px rgba(13, 38, 31, 0.1); 
    }
}

/* --- FOOTER SECTION --- */
.main-footer {
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr; /* Wider 1st and 4th columns */
    gap: 60px;
    margin-bottom: 80px;
}

/* Brand Column */
/* --- FOOTER LOGO UPDATE --- */
.footer-logo {
    display: flex;          /* Aligns image and text side-by-side */
    align-items: center;    /* Vertically centers them */
    gap: 12px;              /* Space between shield and text */
    
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pure-white);
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 40px;           /* Slightly smaller than the header logo */
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Optional: Makes black logo white if needed */
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--pure-white);
    transition: 0.3s ease;
}

.social-icon:hover {
    border-color: var(--accent-copper);
    color: var(--accent-copper);
    transform: translateY(-3px);
}

/* Links Columns */
.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--pure-white);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-copper);
    padding-left: 5px; /* Subtle slide effect */
}

/* Newsletter Column */
.newsletter-col .footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.newsletter-form input {
    background: none;
    border: none;
    color: var(--pure-white);
    font-family: var(--font-body);
    width: 100%;
    outline: none;
}

.newsletter-form button {
    background: none;
    border: none;
    color: var(--accent-copper);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateX(5px);
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* 2x2 Grid */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack all columns */
        gap: 50px;
        text-align: center;
    }

    .social-links, .newsletter-form {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* ========================================= */
/* --- THE SEARCH LENS CSS --- */
/* ========================================= */

/* 1. The Full Screen Overlay (Background Dimmer) */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 38, 31, 0.6); /* Dark Green Tint */
    backdrop-filter: blur(8px); /* The Glass Effect */
    z-index: 3000; /* Highest Layer */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 2. The Panel (The White Area) */
.search-panel {
    background: #ffffff;
    width: 100%;
    /* DESKTOP DEFAULT: Slide down 50% of screen */
    height: 50vh; 
    transform: translateY(-100%); /* Start hidden above screen */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth drop */
    display: flex;
    flex-direction: column;
    padding: 40px 10%; /* Breathing room */
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.search-overlay.active .search-panel {
    transform: translateY(0); /* Drop down */
}

/* 3. Header & Close Button */
.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-label {
    font-family: serif; /* Playfair Display */
    font-size: 1rem;
    color: #C5A059; /* Copper */
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #0D261F;
    transition: transform 0.3s ease;
}

.search-close-btn:hover {
    transform: rotate(90deg);
    color: #C5A059;
}

/* 4. The Giant Input */
.search-form {
    position: relative;
    border-bottom: 2px solid #eee;
    margin-bottom: 40px;
}

.search-input {
    width: 100%;
    border: none;
    font-family: serif; /* Playfair Display */
    font-size: 2.5rem; /* Huge text */
    color: #0D261F;
    padding: 10px 0;
    background: transparent;
    outline: none;
}

.search-input::placeholder {
    color: #ccc;
    font-style: italic;
}

.search-submit-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #0D261F;
}

/* 5. Suggestions (Desktop Grid) */
.suggestion-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 15px;
}

.suggestion-grid {
    display: flex;
    gap: 20px;
}

.suggestion-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background 0.2s ease;
}

.suggestion-card:hover {
    background: #f0f0f0;
    color: #C5A059;
}

/* 6. Hiding Mobile Elements on Desktop */
.mobile-suggestions {
    display: none;
}

/* ========================================= */
/* --- MOBILE VIEW: THE TAKEOVER --- */
/* ========================================= */
@media (max-width: 768px) {
    .search-panel {
        height: 100vh; /* Full Height Takeover */
        padding: 20px 20px;
    }

    .search-input {
        font-size: 1.5rem; /* Smaller font for mobile */
    }

    /* Hide Desktop Grid, Show Mobile List */
    .desktop-suggestions {
        display: none;
    }

    .mobile-suggestions {
        display: block;
    }

    .suggestion-list {
        list-style: none;
        padding: 0;
    }

    .suggestion-list li {
        border-bottom: 1px solid #f0f0f0;
    }

    .suggestion-list a {
        display: block;
        padding: 15px 0;
        text-decoration: none;
        color: #0D261F;
        font-size: 1.1rem;
    }
}


/* --- 1. The Overlay --- */
.auth-overlay {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 2900;
    display: none; /* Hidden by default */
}
.auth-overlay.active { display: block; }

/* --- 2. The Panel Container --- */
.auth-panel {
    position: fixed;
    z-index: 2950;
    background: #ffffff;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    
    /* Start Hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);

    /* DESKTOP POSITION */
    top: 90px;
    right: 5%;
    width: 320px;
    border-radius: 12px;
    border: 1px solid #eee;
}

.auth-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- 3. Guest View Styles --- */
.auth-header { text-align: center; padding: 25px; background: #f9f9f9; }
.auth-title { color: #C5A059; margin: 0; font-family: serif; }
.login-form { padding: 20px; }
.input-group input { 
    width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ddd; 
}
.auth-btn {
    width: 100%; padding: 12px; background: #0D261F; color: white; border: none; cursor: pointer;
}

/* --- 4. Member View Styles --- */
.profile-header { display: flex; align-items: center; padding: 20px; background: #0D261F; color: white; }
.avatar-circle {
    width: 45px; height: 45px; background: #C5A059; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin-right: 15px; font-weight: bold;
}
.quick-stats { display: flex; border-bottom: 1px solid #eee; }
.stat-item { flex: 1; text-align: center; padding: 15px; text-decoration: none; color: #333; border-right: 1px solid #eee; }
.action-list { list-style: none; padding: 0; margin: 0; }
.action-list a { display: block; padding: 15px 20px; text-decoration: none; color: #333; border-bottom: 1px solid #f5f5f5; }

/* --- 5. Mobile Responsiveness --- */
@media (max-width: 768px) {
    .auth-panel {
        top: auto; 
        bottom: 0; /* Stick to bottom */
        right: 0; left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%); /* Start below screen */
    }
    .auth-panel.active { transform: translateY(0); }
}

