/* ========================
   FLUID RESPONSIVE CSS
   Uses clamp() for fluid scaling
   ======================== */

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

html {
    font-size: 16px;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    text-align: center;
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: #f1f5f9;
    margin-top: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: clamp(1rem, 3vw, 1.5rem);
}

p, li {
    font-size: clamp(0.875rem, 2vw, 1rem);
    line-height: 1.6;
}

/* Navbar - Fluid */
.navbar {
    background: #ffffff;
    padding: clamp(0.5rem, 2vw, 1.125rem) clamp(1rem, 4vw, 2.25rem);
    box-shadow: 0 4px 16px rgba(30, 34, 43, 0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #f7c873;
}

.brand-logo img {
    height: clamp(35px, 8vw, 80px);
    width: auto;
    max-width: clamp(100px, 20vw, 200px);
    object-fit: contain;
    margin-right: clamp(0.5rem, 2vw, 1rem);
    background: #f8fafc;
    border-radius: 10px;
    padding: clamp(4px, 1vw, 8px);
    box-shadow: 0 2px 8px rgba(30,34,43,0.10);
    transition: transform 0.3s ease;
}

.brand-logo img:hover {
    transform: scale(1.05);
}

.brand-logo strong {
    color: #f7c873;
    font-size: clamp(0.875rem, 3vw, 1.625rem);
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-transform: uppercase;
}

/* Menu - Fluid */
.menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(8px, 3vw, 30px);
    flex-wrap: wrap;
    justify-content: center;
}

.menu a {
    color: #1a2233;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.7rem, 2vw, 1rem);
    transition: color 0.3s;
    padding: clamp(4px, 1vw, 8px);
}

.menu a:hover {
    color: #f7c873;
}

.menu a.staff-login-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    min-width: 2.2rem;
    height: 2.2rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.menu a.staff-login-icon::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234B5563' d='M12 12c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm0 2c-3.33 0-10 1.67-10 5v2h20v-2c0-3.33-6.67-5-10-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.menu a.staff-login-icon::after {
    content: "Staff Portal";
    position: absolute;
    left: 50%;
    top: calc(100% + 0.35rem);
    transform: translateX(-50%) translateY(0);
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.95);
    color: #f8fafc;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu a.staff-login-icon:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

.menu a.staff-login-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.menu.show {
    display: flex;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1000;
}

.menu-toggle div {
    width: clamp(20px, 5vw, 25px);
    height: 3px;
    background: #1a2233;
    margin: 3px 0;
    transition: 0.3s;
}

/* Image Slider - Fluid */
.slider-container {
    position: relative;
    width: 96%;
    max-width: 1200px;
    margin: clamp(1rem, 2vw, 2rem) auto;
    margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(30, 34, 43, 0.1);
    overflow: hidden;
}

.slider {
    display: grid;
    width: 100%;
}

.slide {
    grid-area: 1 / 1;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out, filter 0.8s ease-in-out;
    filter: blur(3px) brightness(0.9);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    filter: blur(0) brightness(1);
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Slider Navigation - Fluid */
.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: clamp(6px, 2vw, 15px) clamp(10px, 3vw, 20px);
    cursor: pointer;
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    z-index: 2;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.prev-btn {
    left: clamp(5px, 2vw, 20px) !important;
}

.next-btn {
    right: clamp(5px, 2vw, 20px) !important;
}

.slider-container:hover .prev-btn,
.slider-container:hover .next-btn {
    opacity: 1;
    visibility: visible;
}

/* Product Grid - Fluid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(140px, 35vw, 250px), 1fr));
    gap: clamp(10px, 3vw, 20px);
    margin-top: clamp(10px, 3vw, 20px);
    padding: 0 clamp(10px, 3vw, 20px);
}

.product-item {
    background: #f8fafc;
    padding: clamp(10px, 2vw, 18px);
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(30, 34, 43, 0.08);
    border: 1px solid #e3e7ee;
    transition: box-shadow 0.2s, transform 0.2s;
}

.product-item:hover {
    box-shadow: 0 8px 32px rgba(30, 34, 43, 0.16);
    transform: translateY(-4px) scale(1.03);
}

.product-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.product-item h3 {
    color: #1a2233;
    font-size: clamp(0.75rem, 2vw, 1.125rem);
    margin-top: clamp(0.5rem, 2vw, 0.75rem);
}

/* ========================
   CONTENT SECTIONS
   ======================== */
.content-section {
    padding: clamp(20px, 4vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
}

.content-section h2 {
    color: #ebc90c;
    margin-top: 0;
    text-align: center;
}

.content-section p {
    color: #cbd5e1;
    text-align: center;
    max-width: 800px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 18px);
    width: min(100%, 420px);
    margin: 0 auto;
    padding-top: clamp(10px, 2vw, 20px);
}

.login-form input {
    width: 100%;
    padding: clamp(12px, 1.5vw, 16px);
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 1rem;
}

.login-form input:focus {
    outline: none;
    border-color: #f7c873;
    box-shadow: 0 0 0 4px rgba(247, 200, 115, 0.18);
}

.login-form button.login-btn {
    width: 100%;
}


.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: clamp(20px, 3vw, 30px);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card h4 {
    margin-top: 0;
    color: #1e293b;
    margin-bottom: 10px;
}

.card p {
    margin-bottom: 0;
}

/* ========================
   RESPONSIVE BREAKPOINTS
   ======================== */

/* Tablet and below: 768px */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0.75rem;
    }
    
    .menu-toggle {
        display: flex !important;
    }
    
    .menu {
        display: none !important;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 0.5rem 0;
        gap: 0;
    }
    
    .menu.show {
        display: flex !important;
    }
    
    .menu a {
        font-size: 1rem;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    
    .menu a:last-child {
        border-bottom: none;
    }
}

/* Small Mobile: 400px */
@media (max-width: 400px) {
    .navbar {
        padding: 0.5rem;
    }
    
    .brand-logo img {
        margin-right: 0.25rem;
        padding: 0.25rem;
    }
    
    .menu a {
        font-size: 0.875rem;
    }
}