/* =========================================================================
   SGM Medical Instruments - REDESIGN "TECH/CLINICAL"
   ========================================================================= */

:root {
    /* Brand Colors - Exact and solid matching the SGM Banner Logo (Blue, Red and background) */
    --clr-primary-red: #da251d;
    /* Rosso intenso SGM */
    --clr-primary-red-hover: #b41d17;
    --clr-primary-blue: #1c3664;
    /* Blu istituzionale SGM */
    --clr-primary-blue-light: #2c559c;
    /* Blu di supporto per hover */

    /* Technical Neutrals */
    --clr-bg-pure-white: #ffffff;
    /* Sfondo del sito, coerente con lo sfondo del logo */
    --clr-bg-light: #F4F7F9;
    /* Colder tech gray */
    --clr-bg-dark: #050E1D;

    --clr-text-main: #2A3B4C;
    --clr-text-muted: #64748B;
    --clr-text-white: #FFFFFF;

    /* Utility */
    --shadow-sm: 0 2px 4px rgba(10, 25, 47, 0.05);
    --shadow-md: 0 8px 16px rgba(10, 25, 47, 0.08);
    --shadow-lg: 0 16px 32px rgba(10, 25, 47, 0.1);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 14px; /* More significant reduction to 14px for a sleeker look */
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--clr-text-main);
    background-color: var(--clr-bg-pure-white);
    /* Enforce clinical white */
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(to right, var(--clr-primary-blue) 0%, #00AEEF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 3rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--clr-text-white) !important;
}

.text-red {
    color: var(--clr-primary-red);
}

.text-muted {
    color: var(--clr-text-muted);
}

.bg-light {
    background-color: var(--clr-bg-light);
}

.bg-dark-blue {
    background-color: var(--clr-primary-blue);
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.w-100 {
    width: 100%;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius-sm);
    /* Sharper technical edges */
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary-red);
    color: var(--clr-text-white) !important;
}

.btn-primary:hover {
    background-color: var(--clr-primary-red-hover);
    box-shadow: 0 4px 12px rgba(193, 18, 31, 0.4);
}

.btn-secondary {
    background-color: var(--clr-primary-blue);
    color: var(--clr-text-white) !important;
}

.btn-secondary:hover {
    background-color: var(--clr-primary-blue-light);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--clr-primary-blue);
    border-color: var(--clr-primary-blue);
}

.btn-outline:hover {
    background-color: var(--clr-primary-blue);
    color: var(--clr-text-white) !important;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Top Banner Logo --- */
.top-banner-logo {
    width: 100%;
    background-color: var(--clr-primary-blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 0;
}

.top-banner-logo .container-fluid {
    width: 100%;
    padding: 0;
}

.top-banner-logo img {
    width: 100%;
    max-height: 250px;
    height: auto;
    object-fit: contain;
    object-position: center 60%;
    display: block;
}

/* --- Navbar (Sleek Horizontal) --- */
.navbar {
    position: relative;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to right, var(--clr-primary-blue) 0%, #00AEEF 100%);
    /* Lighter Blue to Darker Celeste gradient */
    color: var(--clr-text-white);
    transition: all var(--transition);
    padding: 0;
    box-shadow: var(--shadow-md);
}

/* Navbar becomes fixed when scrolled past */
.navbar.scrolled {
    position: fixed;
    top: 0;
    animation: slideDown 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}


.desktop-nav {
    margin: 0 auto;
    /* Center the links */
}

.desktop-nav .nav-links {
    display: flex;
    gap: 0;
    /* Links fill space */
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    display: block;
    color: var(--clr-text-white);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1.2rem 1.5rem;
    position: relative;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links li:last-child a {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--clr-primary-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    transform: scaleX(1);
    background-color: var(--clr-primary-red);
    color: #fff;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-links .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--clr-primary-blue);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 1001;
}

.nav-links .has-dropdown:hover .nav-dropdown,
.nav-links .has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .nav-dropdown li a {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
}

.nav-links .nav-dropdown li a::after {
    display: none;
}

.nav-links .nav-dropdown li a:hover {
    background: var(--clr-primary-blue-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    padding-left: 1rem;
}

.nav-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-text-white);
    cursor: pointer;
    padding: 1rem;
}

/* Base Sections */
.section {
    padding: 6rem 0;
}

.section-title-wrap {
    margin-bottom: 4rem;
}

.section-title-wrap h2 {
    font-size: 2.2rem; /* Reduced from 2.4rem */
    margin-bottom: 1rem;
}

.title-line {
    width: 60px;
    height: 4px;
    background-color: var(--clr-primary-red);
    margin: 0 auto;
}

.title-line.left-align {
    margin: 0;
}

.subtitle {
    font-size: 1.1rem; /* Slightly reduced from 1.2rem */
    color: var(--clr-text-muted);
    margin-top: 1rem;
}

/* --- Hero Split (Modern Wide Layout) --- */
.hero-split {
    min-height: calc(100vh - 200px);
    /* Account for larger banner */
    display: flex;
    background-color: var(--clr-bg-pure-white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    padding: 4rem 5% 4rem 10%;
    z-index: 2;
}

.hero-text-box h1 {
    font-size: 3rem; /* Significant reduction from 3.5rem for much better balance */
    margin-bottom: 1.5rem;
    color: var(--clr-primary-blue);
    letter-spacing: -1.2px;
}

.hero-text-box p {
    font-size: 1.1rem; /* Slightly reduced from 1.2rem */
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(193, 18, 31, 0.08);
    color: var(--clr-primary-red);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(193, 18, 31, 0.2);
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-box {
    flex: 1;
    position: relative;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 15%);
}

/* --- Partners Strip --- */
.partners-strip {
    background-color: var(--clr-bg-light);
    /* Softer approach for trust strip */
    color: var(--clr-text-muted);
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.partners-grid {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Tightened further to save space for 8 partners */
}

.partner-label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--clr-primary-blue);
    position: relative;
}

.partner-label::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.1);
}


.partner-logos-scroll {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.4rem; /* Further tightened for 8 colors */
    flex: 1;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: visible;
    padding: 0 5px;
}

.partner-logos-scroll::-webkit-scrollbar {
    display: none;
}

/* Chrome */

.partner {
    font-weight: 700;
    font-size: 0.85rem; /* Balanced for 8 items */
    letter-spacing: 0.3px;
    opacity: 0.85;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 4px 8px; /* Room for "behind" color */
    border-radius: 4px;
}

.partner:hover {
    opacity: 1;
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.8); /* Subtle highlight behind */
}

/* Commercial Brand Colors */
.brand-stryker { color: #FFC20F; } /* Stryker Gold */
.brand-adexte { color: #0054A6; } /* Adexte Blue */
.brand-voden { color: #0096D6; } /* Voden Cyan */
.brand-lina { color: #BF2228; } /* Lina Red */
.brand-microfrance { color: #003399; } /* Microfrance Deep Blue */
.brand-tontarra { color: #D32F2F; } /* Tontarra Surgical Red */
.brand-ujet { color: #F05023; } /* Ujet Orange */
.brand-eurocarta { color: #2E7D32; } /* Eurocarta Green */

.partner:not(:last-child)::after {
    content: '•';
    margin-left: 0.5rem; /* Tightened bullet spacing */
    -webkit-text-fill-color: #cbd5e1;
    font-size: 0.9rem;
}

.partner:hover {
    transform: scale(1.1); /* Zoom effect */
    opacity: 1;
    filter: brightness(1.2);
}

/* --- Clinical Areas (Cards grid) --- */
.clinical-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.clinical-card {
    background: var(--clr-bg-pure-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.clinical-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(193, 18, 31, 0.2);
}

.card-img-wrap {
    height: 240px;
    position: relative;
    overflow: visible;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef4f9 100%);
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Non tagliare le immagini cartoon */
    padding: 1.1rem; /* Margine interno per non incollarle ai bordi */
    transition: transform 0.6s ease;
}

.clinical-card:hover .card-img-wrap img {
    transform: scale(1.05);
}

/* For images that should fill the entire header area (like surgical views) */
.card-img-wrap.full-img {
    padding: 0;
    overflow: hidden;
}

.card-img-wrap.full-img img {
    padding: 0;
    object-fit: cover;
}

.placeholder-img {
    height: 100%;
    width: 100%;
}

.card-icon {
    position: absolute;
    bottom: -25px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--clr-primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--clr-bg-pure-white);
    z-index: 10;
}

.card-body {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    min-height: 4.2rem;
}

.card-body p {
    color: var(--clr-text-muted);
    min-height: 7.8rem;
    margin-bottom: 1.25rem;
}

.card-cta-row {
    margin-top: auto;
    padding-top: 1.35rem;
}

.card-cta-row .btn {
    width: 100%;
    justify-content: center;
}

.card-body .cat-brands {
    display: block;
    min-height: 3rem;
    padding-top: 0.3rem;
}

/* --- Values/Catalog Section (Flex Layout) --- */
.flex-layout {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.catalog-intro {
    flex: 0 0 35%;
}

.catalog-intro h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.catalog-intro p {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.catalog-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cat-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: var(--clr-bg-pure-white);
    border-radius: var(--border-radius-md);
    border-left: 4px solid transparent;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.cat-item:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--clr-primary-red);
    transform: translateX(10px);
}

.cat-icon {
    font-size: 2.5rem;
    color: var(--clr-primary-blue);
    background: rgba(10, 25, 47, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    flex-shrink: 0;
}

.cat-item:hover .cat-icon {
    background: var(--clr-primary-red);
    color: white;
}

.cat-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.cat-text p {
    color: var(--clr-text-muted);
    margin-bottom: 0;
}

.cat-brands {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--clr-primary-red);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Service CTA --- */
.service-section {
    background: linear-gradient(135deg, var(--clr-primary-blue) 0%, var(--clr-bg-dark) 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.service-icon-large {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.service-section h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
}

.service-desc {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    opacity: 0.8;
}

/* --- Footer & Form --- */
.main-footer {
    background-color: var(--clr-bg-pure-white);
    padding: 5rem 0 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.contact-list {
    margin-top: 2rem;
}

.contact-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--clr-primary-blue);
    font-size: 1.05rem;
}

.footer-links h4,
.footer-form-wrapper h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--clr-primary-blue);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--clr-primary-red);
    padding-left: 5px;
}

/* Form */
.dark-form {
    background: var(--clr-bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.dark-form input,
.dark-form select,
.dark-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    background: var(--clr-bg-pure-white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition);
    margin-bottom: 1rem;
}

.form-row input {
    margin-bottom: 0;
}

.dark-form input:focus,
.dark-form select:focus,
.dark-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary-blue);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--clr-text-muted);
    font-size: 0.9rem;
}

/* --- Mobile Menu --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--clr-bg-pure-white);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.close-menu {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--clr-primary-blue);
    cursor: pointer;
}

.mobile-nav ul {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav ul li a {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-primary-blue);
    text-transform: uppercase;
}

/* --- Animations --- */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-left {
    animation: fadeInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.fade-in-right {
    animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- SEO landing pages --- */
.landing-hero {
    background:
        linear-gradient(135deg, rgba(244, 247, 249, 0.94) 0%, rgba(255, 255, 255, 0.98) 58%),
        radial-gradient(circle at 82% 18%, rgba(218, 37, 29, 0.08), transparent 28%);
    padding: 5rem 0;
    overflow: hidden;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: 4rem;
}

.landing-copy h1 {
    font-size: 4rem;
    margin: 1.2rem 0;
}

.landing-copy p {
    color: var(--clr-text-muted);
    font-size: 1.18rem;
    max-width: 680px;
    margin-bottom: 2rem;
}

.landing-visual {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-visual::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: #eef5fb;
    border: 1px solid rgba(28, 54, 100, 0.08);
    box-shadow: var(--shadow-lg);
}

.landing-visual img {
    position: relative;
    max-height: 390px;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(10, 25, 47, 0.15));
}

.landing-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3rem;
    align-items: start;
}

.landing-article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 2.4rem;
    box-shadow: var(--shadow-sm);
}

.landing-article h2 {
    margin-bottom: 1.4rem;
}

.landing-article p {
    color: var(--clr-text-main);
    margin-bottom: 1.1rem;
}

.landing-side {
    display: grid;
    gap: 1.4rem;
    position: sticky;
    top: 110px;
}

.landing-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius-md);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
}

.landing-panel h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.landing-panel li {
    display: flex;
    gap: 0.75rem;
    color: var(--clr-text-muted);
    margin-bottom: 0.85rem;
}

.landing-panel i {
    color: var(--clr-primary-red);
    margin-top: 0.25rem;
}

.landing-mini-grid .clinical-card {
    min-height: 180px;
}

.landing-cta-band {
    margin-top: 0;
}

.related-solutions {
    text-align: center;
}

.related-solutions h2 {
    margin-bottom: 1.5rem;
}

.related-solutions div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.related-solutions a {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    color: var(--clr-primary-blue);
    font-weight: 700;
    padding: 0.7rem 1rem;
    box-shadow: var(--shadow-sm);
}

.related-solutions a:hover {
    border-color: var(--clr-primary-red);
    color: var(--clr-primary-red);
}

.whatsapp-float {
    position: fixed;
    left: 1.4rem;
    right: auto;
    bottom: 1.4rem;
    z-index: 1200;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #ffffff;
    font-size: 1.75rem;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.36);
}

.whatsapp-float:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .flex-layout {
        flex-direction: column;
    }

    .hero-split {
        flex-direction: column;
        padding-top: 0;
    }

    .hero-content {
        padding: 4rem 2rem;
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-image-box {
        clip-path: none;
        height: 400px;
        width: 100%;
    }

    .tech-overlay {
        background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 30%);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .landing-hero-grid,
    .landing-content-grid {
        grid-template-columns: 1fr;
    }

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

    .landing-copy {
        text-align: center;
    }

    .landing-copy p,
    .landing-copy .hero-cta-group {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .landing-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {

    .desktop-nav,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-text-box h1 {
        font-size: 2.8rem; /* Slightly smaller for tablets */
    }

    .clinical-grid {
        grid-template-columns: 1fr;
    }

    .container-fluid {
        padding: 0 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-row input {
        margin-bottom: 0;
    }

    .partner-logos-scroll {
        flex-wrap: wrap; /* Only wrap on tablet/mobile screens */
        justify-content: center;
        gap: 1rem;
        overflow-x: visible;
        padding: 0;
    }

    .partner {
        font-size: 0.85rem;
    }

    .partner-label::after {
        display: none;
    }

    .landing-hero {
        padding: 3.5rem 0;
    }

    .landing-copy h1 {
        font-size: 2.6rem;
    }

    .landing-visual {
        min-height: 280px;
    }

    .landing-visual img {
        max-height: 280px;
    }

    .landing-article {
        padding: 1.5rem;
    }

    .landing-side {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        left: 1rem;
        right: auto;
        bottom: 1rem;
    }
}




@media (max-width: 600px) {
    .hero-text-box h1 {
        font-size: 2.2rem; /* Appropriately scaled for phones */
    }

    .hero-image-box {
        height: 250px; /* Shorter on mobile phones to save vertical space */
    }

    .hero-content {
        padding: 3rem 1.5rem;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 1rem;
    }

    .partner-strip .container-fluid {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .partner-label {
        font-size: 0.9rem;
    }

    .partner-label::after {
        display: none;
    }

}
