/* 1. VARIABLES & RESET */
:root {
    --hospital-green: #2F6B3F;
    --hospital-navy: #162b49;
    --hospital-green-light: #7FB77E;   
    --hospital-dark: #0a1d37;
    --hospital-text: #4a5568;
    --hospital-bg: #ffffff;
    --hospital-section-bg: #f8fafc;
    --hospital-border: #e2e8f0;
    --hospital-hover-gold: #e6ac00;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Source Han Sans TW'
    line-height: 1.6;
    color: var(--hospital-text);
    background-color: var(--hospital-bg);
}

.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* 2. NAVIGATION */
 .nav-container .title{
    font-weight:900;
    font-size:2em;
    color: var(--hospital-dark)
 }

.navbar {
    background: #fff;
    padding: 15px 0;
    border-bottom: 2px solid var(--hospital-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo img { height: 40px; display: block; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--hospital-navy);
    font-weight: 700;
    font-size: 0.95rem;
}

.nav-links .nav-login {
    border: 2px solid var(--hospital-border);
    padding: 3px 18px;

}

.nav-links .nav-login:hover {
    background: var(--hospital-navy);
    color: #fff;
}

/* 3. HERO SECTION - FIXED & CLEANED */
header {
    padding: 10em 0;
    position: relative;
    text-align: left;
    color: #ffffff;
    

    /* 2. THE LAYERS (Gradient on TOP, Image on BOTTOM) */
    background-image: 
        linear-gradient(rgba(10, 29, 55, 0.75), rgba(10, 29, 55, 0.6)), 
        url('hospital-hero.jpg');
    
    /* 3. THE SHIFT (Gradient = centered, Image = your 190% shift) */
    
    /* 4. THE REPEAT (IMPORTANT: Set both to no-repeat) */
    /* This ensures neither the gradient nor the image tiles */
    background-repeat: no-repeat, no-repeat;
    
    /* 5. THE SIZES (THE FIX) */
    /* Layer 1 (Gradient): 100% width, 100% height (stretches to fill)
       Layer 2 (Image): 85% width, auto height (your specific zoom) */
    background-size: cover;
    

}

header h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    max-width: 650px;
}

header .hero-sub {
    font-size: 1.3rem;
    max-width: 550px;
    margin-bottom: 40px;
    color: #e2e8f0;
}
.btn {
    display: inline-block;
    background: var(--hospital-green);
    color: var(--hospital-navy);
    padding: 18px 45px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.btn:hover {
    background: var(--hospital-hover-gold);
    transform: translateY(-2px);
}

.platform-logos img {
    /* 1. Set a consistent height for all logos */
    
    /* 2. Keep the original proportions */
    width: auto; 
    
    /* 3. Spacing between the logos */
    margin: 0 10px;
    
    /* 4. Optional: Make them slightly see-through to blend with the header, 
       then 100% bright on hover */
    opacity: 0.8;
    transition: opacity 0.3s ease;
    
    /* 5. Ensures they align vertically if one is taller than the other */
    vertical-align: middle;
    height: 1.5em;
    width: auto; 
    vertical-align: middle;

    /* Use parentheses, not a colon, for brightness */
    filter: grayscale(100%) brightness(0) invert(100%);
}

.platform-logos img.woocommerce-logo {
    height:3em
}

.platform-logos img:hover {
    opacity: 1;
}

/* 5. FEATURES (PILLARS) - CENTERED */
.pillars { padding: 7em 0 }

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-intro h2 {
    font-size: 2.5rem;
    color: var(--hospital-navy);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 800;
}

.experience-tag {
    font-size: 1.1rem;
    color: var(--hospital-text);
    font-weight: 600;
    text-transform: uppercase;
    border-left: .5em double var(--hospital-green);
    padding-left: 15px;
    display: inline-block;
}

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

.card { 
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 50px 15px; 
    border: 1px solid var(--hospital-border); 
    text-align: center; 
    background: #fcfcfc; 

}
.card:hover {
    transform: translateY(-10px);
}
.feature-icon {
    width:8em;
    height: 8em;
    margin-bottom: 25px;
    object-fit: contain;
}

.card h3 { 
    font-size: 1.2rem; 
    color: var(--hospital-navy);
    margin-bottom: 12px; 
    text-transform: uppercase; 
}

.card h4 { 
    color: var(--hospital-green-light); 
    margin-bottom: 20px; 
    font-size: 1rem; 

}

/* 6. HOW IT WORKS - VIBRANT IMAGE + WHITE CARDS */
/* 6. HOW IT WORKS - CLEAN MASK FADE */
.how-it-works { 
    padding: 8em 0; 
    color: var(--hospital-navy);
    
    /* 1. THE STACK: 50% White (Top) + Image (Bottom) */
    /*background-image: 
        linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)), 
        url('how-to-background.jpg'); 
*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Ensures the section itself blends into the white sections above/below */
    background-color: #ffffff; 
}


.steps-container-grid {
    /*display: flex;
    gap: 20px;
    align-items: stretch; /* Makes all cards the same height */
    margin-top: 40px;

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

.step { 
    flex: 1;                
    background: #ffffff; 
    padding: 1rem ;
    border: 1px solid var(--hospital-border);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem; 
    border: 1px solid var(--hospital-border); 
    text-align: justify; 
}

.step:hover {
    transform: translateY(-10px);
}

.step-num { 
    color: var(--hospital-dark); 
    font-size: 2rem; 
    font-weight: 800; 
    line-height: 1;
    margin-bottom: 20px;
}

.step strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--hospital-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.step p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--hospital-text);
    margin-bottom: 30px; /* Pushes the icon down */
}

.step-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;

    /* BLACK FILTER: Turns any colored icon pure black */
    filter: brightness(0);
    opacity: 0.8;

    /* POSITIONING: Pushes to bottom and centers horizontally */
    margin-top: auto; 
    align-self: center; 
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .steps-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* 7. FOOTER */
footer { 
    background: var(--hospital-dark); 
    color: #cbd5e0; 
    padding: 3rem; 
}
.footer-logo img{
    width:3rem;
    height:auto;
    padding-bottom:.5rem
}


footer a {color: #cbd5e0}
footer h4 { margin-bottom: 25px; }

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

.anchor { 
    text-align: center; 
    padding-top: 40px; 
    border-top: 1px solid #2d3748; 
    margin-top: 60px; 
}

h5 {
    color: var(--hospital-text);

}

/* 8. RESPONSIVE */
@media (max-width: 768px) {
    header { 
        text-align: center; 
        background-size: cover; 
        background-position: center;
    }
    header h1, header .hero-sub { margin-left: auto; margin-right: auto; }
    .grid, .footer-grid { grid-template-columns: 1fr; }
    .step { flex-direction: column; text-align: center; }
}

.cta-group {
    display: flex;
    align-items: center; /* This keeps the text centered to the height of the button */
    gap: 25px;           /* Space between the button and the <h5> */
    margin-bottom: 40px; /* Space before the logos start below */
}
.cta-group .btn, .cta-wrapper .btn{
    background-color: var(--hospital-green);
    color:white
}
.cta-group h5 {
    margin: 0;           /* Remove default heading margins that cause misalignment */
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8); /* Slightly faded white for a professional look */
    max-width: 300px;    /* Prevents the text from stretching too wide */
    line-height: 1.4;
}

/* Mobile Fix: Stack them when the screen is too narrow */
@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
/* --- 8. WHY hospital SECTION --- */
.why-hospital {
    padding: 8em 0;
    background-image: 
    /*    linear-gradient(rgba(47, 81, 112, .9), rgba(10, 29, 55, 0.7)), */
    url('why-hospital-background.jpg');
     background-size:cover;
    color:white
}

.split-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.content-text{
    width:40%
}

.content-text p {
    padding-bottom:1em
}

.content-text .experience-tag {
    color:grey
}
.content-text h2 {
    font-size: 2.2rem;
    margin: 20px 0;
}

.check-list {
    list-style: none;
    margin-top: 30px;
}

.check-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--hospital-green);
    font-weight: 900;
}


/* --- 9. FINAL CTA SECTION --- */
.final-cta {
   padding: 8em 0;
    position: relative;
    text-align: center;
    color: var(--hospital-dark);
    
    /* 1. THE FILLER COLOR */
    background-color:#fcf6e6;

    /* 2. THE LAYERS (Gradient on TOP, Image on BOTTOM) */
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    padding-bottom:2rem
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}
.cta-wrapper{
        text-align: center;
}
.cta-wrapper .small-print {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* --- THE LOGO BORDER & ALIGNMENT FIX --- */
.platform-logos span {
    display: inline-block;
    padding: 0 1em;
    border-left: 1px solid var(--hospital-green-light)
}

.platform-logos img {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    /* This ensures no "box" appears around the inverted logo */
    background: transparent !important; 
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .split-content {
        flex-direction: column;
        text-align: center;
    }
    .check-list li {
        text-align: left;
    }
    .content-stats {
        width: 100%;
    }
}

/* --- TRUST RIBBON --- */
.trust-ribbon {
    /*background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid var(--hospital-border);
    text-align: center;*/
    background: var(--hospital-dark);
    padding: 30px 0;
    border-bottom: 1px solid var(--hospital-border);
    text-align: center;
}

.ribbon-quote {
    font-size: 1.1rem;
    color: white;
    font-style: italic;
}

.ribbon-author {
    display: block;
    font-size: 0.85rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    opacity: 0.7;
}

/* --- CUSTOMER STORY --- */
.customer-story {
    padding: 100px 0;
    background-color: #fcf6e6;
}

.story-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-mark {
    font-size: 8rem;
    color: var(--hospital-green);
    font-family: serif;
    line-height: 0;
    margin-bottom: 40px;
    opacity: 0.3;
}

.story-box blockquote {
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--hospital-navy);
    font-weight: 600;
    margin-bottom: 30px;
    border: none; /* Remove default blockquote border */
}

.story-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #eee;
}

.story-profile strong {
    display: block;
    color: var(--hospital-navy);
}

.story-profile span {
    font-size: 0.9rem;
    color: var(--hospital-text);
}

/* --- PRICING SECTION --- */
.pricing-section {
    padding: 100px 0;
    background-color: #ffffff;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.price-card {
    background: #ffffff;
    padding: 40px 20px;
    border: 1px solid var(--hospital-border);
    position: relative;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

/* Highlight the Silver Plan */
.price-card.featured {
    border: 2px solid var(--hospital-navy);
    box-shadow: 0 20px 40px rgba(10, 29, 55, 0.1);
    transform: scale(1.05);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hospital-navy);
    color: white;
    padding: 5px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--hospital-navy);
    margin: 15px 0;
}

.price-amount span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.7;
}

.order-limit {
    font-weight: 600;
    color: var(--hospital-text);
    margin-bottom: 25px;
}

.pricing-footer {
    margin-top: 50px;
    font-size: 0.95rem;
    color: var(--hospital-text);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- API PAGE SPECIFIC STYLES --- */
.api-page { background-color: #fcfcfc; }

.api-hero {
    padding: 80px 0;
    background: linear-gradient(rgba(10, 29, 55, 0.9), rgba(10, 29, 55, 0.9)), url('how-to-background.jpg');
    background-size: cover;
    color: white;
    text-align: center;
}

.api-main {
    display: flex;
    gap: 40px;
    padding: 60px 0;
}

.api-sidebar {
    width: 250px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.api-sidebar ul { list-style: none; padding: 0; }
.api-sidebar li { margin-bottom: 15px; }
.api-sidebar a { 
    color: var(--hospital-text); 
    text-decoration: none; 
    font-weight: 600;
}
.api-sidebar a:hover { color: var(--hospital-navy); }

.api-content { flex: 1; max-width: 800px; }
.api-content p {
    padding-bottom:1em
}

.api-section {
    background: white;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--hospital-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Code Styling */
.code-block {
    background: #0a1d37;
    color: #e6edf3;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    margin: 20px 0;
    overflow-x: auto;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom:2em
}

.api-table th, .api-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.api-table th { color: var(--hospital-navy); font-weight: 700; }
.api-table td code { color: #d63384; background: #f8f9fa; padding: 2px 6px; border-radius: 4px; }

.info-note {
    background: #fff9e6;
    border-left: 4px solid var(--hospital-green);
    padding: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .api-main { flex-direction: column; }
    .api-sidebar { display: none; }
}

/* --- SHOPIFY PAGE STYLES --- */

.shopify-hero, .bigcommerce-hero {
    padding: 8em 0;
    /* Using the 50% white overlay style you liked */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.3)), 
        url('how-to-background.jpg');
    background-size: cover;
    background-position: center;
}
.shopify-features, .bigcommerce-features{
    padding:8em 0;
}
.hero-split {
    display: flex;
    align-items: center;
}
.hero-split h3 {
    color:var(--hospital-dark);
    padding-bottom:2em
}
.hero-content { flex: 1; }
.hero-visual { flex: 1; display: flex; justify-content: right; }


.partner-badge {
    width: 140px;
    margin-bottom: 20px;
}

.trial-text {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--hospital-navy);
    font-weight: 600;
}

/* Results Bar */
.shopify-results, .bigcommerce-results {
    background: var(--hospital-navy);
    color: white;
    padding: 60px 0;
}

.results-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.result-num {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--hospital-green);
    margin-bottom: 5px;
}

.result-item p {
    font-weight: 600;
    max-width: 200px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Dashboard Mockup Placeholder */
.dashboard-preview {
    width: 100%;
    max-width: 450px;
    height: 300px;
    background: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 8px solid #f1f1f1;
}

.preview-tag { color: var(--hospital-text); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.preview-stat { font-size: 5rem; font-weight: 800; color: var(--hospital-navy); }

@media (max-width: 992px) {
    .hero-split { flex-direction: column; text-align: center; }
    .results-grid { flex-direction: column; gap: 40px; }
}