/* Brand Colors based on CLM_LIM Brand Guidelines */
:root {
    /* CLM Colors */
    --clm-yellow: #FFA900;
    --clm-violet: #8134b2;

    /* LIM Colors */
    --lim-turquoise: #24d4da;
    --lim-blue: #4231b1;

    /* MOVEit Colors */
    --moveit-blue: #4231b1;
    --field-purple: #8c2db8;

    /* Shared Colors */
    --olive: #969300;
    --raisin: #262633;
    --background: #F9F9F9;
    --white: #FFFFFF;

    /* Semantic Colors */
    --primary: var(--clm-yellow);
    --secondary: var(--lim-turquoise);
    --dark: var(--raisin);
    --light: var(--background);

    /* Text Colors */
    --text-primary: var(--raisin);
    --text-secondary: #666666;
    --text-light: #999999;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Header & Hero Clearance */
    --header-height: 80px;
    --header-mobile-height: 70px;
    --logo-url: url("../imag/DCL_Main%20Logo.svg");
}

/* Typography - Public Sans for Display, Roboto for Text */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@100;200;300;400;500&family=Roboto:wght@100;300;400;500;700;900&display=swap');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Public Sans', sans-serif;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

h1 {
    font-size: 3rem;
    font-weight: 200;
}

h2 {
    font-size: 2.5rem;
    font-weight: 300;
}

h3 {
    font-size: 1.75rem;
    font-weight: 300;
}

h4 {
    font-size: 1.25rem;
    font-weight: 400;
}

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

a {
    color: var(--clm-violet);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--clm-yellow);
}

/* Container */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
}

/* Header Container: Fluid distribution */
.main-header .container {
    max-width: none;
    width: 100%;
    padding: 0 4vw;
}

/* Header */
.main-header {
    background: rgba(38, 38, 51, 0.9);
    /* Glassmorphism background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto;
    /* Logo | nav (centered) | actions */
    align-items: center;
    height: 100%;
    column-gap: 32px;
}

.logo {
    justify-self: start;
    z-index: 1001;
    /* Stay above mobile menu */
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-image {
    height: 48px;
    /* Slightly more compact for more breathing room */
    width: auto;
    content: var(--logo-url);
    filter: none;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.02);
}

/* Navigation */
.main-nav>ul {
    position: relative;
    list-style: none;
    display: flex;
    gap: var(--spacing-lg);
    height: 100%;
    align-items: center;
    justify-content: center;
}

.main-nav>ul>li {
    position: relative;
    height: 100%;
    /* Take full height of header for easier alignment */
    display: flex;
    align-items: center;
    border-bottom: solid 3px transparent;
    /* Thinner border */
    box-sizing: border-box;
}

.main-nav>ul>li:hover,
.main-nav>ul>li.active {
    border-bottom-color: #969300;
}

.main-nav a {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: #2c2c2c;
    transition: color 0.2s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a:hover {
    color: #000000;
}

/* Add dropdown chevron */
.dropdown>a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-top: 2px;
    opacity: 0.7;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    /* Match header height */
    left: -2em;
    background: var(--white);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: var(--spacing-sm);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.dropdown-menu li {
    margin: 0;
    /* Remove block stacking if present */
    display: inline-block;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    background: var(--background);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Increased gap for better distribution */
    justify-self: end;
    z-index: 1001;
    height: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333333;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.nav-actions .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

/* Specific styling for the buttons to match Vercel-like aesthetic */
.nav-actions .btn-secondary {
    /* Login */
    background: transparent;
    /*border: 1px solid var(--olive);*/
    color: var(--olive);
}

.nav-actions .btn-secondary:hover {
    border-color: var(--olive);
    color: #ffffff;
    background: var(--olive);
}

.nav-actions .btn-primary {
    /* Kontakt - primary call-to-action */
    background: var(--olive);
    color: #ffffff;
    border: 1px solid var(--olive);
    font-weight: 500;
}

.nav-actions .btn-primary:hover {
    background: #767300;
    /* slightly darker olive on hover */
    border-color: #767300;
    color: #ffffff;
}

.language-selector select {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-family: 'Roboto', sans-serif;
    color: var(--white);
    /* White text for dark header */
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    outline: none;
}

.language-selector select:hover {
    border-color: var(--clm-yellow);
    background: rgba(255, 255, 255, 0.1);
}

.language-selector select option {
    background: var(--white);
    color: black;
}

.language-selector select option:checked,
.language-selector select option:hover {
    background: #969300;
    color: var(--white);
}

/* App Launcher (Nine Dots Menu) */
.app-launcher {
    position: relative;
    display: flex;
    align-items: center;
}

.app-launcher-toggle {
    display: grid;
    grid-template-columns: repeat(3, 4px);
    grid-template-rows: repeat(3, 4px);
    gap: 3px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.app-launcher-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.app-launcher-toggle .dot {
    width: 4px;
    height: 4px;
    background-color: var(--white);
    border-radius: 50%;
}

.app-launcher-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.app-launcher-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.app-launcher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.app-item:hover {
    background-color: var(--background);
}

.app-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.app-item span {
    font-size: 0.75rem;
    color: var(--raisin);
    font-weight: 500;
}


/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 200px;
}

.btn-nav {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    /* More compact nav buttons */
    border-radius: var(--radius-md);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--olive);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--raisin);
    color: var(--white);
}

.btn-secondary {
    background: var(--lim-turquoise);
    color: var(--raisin);
}

.btn-secondary:hover {
    background: var(--lim-blue);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 3px solid gray;
    color: var(--raisin);
}

.btn-outline:hover {
    background: var(--olive);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--raisin);
}

.btn-white:hover {
    background: var(--background);
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--raisin);
}

.btn-outline.clm-color {
    border-color: var(--clm-yellow);
}

.btn-outline.lim-color {
    border-color: var(--lim-turquoise);
}

.btn-outline.moveit-color {
    border-color: var(--moveit-blue);
}

.btn-outline.field-color {
    border-color: var(--field-purple);
}

.btn-outline.clm-color:hover {
    background-color: var(--clm-yellow);
}

.btn-outline.lim-color:hover {
    background-color: var(--lim-turquoise);
}

.btn-outline.moveit-color:hover {
    background-color: var(--moveit-blue);
    color: #fff;
}

.btn-outline.field-color:hover {
    background-color: var(--field-purple);
    color: #fff;
}

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.1rem;
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, var(--clm-violet) 0%, var(--clm-yellow) 100%);
}

/* Alternative gradients for variety */
.gradient-bg-lim {
    background: linear-gradient(135deg, var(--lim-blue) 0%, var(--lim-turquoise) 100%);
}

.gradient-bg-mixed {
    background: linear-gradient(135deg, var(--clm-violet) 0%, var(--lim-turquoise) 100%);
}

.pattern1 {
    background-image: url("../imag/pattern1.png");
}

.pattern2 {
    background-image: url("../imag/pattern2.png");
}

.pattern3 {
    background-image: url("../imag/pattern3.png");
    background-size: 100% 100%;
}

.pattern4 {
    background-image: url("../imag/pattern4.png");
}

.pattern5 {
    background-image: url("../imag/pattern5.png");
}

.pattern6 {
    background-image: url("../imag/pattern6.png");
}

.pattern7 {
    background-image: url("../imag/pattern7.png");
}

.pattern9 {
    background-image: url("../imag/pattern9.png");
}

.gradient1 {
    background-image: url("../imag/Gradient.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
}

.gradient2 {
    background-image: url("../imag/north-star.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
}

/* Hero Section */
.hero {
    padding: var(--spacing-xxl) 0;
    color: var(--white);
    min-height: 60vh;
    /* Scaled height for better distribution on tall screens */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-margin-top: calc(var(--header-height) + 20px);
}

@media (min-width: 1400px) {
    .hero {
        padding: var(--spacing-xxl) 0;
        min-height: 550px;
    }
}

.hero-content {
    max-width: 1100px;
    /* Widened for better balance on large screens */
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 4rem);
    /* More impactful scaling */
    font-weight: 200;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
    font-weight: 300;
    margin-bottom: var(--spacing-lg);
    color: var(--white);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: var(--spacing-md);
    color: inherit;
}

.breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Hero Carousel */
.hero-carousel {
    padding: var(--spacing-xxl) 0;
    color: var(--white);
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991px) {
    .hero-carousel {
        height: auto;
        min-height: 500px;
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

.carousel-container,
.carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    width: 100%;
    height: 100%;
    animation: fadeEffect 1s;
}

.carousel-slide.active {
    display: grid;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-content {
    max-width: 600px;
}

.slide-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.slide-content .hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 300;
}

.slide-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 40vh;
    min-height: 300px;
    width: 100%;
}

.featured-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: -50px;
    width: 100%;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: #fff;
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

/* Value Props */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.value-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.product-icon {
    margin-bottom: var(--spacing-md);
}

.bim2log-color {
    background: linear-gradient(135deg, var(--clm-violet) 0%, var(--lim-blue) 100%);
    color: var(--white);
}

.mcc-color {
    background: linear-gradient(135deg, var(--olive) 0%, var(--clm-yellow) 100%);
    color: var(--raisin);
}

.product-benefits {
    list-style: none;
    margin: var(--spacing-md) 0;
    color: inherit;
}

.product-benefits li {
    padding-left: 1.5rem;
    margin-bottom: var(--spacing-xs);
    position: relative;
}

.product-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--clm-yellow);
    font-weight: bold;
}

.product-benefits.clm-color li:before {
    color: var(--clm-yellow);
}

.product-benefits.lim-color li:before {
    color: var(--lim-turquoise);
}

.product-benefits.moveit-color li:before {
    color: var(--moveit-blue);
}

.product-benefits.field-color li:before {
    color: var(--field-purple);
}

.product-benefits.labs-color li:before {
    color: gray;
}

/* Labs Section */
.labs-section {
    background: #edebeb;
}

.bg-light {
    background: var(--background);
}

.labs-header {

    background-size: contain;
}

.labs-banner {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: dashed 5px gray;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.labs-content {
    flex: 1;
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.labs-card {
    background: #e5e5e5;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.labs-card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.labs-icon {
    flex: 0 0 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background: gray;
    color: var(--white);
}

.labs-preview {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.lab-badge {
    display: inline-flex;

    color: var(--black);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    background: var(--white);
    margin-bottom: var(--spacing-md);
    margin-right: var(--spacing-sm);

}

.lab-badge>span {
    margin: auto;
}

/* Audiences */
.audience-filter {
    display: flex;
    width: 100%;
}

.audience-filter>div {
    flex: 1 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    border: solid 2px gray;
    border-radius: var(--radius-md);
    margin-right: var(--spacing-md);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.audience-filter>div:hover {
    border-color: var(--olive);
    background: var(--background);
}

.audience-filter>div.active {
    border-color: var(--olive);
    background: var(--olive);
    color: #fff;
}

.audience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.audience-card {
    background: var(--white);
    padding: 4px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);*/
}



.audience-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.audience-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Enhanced Filter Styles for Audience Cards */
.audience-card.filter {
    cursor: pointer;
    border: 2px solid transparent;
}

.audience-card.filter:hover {
    border-color: var(--olive);
    background: var(--background);
}

.audience-card.filter.active {
    border-color: var(--olive);
    background: var(--olive);
    color: var(--white);
}

.audience-card.filter.active p {
    color: var(--white);
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: var(--raisin);
    color: var(--white);
    opacity: 0.7;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

/* Footer */
.main-footer {
    background: var(--raisin);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
    color: var(--clm-yellow);
    margin-bottom: var(--spacing-md);
    font-family: 'Public Sans', sans-serif;
    font-weight: 400;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--clm-yellow);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-tagline {
    color: var(--clm-yellow);
    font-style: italic;
    margin-top: var(--spacing-sm);
}

/* App Gallery Specific */
.filter-sidebar {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: var(--spacing-lg);
}

.filter-group h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.filter-checkbox input {
    margin-right: var(--spacing-sm);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.app-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.app-header {
    padding: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.app-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--white);
    margin-left: 30px;
}

.app-icon img {
    height: 30px;
    width: auto;
}

.app-body {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.app-status {
    display: inline-block;
    padding: 2px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.status-ga {
    background: #4CAF50;
    color: var(--white);
}

.status-beta {
    background: var(--clm-violet);
    color: var(--white);
}

.status-poc {
    background: var(--olive);
    color: var(--white);
}

/* App Detail Page */
.app-hero {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--background);
}

.app-hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.app-hero-icon {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.feature-item {
    display: flex;
    gap: var(--spacing-md);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--clm-yellow);
}

.integration-logos {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    align-items: center;
}

.integration-logo {
    padding: var(--spacing-md);
    background: var(--background);
    border-radius: var(--radius-md);
    font-weight: 500;
}

/* Audience Page Specific */
.audience-hero {
    background: linear-gradient(135deg, var(--lim-blue) 0%, var(--lim-turquoise) 100%);
    color: var(--white);
    padding: var(--spacing-xxl) 0;
    height: 50vh;
    min-height: 450px;
    display: flex;
    align-items: center;
}

.pain-points {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-xl);
}

.pain-list {
    list-style: none;
}

.pain-list li {
    padding-left: 2rem;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.pain-list li:before {
    content: "⚠️";
    position: absolute;
    left: 0;
}

.solution-mapping {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

@media (max-width: 900px) {

    .carousel-slide,
    .carousel-slide.active {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .slide-visual {
        height: 300px;
        order: -1;
        margin-bottom: var(--spacing-md);
    }

    .featured-img {
        max-height: 300px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1800px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        max-width: 1000px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991px) {
    .main-header {
        height: auto;
        min-height: var(--header-mobile-height);
        padding: 8px 0;
    }

    .nav-wrapper {
        display: flex;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .nav-actions {
        order: 2;
        margin-right: 15px;
    }

    .nav-actions .btn-primary {
        display: none;
        /* Hide Contact on mobile to save space, or move to menu */
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--raisin);
        z-index: 1000;
        transition: 0.3s ease-in-out;
        padding: 100px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }

    .main-nav>ul>li {
        width: 100%;
        height: auto;
        border-bottom: none;
    }

    .main-nav a {
        font-size: 1.2rem;
        padding: 10px 0;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        max-height: 500px;
        margin-top: 10px;
    }

    .hero {
        min-height: 450px;
        padding: 120px 0 60px 0;
        /* Clear header reliably */
        height: auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero {
        min-height: 500px;
    }

    .products-grid,
    .value-grid,
    .audience-cards {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
    }

    .labs-banner {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: center;
    }

    .app-hero-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-actions .btn-secondary {
        display: none;
        /* Hide Login on very small screens */
    }

    .hero-title {
        font-size: 1.8rem;
    }
}

/* Helper classes for responsive grids */
.grid-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {

    .grid-3-col,
    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {

    .grid-2-col,
    .grid-3-col,
    .grid-4-col {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.py-xl {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

/* FAQ Table Styles */
.faq-table {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 800px;
    margin: 0 auto;
}

.faq-row {
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
}

.faq-question {
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 400;
}

.faq-toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: var(--clm-violet);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--background);
}

.faq-answer p,
.faq-answer ul {
    padding: var(--spacing-sm) var(--spacing-lg);
    margin: 0;
    color: var(--text-secondary);
}

.faq-answer p:first-child,
.faq-answer ul:first-child {
    padding-top: var(--spacing-md);
}

.faq-answer p:last-child,
.faq-answer ul:last-child {
    padding-bottom: var(--spacing-md);
}

.faq-answer ul {
    list-style-type: disc;
    padding-left: calc(var(--spacing-lg) + 1.5rem);
}

.faq-answer li {
    margin-bottom: var(--spacing-xs);
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.faq-row.active .faq-answer {
    max-height: 1000px;
}

.faq-row.active .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-row:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Innovation Tiles Refreshed (Black/White/Grey) */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.innovation-card {
    background-color: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    height: 100%;
    min-height: 520px;
    position: relative;
    overflow: hidden;
}

.innovation-card:hover {
    background-color: #ffffff;
    border-color: #969300;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.innovation-icon-wrapper {
    margin-bottom: 24px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.innovation-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.innovation-feature-img {
    width: 100%;
    height: 30%;
    /* Approximately 30% of the 520px card min-height */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 16px;
    display: block;
}

.innovation-card h3 {
    font-family: 'Public Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #000000;
}

.innovation-card p {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}

.innovation-card .card-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    gap: 6px;
}

.innovation-card .card-cta::after {
    content: "→";
    transition: transform 0.2s ease;
}

.innovation-card:hover .card-cta::after {
    transform: translateX(4px);
}