/* Existing styles with further changes */

/* Navigation Container */
.nav-container {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

/* Style for the logo container */
.nav-logo {
    text-align: center;
}

/* Hamburger Menu Button - Hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #003066;
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
}

/* Set the navbar background color */
nav {
    background-color: #003066; /* Xlent Foods brand blue */
}

nav ul.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #003066; /* Xlent Foods brand blue */
}

nav ul.nav-menu li {
    margin: 0 15px; /* Increased margin for better spacing */
    padding: 8px 0; /* Increased padding */
}

nav ul.nav-menu a {
    color: #fbf8f8;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.4;
    font-size: 1.3em; /* Larger font size for better balance */
    font-weight: 600; /* Bolder for better visibility */
    padding: 8px 12px; /* More padding for better click area */
}

nav ul.nav-menu a:hover {
    color: #e0e0e0;
}

/* Nav CTA Button */
.nav-cta {
    margin-left: 15px;
}

.nav-cta-button {
    background-color: #ED8000 !important;
    color: black !important;
    padding: 8px 16px !important;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.nav-cta-button:hover {
    background-color: #D47000 !important;
    color: black !important;
    transform: scale(1.05);
}

/* Responsive design for smaller screens - Hamburger Menu */
@media screen and (max-width: 768px) {
    /* Show hamburger button on mobile */
    .hamburger {
        display: flex;
    }

    /* Hide menu by default on mobile */
    nav ul.nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #003066;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 0;
        margin: 0;
    }

    /* Show menu when active */
    nav ul.nav-menu.active {
        left: 0;
    }

    nav ul.nav-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul.nav-menu a {
        display: block;
        padding: 20px;
        width: 100%;
    }

    nav ul.nav-menu a:hover {
        background-color: rgba(255,255,255,0.1);
    }

    /* Mobile CTA styling */
    .nav-cta {
        margin-left: 0;
        margin-top: 10px;
        border-top: 2px solid #ED8000;
        padding-top: 10px;
    }

    .nav-cta-button {
        display: block;
        width: calc(100% - 40px);
        margin: 0 20px;
        text-align: center;
    }
}

/* Desktop - normal horizontal menu */
@media screen and (min-width: 769px) {
    .nav-container {
        display: block;
    }
}

.upload-area {
    border: 2px dashed #ddd;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover, .upload-area.border-primary {
    border-color: #ED8000; /* Xlent Foods brand orange */
    background-color: rgba(237, 128, 0, 0.05);
}

#fileList .alert {
    margin-bottom: 0.5rem;
}

/* Style for option groups */
optgroup {
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
}

/* Style for options within groups */
optgroup option {
    font-weight: normal;
    color: #495057;
    padding-left: 10px;
}

/* Hover state for options */
select option:hover {
    background-color: #e9ecef;
}

/* ============================================
   ACCESSIBILITY - FOCUS INDICATORS
   ============================================ */

/* Focus styles for all interactive elements */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #ED8000;
    outline-offset: 2px;
}

/* Focus for navigation menu links */
.nav-menu a:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Focus for hamburger menu button */
.hamburger:focus {
    outline: 2px solid #003066;
    outline-offset: 4px;
}

/* Focus for buttons with different backgrounds */
button.btn-primary:focus,
button[style*="background-color: #ED8000"]:focus {
    outline: 2px solid #003066;
    outline-offset: 2px;
}

button.btn-secondary:focus,
button[style*="background-color: #003066"]:focus {
    outline: 2px solid #ED8000;
    outline-offset: 2px;
}

/* Focus visible for keyboard navigation only (removes focus ring for mouse users) */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid #ED8000;
    outline-offset: 2px;
}

/* ============================================
   REUSABLE LAYOUT COMPONENTS (Phase 2)
   ============================================ */

/* Hero Sections - Utility Classes */
/* Base hero with common properties - use with modifier classes for variations */
.hero-section {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
}

/* Layout Modifiers */
.hero-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

/* Background Modifiers */
.hero-gradient {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.hero-white {
    background: #ffffff;
}

/* Padding Modifiers */
.hero-padding-sm {
    padding: 40px;
}

.hero-padding-md {
    padding: 60px 20px 40px;
}

.hero-padding-lg {
    padding: 80px 20px 60px;
}

/* Typography Styles */
.hero-section h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Grid Layouts - Utility Classes */
/* Base grid with common properties */
.grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
}

/* Grid Column Size Modifiers */
.grid-sm {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
}

.grid-md {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

.grid-lg {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

/* Grid with 2 columns max (for homepage categories) */
.grid-2-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

@media (min-width: 769px) {
    .grid-2-col {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Grid Gap Modifiers */
.grid-gap-sm {
    gap: 20px !important;
}

.grid-gap-md {
    gap: 30px !important;
}

/* Legacy grid classes (deprecated - use .grid with modifiers) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 20px;
}

.card-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-grid-small {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px;
}

/* Card Components */
/* Base card with common properties - use with modifier classes for variations */
.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card h2, .card h3 {
    color: #333;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 1.5em;
}

.card p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Card Size Modifiers */
.card-sm {
    padding: 20px;
}

.card-md {
    padding: 25px;
}

/* .card-lg is default (30px) - no modifier needed */

/* Card Background Modifiers */
.card-grey {
    background: #f9f9f9;
}

.card-light {
    background: #f5f5f5;
}

/* Card Text Alignment Modifiers */
.card-text-left {
    text-align: left;
}

.card-text-center {
    text-align: center;
}

/* Card Hover Variations */
.card-no-lift:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Product/Service Items */
.product-item,
.service-item {
    border: 1px solid #e0e0e0;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
    background: #fff;
}

.product-item:hover,
.service-item:hover {
    transform: scale(1.05);
}

.product-item img,
.service-item img {
    max-width: 100%;
    height: auto;
}

.product-item h3,
.service-item h3 {
    margin: 15px 0 10px;
    color: #333;
}

/* CTA Buttons */
.cta-primary {
    background-color: #ED8000;
    color: black;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
}

.cta-primary:hover {
    background-color: #D47000;
    transform: scale(1.05);
    color: black;
}

.cta-secondary {
    background-color: #003066;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s, background-color 0.3s;
    cursor: pointer;
}

.cta-secondary:hover {
    background-color: #002050;
    transform: scale(1.05);
    color: white;
}

.cta-button {
    cursor: pointer;
    font-size: 1.2em;
}

/* Section Styles */
.section-padding {
    padding: 40px 20px;
}

.section-padding-large {
    padding: 60px 20px;
}

.section-center {
    text-align: center;
    padding: 40px;
}

.section-cta {
    text-align: center;
    padding: 40px;
    background: #e0f7fa;
}

.section-partner {
    text-align: center;
    padding: 40px;
    background: #f5f5f5;
    margin-top: 20px;
}

/* Container Widths */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.container-medium {
    max-width: 1000px;
    margin: 0 auto;
}

/* Background Variations */
.bg-light {
    background-color: #f8f9fa;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gradient {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.bg-grey {
    background: #f9f9f9;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-xlent-orange {
    color: #ED8000;
}

.text-xlent-blue {
    color: #003066;
}

.text-dark {
    color: #333;
}

.text-muted {
    color: #555;
}

/* Spacing Utilities */
.mt-small {
    margin-top: 15px;
}

.mt-medium {
    margin-top: 20px;
}

.mt-large {
    margin-top: 30px;
}

.mb-small {
    margin-bottom: 15px;
}

.mb-medium {
    margin-bottom: 20px;
}

.mb-large {
    margin-bottom: 30px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Quality/Feature Boxes */
.quality-box {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quality-box h2 {
    color: #333;
    margin-bottom: 15px;
}

/* List Styles */
.list-unstyled {
    list-style: none;
    padding: 0;
}

.list-unstyled-margin {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

/* Badge/Label */
.premium-badge {
    position: absolute;
    top: 100px;
    right: 30px;
    background: #ED8000;
    padding: 15px;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

/* Content Boxes */
.content-box {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

.content-box-wide {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Links */
.link-orange {
    color: #ED8000;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.link-orange:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section,
    .hero-section-gradient {
        padding: 40px 15px 20px;
    }

    .hero-section h1 {
        font-size: 2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .card-grid,
    .card-grid-large,
    .card-grid-small {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        margin-bottom: 10px;
    }

    .section-padding,
    .section-padding-large {
        padding: 30px 15px;
    }

    .premium-badge {
        display: none; /* Hide badge on mobile to prevent text overlap */
    }
}
