/*
Theme Name: UseAI Health
Author: Sai Kumar
Version: 1.0
*/

/* ROOT */
:root {
    --container: 1200px;
    --radius: 14px;
}

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

body {
    font-family: Inter, system-ui, Arial;
    background: #f4f7fb;
    color: #0f172a;
}

/* CONTAINER */
.container {
    width: 92%;
    max-width: var(--container);
    margin: auto;
}

/* SECTIONS */
.section-full {
    width: 100%;
    padding: 80px 0;
}

.section-boxed {
    max-width: var(--container);
    margin: auto;
    padding: 60px 20px;
}

/* GRID SYSTEM */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* RESPONSIVE GRID */
@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* HEADER */
header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

/* LOGO */
.logo {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

/* NAV MENU RESET */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

/* MENU ITEMS */
.nav-menu li {
    position: relative;
}

/* LINKS */
.nav-menu li a {
    color: #0f172a;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* HOVER */
.nav-menu li a:hover {
    color: #2563eb;
}

/* =========================
   DROPDOWN ICON (CLEAN)
========================= */

.menu-item-has-children > a::after {
    content: "▾";
    font-size: 12px;
    opacity: 0.6;
    transition: 0.2s ease;
}

/* ROTATE ICON ON HOVER */
.nav-menu li:hover > a::after {
    transform: rotate(180deg);
}

/* =========================
   DROPDOWN MENU
========================= */

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border: 1px solid #eef2ff;
    padding: 8px 0;
    z-index: 999;
}

/* SHOW ON HOVER (DESKTOP) */
.nav-menu li:hover > .sub-menu {
    display: block;
}

/* DROPDOWN ITEMS */
.nav-menu .sub-menu li {
    padding: 10px 14px;
}

.nav-menu .sub-menu li:hover {
    background: #f4f7fb;
}

.nav-menu .sub-menu li a {
    font-size: 14px;
    color: #0f172a;
}

/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        right: 20px;
        top: 70px;
        background: white;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        width: 220px;
    }

    .nav-menu.active {
        display: flex;
    }

    /* MOBILE DROPDOWN */
    .nav-menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        padding-left: 10px;
        background: transparent;
    }

    .menu-item-has-children.open > .sub-menu {
        display: block;
    }

    /* MOBILE ICON */
    .menu-item-has-children > a::after {
        content: "▸";
        margin-left: auto;
        transition: 0.2s;
    }

    .menu-item-has-children.open > a::after {
        transform: rotate(90deg);
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* MAIN APP WRAPPER */
.app-wrapper {
    display: flex;
    flex: 1;
}

/* SIDEBAR (future dashboard) */
.sidebar {
    width: 260px;
    background: #0f172a;
    color: white;
    padding: 20px;
    min-height: 100vh;
}

/* CONTENT AREA */
.content {
    flex: 1;
    padding: 30px;
}

/* HIDE SIDEBAR ON PUBLIC PAGES */
body.public .sidebar {
    display: none;
}
.cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #2563eb;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: 500;
    z-index: 9999;
}