/* =========================================
   Contact Page Specific Styles - Fully Responsive
   ========================================= */

/* --- 1. Variables & Root --- */
:root {
    --bs-primary: #4be277;
    --bs-primary-rgb: 75, 226, 119;
    --bg-dark: #0B0B0F;
    --glass-bg: rgba(14, 21, 14, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* Add to your CSS file */
body.contact-page {
    padding-top: 70px; /* Offset equal to navbar height */
}

@media (min-width: 992px) {
    body.contact-page {
        padding-top: 85px; /* Offset for desktop navbar */
    }
}

/* Material Symbols Overrides */
.material-symbols-outlined {
    vertical-align: middle;
    line-height: 1;
}

/* --- 2. Base Utility Classes & Typography --- */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-n1 { z-index: -1; }
.w-fit-content { width: max-content; }
.tracking-wide { letter-spacing: 0.05em; }
.fw-black { font-weight: 800; }
.extra-small { font-size: 0.75rem; }
.max-w-xl { max-width: 36rem; }
.max-w-md { max-width: 28rem; }
@media (min-width: 992px) { .max-w-lg-none { max-width: none; } }

/* Fluid Typography for Headings */
.display-5 { font-size: clamp(2rem, 5vw, 3rem) !important; }
.display-6 { font-size: clamp(1.75rem, 4vw, 2.5rem) !important; }

/* Text Utilities */
.text-primary {
    color: var(--bs-primary) !important;
    text-shadow: 0 0 20px rgba(75, 226, 119, 0.3);
}

/* --- 3. Animations & Effects --- */
@keyframes subtlePulse {
    0% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.1); }
    50% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.2); }
    100% { box-shadow: 0 0 10px rgba(34, 197, 94, 0.1); }
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--bs-primary);
    border-radius: 50%;
    animation: subtlePulse 2s infinite ease-in-out;
}
.pulse-dot.small-dot { width: 6px; height: 6px; }

.shadow-glow {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
    transition: box-shadow 0.3s ease;
}
.shadow-glow:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.banner-glow {
    background: rgba(75, 226, 119, 0.2);
    filter: blur(60px);
    max-width: 100vw; /* Ensures it doesn't break mobile layout */
}

/* --- 4. Glassmorphism System --- */
.glass-card {
    background: rgba(18, 22, 18, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(75, 226, 119, 0.2);
}

.glass-inner {
    background: rgba(11, 11, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- 5. Navigation --- */
.glass-navbar {
    background: rgba(11, 11, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.custom-hover:hover {
    color: var(--bs-primary) !important;
    opacity: 1 !important;
    transition: 0.3s ease;
}

/* Mobile Bottom Nav Fixed */
.mobile-bottom-nav {
    height: 64px;
    background: rgba(18, 22, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.mobile-bottom-nav .nav-item {
    transition: all 0.2s ease;
}
.mobile-bottom-nav .nav-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
.mobile-bottom-nav .nav-item:active {
    transform: scale(0.9);
}

/* --- 6. Forms & Inputs --- */
.form-control {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0 !important;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    font-size: 16px !important; /* 16px prevents iOS Safari auto-zoom */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.form-control:focus {
    background-color: rgba(11, 11, 15, 0.8) !important;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(75, 226, 119, 0.15) !important;
    outline: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    max-height: 250px;
}

/* --- 7. Buttons --- */
.btn-primary {
    background: linear-gradient(135deg, #4be277 0%, #34d399 100%) !important;
    border: none !important;
    color: #064e3b !important;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(75, 226, 119, 0.3) !important;
    filter: brightness(1.1);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(75, 226, 119, 0.2) !important;
}

.custom-btn-outline {
    background: rgba(26, 34, 26, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}
.custom-btn-outline:hover {
    background: rgba(51, 59, 51, 0.9);
    border-color: rgba(34, 197, 94, 0.5) !important;
    transform: translateY(-2px);
}
.custom-btn-outline:hover span, 
.custom-btn-outline:hover {
    color: var(--bs-primary) !important;
}

/* --- 8. Map Section --- */
.map-container {
    height: 100%; /* Responds to min-height from inline style */
}

.map-info-card {
    max-width: 350px;
    width: calc(100% - 32px); /* Fallback for very small mobiles */
}
@media (min-width: 768px) {
    .map-info-card { width: calc(100% - 48px); }
}

/* --- 9. Shop Vibe / Bento Grid Section --- */
.vibe-image-wrapper {
    height: 250px; /* Base height for mobile */
}
@media (min-width: 576px) { .vibe-image-wrapper { height: 300px; } }
@media (min-width: 992px) { .vibe-image-wrapper { height: 400px; } }

.vibe-img {
    filter: grayscale(20%);
    transition: filter 0.7s ease;
}
.vibe-image-wrapper:hover .vibe-img {
    filter: grayscale(0%);
}
.vibe-overlay {
    background: linear-gradient(to right, rgba(11, 11, 15, 0.8), transparent, transparent);
}

/* Divider */
.border-start {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* --- 10. Floating Buttons Overrides for Mobile --- */
/* Pushes the chat & up buttons higher on mobile so they don't cover the bottom nav */
@media (max-width: 767.98px) {
    .position-fixed[style*="bottom: 32px"] {
        bottom: 85px !important; 
        right: 16px !important; 
    }
    #backToTop {
        bottom: 85px !important;
        left: 16px !important;
    }
    
    /* Make tooltip disappear on mobile to avoid screen overlap */
    #chatTooltip {
        display: none !important;
    }
}

