/* ============================================
   AyaHealHub - Global Styles
   Professional, neutral, business-oriented
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-alt: #f5f8fc;
    --surface: #ffffff;
    --border: #e3e9f2;
    --text: #1a2332;
    --text-muted: #5a6b82;
    --text-light: #8896a8;
    --primary: #0b5c8a;
    --primary-dark: #084466;
    --primary-light: #e8f2f9;
    --accent: #1a8a7a;
    --accent-light: #e6f6f3;
    --highlight-bg: #eaf4fb;
    --shadow-sm: 0 1px 3px rgba(16, 33, 58, 0.06);
    --shadow-md: 0 8px 24px rgba(16, 33, 58, 0.08);
    --shadow-lg: 0 18px 48px rgba(16, 33, 58, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --container: 1180px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--text);
}

h1 {
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.25rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

p {
    margin-bottom: 14px;
    color: var(--text-muted);
}

.lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.highlight {
    color: var(--primary);
    background: linear-gradient(180deg, transparent 62%, var(--highlight-bg) 62%);
    padding: 0 2px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* ============================================
   Header / Navigation
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.brand:hover {
    color: var(--primary);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    padding: 76px 0 64px;
    background: linear-gradient(160deg, #f8fbfe 0%, #eef5fb 55%, #ffffff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero-copy .lead {
    margin-bottom: 26px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    border: 1.5px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(11, 92, 138, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(11, 92, 138, 0.32);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-ghost:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.disclaimer-line {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.55;
    padding: 14px 16px;
    background: #fffdf5;
    border-left: 3px solid #e6b94f;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.disclaimer-line strong {
    color: #8a6d1f;
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 10px;
}

.hero-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero-card-offset {
    margin-left: 32px;
}

.hero-card-icon {
    font-size: 1.7rem;
    margin-bottom: 10px;
}

.hero-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.hero-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   Stats Strip
   ============================================ */

.stats-strip {
    padding: 34px 0;
    background: var(--primary);
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 4px;
    line-height: 1.4;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 76px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-head {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-sub {
    font-size: 1.02rem;
    color: var(--text-muted);
}

/* ============================================
   Cards Grid
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.solution-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #c8d9ea;
}

.solution-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    background: var(--primary-light);
    border-radius: 12px;
    margin-bottom: 16px;
}

.solution-card h3 {
    color: var(--text);
}

.solution-card p {
    font-size: 0.94rem;
    margin-bottom: 0;
}

/* ============================================
   Platform Section
   ============================================ */

.platform-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 52px;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin: 18px 0 22px;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    color: var(--text-muted);
    font-size: 0.96rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
}

.feature-list strong {
    color: var(--text);
}

.platform-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.platform-box h3 {
    margin-bottom: 24px;
    font-size: 1.08rem;
}

.platform-bar {
    height: 10px;
    background: #e8eef5;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 16px;
}

.platform-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.platform-box.visible .platform-bar span {
    transform: scaleX(1);
}

.platform-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 6px 0 0;
}

/* ============================================
   Insights Grid
   ============================================ */

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.insight-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 3px solid var(--primary);
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.insight-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.insight-card h3 {
    font-size: 1.05rem;
}

.insight-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    padding: 20px 24px;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 52px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ============================================
   Disclaimer Band
   ============================================ */

.disclaimer-band {
    background: #1a2332;
    color: rgba(255, 255, 255, 0.78);
    padding: 44px 0;
}

.disclaimer-band p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.disclaimer-band strong {
    color: #ffffff;
}

.disclaimer-band a {
    color: #8cc4e8;
}

.contact-line {
    margin-bottom: 0;
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 40px;
    padding: 54px 0 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-top: 14px;
    max-width: 380px;
}

.footer-contact {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0;
    text-align: center;
}

/* ============================================
   Legal Pages
   ============================================ */

.legal-page {
    padding: 56px 0 80px;
    background: var(--bg-alt);
    min-height: 70vh;
}

.legal-container {
    max-width: 820px;
}

.legal-page h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.legal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.legal-content section {
    margin-bottom: 30px;
}

.legal-content section:last-of-type {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 1.18rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-content h3 {
    font-size: 1rem;
    margin: 16px 0 8px;
    color: var(--text);
}

.legal-content p {
    font-size: 0.93rem;
    line-height: 1.7;
}

.legal-content ul {
    margin: 10px 0 16px 22px;
}

.legal-content li {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.65;
}

.legal-content strong {
    color: var(--text);
}

.legal-contact {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.92rem;
    line-height: 1.8;
}

.legal-disclaimer-box {
    margin-top: 34px;
    padding: 20px 24px;
    background: #fffdf5;
    border: 1px solid #f0e0b0;
    border-radius: var(--radius-sm);
}

.legal-disclaimer-box p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: #6b5a2a;
}

.legal-disclaimer-box strong {
    color: #8a6d1f;
}

/* ============================================
   Reveal Animations
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s cubic-bezier(0.2, 0.7, 0.3, 1),
                transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for grids */
.cards-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.insights-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.insights-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.stats-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.stats-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.stats-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        flex-direction: row;
        padding: 0;
    }
    .hero-card-offset {
        margin-left: 0;
    }
    .hero-card {
        flex: 1;
    }
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 12px 24px 20px;
        transform: translateY(-140%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .main-nav a {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .main-nav a:last-child {
        border-bottom: none;
    }
    .nav-toggle {
        display: flex;
    }
    .hero {
        padding: 52px 0 48px;
    }
    .hero-visual {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .insights-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 30px;
    }
    .section {
        padding: 52px 0;
    }
    .legal-content {
        padding: 26px 20px;
    }
    .disclaimer-band {
        padding: 32px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn {
        width: 100%;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-number {
        font-size: 1.7rem;
    }
    .solution-card,
    .insight-card {
        padding: 22px;
    }
    .platform-box {
        padding: 24px 20px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .platform-bar span {
        transform: scaleX(1);
        transition: none;
    }
}