/* ==========================================================================
   EasyPhysio Suite — Shared Styles & Navigation System
   Matches the AcadLabs main site theme (white/light, blue accent).
   ========================================================================== */

/* ── Top Navigation: Rich Dropdown Menu ───────────────────────────────────── */

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-dropdown-toggle.active {
    color: var(--primary, #2563eb) !important;
    font-weight: 700;
}

.dropdown-chevron {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    color: inherit;
    flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-chevron,
.nav-dropdown.is-open .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: max-content;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.14), 0 8px 18px -4px rgba(15, 23, 42, 0.08);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.2s;
    z-index: 1001;
}

/* Invisible hover bridge to prevent menu closing when moving cursor over the gap */
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-header-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 8px 12px 6px;
}

.dropdown-items-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
    color: var(--text-primary, #0f172a);
}

.dropdown-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
    text-decoration: none;
}

.dropdown-item.active {
    background: #eff6ff;
    border-color: #bfdbfe;
}


.dropdown-item-body {
    flex: 1;
    min-width: 0;
}

.dropdown-item-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
}

.dropdown-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

.dropdown-badge--green {
    background: #dcfce7;
    color: #15803d;
}

.dropdown-badge--bedside {
    background: #e0f2fe;
    color: #0369a1;
}

.dropdown-badge--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.dropdown-item-desc {
    font-size: 12px;
    color: var(--text-secondary, #64748b);
    line-height: 1.4;
    margin: 0;
}

.dropdown-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border, #e2e8f0);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.dropdown-footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, #64748b);
    text-decoration: none;
    transition: all 0.15s ease;
}

.dropdown-footer-link:hover {
    background: #f1f5f9;
    color: var(--primary, #2563eb);
    text-decoration: none;
}

.dropdown-footer-link.active {
    color: var(--primary, #2563eb);
    background: #eff6ff;
    font-weight: 700;
}

.dropdown-footer-icon {
    font-size: 16px;
    color: inherit;
}

/* ── Mobile Nav Dropdown Overrides ────────────────────────────────────────── */

@media (max-width: 900px) {
    .nav-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-dropdown-toggle {
        padding: 14px 0;
        border-bottom: 1px solid var(--border, #e2e8f0);
        font-size: 16px;
        width: 100%;
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--border, #e2e8f0);
        background: #f8fafc;
        border-radius: 10px;
        margin: 8px 0 12px;
        padding: 8px;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        min-width: 100%;
        max-width: none;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        display: flex;
        flex-direction: column;
    }

    .dropdown-footer {
        grid-template-columns: 1fr;
    }
}

/* ── Suite Shell & General Layout ─────────────────────────────────────────── */

.suite-shell {
    display: block;
    min-height: 100vh;
    padding-top: 60px; /* navbar offset */
}

.suite-main {
    width: 100%;
    min-width: 0;
}

/* ── Product Hero Banners ─────────────────────────────────────────────────── */

.product-hero {
    padding: 64px 24px 52px;
    background: #ffffff;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.product-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .product-hero {
        padding: 40px 20px 32px;
    }
}

.product-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.product-hero-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    background: #dbeafe;
    color: var(--primary, #2563eb);
}

.product-hero-tag--green {
    background: #dcfce7;
    color: #15803d;
}

.product-hero-tag--purple {
    background: #ede9fe;
    color: #7c3aed;
}

.product-hero h1 {
    font-size: 40px;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .product-hero h1 {
        font-size: 30px;
    }
}

.product-hero-desc {
    font-size: 17px;
    color: var(--text-secondary, #64748b);
    line-height: 1.65;
    max-width: 720px;
    margin-bottom: 28px;
}

.product-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Product Content Sections ─────────────────────────────────────────────── */

.product-section {
    padding: 56px 24px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    background: #ffffff;
}

.product-section:nth-child(even) {
    background: var(--bg-secondary, #f8fafc);
}

.product-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .product-section {
        padding: 36px 20px;
    }
}

.product-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #2563eb);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 6px;
}

.product-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

/* Feature grid */
.feature-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 768px) {
    .feature-2col {
        grid-template-columns: 1fr;
    }
}

.feature-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-row:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.feature-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-row h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin-bottom: 4px;
}

.feature-row p {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    line-height: 1.55;
}

/* Workflow steps */
.workflow-steps {
    display: flex;
    gap: 0;
    background: white;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
}

.workflow-step {
    flex: 1;
    padding: 22px 20px;
    border-right: 1px solid var(--border, #e2e8f0);
    position: relative;
}

.workflow-step:last-child {
    border-right: none;
}

.workflow-step-num {
    display: inline-flex;
    width: 28px;
    height: 28px;
    background: #dbeafe;
    color: var(--primary, #2563eb);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 10px;
}

.workflow-step h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    margin-bottom: 6px;
}

.workflow-step p {
    font-size: 13px;
    color: var(--text-secondary, #64748b);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
    }

    .workflow-step {
        border-right: none;
        border-bottom: 1px solid var(--border, #e2e8f0);
    }

    .workflow-step:last-child {
        border-bottom: none;
    }
}

/* System requirements table */
.req-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}

.req-table th {
    background: var(--bg-secondary, #f8fafc);
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    text-align: left;
    border-bottom: 1px solid var(--border, #e2e8f0);
}

.req-table td {
    padding: 12px 20px;
    color: var(--text-secondary, #64748b);
    border-bottom: 1px solid #f1f5f9;
}

.req-table tr:last-child td {
    border-bottom: none;
}

/* CTA strip */
.product-cta-strip {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 52px 24px;
}

.product-cta-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.product-cta-strip h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.product-cta-strip p {
    font-size: 15px;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
    .product-cta-strip {
        padding: 36px 20px;
    }
    
    .product-cta-strip-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn-ep {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    font-family: inherit;
}

.btn-ep--primary {
    background: var(--primary, #2563eb);
    color: white;
}

.btn-ep--primary:hover {
    background: var(--primary-dark, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-decoration: none;
    color: white;
}

.btn-ep--secondary {
    background: white;
    color: var(--text-primary, #0f172a);
    border: 2px solid var(--border, #e2e8f0);
}

.btn-ep--secondary:hover {
    border-color: var(--primary, #2563eb);
    color: var(--primary, #2563eb);
    text-decoration: none;
}

.btn-ep--ghost {
    background: #eff6ff;
    color: var(--primary, #2563eb);
    border: 1px solid #bfdbfe;
}

.btn-ep--ghost:hover {
    background: #dbeafe;
    text-decoration: none;
    color: var(--primary, #2563eb);
}

/* On dark CTA strip */
.btn-ep--cta-primary {
    background: white;
    color: var(--primary, #2563eb);
}

.btn-ep--cta-primary:hover {
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,255,255,0.3);
    text-decoration: none;
    color: var(--primary-dark, #1e40af);
}

.btn-ep--cta-outline {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
}

.btn-ep--cta-outline:hover {
    background: rgba(255,255,255,0.25);
    text-decoration: none;
    color: white;
}

.btn-ep--green {
    background: #16a34a;
    color: white;
}

.btn-ep--green:hover {
    background: #15803d;
    text-decoration: none;
    color: white;
}

.btn-ep--purple {
    background: #7c3aed;
    color: white;
}

.btn-ep--purple:hover {
    background: #6d28d9;
    text-decoration: none;
    color: white;
}