/*
Theme Name: ESk Hosting Theme
Theme URI: https://eskhosting.com/
Description: Custom high-performance, standalone WordPress theme for ESk Hosting. Built from scratch with pure vanilla CSS and modern UI/UX design for maximum NVMe cloud speed, zero bloat, and no dependence on Elementor or external page builders.
Author: ESk Hosting UI/UX Engineering
Author URI: https://eskhosting.com/
Version: 1.0.0
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: esk-hosting-theme
*/

/* ==========================================================================
   ESk Hosting Design System (Pure Vanilla CSS)
   World-Class, High-Contrast Cloud Hosting Layout (SaaS Architecture)
   ========================================================================== */

:root {
    --esk-color-bg: #FFFFFF;
    --esk-color-surface: rgba(255, 255, 255, 0.96);
    --esk-color-border: #E2E8F0;
    --esk-color-border-hover: #CBD5E1;
    --esk-color-text: #0F172A;
    --esk-color-text-muted: #64748B;
    --esk-color-primary: #E93D5D;
    --esk-color-primary-hover: #D62848;
    --esk-gradient-primary: linear-gradient(135deg, #E93D5D 0%, #FF4F79 100%);
    --esk-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --esk-font-heading: '"Plus Jakarta Sans"', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Base Reset & Global Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--esk-font-sans);
    color: var(--esk-color-text);
    background-color: var(--esk-color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.esk-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .esk-container {
        padding: 0 1.25rem;
    }
}

/* ==========================================================================
   1. Top Bar Notification Strip
   ========================================================================== */
.esk-topbar {
    background-color: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    padding: 0.55rem 0;
    font-size: 0.8125rem;
    color: #475569;
    display: none;
}

@media (min-width: 1024px) {
    .esk-topbar {
        display: block;
    }
}

.esk-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.esk-topbar__left, .esk-topbar__right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.esk-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.75rem;
    border-radius: 9999px;
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
    color: #15803D;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.01em;
}

.esk-status-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #16A34A;
    box-shadow: 0 0 6px #16A34A;
    animation: esk-pulse 2s infinite;
}

@keyframes esk-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.25); }
}

.esk-topbar__separator {
    color: #CBD5E1;
}

.esk-topbar__highlight {
    color: #334155;
    font-weight: 500;
}

.esk-topbar__link {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.esk-topbar__link:hover {
    color: #0F172A;
}

.esk-topbar__link--portal {
    color: var(--esk-color-primary);
    font-weight: 600;
}

.esk-topbar__link--portal:hover {
    color: var(--esk-color-primary-hover);
}

.esk-topbar__link svg {
    width: 15px;
    height: 15px;
    color: #64748B;
}

/* ==========================================================================
   2. Main Sticky Navbar Layout
   ========================================================================== */
.esk-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 1.25rem 0;
}

.esk-navbar--scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    padding: 0.85rem 0;
}

.esk-navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand Logo */
.esk-navbar__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.esk-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.esk-logo img,
.esk-logo-img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.esk-brand-link:hover .esk-logo-img,
.esk-logo a:hover img {
    transform: scale(1.02);
}

/* ==========================================================================
   3. Desktop Navigation Architecture
   ========================================================================== */
.esk-nav {
    display: none;
}

@media (min-width: 1024px) {
    .esk-nav {
        display: block;
    }
}

.esk-nav__list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.esk-nav__item {
    position: relative;
    padding: 0.5rem 0;
}

.esk-nav__link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: var(--esk-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.esk-nav__link:hover, .esk-nav__item--active .esk-nav__link {
    color: var(--esk-color-primary);
}

.esk-chevron {
    width: 16px;
    height: 16px;
    color: #64748B;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.esk-nav__item:hover .esk-chevron {
    transform: rotate(180deg);
    color: var(--esk-color-primary);
}

/* ==========================================================================
   4. World-Class 2-Column Mega-Menu Card
   ========================================================================== */
.esk-mega-menu {
    position: absolute;
    top: 100%;
    left: -2rem;
    padding-top: 0.85rem;
    width: 620px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    pointer-events: none;
}

.esk-nav__item:hover .esk-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.esk-mega-menu__card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.esk-mega-menu__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #F1F5F9;
}

.esk-mega-menu__label {
    font-family: var(--esk-font-heading);
    font-size: 0.925rem;
    font-weight: 700;
    color: #0F172A;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.esk-mega-menu__sublabel {
    font-size: 0.8rem;
    color: #64748B;
}

.esk-mega-menu__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.esk-mega-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent;
    border: 1px solid transparent;
}

.esk-mega-item:hover {
    background: #FEF2F4;
    border-color: rgba(233, 61, 93, 0.15);
    transform: translateY(-2px);
}

.esk-mega-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F1F5F9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.esk-mega-item__icon svg {
    width: 22px;
    height: 22px;
}

.esk-mega-item:hover .esk-mega-item__icon {
    background: var(--esk-color-primary);
    color: #FFFFFF;
    box-shadow: 0 6px 15px -3px rgba(233, 61, 93, 0.4);
}

.esk-mega-item__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.esk-mega-item__title {
    font-size: 0.925rem;
    font-weight: 700;
    color: #0F172A;
    transition: color 0.2s ease;
}

.esk-mega-item:hover .esk-mega-item__title {
    color: var(--esk-color-primary);
}

.esk-mega-item__desc {
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   5. Desktop CTA Buttons Layout
   ========================================================================== */
.esk-navbar__actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .esk-navbar__actions {
        display: flex;
    }
}

.esk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
}

.esk-btn--secondary {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #E2E8F0;
}

.esk-btn--secondary:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.esk-btn--primary {
    background: var(--esk-gradient-primary);
    color: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(233, 61, 93, 0.35);
}

.esk-btn--primary:hover {
    box-shadow: 0 15px 30px -5px rgba(233, 61, 93, 0.55);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.esk-btn__arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.esk-btn--primary:hover .esk-btn__arrow {
    transform: translateX(3px);
}

.esk-btn--full {
    width: 100%;
}

/* ==========================================================================
   6. Mobile Navigation Ergonomics
   ========================================================================== */
.esk-navbar__mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

@media (min-width: 1024px) {
    .esk-navbar__mobile-actions {
        display: none;
    }
}

.esk-btn-mobile-portal {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--esk-gradient-primary);
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(233, 61, 93, 0.3);
}

.esk-mobile-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}

.esk-mobile-toggle:hover {
    background: #F1F5F9;
}

.esk-mobile-toggle__bar {
    width: 22px;
    height: 2px;
    background-color: #334155;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.esk-mobile-toggle--active .esk-mobile-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.esk-mobile-toggle--active .esk-mobile-toggle__bar:nth-child(2) {
    opacity: 0;
}
.esk-mobile-toggle--active .esk-mobile-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Container */
.esk-mobile-drawer {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    background-color: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    margin-top: 1.25rem;
    padding: 0 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .esk-mobile-drawer {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .esk-logo img,
    .esk-logo-img {
        max-height: 28px !important;
    }
    .esk-btn-mobile-portal {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }
    .esk-navbar__mobile-actions {
        gap: 0.5rem;
    }
    .esk-mobile-toggle {
        width: 38px;
        height: 38px;
    }
}

.esk-mobile-drawer--active {
    display: block;
    max-height: 2500px;
    opacity: 1;
    padding-top: 1.25rem;
    padding-bottom: 2rem;
}

.esk-mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.esk-mobile-nav__item {
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 0.6rem;
}

.esk-mobile-nav__parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.esk-mobile-nav__title, .esk-mobile-nav__link {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0F172A;
    text-decoration: none;
    padding: 0.6rem 0;
    display: block;
}

.esk-mobile-submenu-toggle {
    background: none;
    border: none;
    color: #64748B;
    padding: 0.6rem;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.esk-mobile-submenu-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.esk-mobile-submenu-toggle--active {
    color: var(--esk-color-primary);
}

.esk-mobile-submenu-toggle--active svg {
    transform: rotate(180deg);
}

.esk-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    border-left: 2px solid #FEF2F4;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
}

.esk-mobile-submenu--active {
    display: flex;
}

.esk-mobile-submenu__link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    transition: all 0.2s ease;
}

.esk-mobile-submenu__link:hover {
    color: var(--esk-color-primary);
    background-color: #FEF2F4;
}

.esk-mobile-submenu__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--esk-color-primary);
    opacity: 0.5;
}

.esk-mobile-drawer__footer {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.esk-mobile-drawer__support {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: #64748B;
}

.esk-mobile-drawer__support a {
    color: #64748B;
    text-decoration: none;
    font-weight: 500;
}

/* ==========================================================================
   7. World-Class SaaS Footer Styling
   ========================================================================== */
.esk-footer {
    background: #0B0F19;
    color: #FFFFFF;
    padding: 5rem 0 2rem;
    font-size: 0.925rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.esk-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .esk-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .esk-footer__grid {
        grid-template-columns: 1.5fr repeat(4, 1fr);
    }
}

.esk-footer__brand p {
    color: #9CA3AF;
    line-height: 1.7;
    margin: 1.25rem 0 1.5rem;
    max-width: 320px;
}

.esk-footer__heading {
    font-family: var(--esk-font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 1.5rem;
    letter-spacing: 0.02em;
}

.esk-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.esk-footer__list a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.esk-footer__list a:hover {
    color: #FFFFFF;
}

.esk-footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #64748B;
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .esk-footer__bottom {
        flex-direction: row;
    }
}
