/* ==========================================================================
   1. CORE VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Theme Color Palette - Dark Blue Basis */
    --navy-primary: #0B192C;
    --navy-light: #1E3E62;
    --navy-bg: #F0F4F8;
    --white: #FFFFFF;
    
    /* Vibrant Dark Orange Accents */
    --orange-solid: #E65C00;
    --orange-gradient: linear-gradient(135deg, #F15A24 0%, #D33900 50%, #991B00 100%);
    
    /* Typography Colors */
    --text-dark: #22313F;
    --text-muted: #5A6B7C;
    --text-light: #F0F4F8;
    
    /* Layout & Shadows */
    --max-width: 1200px;
    --shadow-sm: 0 4px 6px rgba(11, 25, 44, 0.06);
    --shadow-md: 0 8px 24px rgba(11, 25, 44, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--navy-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   3. GLOBAL LAYOUT COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 40px auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-primary);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--orange-gradient);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* Premium Buttons */
.btn {
    display: inline-block;
    background: var(--orange-gradient);
    color: var(--white);
    padding: 12px 32px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(230, 92, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 92, 0, 0.4);
}

.btn:active {
    transform: translateY(-1px);
}

/* ==========================================================================
   4. NAVIGATION HEADER
   ========================================================================== */
header {
    background-color: var(--navy-primary);
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--orange-solid);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo h1 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 5px;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--orange-solid);
}

/* Active Page Indicator Line */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-gradient);
    transition: var(--transition-smooth);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* ==========================================================================
   5. HERO SECTION (HOME)
   ========================================================================== */
.hero {
    background: linear-gradient(rgba(11, 25, 44, 0.85), rgba(11, 25, 44, 0.95)), 
                url('https://images.unsplash.com/photo-1513151233558-d860c5398176?q=80&w=1200') no-repeat center center/cover;
    height: 65vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    color: #CCD6F6;
    max-width: 600px;
}

/* ==========================================================================
   6. CARDS & GRID ARCHITECTURE (PRODUCTS)
   ========================================================================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.card {
    background: var(--white);
    border: 1px solid rgba(11, 25, 44, 0.08);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange-solid);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid rgba(11, 25, 44, 0.05);
}

.card h3 {
    margin: 20px 15px 8px;
    color: var(--navy-primary);
    font-size: 20px;
}

.card .price {
    color: var(--orange-solid);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 20px;
}

.card .btn {
    margin: 0 24px 24px;
}

/* ==========================================================================
   7. PRODUCT DETAILS VIEW
   ========================================================================== */
.details-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    background: var(--white);
    padding: 48px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    align-items: center;
}

.details-image {
    flex: 1;
    min-width: 320px;
}

.details-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid rgba(11, 25, 44, 0.1);
    box-shadow: var(--shadow-sm);
}

.details-info {
    flex: 1;
    min-width: 320px;
}

.details-info h2 {
    color: var(--navy-primary);
    font-size: 38px;
    margin-bottom: 12px;
}

.details-info .price {
    font-size: 26px;
    color: var(--orange-solid);
    font-weight: 700;
    margin-bottom: 24px;
}

/* ==========================================================================
   8. INPUT FORMS & CONTACT US 2-COLUMN SPLIT
   ========================================================================== */
.contact-split-container {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    width: 100%;
}

.contact-column-left, 
.contact-column-right {
    flex: 1;
    min-width: 0;
}

.info-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--orange-solid);
    height: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    width: 100%;
    gap: 15px;
}

.info-icon {
    font-size: 24px;
    color: var(--orange-solid);
    width: 50px;
    text-align: center;
}

.info-text {
    color: var(--text-dark);
    font-size: 16px;
}

.info-text h4 {
    color: var(--navy-primary);
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-form {
    max-width: 100%;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--navy-primary);
    height: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--navy-primary);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(11, 25, 44, 0.15);
    border-radius: 4px;
    background-color: #FAFAFA;
    color: var(--text-dark);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--navy-light);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(30, 62, 98, 0.15);
}

/* ==========================================================================
   9. GLOBAL FOOTER
   ========================================================================== */
footer {
    background-color: var(--navy-primary);
    color: var(--text-light);
    text-align: center;
    padding: 24px;
    margin-top: 60px;
    border-top: 3px solid var(--orange-solid);
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   10. HARDWARE-ACCELERATED ANIMATIONS
   ========================================================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .contact-split-container {
        flex-direction: column;
    }
    
    .contact-column-left, 
    .contact-column-right {
        width: 100%;
    }
    
    .details-wrapper {
        padding: 24px;
        gap: 24px;
    }
    
    .contact-form, .info-card {
        padding: 24px;
    }
}

/* ==========================================================================
   4. NAVIGATION HEADER & SEPARATE NAV BAR
   ========================================================================== */
header {
    background-color: var(--navy-primary);
    padding: 15px 5%;
    display: flex;
    justify-content: center; /* Centers logo and text branding */
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 45px; /* Restricts logo height cleanly */
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* New Sub-Navigation Bar Layout */
.main-navigation {
    background-color: var(--navy-light);
    border-bottom: 3px solid var(--orange-solid);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center; /* Centers links under the brand header */
    gap: 40px;
}

nav ul li a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 14px 0; /* Creates vertical clickable area */
    transition: var(--transition-smooth);
    position: relative;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--orange-solid);
}

/* Active Page Indicator Line */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-gradient);
    transition: var(--transition-smooth);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Update Responsive Header Rules */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }
    .logo {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    nav ul {
        gap: 20px;
    }
    nav ul li a {
        padding: 10px 0;
        font-size: 14px;
    }
}

/* ==========================================================================
   4. NAVIGATION HEADER, SEARCH, & UTILITIES
   ========================================================================== */
header {
    background-color: var(--navy-primary);
    padding: 15px 0;
    position: relative;
    z-index: 1001;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    background: var(--orange-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Search Form */
.header-search {
    display: flex;
    flex: 1;
    max-width: 500px;
    position: relative;
}

.header-search input {
    width: 100%;
    padding: 10px 45px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    background-color: var(--navy-light);
    color: var(--white);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.header-search input:focus {
    outline: none;
    border-color: var(--orange-solid);
    background-color: var(--white);
    color: var(--navy-primary);
}

.header-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    transition: var(--transition-smooth);
}

.header-search input:focus + button {
    color: var(--navy-primary);
}

.header-search button:hover {
    color: var(--orange-solid);
}

/* Utilities (Login & Basket) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.action-icon {
    color: var(--text-light);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    padding: 5px;
}

.action-icon:hover {
    color: var(--orange-solid);
    transform: translateY(-2px);
}

/* Basket Badge Indicator */
.basket-icon {
    position: relative;
}

.basket-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--orange-gradient);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--navy-primary);
}

/* New Sub-Navigation Bar Layout */
.main-navigation {
    background-color: var(--navy-light);
    border-bottom: 3px solid var(--orange-solid);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav ul li a {
    display: block;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 14px 0;
    transition: var(--transition-smooth);
    position: relative;
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--orange-solid);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange-gradient);
    transition: var(--transition-smooth);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* ==========================================================================
   UPDATED MEDIA QUERIES FOR SEARCH & ACTIONS
   ========================================================================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 16px;
    }
    
    .header-search {
        width: 100%;
        max-width: 100%;
        order: 3; /* Pushes search bar below logo and icons on mobile layout */
    }
    
    nav ul {
        gap: 20px;
    }
    
    nav ul li a {
        padding: 10px 0;
        font-size: 14px;
    }
}

/* ==========================================================================
   5. HERO SECTION (HOME)
   ========================================================================== */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 0 24px;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero p {
    font-size: 20px;
    margin-bottom: 32px;
    color: var(--text-light);
    max-width: 600px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   5b. 3-COLUMN FEATURES SECTION
   ========================================================================== */
.features-container {
    max-width: var(--max-width);
    margin: -80px auto 40px; /* Pulls the section up slightly over the hero for a modern layered look */
    padding: 40px 24px;
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 10; /* Ensures it sits neatly over the hero layout */
}

.feature-column {
    flex: 1;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--navy-light);
    transition: var(--transition-smooth);
}

.feature-column:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--orange-solid);
}

.feature-icon {
    font-size: 32px;
    color: var(--orange-solid);
    margin-bottom: 20px;
}

.feature-column h3 {
    color: var(--navy-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-column p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive adjustment for mobile screen stacking */
@media (max-width: 768px) {
    .features-container {
        margin-top: 20px; /* Removes negative margin conflict on mobile viewports */
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   5C. 2-COLUMN SHOWCASE SECTION
   ========================================================================== */
.showcase-container {
    margin-top: 60px;
    margin-bottom: 60px;
}

.showcase-split {
    display: flex;
    align-items: center; /* Vertically centers the text content relative to the image */
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    gap: 40px;
}

/* Left Image Box */
.showcase-image-col {
    flex: 1;
    min-width: 320px;
    align-self: stretch; /* Forces the image box to match the text column height */
}

.showcase-image-col img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    display: block;
}

/* Right Text Box */
.showcase-text-col {
    flex: 1;
    padding: 50px;
    min-width: 320px;
}

.showcase-text-col h2 {
    color: var(--navy-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
}

.showcase-text-col h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--orange-gradient);
    margin-top: 10px;
    border-radius: 2px;
}

.showcase-text-col p {
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Responsive Stacking for Smaller Screens */
@media (max-width: 768px) {
    .showcase-split {
        flex-direction: column;
        gap: 0;
    }
    
    .showcase-image-col {
        width: 100%;
    }
    
    .showcase-image-col img {
        min-height: 250px;
        height: 250px;
    }
    
    .showcase-text-col {
        padding: 30px 20px;
        width: 100%;
    }
}

/* ==========================================================================
   5D. 4-COLUMN GRID SECTION
   ========================================================================== */
.grid-four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.quad-column {
    background: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(11, 25, 44, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.quad-column:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(230, 92, 0, 0.2);
}

.quad-image-wrapper {
    width: 100%;
    height: 180px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.quad-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.quad-column:hover .quad-image-wrapper img {
    transform: scale(1.05);
}

.quad-column h3 {
    color: var(--navy-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.quad-column p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1; /* Pushes the call-to-action link perfectly to the bottom of shorter text blocks */
}

.quad-link {
    color: var(--orange-solid);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.quad-link:hover {
    color: #991B00;
}

.quad-link i {
    transition: transform 0.2s ease;
}

.quad-link:hover i {
    transform: translateX(4px);
}

/* Responsive Grid Breakpoints */
@media (max-width: 1024px) {
    .grid-four-col {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablets */
    }
}

@media (max-width: 576px) {
    .grid-four-col {
        grid-template-columns: 1fr; /* Single column layout on mobile phones */
    }
}

/* ==========================================================================
   5E. TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    margin-top: 60px;
    margin-bottom: 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 8px;
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(11, 25, 44, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.quote-icon {
    font-size: 28px;
    color: rgba(230, 92, 0, 0.15);
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 25px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid rgba(11, 25, 44, 0.08);
    padding-top: 20px;
}

.reviewer-info img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange-solid);
}

.reviewer-info h4 {
    color: var(--navy-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.reviewer-title {
    color: var(--text-muted);
    font-size: 13px;
}

/* Responsive Grid Adaptations */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: 1fr; /* Stacks vertically on smaller screens */
        gap: 24px;
    }
}

/* ==========================================================================
   9. ADVANCED 3-COLUMN FOOTER SYSTEM
   ========================================================================== */
.advanced-footer {
    background-color: var(--navy-primary);
    color: var(--text-light);
    padding: 60px 0 0 0;
    margin-top: 80px;
    border-top: 4px solid var(--orange-solid);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--orange-gradient);
}

/* Directory Links Styles */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    opacity: 0.8;
}

.footer-links a i {
    font-size: 10px;
    color: var(--orange-solid);
    transition: transform 0.2s ease;
}

.footer-links a:hover {
    color: var(--orange-solid);
    opacity: 1;
    transform: translateX(4px);
}

/* Contact Block Styles */
.footer-contact {
    list-style: none;
    align-items: left;
}

.footer-contact li {
    font-size: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: left;
    gap: 12px;
    opacity: 0.8;
}

.footer-contact li i {
    color: var(--orange-solid);
    font-size: 16px;
    width: 20px;
    text-align: left;
    align-items: left;
}

/* Settlement / Gateway Grid Styles */
.footer-payment-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.8;
}

.payment-gateways {
    display: flex;
    gap: 16px;
    align-items: center;
}

.gateway-icon {
    font-size: 38px;
    color: var(--text-light);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.gateway-icon:hover {
    opacity: 1;
    color: var(--orange-solid);
    transform: translateY(-2px);
}

/* Legal Lower Banner Frame */
.footer-bottom-bar {
    background-color: #050d18;
    padding: 20px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-bar p {
    font-size: 13px;
    letter-spacing: 0.5px;
    opacity: 0.6;
}

/* Responsive Structural Collapse */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 30px;
    }
    
    .footer-column h3 {
        margin-bottom: 16px;
    }
}

  .details-wrapper {
            display: flex;
            flex-wrap: wrap;
            gap: 48px;
            background: var(--white);
            padding: 48px;
            border-radius: 8px;
            box-shadow: var(--shadow-md);
            align-items: flex-start; /* Aligns items to top instead of center */
        }

        /* Reduces image column container from 50% down to 25% */
        .details-image {
            flex: 0 0 25%;
            min-width: 220px;
        }

        /* Increases info column space to 75% dynamic remainder */
        .details-info {
            flex: 1;
            min-width: 320px;
        }

        /* Dedicated Full-Width Specifications Block below */
        .specs-section {
            margin-top: 40px;
            background: var(--white);
            padding: 40px;
            border-radius: 8px;
            box-shadow: var(--shadow-md);
            border-top: 4px solid var(--orange-solid);
        }

        .specs-title {
            color: var(--navy-primary);
            font-size: 22px;
            font-weight: 700;
            margin-bottom: 24px;
            letter-spacing: 0.5px;
        }

        .specs-table {
            width: 100%;
            border-collapse: collapse;
        }

        .specs-table tr {
            border-bottom: 1px solid rgba(11, 25, 44, 0.08);
        }

        .specs-table tr:last-child {
            border-bottom: none;
        }

        .specs-table td {
            padding: 14px 20px;
            font-size: 15px;
            color: var(--text-dark);
        }

        .specs-label {
            font-weight: 700;
            color: var(--navy-light);
            width: 30%;
            background-color: rgba(11, 25, 44, 0.02);
        }

        .specs-value i {
            color: var(--orange-solid);
            margin-right: 8px;
        }

        @media (max-width: 768px) {
            .details-wrapper {
                padding: 24px;
                gap: 24px;
            }
            .details-image {
                flex: 1 1 100%;
                max-width: 250px;
                margin: 0 auto;
            }
            .specs-table td {
                display: block;
                width: 100%;
                padding: 10px 12px;
            }
            .specs-label {
                background-color: transparent;
                padding-bottom: 2px;
                font-size: 14px;
            }
            .specs-value {
                padding-top: 2px;
            }
        }

        /* ==========================================================================
   TOP UTILITY INFO BAR
   ========================================================================== */
.top-bar {
    background-color: #050d18; /* Deep accent dark blue */
    color: var(--text-light);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left, 
.top-bar-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.top-bar-left span, 
.top-bar-right span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
}

.top-bar-left i, 
.top-bar-right i {
    color: var(--orange-solid);
    font-size: 14px;
}

/* Responsive adjustment for small viewports */
@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hides the top bar on mobile to prioritize screen space */
    }
}

/* ==========================================================================
   4. FLUID NAVIGATION HEADER, SEARCH, & UTILITIES
   ========================================================================== */
/* Makes the top bar fluid */
.top-bar-container {
    width: 100%;
    max-width: none; /* Removes the 1200px constraint */
    padding: 0 40px; /* Generous side padding for widescreen layouts */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header {
    background-color: var(--navy-primary);
    padding: 15px 0;
    position: relative;
    z-index: 1001;
    width: 100%;
}

/* Makes the main header element fluid */
.header-container {
    width: 100%;
    max-width: none; /* Removes the 1200px constraint */
    padding: 0 40px; /* Matches the top bar padding for perfect alignment */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Allows the search bar to scale naturally up to a point in the fluid space */
.header-search {
    display: flex;
    flex: 1;
    max-width: 600px; /* Keeps the search box looking sleek on huge screens */
    position: relative;
}

/* Responsive side-padding fix for smaller viewports */
@media (max-width: 768px) {
    .top-bar-container,
    .header-container {
        padding: 0 20px;
    }
}