/* Waymark Systems - Merged Healthcare-Focused Stylesheet */

:root {
    /* Healthcare-focused color palette */
    --primary-health: #0B4D6B;      /* Deep Medical Blue */
    --secondary-health: #2E8BC0;    /* Vibrant Health Blue */
    --accent-health: #00A19C;       /* Medical Teal */
    --ember-fire: #FF6B35;          /* Ember Orange */
    --success-green: #28A745;       /* Clinical Success */
    --text-primary: #1A1A1A;        /* Deep Text */
    --text-secondary: #5A6C7D;      /* Muted Medical */
    --background-light: #F8FAFB;    /* Clean Clinical */
    --background-white: #FFFFFF;
    --border-subtle: #E1E8ED;       /* Soft Medical Border */
    --shadow-soft: 0 2px 12px rgba(11, 77, 107, 0.1);
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 180px;
}

header.scrolled ~ * {
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-light);
}

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

/* Header & Navigation */
header {
    background: var(--background-white);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 8px rgba(11, 77, 107, 0.15);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    transition: padding 0.3s ease;
}

header.scrolled nav {
    padding: 0.5rem 2rem;
}

.logo img {
    height: 150px;
    width: auto;
    transition: height 0.3s ease;
}

header.scrolled .logo img {
    height: 80px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary-health);
}

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i,
.dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--background-white);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(11, 77, 107, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    min-width: 280px;
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--background-white);
    border-left: 1px solid var(--border-subtle);
    border-top: 1px solid var(--border-subtle);
    transform: translateX(-50%) rotate(45deg);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 14px 24px;
    color: var(--text-primary);
    transition: all 0.2s ease;
    font-size: 0.95rem;
    white-space: nowrap;
}

.dropdown-menu li:first-child a {
    border-radius: 8px 8px 0 0;
}

.dropdown-menu li:last-child a {
    border-radius: 0 0 8px 8px;
}

.dropdown-menu a:hover {
    background: var(--background-light);
    color: var(--secondary-health);
}

.dropdown-menu a i {
    margin-right: 0.5rem;
    color: var(--accent-health);
}

.menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
    border: none;
}

/* Hero Sections */
.hero {
    background: linear-gradient(135deg, var(--primary-health) 0%, var(--secondary-health) 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
}

.healthcare-hero {
    background: linear-gradient(135deg, var(--primary-health) 0%, var(--secondary-health) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.healthcare-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.healthcare-hero .lead, .hero .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.cta-primary, .cta-secondary, .cta-button {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-primary, .cta-button {
    background: var(--ember-fire);
    color: white;
    border: 2px solid var(--ember-fire);
}

.cta-primary:hover, .cta-button:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-secondary:hover {
    background: white;
    color: var(--primary-health);
}

.healthcare-icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.healthcare-icon {
    font-size: 3rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

.healthcare-icon:nth-child(2) { animation-delay: 0.5s; }
.healthcare-icon:nth-child(3) { animation-delay: 1s; }
.healthcare-icon:nth-child(4) { animation-delay: 1.5s; }

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

/* Service Hero */
.service-hero {
    background: linear-gradient(135deg, var(--primary-health) 0%, var(--secondary-health) 100%);
    color: white;
    padding: 80px 0;
}

.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.service-icon.large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.service-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Sections */
section {
    padding: 60px 0;
}

#about, .service-overview {
    background: var(--background-white);
    padding: 60px 0;
}

#services, .features-section {
    background: var(--background-light);
    padding: 60px 0;
}

section h2, .container h2 {
    font-size: 2.5rem;
    color: var(--primary-health);
    text-align: center;
    margin-bottom: 1.5rem;
}

.intro-text, .section-intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--background-white);
    padding: 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 2px solid var(--border-subtle);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(11, 77, 107, 0.15);
    border-color: var(--secondary-health);
}

.service-card.featured-card {
    border: 3px solid var(--ember-fire);
    background: linear-gradient(135deg, #fff 0%, #fff9f7 100%);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--ember-fire);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-card.secondary-card {
    opacity: 0.95;
}

.service-card .service-icon {
    color: var(--accent-health);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card.featured-card .service-icon {
    color: var(--ember-fire);
}

.service-card h3 {
    color: var(--primary-health);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.learn-more {
    color: var(--secondary-health);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.clickable-card {
    cursor: pointer;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-subtle);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(11, 77, 107, 0.15);
}

.feature-card .feature-icon {
    color: var(--accent-health);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    color: var(--primary-health);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Solutions Grid */
.solutions-section {
    padding: 60px 0;
    background: var(--background-white);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solution-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-subtle);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.solution-icon {
    color: var(--accent-health);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.solution-card h3 {
    color: var(--primary-health);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Waymark Health Section */
.waymark-health-section {
    background: linear-gradient(to bottom, var(--background-white) 0%, var(--background-light) 100%);
    padding: 80px 0;
}

.waymark-health-header {
    text-align: center;
    margin-bottom: 3rem;
}

.waymark-health-logo {
    margin-bottom: 2rem;
}

.waymark-health-logo img {
    height: 80px;
    width: auto;
}

.waymark-health-content {
    max-width: 1000px;
    margin: 0 auto;
}

.product-highlight {
    background: var(--background-white);
    padding: 2.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--ember-fire);
    box-shadow: var(--shadow-soft);
}

.product-highlight h3 {
    color: var(--primary-health);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.product-highlight ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.product-highlight li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.global-reach {
    margin-top: 3rem;
}

.global-reach h3 {
    color: var(--primary-health);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Ember EMR Showcase */
.ember-showcase {
    padding: 60px 0;
    background: var(--background-light);
}

.ember-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ember-header h2 {
    font-size: 2.5rem;
    color: var(--primary-health);
    margin-bottom: 1rem;
}

.ember-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
}

.ember-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ember-feature {
    background: var(--background-white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.ember-feature:hover {
    transform: translateY(-5px);
    border-color: var(--ember-fire);
}

.ember-feature .feature-icon {
    color: var(--ember-fire);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ember-feature h3 {
    color: var(--primary-health);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Global Section */
.global-section {
    padding: 60px 0;
    background: var(--background-white);
}

.global-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.global-card {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-subtle);
}

.global-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(11, 77, 107, 0.12);
}

.global-card h3, .global-card h4 {
    color: var(--primary-health);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.global-card h3 i, .global-card h4 i {
    color: var(--accent-health);
}

.global-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Healthcare Services Overview */
.healthcare-services {
    padding: 60px 0;
    background: var(--background-white);
}

/* Approach Section */
.approach-section {
    padding: 60px 0;
    background: var(--background-light);
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.approach-step {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--secondary-health);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

.approach-step h3 {
    color: var(--primary-health);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.approach-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 60px 0;
    background: var(--background-white);
}

.team-member-highlight {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--secondary-health);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-info h3 {
    color: var(--primary-health);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.team-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.team-info ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    margin-left: 20px;
    line-height: 1.7;
}

.team-network {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.team-network h3 {
    color: var(--primary-health);
    margin-bottom: 1rem;
}

.team-network p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Standards Section */
.standards-section {
    padding: 60px 0;
    background: var(--background-white);
}

.standards-list {
    max-width: 800px;
    margin: 2rem auto;
    padding-left: 1.5rem;
}

.standards-list li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.standards-list strong {
    color: var(--primary-health);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-health) 0%, var(--secondary-health) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.contact-options {
    text-align: center;
    margin-top: 2rem;
}

.contact-alt {
    margin-top: 1rem;
    font-size: 1.1rem;
}

.contact-alt a {
    color: white;
    text-decoration: underline;
}

.contact-alt a:hover {
    opacity: 0.8;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-health) 0%, var(--secondary-health) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: var(--primary-health);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-section a i {
    margin-right: 0.5rem;
}

.waymark-health-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 968px) {
    .healthcare-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-grid, .features-grid {
        grid-template-columns: 1fr;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .healthcare-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-member-highlight {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .team-avatar {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .logo img {
        height: 100px;
    }
    
    .healthcare-hero h1, .service-hero h1 {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .approach-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .healthcare-icons {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .cta-primary, .cta-secondary, .cta-button {
        width: 100%;
        text-align: center;
    }
}
