/* ============================================
   St. Luke's Quakertown Hospital
   Clean Minimalist — Emerald & Cream
   ============================================ */

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

:root {
    --emerald-900: #042f23;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #047857;
    --emerald-500: #059669;
    --emerald-400: #10b981;
    --cream-50: #FAFAF8;
    --cream-100: #F5F0E8;
    --cream-200: #EDE8DC;
    --cream-300: #E8E2D4;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #6b6b6b;
    --white: #ffffff;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-primary);
    background-color: var(--cream-50);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-primary);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.938rem;
    letter-spacing: 0.01em;
    padding: 14px 28px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.btn-lg {
    padding: 17px 34px;
    font-size: 1rem;
}

.btn-emerald {
    background: var(--emerald-600);
    color: var(--white);
    border-color: var(--emerald-600);
}

.btn-emerald:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(4, 120, 87, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--emerald-700);
    border-color: var(--emerald-600);
}

.btn-outline:hover {
    background: var(--emerald-600);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--emerald-700);
    border-color: var(--cream-300);
}

.btn-ghost:hover {
    border-color: var(--emerald-600);
    background: rgba(4, 120, 87, 0.05);
}

.btn-nav {
    padding: 10px 22px;
    font-size: 0.875rem;
}

/* --- Section Shared --- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.8;
}

.section-header {
    margin-bottom: 64px;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s var(--ease-smooth);
}

.navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--emerald-600);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 0.813rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.logo-sub {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-links a:not(.btn):hover {
    color: var(--emerald-600);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all 0.3s var(--ease-smooth);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s var(--ease-smooth);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--cream-50);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-close {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    padding: 16px 0;
    border-bottom: 1px solid var(--cream-200);
    transition: color 0.2s, padding-left 0.2s;
}

.mobile-link:hover {
    color: var(--emerald-600);
    padding-left: 8px;
}

.mobile-divider {
    height: 1px;
    background: var(--cream-200);
    margin: 24px 0;
}

.mobile-cta {
    justify-content: center;
    margin-top: 16px;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    padding-top: 72px;
    background: var(--cream-50);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
    min-height: calc(100vh - 72px);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.813rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 28px;
}

.label-line {
    width: 32px;
    height: 1px;
    background: var(--emerald-600);
}

.hero-headline {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 500;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--emerald-700);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.813rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cream-300);
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-img-accent {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 200px;
    height: 200px;
    border: 1px solid var(--emerald-400);
    border-radius: 16px;
    z-index: -1;
    opacity: 0.4;
}

.hero-floating-card {
    position: absolute;
    bottom: 40px;
    left: -40px;
    background: var(--white);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.floating-icon {
    width: 48px;
    height: 48px;
    background: rgba(4, 120, 87, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    flex-shrink: 0;
}

.floating-title {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.floating-sub {
    font-size: 0.813rem;
    color: var(--text-muted);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* --- Services --- */
.services {
    padding: 100px 0 120px;
    background: var(--cream-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(4, 120, 87, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    margin-bottom: 24px;
    transition: background 0.3s;
}

.service-card:hover .service-icon {
    background: rgba(4, 120, 87, 0.12);
}

.service-card h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--cream-50);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.about-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.about-img-frame {
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--emerald-400);
    border-radius: 16px;
    opacity: 0.35;
    pointer-events: none;
}

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

.about-text {
    font-size: 1.063rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}

.feature-check {
    width: 24px;
    height: 24px;
    background: rgba(4, 120, 87, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    flex-shrink: 0;
}

.about-feature span {
    font-size: 0.938rem;
    color: var(--text-secondary);
}

/* --- Visit --- */
.visit {
    padding: 100px 0 120px;
    background: var(--cream-100);
}

.visit-header {
    text-align: center;
    margin-bottom: 64px;
}

.visit-header .section-desc {
    margin: 0 auto;
}

.visit-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.visit-card {
    background: var(--white);
    border-radius: 12px;
    padding: 36px 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s var(--ease-smooth);
}

.visit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.visit-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(4, 120, 87, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    margin-bottom: 24px;
}

.visit-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.visit-detail {
    font-size: 0.938rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.visit-phone {
    color: var(--emerald-600);
    font-weight: 400;
    transition: color 0.2s;
}

.visit-phone:hover {
    color: var(--emerald-700);
}

.visit-note {
    font-size: 0.813rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.visit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--emerald-600);
    margin-top: 16px;
    transition: gap 0.2s;
}

.visit-link:hover {
    gap: 10px;
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    background: var(--cream-50);
}

.cta-card {
    background: var(--emerald-800);
    border-radius: 20px;
    padding: 80px 72px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

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

.cta-content .section-tag {
    color: var(--emerald-400);
}

.cta-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.063rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-emerald-light {
    background: var(--white);
    color: var(--emerald-800);
    border-color: var(--white);
}

.btn-emerald-light:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-ghost-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost-light:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.08);
}

.cta-decoration {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

/* --- Footer --- */
.footer {
    background: var(--emerald-900);
    padding: 80px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo-mark {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
}

.footer-logo .logo-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.813rem;
}

.footer-logo .logo-sub {
    color: rgba(255, 255, 255, 0.4);
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.813rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.65);
    padding: 6px 0;
    transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.938rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

.footer-phone {
    color: var(--emerald-400);
    font-weight: 400;
    transition: color 0.2s;
}

.footer-phone:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-note {
    color: rgba(255, 255, 255, 0.25);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 32px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .visit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-card {
        padding: 60px 48px;
    }
    
    .cta-decoration {
        right: 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 24px;
        padding-bottom: 60px;
        min-height: auto;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-img-wrapper {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .hero-img-accent {
        display: none;
    }
    
    .hero-floating-card {
        left: 16px;
        bottom: 24px;
        padding: 16px 20px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .hero-wave svg {
        height: 50px;
    }
    
    .services {
        padding: 80px 0 96px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 28px 24px;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-img-wrapper {
        max-width: 480px;
    }
    
    .visit {
        padding: 80px 0 96px;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .cta-card {
        grid-template-columns: 1fr;
        padding: 48px 32px;
        border-radius: 16px;
    }
    
    .cta-decoration {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        justify-content: center;
        width: 100%;
    }
}
