/* =====================================================
   CLOUDMATE NAVBAR
   Full-width | Sticky | Dropdowns | Responsive
===================================================== */

.cm-navbar,
.cm-navbar *,
.cm-navbar *::before,
.cm-navbar *::after {
    box-sizing: border-box;
}

.cm-navbar {
    /* Design tokens */
    --cm-blue: #1688e8;
    --cm-blue-dark: var(--brand-blue);
    --cm-blue-soft: #edf7ff;
    --cm-ink: var(--brand-ink);
    --cm-ink-2: #13233f;
    --cm-muted: #72839a;
    --cm-line: #e3eaf2;
    --cm-ease: 0.18s ease;

    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;
    background: #fff;
    font-family: "DM Sans", sans-serif;
    box-shadow: 0 5px 24px rgba(16, 32, 61, 0.07);
}

/* 
   NAVBAR INNER
*/

.cm-navbar-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1920px;
    height: 78px;
    margin: 0 auto;
    padding: 0 clamp(20px, 2.5vw, 48px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    background: #fff;
}

/* 
   LOGO
 */

.cm-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.cm-logo img {
    display: block;
    width: 190px;
    height: auto;
}

/* 
   NAVIGATION
 */

.cm-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    gap: clamp(0px, 0.35vw, 7px);
}

.cm-nav-link {
    position: relative;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 clamp(5px, 0.55vw, 12px);

    color: var(--cm-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;

    border: 0;
    background: transparent;
    cursor: pointer;

    transition: color 0.2s ease;
}

.cm-nav-link:hover,
.cm-nav-link:focus-visible,
.cm-nav-link.active {
    color: var(--cm-blue);
}

.cm-nav-link i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.cm-nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.cm-nav-hosting-dropdown {
    position: static;
}

.cm-nav-dropdown:hover > .cm-dropdown-trigger i,
.cm-nav-dropdown.is-open > .cm-dropdown-trigger i {
    transform: rotate(180deg);
}

/* 
   PHONE + ACTIONS
 */

.cm-navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.cm-navbar-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 22px;
    margin-right: 4px;

    border-left: 1px solid #dce5f0;
    color: var(--cm-ink);
    text-decoration: none;
    white-space: nowrap;
}

.cm-navbar-phone > i {
    color: var(--cm-blue);
    font-size: 27px;
}

.cm-navbar-phone span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cm-navbar-phone strong {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.cm-navbar-phone small {
    color: #516584;
    font-size: 10px;
    line-height: 1.3;
}

.cm-navbar-phone:hover strong {
    color: var(--cm-blue);
}

.cm-login,
.cm-get-started {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 19px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.cm-login {
    color: var(--cm-ink);
    background: #fff;
    border: 1px solid #d6e1ee;
}

.cm-login:hover {
    color: var(--cm-blue);
    border-color: var(--cm-blue);
}

.cm-get-started {
    color: #fff;
    background: var(--cm-blue);
    border: 1px solid var(--cm-blue);
}

.cm-get-started:hover {
    background: var(--cm-blue-dark);
    border-color: var(--cm-blue-dark);
}

/*
   DROPDOWN BASE
*/

.cm-mega-menu,
.cm-simple-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 20;

    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow:
        0 24px 48px -12px rgba(15, 23, 42, 0.22),
        0 4px 12px rgba(15, 23, 42, 0.05);
    transform: translate(-50%, 8px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    /* short delay before closing so the cursor can travel into the panel */
    transition:
        opacity 0.18s ease 0.12s,
        visibility 0s linear 0.3s,
        transform 0.18s ease 0.12s;
}

.cm-nav-dropdown:hover > :is(.cm-mega-menu, .cm-simple-dropdown),
.cm-nav-dropdown.is-open > :is(.cm-mega-menu, .cm-simple-dropdown),
.cm-nav-dropdown:has(:focus-visible) > :is(.cm-mega-menu, .cm-simple-dropdown) {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition:
        opacity 0.18s ease-out,
        visibility 0s,
        transform 0.18s ease-out;
}

/* Caret that ties the open panel to its trigger */
.cm-dropdown-trigger::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    z-index: 30;
    width: 14px;
    height: 14px;

    background: #fff;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    border-radius: 3px 0 0 0;
    transform: translateX(-50%) rotate(45deg);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease 0.12s;
}

@media (min-width: 1101px) {
    .cm-nav-dropdown:hover > .cm-dropdown-trigger::after,
    .cm-nav-dropdown.is-open > .cm-dropdown-trigger::after,
    .cm-nav-dropdown:has(:focus-visible) > .cm-dropdown-trigger::after {
        opacity: 1;
        transition-delay: 0s;
    }

    .cm-nav-dropdown:hover > .cm-dropdown-trigger,
    .cm-nav-dropdown.is-open > .cm-dropdown-trigger {
        color: var(--cm-blue);
    }
}

/* Shared menu item (all dropdowns) */

.cm-mega-column > a,
.cm-simple-dropdown a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    margin: 2px 0;

    border-radius: 10px;
    color: #0f172a;
    text-decoration: none;

    transition: background-color 0.16s ease;
}

.cm-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;

    border-radius: 10px;
    background: #eff6ff;
    color: #1d6fe8;
    font-size: 17px;

    transition:
        background-color 0.16s ease,
        color 0.16s ease;
}

.cm-menu-text {
    flex: 1 1 auto;
    min-width: 0;
}

.cm-mega-column strong,
.cm-simple-dropdown strong {
    display: block;
    margin-bottom: 3px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.16s ease;
}

.cm-mega-column small,
.cm-simple-dropdown small {
    display: block;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

.cm-menu-arrow {
    flex-shrink: 0;
    color: #1d6fe8;
    font-size: 12px;
    opacity: 0;
    transform: translateX(-6px);
    transition:
        opacity 0.16s ease,
        transform 0.16s ease;
}

.cm-mega-column > a:hover,
.cm-simple-dropdown a:hover,
.cm-mega-column > a:focus-visible,
.cm-simple-dropdown a:focus-visible {
    background: #f5f9ff;
}

:is(.cm-mega-column > a, .cm-simple-dropdown a):is(:hover, :focus-visible) .cm-menu-icon {
    background: #1d6fe8;
    color: #fff;
}

:is(.cm-mega-column > a, .cm-simple-dropdown a):is(:hover, :focus-visible) strong {
    color: #1d6fe8;
}

:is(.cm-mega-column > a, .cm-simple-dropdown a):is(:hover, :focus-visible) .cm-menu-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Per-menu icon tones (Hosting stays blue) */

.cm-mega-column:nth-child(2),
.cm-tone-violet {
    --cm-tone: #7c4ddb;
    --cm-tone-soft: #f3eeff;
    --cm-tone-hover: #faf7ff;
}

.cm-tone-teal {
    --cm-tone: #0d9488;
    --cm-tone-soft: #e6f7f5;
    --cm-tone-hover: #f3fbfa;
}

.cm-tone-green {
    --cm-tone: #16a34a;
    --cm-tone-soft: #eafaf0;
    --cm-tone-hover: #f5fcf7;
}

.cm-menu-icon {
    background: var(--cm-tone-soft, #eff6ff);
    color: var(--cm-tone, #1d6fe8);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cm-tone, #1d6fe8) 12%, transparent);
}

.cm-menu-arrow {
    color: var(--cm-tone, #1d6fe8);
}

.cm-mega-column > a:hover,
.cm-simple-dropdown a:hover,
.cm-mega-column > a:focus-visible,
.cm-simple-dropdown a:focus-visible {
    background: var(--cm-tone-hover, #f5f9ff);
}

:is(.cm-mega-column > a, .cm-simple-dropdown a):is(:hover, :focus-visible) .cm-menu-icon {
    background: var(--cm-tone, #1d6fe8);
    color: #fff;
    box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--cm-tone, #1d6fe8) 55%, transparent);
}

:is(.cm-mega-column > a, .cm-simple-dropdown a):is(:hover, :focus-visible) strong {
    color: var(--cm-tone, #1d6fe8);
}

/*
   HOSTING MEGA MENU
*/

.cm-mega-menu {
    width: min(920px, calc(100vw - 40px));
    overflow: hidden;
}

.cm-mega-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) 280px;
    gap: 28px;
    padding: 28px 28px 24px;
}

.cm-mega-column {
    min-width: 0;
}

.cm-mega-label {
    display: block;
    margin: 0 12px 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;

    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* FEATURED MEGA CARD */

.cm-mega-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;

    border-radius: 14px;
    background: linear-gradient(150deg, #1d6fe8 0%, #3b82f6 100%);
    color: #fff;
}

/* soft decorative circles */
.cm-mega-feature::before,
.cm-mega-feature::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.cm-mega-feature::before {
    width: 180px;
    height: 180px;
    top: -70px;
    right: -60px;
}

.cm-mega-feature::after {
    width: 110px;
    height: 110px;
    bottom: -45px;
    right: 30px;
}

.cm-feature-badge {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 5px 10px;

    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.cm-mega-feature h3 {
    position: relative;
    margin: 0 0 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.cm-mega-feature ul {
    position: relative;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.cm-mega-feature li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.cm-mega-feature li i {
    font-size: 11px;
}

.cm-feature-btn {
    position: relative;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 18px;

    border-radius: 999px;
    background: #fff;
    color: #1d6fe8;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.cm-feature-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.2);
}

/* FOOTER STRIP */

.cm-mega-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 40px;

    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    color: #475569;
    font-size: 13px;
}

.cm-mega-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d6fe8;
    font-weight: 600;
    text-decoration: none;
}

.cm-mega-footer a i {
    font-size: 11px;
    transition: transform 0.16s ease;
}

.cm-mega-footer a:hover i.fa-arrow-right {
    transform: translateX(3px);
}

.cm-mega-footer-phone {
    color: #0f172a !important;
}

.cm-mega-footer-phone i {
    color: #1d6fe8;
}

/*
   SIMPLE DROPDOWNS
 */

.cm-simple-dropdown {
    width: 360px;
    padding: 12px;
}

/*
   OVERLAY (sits right after the <header>)
   Blurs the page behind an open dropdown, like portrait mode.
*/

.cm-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;
    background: rgba(15, 23, 42, 0.18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.22s ease 0.12s,
        visibility 0s linear 0.34s;
}

@media (min-width: 1101px) {
    .cm-navbar:has(.cm-nav-dropdown:hover) + .cm-nav-overlay,
    .cm-navbar:has(.cm-nav-dropdown.is-open) + .cm-nav-overlay,
    .cm-navbar:has(.cm-nav-dropdown :focus-visible) + .cm-nav-overlay {
        opacity: 1;
        visibility: visible;
        transition:
            opacity 0.22s ease,
            visibility 0s;
    }
}

/* 
   MOBILE BUTTON
*/

.cm-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;

    border: 1px solid #dce4ed;
    border-radius: 9px;
    background: #fff;
    color: var(--cm-ink-2);
    font-size: 18px;
    cursor: pointer;
}

/* 
   MEDIUM DESKTOP
*/

@media (min-width: 1101px) and (max-width: 1550px) {
    .cm-navbar-inner {
        gap: 10px;
        padding: 0 20px;
    }

    .cm-logo img {
        width: 150px;
    }

    .cm-nav {
        gap: 0;
    }

    .cm-nav-link {
        padding: 0 6px;
        font-size: 12px;
    }

    .cm-navbar-actions {
        gap: 7px;
    }

    .cm-navbar-phone {
        gap: 7px;
        padding-left: 12px;
        margin-right: 0;
    }

    .cm-navbar-phone > i {
        font-size: 21px;
    }

    .cm-navbar-phone strong {
        font-size: 12px;
    }

    .cm-login,
    .cm-get-started {
        padding: 0 12px;
        font-size: 11px;
    }
}

@media (min-width: 1101px) and (max-width: 1250px) {
    .cm-logo img {
        width: 128px;
    }

    .cm-nav-link {
        padding: 0 4px;
        font-size: 11px;
        gap: 4px;
    }

    .cm-navbar-phone small {
        display: none;
    }

    .cm-navbar-phone strong {
        font-size: 11px;
    }

    .cm-navbar-phone > i {
        font-size: 18px;
    }

    .cm-login,
    .cm-get-started {
        padding: 0 10px;
    }
}

/* 
   TABLET AND MOBILE
 */

@media (max-width: 1100px) {
    .cm-navbar-inner {
        height: 68px;
        padding: 0 20px;
        gap: 15px;
    }

    .cm-logo img {
        width: 150px;
    }

    .cm-navbar-actions {
        display: none;
    }

    .cm-mobile-toggle {
        display: flex;
        margin-left: auto;
    }

    .cm-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 25;

        display: none;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;

        width: 100%;
        height: auto;
        max-height: calc(100vh - 120px);
        max-height: calc(100dvh - 120px);
        overflow-y: auto;
        overscroll-behavior: contain;

        padding: 12px 20px 22px;
        gap: 0;

        background: #fff;
        border-top: 1px solid #e8eef5;
        box-shadow: 0 18px 30px rgba(16, 32, 61, 0.1);
    }

    .cm-navbar.mobile-open .cm-nav {
        display: flex;
    }

    .cm-nav > .cm-nav-link,
    .cm-dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        height: auto;
        padding: 12px 8px;

        border-bottom: 1px solid #eef2f7;
        font-size: 14px;
        text-align: left;
    }

    .cm-nav-dropdown,
    .cm-nav-hosting-dropdown {
        position: relative;
        display: block;
        width: 100%;
        height: auto;
    }

    /* Dropdowns become inline accordions; only .is-open shows them */
    .cm-mega-menu,
    .cm-simple-dropdown,
    .cm-nav-dropdown:hover > :is(.cm-mega-menu, .cm-simple-dropdown),
    .cm-nav-dropdown:has(:focus-visible)
        > :is(.cm-mega-menu, .cm-simple-dropdown) {
        position: static;
        display: none;

        width: 100%;
        padding: 12px;
        margin: 0 0 10px;

        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;

        border: 1px solid #e5edf5;
        border-radius: 10px;
        box-shadow: none;
        background: #f8fbff;
    }

    .cm-nav-dropdown.is-open > :is(.cm-mega-menu, .cm-simple-dropdown) {
        display: block;
        transform: none;
    }

    .cm-mega-column {
        padding: 12px 0;
        border-right: none;
        border-bottom: 1px solid #e5edf5;
    }

    .cm-mega-feature {
        margin-top: 12px;
    }

    .cm-simple-dropdown a {
        padding: 12px 8px;
    }

    .cm-mega-menu {
        overflow: visible;
    }

    .cm-mega-body {
        display: block;
        padding: 0;
    }

    .cm-mega-label {
        margin: 0 8px 8px;
    }

    .cm-mega-feature,
    .cm-mega-footer,
    .cm-menu-arrow,
    .cm-dropdown-trigger::after {
        display: none;
    }

    .cm-mega-column:nth-child(2) {
        border-bottom: none;
    }

    .cm-nav-overlay {
        display: none;
    }

    body.cm-menu-open .cm-nav-overlay {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* 
   SMALL PHONES
*/

@media (max-width: 600px) {
    .cm-navbar-inner {
        height: 64px;
        padding: 0 16px;
    }

    .cm-logo img {
        width: 135px;
    }

    .cm-mobile-toggle {
        width: 40px;
        height: 40px;
    }

    .cm-nav {
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        padding: 10px 15px 20px;
    }

    .cm-mega-feature {
        padding: 16px;
    }
}

/* 
   ACCESSIBILITY
 */

.cm-navbar a:focus-visible,
.cm-navbar button:focus-visible {
    outline: 2px solid var(--cm-blue);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .cm-navbar *,
    .cm-nav-overlay {
        transition: none !important;
        animation: none !important;
    }
}

/* =====================================================
   SITE-WIDE HELPERS
===================================================== */

.cm-divider {
    border: 0;
    border-bottom: 1px solid #808080;
    margin: 0;
}

/* =====================================================
   COMING SOON PAGE (pages/coming-soon.blade.php)
===================================================== */

.cm-soon {
    padding: 96px 20px 112px;
    background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
    font-family: "Poppins", sans-serif;
    text-align: center;
}

.cm-soon-inner {
    max-width: 640px;
    margin: 0 auto;
}

.cm-soon-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--brand-line);
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.cm-soon h1 {
    margin: 18px 0 12px;
    color: var(--brand-ink);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
}

.cm-soon p {
    margin: 0 auto 32px;
    color: var(--brand-muted);
    font-size: 16px;
    line-height: 1.7;
}

.cm-soon-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cm-soon-btn {
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 20px;
    border-radius: 9px;
    border: 1px solid var(--brand-line);
    background: #fff;
    color: var(--brand-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.cm-soon-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.cm-soon-btn-primary {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.cm-soon-btn-primary:hover {
    background: var(--brand-blue-dark);
    border-color: var(--brand-blue-dark);
    color: #fff;
}
