/* =========================================
   1. VARIABLES & DESIGN TOKENS
   ========================================= */
:root {
    /* Brand Colors - New Palette */
    --color-primary: #0e323f;
    /* Deep Teal */
    --color-secondary: #20728C;
    /* Teal Blue */
    --color-accent: #8d364a;
    /* Muted Burgundy */
    --color-highlight: #8d861d;
    /* Olive Green */
    --color-bg-alt: #e9dde0;
    /* Pale Pink */

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-off-white: #F8F9FA;
    /* Keeping clinical white for main backgrounds */
    --color-light-gray: #E0E0E0;
    --color-text-dark: #1A1A1A;
    --color-text-light: #4A4A4A;
    --color-background-dark: #111111;

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-standard: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================
   2. GLOBAL RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scroll-behavior: smooth; - Temporarily disabled for Safari debugging */
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
}

/* Safari scroll lock support - improved */
/* position/width/height now controlled exclusively by JavaScript inline styles */
body.modal-open {
    overflow: hidden !important;
    -webkit-overflow-scrolling: auto !important;
}

html.modal-open {
    overflow: hidden !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-text-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   3. UTILITIES & COMPONENTS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    pointer-events: auto;
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-standard);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.learn-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

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

/* =========================================
   4. HEADER & NAV
   =========================================*/
/* Header */
header {
    padding: var(--spacing-sm) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.05);
    /* Start transparent */
    border-bottom: 1px solid transparent;
    transition: var(--transition-standard);
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-light-gray);
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    /* Adjust based on logo aspect ratio */
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-dark);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dropdown-toggle::after {
    content: '▾';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    min-width: 220px;
    border-radius: var(--radius-md);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-light-gray);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-standard);
    z-index: 100;
}

/* Arrow indicator for dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--color-light-gray);
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(255, 255, 255, 0.95);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background-color: rgba(32, 114, 140, 0.1);
    color: var(--color-secondary);
}

.dropdown-menu a::after {
    display: none;
    /* Disable underline for dropdown items */
}

/* Scrolled Header Adjustment */
header.scrolled .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.98);
}

.nav-links .btn-nav,
.nav-links a.btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    color: var(--color-white) !important;
}

/* Mobile Toggle - Hidden by default on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
    /* Ensure it stays above the overlay */
    position: relative;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Transform hamburger to X when open */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay for click-outside to close */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background-color: var(--color-off-white);
    overflow: visible;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* Gradient Mask for seamless blending into white on left */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            var(--color-off-white) 10%,
            rgba(248, 249, 250, 0.8) 40%,
            rgba(248, 249, 250, 0) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    pointer-events: auto;
}

.hero-subtitle {
    display: block;
    color: var(--color-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.05;
    background: linear-gradient(90deg, var(--color-primary), #20728C);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    max-width: 90%;
}

.cta-group {
    display: flex;
    gap: var(--spacing-sm);
}

/* =========================================
   6. MISSION / ABOUT SECTION
   ========================================= */
.mission-section {
    padding: var(--spacing-xl) 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.section-label {
    display: block;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1px;
}

.mission-text h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.mission-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    transition: var(--transition-standard);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    display: block;
}

/* =========================================
   7. PARTNERS SECTION
   ========================================= */
.partners-section {
    padding: var(--spacing-lg) 0;
    background-color: var(--color-off-white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.partner-card {
    background: var(--color-white);
    padding: 2rem;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-standard);
    border: 1px solid transparent;
}

.partner-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.partner-logo-home {
    height: 80px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.partner-type {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
}

/* =========================================
   8. SOLUTIONS SECTION (The Pillars)
   ========================================= */
.solutions-section {
    padding: var(--spacing-xl) 0;
}

.pillar-block {
    margin-bottom: var(--spacing-xl);
}

.pillar-block:last-child {
    margin-bottom: 0;
}

.pillar-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.pillar-icon {
    font-size: 3rem;
    line-height: 1;
    background: var(--color-off-white);
    padding: 1rem;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    color: var(--color-secondary);
}

.pillar-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.pillar-title p {
    font-size: 1.2rem;
    color: var(--color-text-light);
}

/* Premium Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.product-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-standard);
    background: var(--color-white);
    min-height: 320px;
    display: flex;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

/* Category Specific Glows */
#hand-wrist .product-card:hover {
    border-color: #20728C;
    box-shadow: 0 15px 35px rgba(32, 114, 140, 0.15);
}

#ortho-trauma .product-card:hover {
    border-color: #8d364a;
    box-shadow: 0 15px 35px rgba(141, 54, 74, 0.15);
}

#regen-med .product-card:hover {
    border-color: #8d861d;
    box-shadow: 0 15px 35px rgba(141, 134, 29, 0.15);
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        flex-direction: column;
        min-height: auto;
    }

    .card-image-container {
        height: 220px;
        flex: none !important;
    }
}

.card-image-container {
    flex: 0 0 40%;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-img-context {
    opacity: 0;
}

.product-card:hover .card-img-main {
    opacity: 0;
    transform: scale(1.1);
}

.product-card:hover .card-img-context {
    opacity: 1;
}

.card-content-overlay {
    flex: 1;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
}

.card-content-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--color-primary);
}

.card-content-overlay .tagline {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-secondary);
    margin-bottom: 0.75rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    font-size: 0.7rem;
    background: rgba(32, 114, 140, 0.1);
    color: var(--color-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-description {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-action {
    margin-top: 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-action span {
    transition: transform 0.3s ease;
}

.product-card:hover .card-action span {
    transform: translateX(5px);
}

/* =========================================
   9. CONTACT SECTION
   ========================================= */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-info h2 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-md);
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    color: var(--color-secondary);
}

.contact-item strong {
    display: block;
    color: var(--color-secondary);
    /* Distinctive brand accent */
    margin-bottom: 0.2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-link:hover {
    color: var(--color-secondary);
}

.map-box {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #333;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-heading);
    font-weight: 700;
    border: 1px solid #444;
}

/* =========================================
   9.5 EU FUNDING ACKNOWLEDGMENT SECTION
   ========================================= */
.eu-funding-section {
    background-color: #1a1a1a;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.eu-funding-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.eu-funding-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.sponsor-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.sponsor-logo.cyprus-logo {
    height: 90px;
}

.sponsor-logo.eu-logo {
    height: 70px;
}

.eu-funding-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    max-width: 700px;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .eu-funding-logos {
        gap: 2rem;
    }

    .sponsor-logo {
        height: 60px;
    }

    .sponsor-logo.cyprus-logo {
        height: 70px;
    }

    .sponsor-logo.eu-logo {
        height: 55px;
        width: auto;
        max-width: 100%;
    }

    .footer-social svg {
        width: 24px;
        height: 24px;
        max-width: 24px;
    }

    .eu-funding-text {
        font-size: 0.85rem;
        padding: 0 1rem;
    }
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background-color: var(--color-background-dark);
    /* fallback */
    background: linear-gradient(to right, #001e2e, #001219);
    /* Deep branded dark */
    color: #fff;
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand .logo-img {
    height: 45px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    max-width: 300px;
    font-size: 0.9rem;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: 1rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--color-secondary);
    transform: scale(1.15);
}

.footer-social svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* =========================================
   11. ANIMATIONS
   ========================================= */
/* Initial states for intersection observer */
.reveal,
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active,
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* =========================================
   13. SUBPAGE STYLES
   ========================================= */
.page-hero {
    padding-top: 120px;
    padding-bottom: var(--spacing-lg);
    background-color: var(--color-off-white);
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 30px 30px;
}

.page-hero-content {
    max-width: 800px;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-secondary);
}

.partner-detail-section {
    padding: var(--spacing-xl) 0;
}

.partner-intro {
    background-color: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-light-gray);
    margin-bottom: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    min-height: 180px;
}

.partner-logo-area {
    min-width: 200px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.partner-logo-area img {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem !important;
}

.partner-logo-area h2 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.partner-origin {
    color: var(--color-text-light);
    font-weight: 500;
}

.partner-bio {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

.product-detail-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--spacing-md);
    background: var(--color-white);
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    overflow: hidden;
    transition: var(--transition-standard);
    height: 550px;
}

.product-detail-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.product-img-col {
    background-color: var(--color-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    height: 400px;
    min-height: 400px;
}

.product-img {
    max-height: 250px;
    width: auto;
    object-fit: contain;
}

.placeholder-img {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 600;
    border: 2px dashed #ccc;
    border-radius: var(--radius-md);
}

.product-info-col {
    padding: var(--spacing-md);
}

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

.feature-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: var(--color-text-light);
}

.feature-list li {
    margin-bottom: 0.5rem;
}

.cta-section {
    padding: var(--spacing-lg) 0;
    text-align: center;
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.cta-section .btn {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: none;
}

.cta-section .btn:hover {
    background-color: var(--color-off-white);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: -100%;
        top: 0;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--color-white);
        padding: 5rem 2rem;
        transition: var(--transition-standard);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        align-items: flex-start;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
    }

    .nav-item.dropdown {
        width: 100%;
        display: contents;
    }

    .dropdown-toggle {
        width: 100%;
        position: relative;
    }

    .dropdown-toggle::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -4px;
        left: 0;
        background-color: var(--color-primary);
        transition: width 0.3s ease;
    }

    .dropdown-toggle:hover::after {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        -webkit-transform: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: contents;
        box-shadow: none;
        border: none;
        padding: 0;
        background: transparent;
        width: 100%;
    }

    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none;
    }

    .dropdown-menu a {
        font-size: 1.2rem;
        display: block;
        color: var(--color-text-dark);
        width: 100%;
        padding: 0;
    }

    .dropdown-menu a:hover {
        color: var(--color-secondary);
    }

    .nav-links .btn-nav {
        width: 100%;
        margin-top: 1rem;
    }

    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 90px;
    }

    .hero-bg-container {
        position: relative;
        width: 100%;
        height: 300px;
        order: -1;
    }

    .hero-overlay {
        background: linear-gradient(to top, var(--color-off-white) 5%, transparent 100%);
    }

    .hero-content {
        padding: var(--spacing-md) 0;
        text-align: center;
    }

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

    .cta-group {
        justify-content: center;
    }

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

    .mission-stats {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .pillar-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-content {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        flex-direction: column;
        text-align: center;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

    .footer-brand {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
        width: 100%;
    }

    .footer-brand .logo-link {
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        margin: 0 auto;
    }

    .footer-brand .logo-img {
        margin-left: auto;
        margin-right: auto;
    }

    .partner-intro {
        flex-direction: column;
    }

    .product-detail-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 500px;
    }
}

/* =========================================
   13. PRODUCT VISIBILITY ENHANCEMENTS
   ========================================= */

/* Scroll Offset for Fixed Header */
section,
.pillar-block {
    scroll-margin-top: 100px;
}

/* Solution Finder Bar */
.solution-finder-bar {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-light-gray);
    padding: 1.5rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 90;
}

.finder-title {
    text-align: center;
    font-size: 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.finder-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.finder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: var(--color-off-white);
    border: 1px solid transparent;
    min-width: 140px;
    text-align: center;
}

.finder-item:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-secondary);
}

.finder-icon {
    font-size: 1.8rem;
}

.finder-text {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-dark);
}

/* Sticky CTA Button */
.sticky-cta-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(14, 50, 63, 0.4);
    z-index: 1100;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.sticky-cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(14, 50, 63, 0.6);
    background: var(--color-secondary);
}

.sticky-cta-btn::before {
    content: '📩';
    font-size: 1.2rem;
}

/* Interactive Partner Cards */
.partner-card[data-partner-id] {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 2rem 1.5rem;
}

.partner-card[data-partner-id] .partner-type {
    transition: transform 0.3s ease;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
}

.partner-card[data-partner-id]:hover .partner-type {
    transform: translateY(-5px);
}

.partner-card[data-partner-id]::after {
    content: 'View Partner →';
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.partner-card[data-partner-id]:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Lead Generation Form */
.contact-form-container {
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.lead-gen-form h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.lead-gen-form input,
.lead-gen-form select,
.lead-gen-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background: var(--color-off-white);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.lead-gen-form input:focus,
.lead-gen-form select:focus,
.lead-gen-form textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(32, 114, 140, 0.1);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Lead Generation Form */
/* ... existing styles ... */

.popover-footer {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--color-light-gray);
    padding-top: 1.5rem;
}

.popover-cta {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* =========================================
   14. POP-OVER STYLES
   ========================================= */

.popover-overlay {
    position: fixed;
    inset: 0;
    /* Cover entire viewport */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Center modal on screen */
    padding: 2rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Animation State - Hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Delay visibility hide until opacity fade is done */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;

    overflow-y: auto;
    /* Enable scrolling */
    overflow-x: hidden;
    overscroll-behavior: contain;
    /* Prevent body scroll chain */
    /* Safari-specific fixes */
    height: 100%;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    /* Safari mobile fix */
    -webkit-overflow-scrolling: auto;
    /* Disable momentum scrolling that can cause issues */
}

.popover-overlay:not(.hidden) {
    /* Animation State - Visible */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    /* Immediate visibility for fade in */
    transition: opacity 0.3s ease, visibility 0s linear 0s;

    /* Ensure touch events work in Safari */
    touch-action: pan-y;
    /* Allow vertical panning/scrolling */
    -webkit-transform: translateZ(0);
    /* Force hardware acceleration on Safari */
    transform: translateZ(0);
}

.popover-container {
    background-color: var(--color-white);
    width: 500px;
    max-width: 100%;
    /* Avoid clipping on very small screens */
    margin: 0 auto;
    /* Horizontal centering in flex column */
    flex-shrink: 0;
    /* Prevent modal from shrinking */
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    /* Container should not scroll - overlay handles scrolling */
}

.popover-overlay:not(.hidden) .popover-container {
    transform: scale(1);
}

.popover-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.popover-close:hover {
    color: var(--color-accent);
}

.popover-partner-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-light-gray);
    padding-bottom: 1.2rem;
}

.popover-logo {
    height: 60px;
    width: 70px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Specific fix for Vivostat to show only the graphical icon, avoiding text redundancy */
.popover-logo-vivostat {
    object-fit: cover;
    object-position: 0 50%;
    width: 65px;
    height: 65px;
}

.popover-info h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.popover-info span {
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popover-body p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.popover-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

.popover-body li {
    margin-bottom: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .finder-grid {
        gap: 1rem;
    }

    .finder-item {
        padding: 0.8rem;
        min-width: 100px;
        flex: 1;
    }

    .finder-text {
        font-size: 0.8rem;
    }

    .sticky-cta-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }

    .popover-container {
        padding: 1.5rem;
    }

    .popover-partner-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* =========================================
   15. SOLUTION POPOVER & ENQUIRY FORM
   ========================================= */

.solution-popover {
    width: 520px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.solution-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-light-gray);
}

.solution-header h2 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.solution-header .product-tagline {
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.tech-specs {
    margin-bottom: 2rem;
}

.tech-specs h4 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-specs h4::before {
    content: '⚙️';
    font-size: 1.1rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: var(--color-off-white);
    padding: 1.2rem;
    border-radius: var(--radius-md);
}

.spec-item {
    font-size: 0.9rem;
}

.spec-item strong {
    display: block;
    color: var(--color-text-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.spec-item span {
    color: var(--color-text-dark);
    font-weight: 500;
}

.popover-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.enquiry-dropdown-form {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--color-off-white);
    border: 1px solid var(--color-light-gray);
    display: none;
    /* Controlled by JS */
    animation: slideDown 0.3s ease-out;
}

.enquiry-dropdown-form.active {
    display: block;
}

.popover-enquiry-form .form-group {
    margin-bottom: 1.25rem;
}

.popover-enquiry-form input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
    background: var(--color-white);
}

.popover-enquiry-form input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(32, 114, 140, 0.1);
}

.popover-enquiry-form .btn-block {
    margin-top: 1rem;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.enquiry-dropdown-form h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-primary);
}

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

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

/* Success Message */
.form-success-msg {
    text-align: center;
    padding: 2rem;
    display: none;
}

.form-success-msg.active {
    display: block;
}

.form-success-msg .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Mobile Adjustments for Solution Popover */
@media (max-width: 600px) {
    .solution-popover {
        width: calc(100vw - 40px);
    }

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

    .popover-actions {
        flex-direction: column;
    }
}

/* PDF Viewer Popover */
.pdf-popover {
    width: 95vw;
    height: 95vh;
    max-width: 1400px;
    padding: 0;
    overflow: hidden;
    background: #525659;
    /* Standard PDF viewer background gray */
}

#pdf-viewer-content {
    width: 100%;
    height: 100%;
    padding: 0;
}

#pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.pdf-popover .popover-close {
    top: 10px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pdf-popover .popover-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

/* Form Success Messages */
.form-success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-secondary);
    animation: fadeInScale 0.5s ease-out;
}

.form-success-message .success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    animation: scaleIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-success-message h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.form-success-message p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.form-success-message .success-note {
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.8;
    margin-top: 1rem;
}

/* Popover Success Message (for enquiry forms) */
.form-success-msg {
    display: none;
    text-align: center;
    padding: 2rem;
    animation: fadeInScale 0.5s ease-out;
}

.form-success-msg.active {
    display: block;
}

.form-success-msg .success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

.form-success-msg h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.form-success-msg p {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* =========================================
   15. IMAGE CAROUSEL STYLES
   ========================================= */

/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: var(--color-off-white);
    border-radius: var(--radius-md);
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.carousel-track.dragging {
    transition: none;
    cursor: grabbing;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    padding: 1rem;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    display: block;
    margin: 0 auto;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    z-index: 10;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 0.75rem;
}

.carousel-btn-next {
    right: 0.75rem;
}

.carousel-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
}

.carousel-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    transform: translateY(-50%);
    box-shadow: var(--shadow-sm);
}

.carousel-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* Indicator Dots */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(14, 50, 63, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(14, 50, 63, 0.5);
}

.carousel-dot.active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* Single image state - hide controls */
.carousel.single-image .carousel-btn,
.carousel.single-image .carousel-indicators {
    display: none;
}

/* Loading state */
.carousel-slide.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        opacity: 0.8;
    }

    .carousel:hover .carousel-btn {
        opacity: 0.8;
    }

    .carousel-btn-prev {
        left: 0.5rem;
    }

    .carousel-btn-next {
        right: 0.5rem;
    }

    .carousel-indicators {
        bottom: 0.75rem;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }

    .carousel-slide img {
        max-height: 100%;
    }

    .product-img-col {
        min-height: 300px;
    }
}

/* =========================================
   20. CATALOG PAGE STYLES - PREMIUM REFACTOR
   ========================================= */

/* Hero Section Specifics */
.catalog-hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.catalog-hero h1 {
    font-family: 'Outfit', serif;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

/* Main Layout */
.catalog-section {
    padding: 60px 0;
    min-height: 100vh;
    background-color: #FAFAFA;
}

.catalog-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    position: relative;
}

/* Sidebar Styling */
.filter-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: transparent;
    position: sticky;
    top: 100px;
    padding-right: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-primary);
}

.filter-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    font-family: var(--font-heading);
}

.btn-clear-filters {
    background: #f0f0f0;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--color-text-light);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-filters:hover {
    background: var(--color-accent);
    color: white;
    text-decoration: none;
}

.filter-group {
    margin-bottom: 2.5rem;
}

.filter-group h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

/* Custom Checkbox Styling */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: color 0.2s ease;
    padding: 4px 0;
}

.filter-option:hover {
    color: var(--color-secondary);
}

/* Custom Checkbox Appearance */
.filter-option input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: white;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-option input[type="checkbox"]:checked {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Category Button Filters (replaces checkboxes for categories) */
.category-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    background: var(--color-light-gray);
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 80px;
}

.category-btn:hover {
    background: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--color-secondary);
}

.category-btn.active {
    background: var(--color-white);
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(0, 180, 174, 0.15);
}

.category-btn-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.category-btn-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-dark);
    line-height: 1.2;
}

/* Main Content Area */
.catalog-main {
    flex-grow: 1;
    min-width: 0;
    /* CRITICAL SAFARI FIX: Allows grid to shrink properly */
}

.catalog-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.results-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* Product Grid for Catalog */
.product-catalog-grid {
    display: -webkit-box;
    /* Safari fallback */
    display: -webkit-flex;
    /* Safari fallback */
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    -webkit-box-orient: horizontal;
    -webkit-box-wrap: wrap;
    -webkit-flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    min-height: 200px;
    /* Ensure grid has minimum height */
}

/* Safari-specific grid fix */
@supports (-webkit-touch-callout: none) {
    .product-catalog-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Premium Card Styling */
.catalog-product-card {
    display: -webkit-box;
    /* Safari fallback */
    display: -webkit-flex;
    /* Safari fallback */
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    background: var(--color-white);
    background-color: #ffffff;
    /* Explicit fallback */
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    -webkit-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    min-height: 420px;
    height: auto;
    /* Safari explicit height */
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: relative;
    visibility: visible;
    /* Ensure visibility */
    opacity: 1;
    /* Ensure opacity */
}

.catalog-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-secondary);
}

/* Image Container - Fixed Height & Centered */
.catalog-card-image {
    height: 200px;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* CRITICAL SAFARI FIX for Images */
.catalog-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.catalog-product-card:hover .catalog-card-image img {
    transform: scale(1.05);
}

.catalog-card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.catalog-card-manufacturer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
}

.catalog-card-manufacturer .manufacturer-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.catalog-card-manufacturer .manufacturer-origin {
    font-size: 0.65rem;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.catalog-card-title {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    line-height: 1.25;
}

.catalog-card-tagline {
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.catalog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.view-details_btn {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    background: transparent;
    transition: all 0.3s ease;
}

.catalog-product-card:hover .view-details_btn {
    background: var(--color-primary);
    color: white;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 6rem 2rem;
    background: transparent;
    border: 1px dashed #ccc;
    grid-column: 1 / -1;
}

/* Mobile Responsiveness for Catalog */
@media (max-width: 1024px) {
    .product-catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .catalog-layout {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

    .catalog-main {
        width: 100%;
    }

    .product-catalog-grid {
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        justify-items: center;
    }

    .filter-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
        padding-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .filter-options {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .filter-option {
        background: white;
        padding: 5px 12px;
        border: 1px solid #eee;
        border-radius: 20px;
    }

    .category-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .category-btn {
        flex: 1;
        min-width: 100px;
        padding: 0.75rem 0.5rem;
        min-height: 70px;
    }

    .category-btn-icon {
        font-size: 1.4rem;
    }

    .category-btn-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {
    .catalog-main {
        width: 100%;
        display: block;
    }

    .product-catalog-grid {
        display: block;
        width: 100%;
        text-align: center;
    }

    .catalog-product-card {
        display: block;
        max-width: 400px;
        width: calc(100% - 2rem);
        margin: 0 auto 1.5rem auto;
        text-align: left;
    }

    .catalog-product-card:last-child {
        margin-bottom: 0;
    }

    .filter-options {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -webkit-align-items: flex-start;
        align-items: flex-start;
    }

    .filter-option {
        border: none;
        padding: 5px 0;
        background: transparent;
    }
}

/* =========================================
   21. CATALOG MODAL STYLES (Two-Column Layout)
   ========================================= */

/* Make solution popover wider for two-column layout */
.popover-container.catalog-modal {
    width: 800px;
    max-width: 95vw;
}

/* Two-column layout container */
.catalog-modal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Left: Image Section */
.modal-image-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-main-image {
    background: #1a1a1a;
    border-radius: var(--radius-md);
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
}

.modal-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f5f5f5;
    transition: border-color 0.2s ease;
}

.modal-thumb:hover {
    border-color: var(--color-secondary);
}

.modal-thumb.active {
    border-color: var(--color-primary);
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Right: Content Section */
.modal-content-section {
    display: flex;
    flex-direction: column;
}

.modal-category-tags {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-product-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    font-family: var(--font-heading);
    line-height: 1.2;
}

.modal-manufacturer {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
}

.modal-overview {
    margin-bottom: 1.25rem;
}

.modal-overview h4,
.modal-tech-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.modal-overview p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Technical Information Grid */
.modal-tech-info {
    margin-bottom: 1.5rem;
}

.tech-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1.5rem;
}

.tech-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.tech-check {
    color: var(--color-secondary);
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 1px;
}

.tech-info-content {
    color: var(--color-text-light);
    line-height: 1.4;
}

.tech-info-content strong {
    color: var(--color-text-dark);
}

/* Buttons */
.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-light-gray);
}

.modal-buttons .btn {
    flex: 1;
    padding: 0.85rem 1.25rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-buttons .btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.modal-buttons .btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* Enquiry Form (hidden by default) */
.catalog-enquiry-form {
    width: 100%;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--color-off-white);
    border: 1px solid var(--color-light-gray);
    display: none;
    animation: slideDown 0.3s ease-out;
}

.catalog-enquiry-form.active {
    display: block;
}

.catalog-enquiry-form h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* Success Message */
.catalog-form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    animation: fadeInScale 0.5s ease-out;
}

.catalog-form-success.active {
    display: block;
}

.catalog-form-success .success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

.catalog-form-success h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.catalog-form-success p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* Mobile Adjustments for Catalog Modal */
@media (max-width: 768px) {
    .catalog-modal-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .modal-image-section {
        order: 1;
    }

    .modal-content-section {
        order: 2;
    }

    .modal-main-image {
        height: 220px;
    }

    .modal-product-title {
        font-size: 1.4rem;
    }

    .tech-info-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }
}