/* 
   ==========================================================================
   Premium Medical Design System & Styling
   ========================================================================== 
*/

:root {
    /* Color Palette */
    --color-primary: #D31224; /* Brand Red */
    --color-primary-light: #E83F4E;
    --color-primary-dark: #A60C19;
    
    --color-accent: #FDB827; /* Brand Yellow */
    --color-accent-light: #FFC94D;
    
    --color-surface: #ffffff;
    --color-background: #f8fafc;
    --color-background-alt: #f1f5f9;
    
    --color-text-main: #0f172a;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;
    
    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Layout */
    --container-max: 1200px;
    --section-padding: 5rem;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
}

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

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding) 0;
}

.bg-light {
    background-color: var(--color-background-alt);
}

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

.text-white {
    color: white !important;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    margin-bottom: 2rem;
}

.title-underline.center {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    font-family: var(--font-sans);
    border: 2px solid transparent;
}

.btn-icon {
    width: 18px;
    height: 18px;
    margin-left: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    box-shadow: 0 4px 14px 0 rgba(3, 105, 161, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(3, 105, 161, 0.5);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: white;
    color: white;
}

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

.btn-block {
    width: 100%;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 1rem 0;
}

.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo-icon {
    color: var(--color-primary);
    width: 32px;
    height: 32px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary-dark);
    line-height: 1;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    z-index: 1001;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform var(--transition-slow);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem; /* Account for fixed header */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-text-content {
    max-width: 650px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(13, 148, 136, 0.2);
    color: var(--color-accent-light);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Features Bar */
.features-bar {
    background: var(--color-surface);
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
    margin-top: -3rem;
    border-radius: 12px;
    max-width: calc(var(--container-max) - 3rem);
    margin-left: auto;
    margin-right: auto;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 1rem;
}

.feature-item:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--color-background-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: transform var(--transition-normal);
}

.feature-item:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background: var(--color-primary);
    color: white;
}

.feature-icon-wrapper i {
    width: 28px;
    height: 28px;
}

.feature-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.feature-info p {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.about-list {
    list-style: none;
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.125rem;
}

.about-list li i {
    color: var(--color-accent);
}

.about-image-wrapper {
    position: relative;
}

.about-image-card {
    height: 500px;
    background-image: url('images/hero_medical_bg_1785491622741.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    position: relative;
}

.about-image-card::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 2px solid var(--color-primary-light);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.3;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.experience-badge .years {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-display);
    line-height: 1;
}

.experience-badge .text {
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.2;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

.service-img-container {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.placeholder-img {
    width: 100%;
    height: 100%;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-accent-light));
}

.service-icon {
    position: absolute;
    bottom: -25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 4px solid var(--color-surface);
    z-index: 2;
    transition: background var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--color-accent);
}

.service-content {
    padding: 2.5rem 2rem 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--color-text-muted);
}

/* Contact Section */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    padding: 4rem;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: white;
}

.contact-info .section-title,
.contact-info h4 {
    color: white;
}

.contact-info .title-underline {
    background: var(--color-accent-light);
}

.contact-desc {
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item p {
    color: rgba(255,255,255,0.8);
    margin-top: 0.25rem;
}

.social-links {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    margin-right: 0.75rem;
    margin-top: 1rem;
}

.social-btn:hover {
    background: var(--color-accent);
}

.contact-form-container {
    padding: 4rem;
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(3, 105, 161, 0.1);
}

textarea.form-control {
    resize: vertical;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about {
    color: #94a3b8;
    margin-top: 1.5rem;
    max-width: 350px;
}

.footer-links-group {
    display: flex;
    justify-content: space-around;
}

.footer-widget h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--color-accent-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #94a3b8;
    font-size: 0.875rem;
}

.heart-icon {
    width: 14px;
    height: 14px;
    color: #ef4444;
    display: inline;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .features-bar {
        max-width: 100%;
        margin-left: 1.5rem;
        margin-right: 1.5rem;
    }
    .about-container { gap: 2rem; }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-info {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    
    .hero-title { font-size: 2.75rem; }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image-card {
        height: 400px;
        margin-top: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links-group {
        justify-content: space-between;
    }
    
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.25rem; }
    .hero-cta { flex-direction: column; }
    .btn { width: 100%; }
    .contact-form-container { padding: 2rem 1.5rem; }
}
