/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #b90e0e;
    --primary-dark: #8b0000;
    --accent: #ff4d4d;
    --bg: #f8f9fa;            
    --surface: #ffffff;       
    --text-main: #1f2937;     
    --text-muted: #6b7280;    
    --border: rgba(0,0,0,0.08);
    --nav-glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --container-width: 1600px;
    --radius: 12px;           
}

body.dark-mode {
    --bg: #111827;            
    --surface: #1f2937;       
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: rgba(255,255,255,0.1);
    --nav-glass: rgba(17, 24, 39, 0.85);
}

/* HELPER CLASS: Hide Scroll Button when Lightbox is Open */
body.lightbox-open #back-to-top {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: transparent; 
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto; 
    display: block; 
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem; 
}

.center { text-align: center; }

/* =========================================
   2. HERO BACKGROUND
   ========================================= */
#hero-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -10; background: #000;
}

#hero-background img {
    width: 100%; height: 100%; object-fit: cover;
    filter: blur(0px); 
    opacity: 0.9;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(
        180deg, 
        rgba(185, 14, 14, 0.4) 0%, 
        rgba(0, 0, 0, 0.85) 100%
    );
    backdrop-filter: blur(2px);
}

/* =========================================
   3. NAVIGATION (Desktop Default)
   ========================================= */
nav {
    position: sticky; top: 0; 
    z-index: 1000; 
    background: var(--nav-glass);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.nav-content {
    max-width: var(--container-width); margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: grid;
    /* Grid Layout: Left Spacer | Center Logo | Right Links */
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

/* Spacer takes up left side to balance the links on the right */
.nav-spacer {
    display: block;
    width: 100%;
}

.brand-logo { justify-self: center; }

/* Logo Image Sizing */
.logo-img { 
    height: 60px;
    width: auto; 
    object-fit: contain; 
}

.nav-links { 
    justify-self: end;
    display: flex; gap: 30px; align-items: center; 
}

.nav-links a {
    text-decoration: none; color: var(--text-main);
    font-weight: 600; font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.shop-btn {
    background: var(--primary); color: white !important;
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.9rem; transition: background 0.3s;
}
.shop-btn:hover { background: var(--primary-dark); }

/* =========================================
   4. HERO HEADER (Desktop)
   ========================================= */
header {
    /* 1. Pull header up behind the sticky nav so it starts at top of screen */
    margin-top: -90px; 

    /* 2. Add padding to clear the nav visuals */
    padding-top: 90px;
    
    /* 3. Add EQUAL bottom padding to force the "center" to be the true middle */
    padding-bottom: 90px;

    /* 4. Full Viewport Height */
    min-height: 100svh; 
    
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    text-align: center; 
    color: white;
}

.hero-text-container {
    position: relative; z-index: 10;
    max-width: 900px; padding: 0 20px;
}

.hero-subtitle {
    display: block; font-size: 0.9rem; letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 1rem; opacity: 0.9; font-weight: 600;
}

header h1 {
    font-size: clamp(3rem, 6vw, 6rem); 
    line-height: 1.1; margin-bottom: 1.5rem;
    font-weight: 800; letter-spacing: -1px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

header p { font-size: 1.25rem; opacity: 0.9; margin-bottom: 2.5rem; max-width: 600px; margin-inline: auto; }

.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: 14px 32px; border-radius: 8px; font-weight: 600;
    text-decoration: none; transition: all 0.2s ease;
    display: inline-block; font-size: 1rem;
}
.btn-primary {
    background: var(--primary); color: white;
    box-shadow: 0 4px 15px rgba(185, 14, 14, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); }

.btn-secondary {
    background: rgba(255,255,255,0.1); color: white;
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); }
/* =========================================
   5. SECTIONS
   ========================================= */
main { background: var(--bg); position: relative; z-index: 1; } 

section { padding: 6rem 0; }

.section-tag {
    display: inline-block; font-size: 0.85rem; font-weight: 700;
    color: var(--primary); text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.5rem; color: var(--text-main); margin-bottom: 1.5rem;
    font-weight: 800; line-height: 1.2;
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; 
    margin-top: 3rem;
}

.service-card {
    flex: 0 1 350px;
    background: var(--surface);
    padding: 2.5rem; 
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}
.service-card h3 { margin-bottom: 0.5rem; font-size: 1.35rem; color: var(--text-main); }
.service-card p { color: var(--text-muted); font-size: 1rem; }

#gallery { background-color: var(--bg); position: relative; z-index: 10; padding-bottom: 6rem; }
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px; 
    margin-top: 2rem;
}

.gallery-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 4/3; cursor: pointer;
    flex: 0 1 350px;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.overlay {
    position: absolute; bottom: 0; left: 0; width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px; color: white; opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }

/* =========================================
   6. CONTACT SECTION
   ========================================= */
#contact {
    position: relative; 
    background: linear-gradient(135deg, var(--primary) 0%, #1a1a1a 100%);
    padding-top: 5rem; padding-bottom: 0; z-index: 1;
}

.curve-top {
    height: 80px;
    background: var(--bg);
    border-bottom-left-radius: 50% 100%;
    border-bottom-right-radius: 50% 100%;
    position: absolute; top: 0; left: 0; width: 100%; z-index: 2; 
}

.contact-wrapper { padding: 3rem 0 5rem 0; display: flex; gap: 80px; color: white; }
.contact-header { text-align: center; margin-bottom: 3rem; position: relative; z-index: 3; padding-top: 20px; }
.contact-header h2, .contact-header p { color: white; }

.contact-card {
    flex: 1; background: white; 
    padding: 3rem; border-radius: 16px; color: #333;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.input-group { margin-bottom: 1.2rem; }
.input-group label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 5px; color: #555; }
.input-group input, .input-group textarea {
    width: 100%; padding: 14px;
    border: 1px solid #ddd; border-radius: 6px;
    font-family: inherit; transition: border 0.2s;
}
.input-group input:focus, .input-group textarea:focus { outline: none; border-color: var(--primary); }
.submit-btn {
    width: 100%; background: var(--primary); color: white;
    border: none; padding: 16px; border-radius: 6px;
    font-weight: bold; cursor: pointer; margin-top: 10px; font-size: 1rem;
}

/* Contact Info - Desktop Grid */
.contact-info { 
    flex: 1; 
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 30px; 
    align-content: center; 
}

.info-item { margin-bottom: 0; }
.info-item h3 { font-size: 1.2rem; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; }
.info-item p, .info-item a { color: white; font-size: 1.1rem; line-height: 1.5; text-decoration: none; }
.info-item a { font-weight: 700; }

.map-box {
    grid-column: 1 / -1; 
    height: 250px; 
    border-radius: 12px; 
    overflow: hidden;
    position: relative; 
    border: 2px solid rgba(255,255,255,0.2); 
    cursor: pointer;
    margin-top: 10px;
}

.map-box iframe { 
    width: 100%; height: 100%; border: 0; 
    pointer-events: none; filter: grayscale(20%) contrast(1.1); transition: filter 0.3s;
}
.map-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.3); display: flex; justify-content: center; align-items: center; 
    z-index: 10; transition: opacity 0.3s ease;
}
.map-overlay span { 
    transform: translateY(-80px);
    background: var(--primary); color: white; 
    padding: 12px 28px; border-radius: 50px; 
    font-weight: bold; font-size: 0.95rem; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4); pointer-events: none;
}
.map-box.active .map-overlay { opacity: 0; pointer-events: none; }
.map-box.active iframe { pointer-events: auto; filter: none; }

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    background: #0a0a0a; color: #888;
    padding: 2rem 0; position: relative; z-index: 2;
}
footer .container { display: flex; justify-content: space-between; align-items: center; }
.footer-links a { color: #888; text-decoration: none; margin-left: 20px; font-size: 0.9rem; }
.footer-links a:hover { color: white; }

/* =========================================
   8. INTERACTIVE COMPONENTS
   ========================================= */
.fab {
    position: fixed; bottom: 20px; left: 20px; width: 45px; height: 45px;
    border-radius: 50%; border: none; cursor: pointer; z-index: 2000;
    background: var(--surface); color: var(--text-main);
    box-shadow: var(--shadow-md); display: grid; place-items: center; font-size: 1.2rem;
}
#back-to-top { left: auto; right: 20px; background: var(--primary); color: white; }

/* Lightbox Overlay */
#lightbox { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.98); 
    z-index: 2147483647 !important; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    touch-action: none;
    padding: 0;
}

#lightbox img { 
    max-width: 95vw; 
    max-height: 90vh; 
    width: auto; 
    height: auto;
    border-radius: 4px; 
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    user-select: none;
}

#lightbox-caption { 
    color: #ccc; 
    margin-top: 15px; 
    font-size: 1rem; 
    text-align: center;
    font-weight: 500;
}

/* Lightbox Close Button */
#lightbox-close { 
    position: fixed; 
    top: 90px;      
    right: 20px; 
    width: 50px; 
    height: 50px;
    background: rgba(50, 50, 50, 0.9); 
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: white; 
    font-size: 2rem; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4px; 
    cursor: pointer; 
    z-index: 2147483647 !important; 
    transition: all 0.2s ease;
}

#lightbox-close:hover { 
    background: var(--primary); 
    border-color: var(--primary);
    transform: scale(1.1); 
}

.lightbox-nav {
    position: fixed; 
    top: 50%; 
    transform: translateY(-50%);
    width: 60px; 
    height: 60px;
    background: rgba(0,0,0,0.4); 
    border-radius: 50%;
    border: none;
    color: white; 
    font-size: 2rem; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    cursor: pointer;
    z-index: 2147483647 !important;
    transition: all 0.2s;
    user-select: none;
}

.lightbox-nav:hover { 
    background: var(--primary); 
    transform: translateY(-50%) scale(1.1);
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 900px) {
    
    /* --- NAVIGATION --- */
    .nav-content { 
        display: flex; flex-wrap: wrap; justify-content: center; 
        padding: 0.5rem 1rem; gap: 5px;
    }
    .nav-spacer { display: none; }
    .brand-logo { 
        order: 1; flex: 0 0 100%; text-align: center; margin-bottom: 5px; display: block; 
    }
    .logo-img { height: 50px; width: auto; margin: 0 auto; }
    .nav-links { 
        order: 2; width: 100%; justify-content: center; flex-wrap: wrap; 
        gap: 8px; padding-top: 0; padding-bottom: 10px;
    }
    nav { position: sticky; top: -60px; }
    .nav-links a {
        background: var(--surface); padding: 8px 12px;
        border-radius: 6px; font-size: 0.85rem;
        border: 1px solid var(--border); box-shadow: var(--shadow-sm);
        flex: 1 1 auto; text-align: center; white-space: nowrap;
    }
    .shop-btn { 
        background: var(--primary) !important; color: white !important; border: none;
        flex: 1 1 auto; text-align: center;
    }

    /* --- HERO HEADER (TRUE CENTER FIX) --- */
    header {
        /* 1. Pull header up behind the taller mobile nav */
        margin-top: -140px; 
        
        /* 2. Add matching top padding */
        padding-top: 140px;
        
        /* 3. Add EQUAL bottom padding to force exact center alignment */
        padding-bottom: 140px;
        
        min-height: 100svh; 
    }

    .hero-text-container { padding: 0 15px; }

    /* Compact Typography */
    .hero-subtitle { margin-bottom: 0.2rem; font-size: 0.75rem; letter-spacing: 1px; }
    header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; line-height: 1.1; }
    header p { font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.4; max-width: 100%; }

    /* --- LAYOUT ADJUSTMENTS --- */
    .curve-top { height: 30px; } 
    .container { padding: 0 1.25rem; } 
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-visual { order: -1; }
    .contact-wrapper { flex-direction: column-reverse; gap: 40px; }
    .contact-info { display: flex; flex-direction: column; gap: 30px; }
    .map-box { height: 300px; }
    .info-item a { font-size: 1.4rem; }
    footer .container { flex-direction: column; gap: 10px; text-align: center; }
    .footer-links a { margin: 0 10px; }

    /* --- LIGHTBOX --- */
    #lightbox { padding-top: 20px; padding-bottom: 80px; }
    #lightbox img { max-width: 95vw; max-height: 70vh; }
    #lightbox-close {
        top: auto; bottom: 30px; right: auto; left: 50%;        
        transform: translateX(-50%); width: 60px; height: 60px;
        background: rgba(255, 255, 255, 0.2); border: 2px solid white; font-size: 2.5rem;
    }
    #lightbox-close:hover { background: var(--primary); transform: translateX(-50%) scale(1.1); }
    .lightbox-nav { width: 45px; height: 45px; font-size: 1.5rem; }
}