/* ===================================
   Hillside Open MRI - Custom Styles
   Classic & Elegant Design System
   =================================== */

/* CSS Custom Properties */
:root {
    /* Color Palette - Emerald & Cream */
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-100: #d1fae5;
    --emerald-50: #ecfdf5;
    
    --cream-900: #1c1917;
    --cream-800: #292524;
    --cream-700: #44403c;
    --cream-600: #57534e;
    --cream-500: #78716c;
    --cream-200: #e7e5e4;
    --cream-100: #f5f5f4;
    --cream-50: #fafaf9;
    --cream-25: #fcfcfb;
    
    /* Accent */
    --gold-500: #d97706;
    --gold-100: #fef3c7;
    
    /* Typography */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--cream-800);
    background-color: var(--cream-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 249, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--cream-200);
    transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--emerald-800);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--emerald-100);
    border-radius: var(--radius-md);
    color: var(--emerald-700);
}

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

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cream-700);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--emerald-700);
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--cream-700);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--emerald-700);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--emerald-800);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--emerald-700);
    border: 2px solid var(--emerald-700);
}

.btn-secondary:hover {
    background: var(--emerald-50);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--cream-50) 0%, var(--emerald-50) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, var(--emerald-100) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--emerald-700);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--cream-900);
    margin-bottom: var(--space-lg);
}

.text-emerald {
    color: var(--emerald-700);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--cream-600);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image {
    width: 100%;
    height: 700px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.3) 0%, transparent 50%);
}

/* Floating Stat Cards */
.stat-card {
    position: absolute;
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    z-index: 2;
}

.stat-card-1 {
    bottom: 40px;
    left: -30px;
    animation: float 4s ease-in-out infinite;
}

.stat-card-2 {
    top: 40px;
    right: -20px;
    animation: float 4s ease-in-out infinite 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cream-900);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--cream-500);
}

/* ===================================
   Section Common Styles
   =================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald-700);
    margin-bottom: var(--space-sm);
}

.section-tag.light {
    color: var(--emerald-100);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--cream-900);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-title.light {
    color: white;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--cream-600);
    line-height: 1.7;
}

.section-subtitle.light {
    color: var(--cream-200);
}

/* ===================================
   Services Section
   =================================== */
.services {
    padding: var(--space-3xl) 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.service-card {
    padding: var(--space-xl);
    background: var(--cream-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--cream-200);
    transition: all var(--transition-base);
}

.service-card:hover {
    background: white;
    border-color: var(--emerald-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cream-900);
    margin-bottom: var(--space-sm);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--cream-600);
    line-height: 1.7;
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--space-3xl) 0;
    background: var(--cream-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

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

.about-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--emerald-100);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-content {
    max-width: 480px;
}

.about-text {
    font-size: 1rem;
    color: var(--cream-600);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-features {
    margin-top: var(--space-xl);
    display: grid;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--emerald-600);
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.9375rem;
    color: var(--cream-700);
    font-weight: 500;
}

/* ===================================
   Patient Info Section
   =================================== */
.patient-info {
    padding: var(--space-3xl) 0;
    background: var(--emerald-800);
    position: relative;
}

.patient-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, var(--emerald-700) 0%, var(--emerald-900) 100%);
    pointer-events: none;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.info-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.info-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--emerald-300);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--space-md);
}

.info-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-sm);
}

.info-card p {
    font-size: 0.9375rem;
    color: var(--cream-200);
    line-height: 1.7;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: var(--space-3xl) 0;
    background: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
}

.contact-text {
    font-size: 1rem;
    color: var(--cream-600);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--emerald-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-700);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cream-500);
    margin-bottom: 0.25rem;
}

.contact-item p {
    font-size: 0.9375rem;
    color: var(--cream-700);
    line-height: 1.6;
}

.contact-link {
    color: var(--emerald-700);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--emerald-800);
    text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--cream-50);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--cream-200);
}

.contact-form h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cream-900);
    margin-bottom: var(--space-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cream-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--cream-900);
    background: white;
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 3px var(--emerald-100);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--cream-500);
}

.form-success {
    display: none;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--emerald-50);
    border: 1px solid var(--emerald-200);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.form-success svg {
    color: var(--emerald-600);
    flex-shrink: 0;
}

.form-success p {
    font-size: 0.9375rem;
    color: var(--emerald-800);
}

/* ===================================
   Map Section
   =================================== */
.map-section {
    height: 350px;
    background: var(--cream-200);
}

.map-section iframe {
    filter: grayscale(30%) contrast(1.1);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--cream-900);
    color: var(--cream-200);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-brand .logo-icon {
    background: var(--emerald-800);
    color: var(--emerald-400);
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--cream-500);
    line-height: 1.7;
    max-width: 320px;
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-col h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-md);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col ul li {
    font-size: 0.9375rem;
    color: var(--cream-500);
}

.footer-col ul li a {
    color: var(--cream-500);
}

.footer-col ul li a:hover {
    color: var(--emerald-400);
}

.footer-bottom {
    border-top: 1px solid var(--cream-800);
    padding-top: var(--space-lg);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--cream-600);
    text-align: center;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .stat-card-1 {
        left: 10px;
    }
    
    .stat-card-2 {
        right: 10px;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .about-image-wrapper {
        order: -1;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--cream-200);
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 72px;
        min-height: auto;
        padding-bottom: var(--space-2xl);
    }
    
    .hero-image {
        height: 400px;
    }
    
    .stat-card {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        top: auto;
        margin-top: var(--space-md);
        animation: none;
    }
    
    .stat-card-1,
    .stat-card-2 {
        margin-top: var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .about-image {
        height: 300px;
    }
    
    .about-accent {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
