@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --primary-orange: #ff5722;
    --primary-orange-hover: #e64a19;
    --bg-dark: #121212;
    --bg-lighter: #1e1e1e;
    --bg-lightest: #232323;
    --text-light: #ffffff;
    --text-muted: #aaaaaa;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.header-classic {
    background-color: transparent;
    padding: 2rem 5%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.header-classic .logo {
    flex-shrink: 0;
    margin-right: auto;
}

.header-classic .nav-classic {
    flex: 0 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-classic .header-actions {
    flex-shrink: 0;
    margin-left: auto;
}

.header-classic.hidden {
    transform: translateY(-120%);
}

.header-sticky {
    background-color: transparent;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
}

.header-sticky.active {
    transform: translateY(0);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo span,
.pill-logo span {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.1em;
}

.flame-icon {
    color: var(--primary-orange);
    font-size: 1.8rem;
}

.logo-img {
    height: 2.5rem;
    width: auto;
    display: block;
}

.header-classic .logo-img {
    height: 4.5rem;
    width: auto;
}

.pill-logo .logo-img {
    height: 2rem;
    width: auto;
}

.nav-classic {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-classic ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-classic a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-classic a:hover {
    color: var(--primary-orange);
}

.nav-pill {
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    gap: 2rem;
}

.pill-logo {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
}

.pill-logo .flame-icon {
    color: var(--primary-orange);
    font-size: 1.6rem;
}

.nav-pill nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-pill nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-pill nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.nav-pill nav a:hover {
    color: var(--primary-orange);
}

.pill-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.icon-btn:hover {
    color: var(--primary-orange);
}

.icon-btn svg {
    transition: transform 0.3s ease;
}

.icon-btn:hover svg {
    transform: scale(1.1);
}

.header-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.btn {
    display: inline-block;
    background-color: var(--primary-orange);
    color: var(--text-light);
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-orange-hover);
}

/* ==========================================================
   HERO SECTION (Image Left, Text Right Fade)
   ========================================================== */
.hero {
    background: linear-gradient(to right, rgb(18, 18, 18) 0%, rgba(18, 18, 18, 0.957) 20%, rgba(18, 18, 18, 0.5) 75%, rgba(18, 18, 18, 0) 100%), 
                var(--hero-bg) right center / cover no-repeat;
    background-color: var(--bg-dark);
    height: 80vh;
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    padding: 0 8%;
    margin-top: 0;
    position: relative;
    z-index: 100;
}

body.sticky-nav-active section {
    scroll-margin-top: 80px;
}

.hero-content {
    max-width: 600px;
    text-align: left; /* Keeps text left-aligned within its own container on the right */
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Mobile Responsiveness for the Split Hero */
@media (max-width: 768px) {
    .hero {
        background: linear-gradient(to right, rgb(18, 18, 18) 0%, rgba(18, 18, 18, 0.957) 20%, rgba(18, 18, 18, 0.5) 75%, rgba(18, 18, 18, 0) 100%), 
                var(--hero-bg) right center / cover no-repeat;
        justify-content: center;
        align-items: flex-start;
        padding-bottom: 3rem;
        height: 75vh;
    }

    .hero-content {
        text-align: center;
    }
}

section {
    padding: 6rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.text-center {
    text-align: center;
    margin: 0 auto;
}

.reality-section {
    background-color: var(--bg-lighter);
}

.split-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.reality-header {
    margin-bottom: 4rem;
}

.reality-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.reality-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.reality-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.reality-column {
    border-left: 2px solid var(--primary-orange);
    padding-left: 1.5rem;
}

.reality-column h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.reality-column p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-height: 500px;
}

.equipment-section {
    background-color: var(--bg-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: var(--bg-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.product-image-container {
    height: 350px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    padding: 1.5rem;
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
}

.product-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.technology-section {
    background-color: var(--bg-lighter);
}

.tech-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tech-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tech-hero-image {
    max-width: 20rem; /* Adjust this value to make the logo larger or smaller */
    height: auto;
}

.tech-header {
    margin-bottom: 4rem;
    max-width: 800px;
}

.tech-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.tech-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.tech-banner-image {
    margin-bottom: 4rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.tech-card {
    background-color: var(--bg-dark);
    border: 1px solid rgba(255, 87, 34, 0.2);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.tech-card:hover {
    background-color: rgba(255, 87, 34, 0.05);
    border-color: var(--primary-orange);
    transform: translateY(-3px);
}

.tech-icon {
    font-size: 2.5rem;
    width: 40px;
    height: 40px;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    display: block;
}

.tech-card h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.tech-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.gallery-section {
    background-color: var(--bg-dark);
}

.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1rem;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;
    transition: opacity 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.8;
}

footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.footer-logo-inline {
    height: 5rem;
    width: auto;
    display: inline;
}

footer h3 a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

footer h3 a:hover {
    opacity: 0.8;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-text.mt-top {
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .split-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .feature-image {
        min-height: 400px;
    }
    
    .reality-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        flex-direction: row;
    }
}

@media (max-width: 900px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .deployment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-classic {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
        position: static;
        transform: none;
    }

    .header-classic .nav-classic {
        position: static;
        transform: none;
        flex: 1;
    }

    .header-classic .nav-classic ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .header-classic.hidden {
        transform: none;
    }

    .header-sticky {
        transform: translateY(-120%);
    }

    .header-sticky.active {
        transform: translateY(0);
    }

    .nav-pill {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-pill nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    section {
        padding: 4rem 5%;
    }

    .section-header h2,
    .reality-header h2,
    .tech-header h2 {
        font-size: 2rem;
    }

    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .reality-grid {
        grid-template-columns: 1fr;
    }

    .deployment-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }

    section {
        padding: 3rem 5%;
    }

    .hero {
        height: 50vh;
        padding: 0 3%;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .gallery-image {
        height: 250px;
    }
}

/* Ensure the container holds the absolute positioned text */
.split-image-container {
    position: relative; 
}



/* ==========================================================
   ELEVATED OCCUPATIONAL REALITY SECTION
   ========================================================== */

.reality-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Tighter gap for card layout */
}

/* Upgraded Text Blocks: Subtle gradient cards with hover effects */
.reality-column {
    border-left: 3px solid var(--primary-orange); /* Slightly thicker accent line */
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg, rgba(255, 87, 34, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
}

.reality-column h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.reality-column p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

/* The Hover State: Slides slightly right and illuminates */
.reality-column:hover {
    transform: translateX(10px);
    background: linear-gradient(90deg, rgba(255, 87, 34, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-left-color: #ff784e; /* Lighter orange on hover */
}

.reality-column:hover p {
    color: var(--text-light); /* Text brightens on hover */
}

/* Upgraded Image Container: Ambient Glow */
.split-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The glowing light behind the product */
.split-image-container::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    filter: blur(40px);
    border-radius: 50%;
}

/* Ensure the image sits on top of the glow */
.feature-image {
    width: 100%;
    max-width: 500px; /* Prevents it from getting too massive on large screens */
    height: auto;
    border-radius: 0px;
    z-index: 1;
    position: relative;
    /* Optional: If you keep the white background image, uncomment the line below to give it a nice shadow so it looks like an intentional card */
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.5); */
}

/* ==========================================================
   THE CHALLENGE (Compact Dark Mode)
   ========================================================== */
.challenge-section {
    background-color: var(--bg-dark); /* Perfectly matches your main theme black */
    color: var(--text-light);
    padding: 5rem 5%; /* Reduced from 8rem to match your other sections */
}

.challenge-container {
    max-width: 1000px; /* Tighter container for the smaller text */
    margin: 0 auto;
}

.challenge-header {
    margin-bottom: 3rem; /* Tighter spacing below header */
}

.challenge-header h2 {
    font-size: 2.5rem; /* Reduced from 4rem to match other section headers */
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    margin: 0;
}

.challenge-stats {
    display: flex;
    flex-direction: column;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 0; /* Reduced vertical padding between dividers */
    gap: 2.5rem; /* Tighter gap between number and text */
}

/* Forces the middle stat to the right side and reverses text flow */
.stat-row.asymmetric {
    justify-content: flex-end;
    flex-direction: row-reverse;
    text-align: right;
}

.stat-number {
    font-size: 5rem; /* Scaled down from the massive 8rem */
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--primary-orange); /* Changed to orange to pop against the dark bg */
    min-width: 140px; /* Scaled down to match new font size */
}

.stat-desc {
    font-size: 1.1rem; /* Scaled down from 1.6rem */
    font-weight: 500;
    color: var(--text-muted);
    max-width: 400px;
    line-height: 1.5;
}

.minimal-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Fainter, more subtle divider */
    margin: 0;
    width: 100%;
}

/* Mobile Responsiveness for Compact Section */
@media (max-width: 768px) {
    .challenge-header h2 {
        font-size: 2rem;
        text-align: center;
    }

    .stat-row, 
    .stat-row.asymmetric {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 2.5rem 0;
        justify-content: center;
    }

    .stat-number {
        font-size: 4rem;
        min-width: auto;
    }

    .stat-desc {
        font-size: 1rem;
        max-width: 100%;
    }
}

/* ==========================================================
   HERO IMAGE CREDIT
   ========================================================== */
.hero-simple-credit, .simple-credit {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: rgba(255, 255, 255, 0.6); /* Slightly faded white */
    font-size: 0.75rem;
    background-color: rgba(0, 0, 0, 0.5); /* Very subtle dark box */
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* Styling the link if you use one */
.hero-simple-credit a, .simple-credit a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-simple-credit a:hover, .simple-credit a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Move to top right on mobile so it doesn't overlap the main text */
/* Keep on bottom right on mobile */
@media (max-width: 768px) {
    .hero-simple-credit, .simple-credit {
        top: auto; /* Ensures it doesn't snap to the top */
        bottom: 12px; 
        right: 12px;
    }
}

/* ==========================================================
   THE CHALLENGE - INTERACTIVE HOVER EFFECTS
   ========================================================== */

/* Make the link behave like a container */
.challenge-stats a.stat-row {
    text-decoration: none;
    display: flex;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
}

/* Hover Effect: Text and Number pop */
.stat-row:hover .stat-number {
    color: #ffffff; /* Turns from orange to white (or vice versa) */
    text-shadow: 0 0 20px rgba(255, 87, 34, 0.4); /* Subtle brand-colored glow */
    transform: scale(1.05);
}

.stat-row:hover .stat-desc {
    color: var(--text-light);
    transform: translateX(10px);
}

/* Middle row hover slides the other way */
.stat-row.asymmetric:hover .stat-desc {
    transform: translateX(-10px);
}

/* Interaction: Horizontal Divider Glow */
/* We target the divider immediately preceding the hovered row */
.stat-row:hover + .minimal-divider,
.minimal-divider:has(+ .stat-row:hover) {
    border-top: 1px solid var(--primary-orange);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.2);
    opacity: 1;
}

/* Smooth transitions for all elements */
.stat-number, .stat-desc, .minimal-divider {
    transition: all 0.3s ease;
}

/* Remove default link blue/tap highlights on mobile */
.stat-row {
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================================
   WELLNESS USA LEGACY BLOCK
   ========================================================== */
.legacy-block {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.legacy-stats {
    display: flex;
    gap: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.legacy-stat {
    display: flex;
    flex-direction: column;
}

.legacy-stat .big-num {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary-orange);
    line-height: 1;
    font-family: 'Bebas Neue', sans-serif; /* Using your brand font */
    align-self: center;
}

.legacy-stat .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.legacy-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 650px;
}

.legacy-text strong {
    color: var(--text-light);
}

.tech-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 5rem;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .legacy-block {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .legacy-stats {
        justify-content: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 2rem;
    }

    .legacy-text {
        margin: 0 auto;
    }
}

/* Ensure the dropdown anchors perfectly to your existing action containers */
.header-actions, .pill-actions {
    position: relative; 
}

/* Dropdown Menu Container */
/* Glassmorphism Dropdown Menu Container */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px; 
    
    /* The Glass Effect */
    background-color: rgba(5, 5, 5, 0.635); /* Very dark, 80% opaque */
    backdrop-filter: blur(12px); /* Frosted blur effect */
    -webkit-backdrop-filter: blur(12px); /* For Safari support */
    
    /* Refined borders for the glass look */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle light edge */
    border-top: 3px solid #ff3333; /* Signature red accent */
    border-radius: 6px;
    
    min-width: 220px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7); /* Deep drop shadow */
    display: flex;
    flex-direction: column;
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Active/Visible state */
.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Links */
.dropdown-menu a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    /* Soft semi-transparent divider */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    transition: background-color 0.2s, color 0.2s;
    text-align: left;
}

/* Remove bottom border from the last link */
.dropdown-menu a:last-child {
    border-bottom: none;
}

/* Hover effects */
.dropdown-menu a:hover {
    color: #ff3333;
    /* Slight red tint that blends with the frosted glass */
    background-color: rgba(255, 51, 51, 0.08); 
}

/* Ensure the parent containers lay things out horizontally */
.header-actions, .pill-actions {
    display: flex;
    align-items: center;
    position: relative;
}

/* The expanding container */
.search-container {
    width: 0;
    opacity: 0;
    overflow: hidden; /* Hides input when collapsed */
    transition: all 0.3s ease-out;
    position: relative;
    display: flex;
    align-items: center;
    margin: 0; /* JS will add margin when active */
}

/* The active expanded state */
.search-container.active {
    width: 220px;
    opacity: 1;
    overflow: visible; /* Allows results dropdown to pop out */
    margin: 0 10px; /* Creates space between the two icons */
}

/* The actual input field */
.site-search-input {
    width: 100%;
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.site-search-input:focus {
    border-color: #ff3333;
}

/* The Glassmorphism Results Dropdown */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 10px;
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid #ff3333;
    border-radius: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    
    display: none; /* Hidden by default */
    flex-direction: column;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1001;
}

.search-results-dropdown.active {
    display: flex;
}

/* Individual Search Result Links */
.search-result-item {
    padding: 12px 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: rgba(255, 51, 51, 0.08);
}

.result-title {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
}

.result-type {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ff3333; /* Red identifier for product vs doc */
}

.no-results {
    padding: 15px;
    color: #888;
    font-size: 0.85rem;
    text-align: center;
}


.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.header-classic .logo-text {
    font-size: 1.1rem;
}

.pill-logo .logo-text {
    font-size: 0.85rem;
}

.wellness-text {
    color: var(--primary-orange);
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }

    .header-classic {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 5%;
        position: absolute;
        transform: none;
        width: 100%;
    }

    .header-classic .nav-classic {
        display: none;
    }

    .logo {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .header-actions, .pill-actions {
        position: static;
    }

    .search-container.active {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        margin: 0;
        padding: 1rem 5%;
        background-color: var(--bg-dark);
        z-index: 999;
        box-sizing: border-box;
        display: flex;
    }

    .search-container.active .site-search-input {
        width: 100%;
    }

    .search-results-dropdown {
        width: calc(100% - 10%);
        left: 5%;
        top: calc(100% + 5px);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        min-width: 100%;
        border-radius: 8px;;
        margin-top: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: rgba(5, 5, 5, 0.95);
    }

    .dropdown-menu a {
        text-align: left;
        padding: 15px 5%;
    }

    .nav-pill {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        width: 100%;
    }

    .mobile-menu-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none; 
        z-index: 1000;
        padding: 0;
        border-radius: 8px;
    }

    .mobile-menu-wrapper.active {
        display: block;
    }

    .nav-pill-links ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        gap: 0;
    }

    .nav-pill-links ul li {
        width: 100%;
    }

    .nav-pill-links ul li a {
        display: block;
        padding: 15px 5%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    .hero {
        background: linear-gradient(to right, rgb(18, 18, 18) 0%, rgba(18, 18, 18, 0.957) 20%, rgba(18, 18, 18, 0.5) 75%, rgba(18, 18, 18, 0) 100%), 
                    var(--hero-bg) right center / cover no-repeat;
        justify-content: center;
        align-items: flex-start;
        /* Add padding-top to push text below the header */
        padding-top: 120px; 
        padding-bottom: 3rem;
        height: 75vh;
    }

    .header-classic .nav-classic,
    .header-sticky .nav-classic {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
        /* Adjust padding for smaller phones: Top, Right, Bottom, Left */
        padding: 100px 3% 0 3%; 
    }
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
}

@media (max-width: 768px) {
    /* Tighten the space between the search and hamburger icons */
    .header-actions, 
    .pill-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.25rem !important;
        margin-left: auto !important; /* Keeps the group anchored to the right */
    }

    /* Ensure the search container doesn't force a huge gap when inactive */
    .search-container {
        margin: 0 !important;
    }

    /* Optional: If the buttons have individual padding that makes them look far apart */
    .icon-btn {
        padding: 6px !important;
    }
}

@media (max-width: 768px) {
    /* 1. Base state for mobile - force absolute positioning so it NEVER pushes flex items */
    .search-container {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        background-color: var(--bg-dark);
        z-index: 999;
        box-sizing: border-box;
        padding: 0 5%;
        margin: 0 !important;
        
        /* Replace desktop 'width' transition with a smooth mobile fade */
        transition: opacity 0.2s ease-out, visibility 0.2s ease-out, padding 0.2s ease-out !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none; /* Prevents accidental clicks when hidden */
    }

    /* 2. Active state for mobile */
    .search-container.active {
        visibility: visible;
        opacity: 1;
        padding: 1rem 5%;
        pointer-events: auto;
        display: flex !important;
    }

    /* Ensure input takes full width */
    .search-container .site-search-input {
        width: 100%;
    }

    /* Ensure the dropdown anchors correctly below the absolute container */
    .search-results-dropdown {
        width: calc(100% - 10%);
        left: 5%;
        top: calc(100% + 5px);
    }
}

/* ==========================================================
   RESOURCES & DOWNLOADS SECTION
   ========================================================== */
.resources-section {
    background-color: var(--bg-dark);
    padding: 6rem 5%;
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.resource-card {
    background-color: var(--bg-lighter);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-orange);
    border-radius: 8px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 87, 34, 0.3);
    border-top-color: var(--primary-orange);
}

.resource-icon {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    background: rgba(255, 87, 34, 0.1);
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resource-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
}

.resource-info h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.resource-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Button Modifiers for the grid */
.btn-full {
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-dark);
}

.btn-outline:hover {
    background-color: var(--bg-dark);
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .resource-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   BROCHURE SLIDESHOW CAROUSEL
   ========================================================== */
.brochure-preview-section {
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.preview-header {
    margin-bottom: 2rem;
}

.preview-header h3 {
    color: var(--text-light);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.preview-header p {
    color: var(--text-muted);
}

.carousel-wrapper {
    position: relative;
    max-width: 800px; /* Limits how wide the brochure gets on desktop */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background-color: #000;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(18, 18, 18, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-nav:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--bg-dark);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Progress Lines & Controls */
.carousel-progress-container {
    position: absolute;
    bottom: 15px;
    left: 5%;
    right: 5%;
    display: flex;
    align-items: center;
    z-index: 10;
}

.carousel-play-pause {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(18, 18, 18, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    z-index: 20;
}

.carousel-play-pause:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: var(--bg-dark);
}

.carousel-indicators {
    display: flex;
    gap: 6px;
    flex-grow: 1;
}

.progress-line {
    height: 4px;
    flex-grow: 1;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-orange);
    border-radius: 2px;
}

.progress-line.completed .progress-fill {
    width: 100%;
}

.progress-line.active .progress-fill {
    animation: fillProgress 4s linear forwards; /* 4s matches JS slideDuration */
}

.carousel-wrapper.is-paused .progress-line.active .progress-fill {
    animation-play-state: paused;
}

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@media (max-width: 768px) {
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}