/* --- LYMBR WEBSITE STYLES --- */

/* GLOBAL RESET - CRITICAL FOR CENTERING */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 1. Imports, Fonts, and Color Variables */
:root {
    --ly-dark: #011e41;
    --ly-primary: #023573;
    --ly-accent: #71a839;
    --ly-text-dark: #636569;
    --ly-light: #89a9c4;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #ffffff;
    color: var(--ly-text-dark);
}

h1, h2, .font-headline {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

/* 2. Header / Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    /* Mobile Background: Dark so white text is readable */
    background-color: rgba(1, 30, 65, 0.95); 
    transition: background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: var(--ly-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

/* --- NAVBAR LAYOUT (Mobile Default) --- */
.navbar-content {
    display: flex;
    flex-direction: column; /* Stack Logo on top */
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-logo {
    margin-bottom: 0.25rem; 
    flex-shrink: 0;
}

.navbar nav {
    display: flex;
    flex-direction: row; /* Links sit Next to each other */
    flex-wrap: nowrap;   /* CRITICAL: Do NOT allow wrapping to a 3rd line */
    justify-content: center;
    width: 100%;
    gap: 2px; /* Minimal gap between links to save space */
}

/* Nav Link Styles */
.nav-link {
    color: white;
    /* TIGHT PADDING: Reduces side spacing so they fit */
    padding: 0.5rem 0.3rem; 
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    font-weight: 600;
    
    /* SMALLER FONT: Ensures all 4 words fit on one line */
    font-size: 0.75rem; /* 12px */
    
    width: auto;
    text-align: center;
    white-space: nowrap; /* Prevents "Corporate Wellness" from breaking into 2 lines */
}

.nav-link:hover {
    color: var(--ly-accent) !important;
}

.nav-link.active {
    background-color: var(--ly-primary);
    color: white !important;
}

/* --- DESKTOP OVERRIDES (Min-width 768px) --- */
@media (min-width: 768px) {
    .navbar {
        background-color: transparent; /* Transparent on desktop top */
    }
    .navbar.scrolled {
        background-color: var(--ly-dark); /* Dark when scrolled */
    }
    
    .navbar-content {
        flex-direction: row; /* Switch to horizontal row (Logo Left, Links Right) */
        justify-content: space-between;
        padding-top: 0;
        padding-bottom: 0;
        height: 5rem; /* h-20 */
    }

    .navbar-logo {
        margin-bottom: 0;
    }

    .navbar nav {
        width: auto;
        gap: 1.5rem; /* Restore comfortable gap for desktop */
        justify-content: flex-end;
    }

    .nav-link {
        font-size: 1rem; /* Restore normal font size (16px) */
        padding: 0.5rem 0.75rem; /* Restore normal padding */
    }
}

/* 3. Hero Section Styles */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('Banner 1.jpg'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-corporate {
    background-image: url('Banner 5.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(1, 30, 65, 0.7); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    padding-top: 7.5rem;
    width: 100%;
    
    /* NEW: Flexbox Centering */
    display: flex;
    flex-direction: column;
    align-items: center; /* This forces the video and text to be perfectly centered */
    text-align: center;
}

/* 4. Section Styles */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--ly-primary);
    margin-bottom: 2.5rem;
    border-bottom-width: 2px;
    border-color: var(--ly-light);
    padding-bottom: 0.75rem;
    text-align: center;
}
.bg-ly-light\/10 { 
    background-color: rgba(137, 169, 196, 0.1); 
}

/* 5. Button & Component Styles */
.btn-primary {
    padding: 0.75rem 2rem;
    background-color: var(--ly-primary);
    color: white;
    font-weight: 700;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}
.btn-primary:hover {
    background-color: var(--ly-accent);
    transform: scale(1.02);
}

.btn-secondary {
    padding: 0.75rem 2rem;
    background-color: white;
    border: 2px solid var(--ly-primary);
    color: var(--ly-primary);
    font-weight: 700;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}
.btn-secondary:hover {
    background-color: rgba(137, 169, 196, 0.2);
}

.btn-secondary-hero {
    padding: 0.75rem 2rem;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 700;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}
.btn-secondary-hero:hover {
    background-color: white;
    color: var(--ly-primary);
}

/* 6. Utility Classes */
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
.p-12 { padding: 3rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-6 { padding: 1.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pl-6 { padding-left: 1.5rem; }
.mt-16 { margin-top: 4rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mr-2 { margin-right: 0.5rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.grid { display: grid; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-8 { gap: 2rem; }
.flex-col { flex-direction: column; }

.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-t-4 { border-top-width: 4px; }
.border-b-2 { border-bottom-width: 2px; }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }
.leading-none { line-height: 1; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

.h-20 { height: 5rem; }
.w-20 { width: 5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-64 { height: 16rem; }
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.object-cover { object-fit: cover; }

.bg-white { background-color: #ffffff; }
.bg-ly-dark { background-color: var(--ly-dark); }
.bg-ly-primary { background-color: var(--ly-primary); }
.bg-ly-accent { background-color: var(--ly-accent); }
.bg-ly-dark\/50 { background-color: rgba(1, 30, 65, 0.5); }
.bg-ly-accent\/10 { background-color: rgba(113, 168, 57, 0.1); }
.text-white { color: #ffffff; }
.text-ly-primary { color: var(--ly-primary); }
.text-ly-accent { color: var(--ly-accent); }
.text-ly-text-dark { color: var(--ly-text-dark); }
.text-ly-dark { color: var(--ly-dark); }
.text-ly-light { color: var(--ly-light); }
.border-ly-light { border-color: var(--ly-light); }
.border-ly-light\/50 { border-color: rgba(137, 169, 196, 0.5); }
.border-ly-primary { border-color: var(--ly-primary); }
.border-ly-accent { border-color: var(--ly-accent); }
.opacity-80 { opacity: 0.8; }

.focus\:border-ly-primary:focus { border-color: var(--ly-primary); }
.focus\:ring-ly-primary:focus { box-shadow: 0 0 0 4px rgba(2, 53, 115, 0.25); }
.focus\:border-ly-accent:focus { border-color: var(--ly-accent); }
.focus\:ring-ly-accent:focus { box-shadow: 0 0 0 4px rgba(113, 168, 57, 0.25); }

.video-aspect-ratio {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Utility to hide scrollbar on the Mobile Header & Carousel */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 7. Responsive Media Queries */
@media (min-width: 640px) { /* sm breakpoint */
    .sm\:text-7xl { font-size: 4.5rem; line-height: 1; }
    .sm\:space-x-6 > * + * { margin-left: 1.5rem; }
    .sm\:space-y-0 > * + * { margin-top: 0; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) { /* md breakpoint */
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:max-w-3xl { max-width: 48rem; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:h-10 { height: 2.5rem; }
    .md\:pt-0 { padding-top: 0; }
}

/* 8. NEW: Carousel Styles (Consolidated & Clean) */
.scroll-carousel {
    display: flex;       
    overflow-x: auto;    
    flex-wrap: nowrap;     
    scroll-snap-type: x mandatory; 
    padding: 1rem; 
    scrollbar-width: none; 
}
.scroll-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex-shrink: 0;      
    width: 90%; /* Mobile default width */
    scroll-snap-align: start; 
    transition: transform 0.3s ease;
    margin-right: 2.5rem; 
    display: flex;
    align-items: center;
    gap: 1.5rem; 
}

.scroll-carousel > *:last-child {
    margin-right: 0;
}

.carousel-card:hover {
    transform: scale(1.02);
}

.carousel-number {
    width: 4rem; height: 4rem; flex-shrink: 0; 
    background-color: white; border-radius: 9999px; 
    display: flex; align-items: center; justify-content: center;
    font-size: 2.25rem; font-weight: 700; color: var(--ly-primary); 
}

.carousel-content {
    flex-grow: 1;
}

/* CAROUSEL IMAGES: MOBILE (Default) */
/* Images are HIDDEN by default on mobile */
.carousel-divider-container {
    display: none; 
}

.carousel-divider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

/* CAROUSEL: DESKTOP OVERRIDES */
@media (min-width: 768px) {
    /* 1. Adjust card width to show 3 at a time */
    .carousel-card {
        width: calc((100% / 3) - (2.5rem * 2 / 3));
    }

    /* 2. Reveal the vertical images */
    .carousel-divider-container {
        display: block; /* Visible on desktop */
        flex-shrink: 0;
        width: 200px;
        margin-right: 2.5rem;
        border-radius: 0.75rem;
        overflow: hidden;
    }
}