/*
======================================================
    MODERN UI UPGRADE - DEFINITIVE STYLESHEET (v9.3 - Upgraded Mobile Menu)
======================================================
*/

/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --primary-dark: #2c3e50;
    --primary-accent: #fca311;
    --primary-light: #ffffff;
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --background-color: #f4f7f6;
    --border-color: #e5e7eb;
    --sti-blue: #0055A4;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition-fast: all 0.2s ease-in-out;
    --transition-medium: all 0.3s ease-in-out;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--background-color); font-family: 'Poppins', sans-serif; color: var(--text-dark); line-height: 1.7; }
body.nav-open { overflow: hidden; }
a { text-decoration: none; color: inherit; }
.page-wrapper { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main.page-content { flex-grow: 1; }
.section-title { text-align: center; font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 50px; color: var(--primary-dark); font-weight: 700; position: relative; padding-bottom: 15px; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--primary-accent); border-radius: 2px; }

/* 
======================================================
    2. HEADER REDESIGN (DESKTOP & MOBILE)
======================================================
*/
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 2em; width: 100%; height: 85px;
    background: transparent; position: fixed; top: 0; left: 0;
    z-index: 1000; transition: var(--transition-medium);
}
header.scrolled {
    background: var(--primary-dark); height: 70px;
    box-shadow: var(--shadow-md);
}
header .logo { height: 100%; display: flex; align-items: center; gap: 12px; }
header .logo img { height: 60px; transition: var(--transition-medium); }
header.scrolled .logo img { height: 55px; }
header .logo:hover img { transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(252, 163, 17, 0.6)); }
header .logo-text { font-family: 'Candal', serif; font-size: 1.5em; color: var(--text-light); text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
header .logo-text span { color: var(--primary-accent); }
header.scrolled .logo-text { text-shadow: none; }
.menu-toggle { display: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; z-index: 1001; }
header.scrolled .menu-toggle { color: var(--text-light); }

header .nav { display: flex; align-items: center; list-style: none; height: 100%; margin: 0; padding: 0; }
header .nav a { color: var(--text-light); font-weight: 500; padding: 0 20px; position: relative; text-shadow: 0 1px 3px rgba(0,0,0,0.4); transition: color 0.3s ease; display: flex; align-items: center; height: 100%; }
header.scrolled .nav a { text-shadow: none; }
header .nav > li > a:not(.user-menu-toggle)::after { content: ''; position: absolute; bottom: 20px; left: 20px; width: 0; height: 3px; background: var(--primary-accent); transition: width 0.3s ease; }
header .nav > li > a:not(.user-menu-toggle):hover::after { width: calc(100% - 40px); }

header .nav .user-menu { position: relative; margin-left: auto; height: 100%; }
header .nav .user-menu-toggle { gap: 8px; }
header .nav .dropdown-menu {
    display: none; position: absolute; top: 70px; right: 0;
    width: 200px; background: var(--primary-light); border-radius: 8px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--border-color);
    list-style: none; padding: 8px; z-index: 101;
}
header .nav .user-menu:hover .dropdown-menu { display: block; }
header .nav .dropdown-menu a { display: block; padding: 12px 15px; height: auto; color: var(--text-dark) !important; text-shadow: none !important; white-space: nowrap; border-radius: 6px; transition: var(--transition-fast); }
header .nav .dropdown-menu a:hover { background: #f3f4f6; color: var(--primary-dark) !important; }
header .nav .dropdown-menu a.logout:hover { background-color: #e74c3c; color: #fff !important; }

/* 
======================================================
    3. ALL OTHER SECTIONS (Hero, Stepper, etc.)
======================================================
*/
.hero-section { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; background-size: cover; background-position: center; color: var(--primary-light); }
.hero-section::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(360deg, rgba(44, 62, 80, 0.7) 0%, rgba(44, 62, 80, 0.4) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 950px; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); text-shadow: 0 2px 8px rgba(0,0,0,0.6); font-weight: 700; line-height: 1.2; }
.hero-content .subtitle { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 400; text-shadow: 0 1px 4px rgba(0,0,0,0.7); margin: 1rem 0 2.5rem 0; opacity: 0.95; }
.button-group { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.choose-btn { padding: 18px 40px; font-size: 1rem; font-weight: 600; border-radius: 50px; display: inline-flex; align-items: center; gap: 12px; border: 2px solid; box-shadow: var(--shadow-sm); transition: var(--transition-medium); }
.choose-btn.lost { background-color: var(--primary-accent); border-color: var(--primary-accent); color: var(--primary-dark); }
.choose-btn.found { background-color: transparent; border-color: var(--text-light); color: var(--text-light); }
.choose-btn:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.2), 0 0 20px rgba(252, 163, 17, 0.3); }
.choose-btn.found:hover { background-color: var(--primary-light); color: var(--primary-dark); }
.stepper-section { padding: 120px 20px; }
.stepper-container { max-width: 800px; margin: 0 auto; background: var(--primary-light); border-radius: 24px; padding: 40px 50px; box-shadow: var(--shadow-lg); border: none; }
.stepper-header { display: flex; align-items: center; margin-bottom: 30px; }
.step-marker { width: 45px; height: 45px; border-radius: 50%; border: 3px solid var(--border-color); color: #999; display: flex; align-items: center; justify-content: center; font-weight: bold; font-family: 'Candal', sans-serif; transition: var(--transition-medium); flex-shrink: 0; background: #fff; }
.step-marker.active { border-color: var(--primary-accent); background: var(--primary-accent); color: var(--primary-dark); transform: scale(1.1); box-shadow: 0 0 15px rgba(252, 163, 17, 0.5); }
.step-marker.complete { border-color: var(--primary-accent); background: var(--primary-accent); color: var(--primary-dark); }
.check-icon { width: 20px; height: 20px; stroke: var(--primary-dark); stroke-width: 3; }
.step-connector { flex-grow: 1; height: 4px; background-color: var(--border-color); }
.step-connector-fill { width: 0; height: 100%; background-color: var(--primary-accent); transition: width 0.4s ease; }
.step-connector-fill.complete { width: 100%; }
.step-pane { display: none; text-align: center; animation: fadeIn 0.5s; }
.step-pane.active { display: block; }
.step-pane h3 { color: var(--primary-dark); margin-bottom: 10px; font-size: 1.8rem; }
.step-pane p { line-height: 1.8; color: #555; max-width: 500px; margin: 0 auto; }
.stepper-footer { display: flex; justify-content: space-between; margin-top: 30px; }
.stepper-btn { padding: 12px 30px; border-radius: 50px; font-weight: bold; font-size: 1rem; cursor: pointer; transition: var(--transition-medium); }
#stepper-back { background: transparent; border: 2px solid var(--border-color); color: #757575; }
#stepper-back:hover { background: #f0f0f0; border-color: #ccc; }
#stepper-next { background-color: var(--primary-accent); border: 2px solid var(--primary-accent); color: var(--primary-dark); }
#stepper-next:hover { opacity: 0.9; box-shadow: var(--shadow-sm); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.location-section { padding: 120px 20px; background: #fff; }
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; max-width: 1400px; margin: 0 auto; }
.location-card { height: 400px; border-radius: 20px; color: #fff; position: relative; overflow: hidden; background-size: cover; background-position: center; box-shadow: var(--shadow-md); display: flex; flex-direction: column; justify-content: flex-end; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.location-card:hover { transform: scale(1.03) translateY(-10px); box-shadow: var(--shadow-lg), 0 0 30px rgba(44, 62, 80, 0.1); }
.card-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.3) 100%); transition: var(--transition-medium); }
.location-card:hover .card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.4) 100%); }
.card-content { position: relative; z-index: 2; padding: 2rem; transform: translateY(0); opacity: 1; transition: var(--transition-medium); }
.card-content h3 { font-size: 2rem; font-weight: 700; text-shadow: 0 2px 5px rgba(0,0,0,0.7); margin: 0 0 1rem 0; color: #fff; }
.card-stats { display: flex; gap: 1.5rem; font-weight: 500; }
.card-stats span { display: flex; align-items: center; gap: 0.5rem; }
.fa-circle-minus { color: #ff6b6b; }
.fa-circle-plus { color: #51cf66; }
.site-footer { background-color: var(--primary-dark); color: rgba(255, 255, 255, 0.7); padding: 80px 0 0 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; }
.footer-about .footer-logo { display: flex; align-items: center; gap: 15px; margin-bottom: 1.5rem; }
.footer-about .footer-logo img { height: 50px; }
.footer-about h4 { font-size: 1.2rem; color: #fff; margin: 0; }
.footer-about p { line-height: 1.8; font-size: 0.95rem; }
.footer-links h4, .footer-contact h4 { font-size: 1.2rem; color: #fff; margin-bottom: 1.5rem; position: relative; padding-bottom: 10px; }
.footer-links h4::after, .footer-contact h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: var(--primary-accent); }
.footer-links ul { list-style: none; }
.footer-links ul a { display: block; margin-bottom: 12px; transition: var(--transition-fast); }
.footer-links ul a:hover { color: var(--primary-accent); transform: translateX(5px); }
.footer-contact p { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 1rem; }
.footer-contact p i { margin-top: 5px; color: var(--primary-accent); }
.footer-socials { display: flex; gap: 15px; margin-top: 2rem; }
.footer-socials a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); border-radius: 50%; color: #fff; transition: var(--transition-fast); }
.footer-socials a:hover { background: var(--primary-accent); color: var(--primary-dark); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding: 25px 20px; margin-top: 50px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; }
.fade-in-section { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* 
======================================================
    8. RESPONSIVE REDESIGN (MOBILE MENU)
======================================================
*/
@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr; }
    .stepper-section, .location-section { padding: 100px 20px; }
}

@media (max-width: 768px) {
    header { padding: 0 1rem; }
    
    /* === MOBILE MENU BUTTON REDESIGN STARTS HERE === */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(30, 30, 30, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        z-index: 1001;
        transition: transform 0.3s ease;
    }
    .menu-toggle .fa-bars {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    /* Create an 'X' using pseudo-elements for a smooth animation */
    .menu-toggle::before, .menu-toggle::after {
        content: '';
        position: absolute;
        width: 18px; /* Control the size of the X */
        height: 2px;
        background-color: white;
        transition: transform 0.3s ease, top 0.3s ease;
        border-radius: 2px;
    }
    .menu-toggle::before { transform: translateY(-6px); }
    .menu-toggle::after { transform: translateY(6px); }
    
    body.nav-open .menu-toggle {
        background: rgba(0,0,0,0.7);
    }
    body.nav-open .menu-toggle .fa-bars {
        opacity: 0; /* Hide the original hamburger icon */
        transform: rotate(180deg);
    }
    body.nav-open .menu-toggle::before {
        transform: rotate(45deg);
    }
    body.nav-open .menu-toggle::after {
        transform: rotate(-45deg);
    }
    /* === MOBILE MENU BUTTON REDESIGN ENDS HERE === */
    
    header .nav {
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 320px; height: 100%;
        background: var(--primary-dark);
        box-shadow: var(--shadow-lg);
        flex-direction: column; align-items: stretch;
        padding: 80px 20px 20px 20px;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        display: flex; margin-left: 0;
    }
    header .nav.showing {
        right: 0;
    }
    body.nav-open::before {
        content: ''; position: fixed; top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 999;
    }
    header .nav li { width: 100%; }
    header .nav a { padding: 15px; display: block; width: 100%; height: auto; text-shadow: none; justify-content: flex-start; gap: 15px; font-size: 1.1rem; }
    header .nav > li > a:hover { background: rgba(255, 255, 255, 0.05); border-radius: 8px; }
    header .nav > li > a:not(.user-menu-toggle)::after { display: none; }
    
    header .nav .user-menu { margin-left: 0; order: 1; }
    header .nav li:not(.user-menu) { order: 2; }
    
    header .nav .user-menu a {
        background: var(--primary-accent);
        color: var(--primary-dark) !important;
        font-weight: 600;
        border-radius: 8px;
        margin-bottom: 10px;
        text-align: center;
        justify-content: center;
    }
    header .nav li:not(.user-menu) a { background: rgba(255,255,255,0.1); }
    
    header .nav .dropdown-menu {
        display: block; position: static; width: 100%;
        box-shadow: none; border: none; border-radius: 0;
        padding: 10px 0 0 0; margin: 0;
        background: transparent;
    }
    header .nav .dropdown-menu a {
        padding-left: 30px !important;
        color: var(--text-light) !important;
    }
    header .nav .dropdown-menu a.logout:hover { background-color: #e74c3c !important; }

    .menu-toggle { display: flex; }
    .section-title { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content .subtitle { font-size: 1.1rem; }
}