/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-color: #050505;       /* Deepest Black */
    --primary-gold: #C5A059;   /* Kanzima Gold */
    --text-light: #E6DCCA;     /* Champagne Text */
    --accent-bronze: #8C6E42;  /* Darker Gold/Bronze */
}

* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

/* =========================================
   2. TYPOGRAPHY & COMMON ELEMENTS
   ========================================= */
h1, h2, h3, .logo-text {
    font-family: 'Cinzel', serif;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Sections */
.content-section { position: relative; padding: 100px 5%; z-index: 10; background: var(--bg-color); }
.content-box-simple { text-align: center; max-width: 1200px; margin: 0 auto; }

/* Grid Layouts (Desktop Default) */
.grid-2 {
    display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
    align-items: center; max-width: 1200px; margin: 0 auto;
}

/* Standard Card */
.card {
    background: #0a0a0a; padding: 50px; border: 1px solid rgba(197, 160, 89, 0.2);
    text-align: center; transition: transform 0.3s; position: relative;
}
.card:hover { transform: translateY(-5px); border-color: var(--primary-gold); }
.card-divider { height: 1px; width: 60px; background: var(--primary-gold); margin: 25px auto; }

/* Gold Corners */
.corner {
    position: absolute; width: 20px; height: 20px;
    border: 1px solid var(--primary-gold); transition: 0.4s ease;
}
.corner.top.left { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.corner.top.right { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.corner.bottom.left { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.corner.bottom.right { bottom: -5px; right: -5px; border-left: none; border-top: none; }
.card:hover .corner { width: 30px; height: 30px; border-color: #fff; }

/* =========================================
   3. HEADER & NAVIGATION
   ========================================= */
header {
    background-color: rgba(5, 5, 5, 0.95);
    padding: 10px 5%; position: fixed; width: 100%; top: 0; z-index: 2000;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2); backdrop-filter: blur(10px);
}

.logo-container { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    position: relative; 
}

.logo-img { height: 50px; width: auto; }
.logo-text-group { display: flex; flex-direction: column; justify-content: center; line-height: 1; }

/* Desktop Navigation */
nav ul { display: flex; list-style: none; gap: 30px; }
nav a { font-size: 0.9rem; letter-spacing: 1px; position: relative; padding-bottom: 5px; }
nav a:hover, nav a.active { color: var(--primary-gold); }

/* Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2001; /* Above mobile menu */
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-gold);
}

/* =========================================
   4. FOOTER & ICONS
   ========================================= */
footer {
    padding: 30px; text-align: center; border-top: 1px solid var(--accent-bronze);
    font-size: 0.9rem; color: #666; background: #050505;
}

.whatsapp-float {
    position: fixed; bottom: 30px; left: 30px; background: #25D366; color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 30px; z-index: 10000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: transform 0.3s ease;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* =========================================
   5. UI ELEMENTS (Cursor, Buttons)
   ========================================= */
.lux-btn {
    position: relative; display: inline-block; padding: 0; background: transparent;
    border: 1px solid rgba(197, 160, 89, 0.3); color: var(--primary-gold);
    font-family: 'Cinzel', serif; font-size: 0.9rem; letter-spacing: 2px;
    text-transform: uppercase; cursor: pointer; overflow: hidden;
}
.btn-content { display: block; transition: transform 0.4s ease; }
.btn-text-primary, .btn-text-secondary { display: block; padding: 15px 40px; }
.btn-text-secondary { position: absolute; top: 100%; left: 0; width: 100%; color: #000; }
.lux-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-gold); transform: scaleY(0); transform-origin: bottom;
    transition: transform 0.4s ease; z-index: -1;
}
.lux-btn:hover .btn-content { transform: translateY(-100%); }
.lux-btn:hover::before { transform: scaleY(1); }

/* Custom Cursor */
.cursor-dot {
    width: 6px; height: 6px; background-color: var(--primary-gold);
    border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none;
    z-index: 9999; transform: translate(-50%, -50%); box-shadow: 0 0 10px var(--primary-gold);
}
.cursor-circle {
    width: 40px; height: 40px; border: 1px solid rgba(197, 160, 89, 0.6);
    border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none;
    z-index: 9998; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s;
}
body.hovering .cursor-circle {
    width: 60px; height: 60px; background-color: rgba(197, 160, 89, 0.05);
    border-color: var(--primary-gold);
}

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #050505; z-index: 9999; display: flex; flex-direction: column;
    justify-content: center; align-items: center; transition: opacity 0.5s ease;
}
.needle-svg { width: 50px; height: 100px; animation: bounce 1s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* Hero Placeholders (Default for Desktop) */
.services-hero, .about-hero {
    height: 50vh;
    background-size: cover; background-position: center;
    position: relative; display: flex; justify-content: center; align-items: center; text-align: center;
}
.services-hero { background-image: url('../images/services-hero.jpg'); }
.about-hero { background-image: url('../images/about-hero.jpg'); }


/* =========================================================================
   6. RESPONSIVE ENGINE (Using Your Standard Queries)
   ========================================================================= */

/* ##Device = Desktops
  ##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
  /* Default Styles Apply - No overrides needed */
}

/* ##Device = Laptops, Desktops
  ##Screen = B/w 1025px to 1280px
*/
@media (min-width: 1025px) and (max-width: 1280px) {
  /* Minor adjustments for smaller laptops */
  .grid-2 { gap: 30px; }
  h1 { font-size: 3.5rem; }
}

/* ##Device = Tablets, Ipads (portrait & landscape)
  ##Screen = B/w 768px to 1024px
  ##FUNCTION: Activates Hamburger, Stacked layouts
*/
@media (min-width: 768px) and (max-width: 1024px) {
    
    /* 1. Header & Nav - Enable Hamburger */
    header { padding: 15px 20px; }
    .logo-img { height: 40px; }
    .hamburger { display: block; }
    .nav-menu {
        position: fixed; left: -100%; top: 0; width: 100%; height: 100vh;
        background-color: #000; display: flex; flex-direction: column;
        justify-content: center; align-items: center; transition: 0.4s; z-index: 1999;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 40px; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* 2. Layouts */
    .grid-2 { gap: 20px; }
    .process-hero { height: 50vh !important; }
    .hero-wrapper { height: 60vh !important; }
}

/* ##Device = Low Resolution Tablets, Mobiles (Landscape)
  ##Screen = B/w 481px to 767px
*/
@media (min-width: 481px) and (max-width: 767px) {
    /* Same Mobile Logic as below, but slightly wider */
    .grid-2 { display: flex; flex-direction: column; gap: 40px; }
    .card { width: 90% !important; margin: 0 auto; }
    .hamburger { display: block; }
    
    /* Nav Menu */
    .nav-menu { position: fixed; left: -100%; top: 0; width: 100%; height: 100vh; background: #000; z-index: 1999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.4s; }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 30px; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Banners */
    .hero-wrapper { height: 70vh !important; }
    .process-hero { height: 50vh !important; }
}

/* ##Device = Most of the Smartphones Mobiles (Portrait)
  ##Screen = B/w 320px to 480px
  ##FUNCTION: CRITICAL MOBILE FIXES (Process, Banners, Stacking)
*/
@media (min-width: 320px) and (max-width: 480px) {
    
    /* 1. GLOBAL LAYOUT RESET */
    .grid-2 { display: flex; flex-direction: column; gap: 30px; }
    .card { width: 95% !important; margin: 0 auto; padding: 30px 20px; }
    .content-section { padding: 50px 5%; }
    
    /* 2. HEADER & NAV */
    header { padding: 15px; }
    .logo-img { height: 35px; }
    .logo-text { font-size: 1rem !important; }
    /* .logo-gif { display: none; } <-- Removed this so it doesn't hide the new needle */
    
    .hamburger { display: block; }
    .nav-menu {
        position: fixed; left: -100%; top: 0; width: 100%; height: 100vh;
        background-color: #000; display: flex; flex-direction: column;
        justify-content: center; align-items: center; transition: 0.4s; z-index: 1999;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 30px; }
    .nav-menu a { font-size: 1.5rem; font-family: 'Cinzel', serif; }
    
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* 3. HERO BANNER FIXES (Prevent Zoom) */
    .hero-wrapper { height: 60vh !important; } /* Home Page */
    .process-hero { 
        height: 40vh !important; 
        background-attachment: scroll !important; /* Fixes zoom on iOS */
        background-position: center !important;
    }
    .services-hero, .about-hero { height: 40vh !important; }
    .gallery-hero { height: 40vh !important; background-attachment: scroll !important; }
    .map-hero { height: 40vh !important; margin-top: 75px; }

    /* 4. PROCESS PAGE SPECIFIC FIXES */
    /* Fix Image Cropping: Force auto height so full image shows */
    .step-image-wrapper { height: auto !important; width: 100% !important; }
    .step-img { height: auto !important; width: 100% !important; }
    
    /* Fix Layout Stacking */
    .swap-desktop { flex-direction: column !important; } 
    .step-content { text-align: center; padding: 0; order: 1; }
    .step-image-wrapper { order: 2; margin-top: 20px; }
    
    /* Fix Text Visibility */
    .reveal-line { opacity: 1 !important; transform: translateY(0) !important; }
    .step-number { font-size: 3.5rem !important; }

    /* 5. CONTACT PAGE FIXES */
    .contact-overlay-container { margin-top: 0 !important; padding-top: 30px !important; }
    .royal-card { width: 95% !important; }

    /* 6. TYPOGRAPHY SCALING */
    h1 { font-size: 2.2rem !important; }
    .hero-content h1, .hero-text h1 { font-size: 2rem !important; line-height: 1.2; }
    p { font-size: 1rem !important; }
    
    /* 7. DISABLE CURSOR (Touch Devices) */
    .cursor-dot, .cursor-circle { display: none !important; }
    * { cursor: auto !important; }
}

/* =========================================
   NEEDLE STYLING (NEW)
   ========================================= */
.header-needle-gif {
    height: 50px; 
    width: auto;
    margin-left: 10px; /* Space from the text */
    display: block;
    mix-blend-mode: screen; /* Helps blend if gif has black bg */
}

/* Update Needle for Mobile */
@media (max-width: 1024px) {
    .header-needle-gif {
        height: 35px;
        margin-left: 5px;
    }
}
