@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

html { scroll-behavior: smooth; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section, .hero-content, .app-grid, .report-grid {
    animation: fadeInUp 0.8s ease-out both;
}

:root {
    /* Clinical-Grade Aesthetic Palette */
    --primary: #0f172a;       /* Deep Slate (Authority) */
    --primary-dark: #020617;
    --secondary: #0096cc;     /* Vibrant Medical Blue (Matches Coating) */
    --accent: #22d3ee;        /* Clinical Cyan (Harmonious Highlight) */
    --text-main: #334155;
    --text-light: #64748b;
    --bg-main: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    
    --radius: 12px;           /* Softer, more modern corners */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    color: var(--secondary);
    line-height: 1.2;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Utilities */
.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}
.text-center { text-align: center; }
.section { padding: 80px 0; position: relative; }
.bg-alt { background-color: var(--bg-alt); position: relative; z-index: 1; }
.bg-secondary { background-color: var(--secondary); color: white; position: relative; z-index: 1; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

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

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

/* Header */
.topbar {
    background: var(--bg-alt);
    color: var(--text-light);
    font-size: 13px;
    padding: 8px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
}

.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand img {
    height: 45px;
}

.menu {
    display: flex;
    gap: 30px;
    font-size: 15px;
    font-weight: 600;
    color: var(--secondary);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

/* Placeholder for a surgery background image overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('img/hero-bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.6; 
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 60px);
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.8;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-pillars {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-pillars span {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    backdrop-filter: blur(5px);
}

.badge-clinical {
    background: #f1f5f9;
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 40px 30px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
    transform: translateY(-5px);
}

/* New Utility Classes for Clean HTML */
.hero-eyebrow {
    color: var(--accent);
    opacity: 1;
    font-weight: 800;
}

.hero-cta-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-outline {
    color: white;
    border-color: white;
    backdrop-filter: blur(5px);
}

.service-feature-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    transform: translateY(150%);
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    font-size: 14px;
    color: var(--text-main);
}

.cookie-content a {
    color: var(--secondary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
}

.national-title {
    font-size: 40px;
    margin-bottom: 20px;
}

.national-text {
    font-size: 18px;
    margin-bottom: 30px;
}

.national-img-container {
    position: relative;
}

.national-img {
    width: 100%;
    border-radius: var(--radius);
    filter: grayscale(0.2);
    box-shadow: var(--shadow);
}

.floating-glass {
    position: absolute;
    bottom: -20px;
    left: -20px;
    padding: 1.5rem;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.process-grid-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Responsiveness Fixes */
@media (max-width: 768px) {
    .national-grid, .process-grid-main {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .floating-glass {
        position: static !important;
        margin-top: 1rem;
    }
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 150, 204, 0.1);
    color: var(--secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: bold;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.process-step {
    background: var(--bg-main);
    padding: 30px;
    border-top: 4px solid var(--secondary);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.process-step .step-num {
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
}

.process-step h4 { margin-bottom: 10px; font-size: 18px; }
.process-step p { color: var(--text-light); font-size: 14px; }

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-main);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-info {
    background: var(--secondary);
    color: white;
    padding: 50px;
}

.contact-info h3 { color: white; margin-bottom: 20px; }
.contact-info p { opacity: 0.8; margin-bottom: 30px; }

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.contact-form {
    padding: 50px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--secondary);
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img { height: 40px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-brand p { opacity: 0.7; font-size: 14px; max-width: 300px; }

.footer-links h4 { color: white; margin-bottom: 20px; font-size: 18px; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a { color: rgba(255,255,255,0.7); font-size: 15px; }
.footer-links ul li a:hover { color: var(--primary); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
}

/* App Section */
.app-section {
    background: var(--secondary);
    color: white;
    padding: 100px 0;
}

.app-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.app-content h2 {
    color: white;
    font-size: 40px;
    margin-bottom: 20px;
}

.app-content p {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    margin-bottom: 30px;
}

.app-features {
    list-style: none;
    margin-bottom: 40px;
}

.app-features li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    margin-bottom: 30px;
    align-items: start;
}

.app-features li .check {
    color: var(--primary);
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
}

.app-features li strong {
    display: block;
    color: var(--secondary);
    font-size: 18px;
    margin-bottom: 4px;
}

/* Ensure visibility in dark sections */
.app-section .app-features li strong {
    color: white;
}

.app-features li div {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.app-section .app-features li div {
    color: rgba(255, 255, 255, 0.8);
}

.app-image img {
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.process-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.report-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    padding: 120px 0;
}

.report-images {
    position: relative;
    height: 700px;
    width: 100%;
}

.report-images img {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 8px solid white; /* Thick white border for premium feel */
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.report-p1 {
    width: 320px;
    top: 20px;
    right: 180px;
    z-index: 2;
    transform: rotate(-3deg);
}

.report-p2 {
    width: 320px;
    top: 100px;
    right: 60px;
    z-index: 1;
    transform: rotate(3deg);
}

.instrument-gallery-overlay {
    position: absolute;
    bottom: 20px;
    right: 0;
    width: 520px; /* Slightly larger */
    z-index: 10;
}

.instrument-gallery-overlay img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 30px 70px rgba(0,0,0,0.25);
    border: 6px solid white;
    position: static !important;
}

.report-images:hover .report-p1 { transform: rotate(-5deg) translate(-20px, -10px); }
.report-images:hover .report-p2 { transform: rotate(5deg) translate(20px, 10px); }
.report-images:hover .instrument-gallery-overlay { transform: translateY(-20px); }

.instrument-gallery-overlay {
    display: block;
}

.iso-badge {
    background: white;
    padding: 20px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 180px;
}

.iso-badge strong {
    display: block;
    font-size: 22px;
    color: var(--secondary);
    margin-bottom: 5px;
    font-family: 'Outfit', sans-serif;
}

.iso-badge span {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .menu, .topbar { display: none; }
    .hero h1 { font-size: 36px; }
    .process-wrapper { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .app-grid { grid-template-columns: 1fr; }
    .report-grid { grid-template-columns: 1fr; gap: 30px; }
}