/* ============================================
   Hospital Consolidated Labs — Stylesheet
   Charcoal + Coral | Lora + Inter
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2c2c2c;
    background-color: #faf9f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* --- Focus --- */
:focus-visible {
    outline: 2px solid #c4613a;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #2c2c2c;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 1000;
    border-radius: 4px;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 1rem;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: #1a1a1a;
}

.section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c4613a;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.section-sub {
    font-size: 1.0625rem;
    color: #555;
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header--centered {
    text-align: center;
}

.section-header--centered .section-sub {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.875rem 1.75rem;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: #c4613a;
    color: #fff;
    border-color: #c4613a;
}

.btn-primary:hover {
    background-color: #b0522e;
    border-color: #b0522e;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(250, 249, 247, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    text-decoration: none;
}

.logo--light {
    color: #fff;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: #c4613a;
    flex-shrink: 0;
}

.logo-text {
    letter-spacing: -0.01em;
}

/* --- Nav --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #444;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

.nav-menu a:hover {
    color: #c4613a;
}

.nav-cta {
    background-color: #c4613a;
    color: #fff !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease !important;
}

.nav-cta:hover {
    background-color: #b0522e;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(196, 97, 58, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 97, 58, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #c4613a;
    margin-bottom: 1.25rem;
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.125rem);
    color: #f5f0ec;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 560px;
}

.hero-sub {
    font-size: 1.0625rem;
    color: rgba(245, 240, 236, 0.7);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(245, 240, 236, 0.6);
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: #c4613a;
    flex-shrink: 0;
}

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

.hero-image {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background-color: #c4613a;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(245, 240, 236, 0.4);
    font-size: 0.6875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Services --- */
.services {
    padding: 6rem 0;
    background-color: #faf9f7;
}

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

.service-card {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 2rem;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background-color: rgba(196, 97, 58, 0.08);
    color: #c4613a;
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-title {
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
    color: #1a1a1a;
}

.service-desc {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 6rem 0;
    background-color: #f3f0ec;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.about-image-main {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.about-image-float {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 200px;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 4px solid #f3f0ec;
}

.about-image-accent {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    background-color: #c4613a;
    border-radius: 8px;
    z-index: -1;
    opacity: 0.2;
}

.about-body {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-family: 'Lora', serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.stat-label {
    font-size: 0.8125rem;
    color: #888;
}

.about-text-col .btn {
    margin-top: 0.5rem;
}

/* --- Why Us --- */
.why-us {
    padding: 6rem 0;
    background-color: #1a1a1a;
}

.why-us .section-eyebrow {
    color: #c4613a;
}

.why-us .section-title {
    color: #f5f0ec;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.why-card {
    background-color: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 2rem;
    transition: background-color 0.3s ease;
}

.why-card:hover {
    background-color: rgba(255,255,255,0.07);
}

.why-number {
    font-family: 'Lora', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(196, 97, 58, 0.3);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.why-title {
    font-size: 1.125rem;
    color: #f5f0ec;
    margin-bottom: 0.625rem;
}

.why-desc {
    font-size: 0.9375rem;
    color: rgba(245, 240, 236, 0.6);
    line-height: 1.7;
}

/* --- Contact --- */
.contact {
    padding: 6rem 0;
    background-color: #faf9f7;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.contact-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(196, 97, 58, 0.08);
    color: #c4613a;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}

.contact-value {
    font-size: 0.9375rem;
    color: #1a1a1a;
}

.contact-phone {
    color: #c4613a;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-phone:hover {
    color: #b0522e;
}

/* --- Form --- */
.contact-form {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 2rem;
}

.form-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

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

.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.375rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background-color: #faf9f7;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #c4613a;
    box-shadow: 0 0 0 3px rgba(196, 97, 58, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background-color: rgba(196, 97, 58, 0.08);
    border-radius: 4px;
    font-size: 0.875rem;
    color: #b0522e;
}

.form-success svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Map --- */
.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* --- Footer --- */
.site-footer {
    background-color: #111;
    padding: 3rem 0 1.5rem;
    color: rgba(255,255,255,0.6);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    max-width: 320px;
}

.footer-contact {
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-phone {
    color: #c4613a;
    transition: color 0.2s ease;
}

.footer-phone:hover {
    color: #e07a55;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        gap: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background-color: rgba(250, 249, 247, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        font-size: 1rem;
    }

    .hero {
        padding: 7rem 0 4rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-headline {
        max-width: 100%;
    }

    .hero-sub {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-image {
        height: 280px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-stack {
        max-width: 400px;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-image {
        height: 220px;
    }

    .about-image-float {
        width: 140px;
        height: 112px;
        right: -10px;
        bottom: -20px;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .services,
    .about,
    .why-us,
    .contact {
        padding: 4rem 0;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-scroll svg {
        animation: none;
    }
}
