/* *****************************************************
   VANTAGE THEME — custom overrides on top of "Six"
   Sidebar-navigation layout, graphite & emerald palette.
   CSS-only transform — no header.tpl/footer.tpl edits,
   so all modules/addons keep working normally.
***************************************************** */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
    --graphite:   #1C1F26;
    --graphite-lift: #262B35;
    --accent:    #0FA968;
    --accent-dim:#0C8452;
    --paper:      #F7F6F3;
    --slate:      #6B7280;
    --line:       #E3E1DB;
    --sidebar-w:  240px;
}

body { background-color: var(--paper); }
a { color: var(--accent-dim); }
a:hover, a:focus { color: var(--graphite); }
h1, h2, h3, h4, h5, h6 {
    font-family: "Sora", "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--graphite);
}

/* ---------- Top utility bar (login/cart/language) ---------- */
ul.top-nav > li.primary-action > a.btn {
    background-color: var(--accent);
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
}
ul.top-nav > li.primary-action > a.btn:hover { background-color: var(--accent-dim); }
ul.top-nav > li > a { color: var(--slate); font-weight: 600; }
ul.top-nav > li > a:hover { color: var(--graphite); }

/* ---------- Header becomes a slim top bar, offset for the sidebar ---------- */
section#header {
    background-color: #fff;
    border-bottom: 1px solid var(--line);
}
.logo-text { font-family: "Sora", sans-serif; font-weight: 800; color: var(--graphite); }

/* ---------- Main menu becomes a fixed left sidebar (desktop) ---------- */
@media (min-width: 992px) {
    body section#header,
    body section#home-banner,
    body .home-shortcuts,
    body .product-showcase,
    body .feature-highlights,
    body section#main-body,
    body section#footer {
        margin-left: var(--sidebar-w);
    }

    section#main-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: var(--sidebar-w);
        background: var(--graphite);
        z-index: 90;
        overflow-y: auto;
    }
    section#main-menu .navbar-header { display: none; }
    section#main-menu .navbar-collapse {
        display: block !important;
        height: auto !important;
        padding: 0;
        border: none;
        box-shadow: none;
    }
    section#main-menu .container { width: 100%; padding: 0; }
    section#main-menu .navbar-nav {
        display: flex;
        flex-direction: column;
        margin: 24px 0 0;
        float: none;
        width: 100%;
    }
    section#main-menu .navbar-nav.navbar-right { float: none; margin-top: 20px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; }
    section#main-menu .navbar-nav > li { float: none; width: 100%; }
    section#main-menu .navbar-nav > li > a {
        color: rgba(255,255,255,.75);
        padding: 12px 24px;
        font-weight: 600;
        font-size: 14px;
        border-left: 3px solid transparent;
    }
    section#main-menu .navbar-nav > li > a:hover,
    section#main-menu .navbar-nav > li > a:focus,
    section#main-menu .navbar-nav > .active > a,
    section#main-menu .navbar-nav > .active > a:hover,
    section#main-menu .navbar-nav > .open > a {
        background-color: var(--graphite-lift);
        color: #fff;
        border-left-color: var(--accent);
    }
    section#main-menu .dropdown-menu {
        position: static;
        float: none;
        background: var(--graphite-lift);
        border: none;
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0 0 8px;
    }
    section#main-menu .dropdown-menu > li > a {
        color: rgba(255,255,255,.6);
        padding: 8px 24px 8px 38px;
        font-size: 13.5px;
    }
    section#main-menu .dropdown-menu > li > a:hover { color: #fff; background: transparent; }

    /* Sidebar brand mark above the nav */
    section#main-menu::before {
        content: "SERVICES";
        display: block;
        color: #fff;
        font-family: "Sora", sans-serif;
        font-weight: 800;
        font-size: 15px;
        letter-spacing: .08em;
        padding: 26px 24px 18px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
}

/* Mobile: keep the normal collapsing top navbar behaviour */
@media (max-width: 991px) {
    .navbar-main { background-color: var(--graphite); }
    .navbar-main .navbar-nav > li > a { color: rgba(255,255,255,.85); }
    .navbar-main .navbar-nav > li > a:hover,
    .navbar-main .navbar-nav > .active > a { background-color: var(--graphite-lift); color: #fff; }
}

/* ---------- Homepage hero ---------- */
section#home-banner {
    background: linear-gradient(135deg, var(--graphite), var(--graphite-lift));
}
section#home-banner h2 { color: #fff; }
section#home-banner .btn.search {
    background-color: var(--accent);
    color: #fff;
    font-weight: 700;
}
section#home-banner .btn.search:hover { background-color: var(--accent-dim); }
section#home-banner .btn.transfer { background-color: rgba(255,255,255,.15); }
section#home-banner .btn.transfer:hover { background-color: rgba(255,255,255,.28); }

/* ---------- Homepage quick shortcuts ---------- */
.home-shortcuts { background: transparent; }
.home-shortcuts li {
    border: 1px solid var(--line) !important;
    background: #fff;
    border-radius: 12px;
    overflow: visible;
    white-space: normal;
    padding: 14px 10px !important;
}
.home-shortcuts li a { color: var(--graphite) !important; }
.home-shortcuts li a p { color: var(--graphite) !important; margin-top: 8px; }
.home-shortcuts li a span { color: var(--accent-dim) !important; display: inline-block !important; }
.home-shortcuts li i { color: var(--accent-dim); font-size: 20px; }
.home-shortcuts li:hover { border-color: var(--accent) !important; }
.home-shortcuts li:hover a p { color: var(--accent-dim) !important; }

/* ---------- Buttons (site-wide) ---------- */
.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent-dim);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary.focus {
    background-color: var(--accent-dim);
    border-color: var(--accent-dim);
}

/* ---------- Panels / invoices / tickets ---------- */
.panel-primary { border-color: var(--graphite); border-radius: 10px; overflow: hidden; }
.panel-primary > .panel-heading { background-color: var(--graphite); border-color: var(--graphite); color: #fff; }
.panel-primary > .panel-heading .badge { background-color: var(--accent); color: #fff; }

/* ---------- Labels / badges / pagination ---------- */
.label-primary, .badge-primary { background-color: var(--accent); color: #fff; }
.label-default { background-color: var(--slate); }
.pagination > .active > a, .pagination > .active > span {
    background-color: var(--accent);
    border-color: var(--accent-dim);
    color: #fff;
}

/* ---------- List groups (secondary sidebar within content) ---------- */
a.list-group-item.active, a.list-group-item.active:hover {
    background-color: var(--graphite);
    border-color: var(--graphite);
}

/* ---------- Footer ---------- */
section#footer {
    background-color: var(--graphite);
    border-top: none;
    color: rgba(255,255,255,.6);
}
section#footer a { color: rgba(255,255,255,.85); }
section#footer .back-to-top i { background-color: rgba(255,255,255,.12); color: #fff; }

/* ---------- Forms ---------- */
.form-control { border-radius: 8px; border-color: var(--line); }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,169,104,.15); }

/* ---------- Pricing/store accents ---------- */
.pricing-table .price, .product-price { color: var(--accent-dim); font-family: "JetBrains Mono", monospace; }

/* ---------- Sidebar collapse toggle ---------- */
.sidebar-collapse-toggle {
    background: var(--paper);
    border: 1px solid var(--line);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--graphite);
    font-size: 13px;
}
.sidebar-collapse-toggle:hover { background: var(--line); }

@media (min-width: 992px) {
    body.sidebar-collapsed {
        --sidebar-w: 74px;
    }
    body.sidebar-collapsed section#main-menu::before { font-size: 0; padding: 26px 0 18px; text-align: center; }
    body.sidebar-collapsed section#main-menu::before { display: none; }
    body.sidebar-collapsed section#main-menu .navbar-nav > li > a span.link-label { display: none; }
    body.sidebar-collapsed section#main-menu .navbar-nav > li > a { text-align: center; padding: 12px 0; }
    body.sidebar-collapsed section#main-menu .dropdown-menu { display: none !important; }
    body.sidebar-collapsed .sidebar-collapse-toggle i { transform: rotate(180deg); }
}

/* ---------- Separated sidebar nav item style ---------- */
@media (min-width: 992px) {
    section#main-menu .navbar-nav { padding: 0 12px; }
    section#main-menu .navbar-nav > li { margin-bottom: 4px; }
    section#main-menu .navbar-nav > li > a { border-radius: 10px; border-left: none !important; }
    section#main-menu .navbar-nav > li > a:hover,
    section#main-menu .navbar-nav > .active > a { background-color: var(--accent) !important; color: #fff !important; }
}

/* ---------- Domain TLD price chips ---------- */
.tld-chip-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.tld-chip {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 13px;
}
.tld-chip strong { color: var(--accent); margin-right: 6px; }

/* ---------- Product showcase (homepage) ---------- */
.product-showcase, .feature-highlights { max-width: 1100px; margin: 0 auto; padding: 50px 15px; }
.services-head { text-align: center; margin-bottom: 32px; }
.services-head .section-eyebrow {
    display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--accent-dim); margin-bottom: 8px;
}
.services-head h2 { font-size: 24px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-highlight {
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px;
    text-align: center; transition: transform .15s, box-shadow .15s;
}
.product-highlight:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -26px rgba(28,31,38,.25); }
.ph-icon {
    width: 46px; height: 46px; border-radius: 12px; background: rgba(15,169,104,.1);
    color: var(--accent-dim); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; font-size: 18px;
}
.product-highlight h4 { font-size: 16px; margin-bottom: 6px; }
.product-highlight p { font-size: 13px; color: var(--slate); margin-bottom: 14px; min-height: 52px; }
.ph-price { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 17px; color: var(--graphite); margin-bottom: 14px; }
.ph-price span { font-size: 11px; font-weight: 500; color: var(--slate); }
@media (max-width: 860px) { .product-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- Feature highlights grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-item { text-align: center; padding: 8px; }
.fi-icon {
    width: 48px; height: 48px; border-radius: 50%; background: var(--graphite);
    color: var(--accent); display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 18px;
}
.feature-item h4 { font-size: 15px; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: var(--slate); margin: 0; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* *****************************************************
   THEME OPTIONS SYSTEM
   Sidebar styles, color schemes, logo placement, footer
   layouts — toggled via data-attributes on <body>.
   Driven by the front-end Customize panel (see below).
***************************************************** */

/* ---------- Color schemes ---------- */
body[data-color="blue"]   { --accent: #2E7DE1; --accent-dim: #1E5FB8; }
body[data-color="green"]  { --accent: #0FA968; --accent-dim: #0C8452; }
body[data-color="purple"] { --accent: #7C5CFC; --accent-dim: #6142D8; }
body[data-color="red"]    { --accent: #E5484D; --accent-dim: #C53338; }

/* ---------- Sidebar background: light mode ---------- */
body[data-sidebar-bg="light"] section#main-menu { background: #fff; border-right: 1px solid var(--line); }
body[data-sidebar-bg="light"] section#main-menu::before { color: var(--graphite); border-bottom-color: var(--line); }
body[data-sidebar-bg="light"] .navbar-main .navbar-nav > li > a { color: var(--slate); }
body[data-sidebar-bg="light"] .navbar-main .navbar-nav > li > a:hover,
body[data-sidebar-bg="light"] .navbar-main .navbar-nav > .active > a { color: #fff; }
body[data-sidebar-bg="light"] .navbar-main .dropdown-menu { background: #F7F6F3; }
body[data-sidebar-bg="light"] .navbar-main .dropdown-menu > li > a { color: var(--slate); }

/* ---------- Sidebar style: big icons ---------- */
@media (min-width: 992px) {
    body[data-sidebar-style="bigicons"] section#main-menu,
    body[data-sidebar-style="separated-bigicons"] section#main-menu { width: 96px; }
    body[data-sidebar-style="bigicons"] section#header,
    body[data-sidebar-style="bigicons"] section#home-banner,
    body[data-sidebar-style="bigicons"] .home-shortcuts,
    body[data-sidebar-style="bigicons"] .product-showcase,
    body[data-sidebar-style="bigicons"] .feature-highlights,
    body[data-sidebar-style="bigicons"] section#main-body,
    body[data-sidebar-style="bigicons"] section#footer,
    body[data-sidebar-style="separated-bigicons"] section#header,
    body[data-sidebar-style="separated-bigicons"] section#home-banner,
    body[data-sidebar-style="separated-bigicons"] .home-shortcuts,
    body[data-sidebar-style="separated-bigicons"] .product-showcase,
    body[data-sidebar-style="separated-bigicons"] .feature-highlights,
    body[data-sidebar-style="separated-bigicons"] section#main-body,
    body[data-sidebar-style="separated-bigicons"] section#footer { margin-left: 96px; }

    body[data-sidebar-style="bigicons"] section#main-menu .navbar-nav > li > a,
    body[data-sidebar-style="separated-bigicons"] section#main-menu .navbar-nav > li > a {
        display: flex; flex-direction: column; align-items: center; gap: 6px;
        font-size: 10.5px; text-align: center; padding: 14px 4px;
    }
    body[data-sidebar-style="bigicons"] section#main-menu .navbar-nav > li > a::before,
    body[data-sidebar-style="separated-bigicons"] section#main-menu .navbar-nav > li > a::before {
        font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 18px; content: "\f0c9";
    }
    body[data-sidebar-style="bigicons"] section#main-menu .dropdown-menu,
    body[data-sidebar-style="separated-bigicons"] section#main-menu .dropdown-menu { text-align: center; }
}

/* ---------- Sidebar style: default (flush, left-border indicator) ---------- */
@media (min-width: 992px) {
    body[data-sidebar-style="default"] section#main-menu .navbar-nav,
    body[data-sidebar-style="bigicons"] section#main-menu .navbar-nav { padding: 0; }
    body[data-sidebar-style="default"] section#main-menu .navbar-nav > li,
    body[data-sidebar-style="bigicons"] section#main-menu .navbar-nav > li { margin-bottom: 0; }
    body[data-sidebar-style="default"] section#main-menu .navbar-nav > li > a,
    body[data-sidebar-style="bigicons"] section#main-menu .navbar-nav > li > a {
        border-radius: 0; border-left: 3px solid transparent;
    }
    body[data-sidebar-style="default"] section#main-menu .navbar-nav > li > a:hover,
    body[data-sidebar-style="default"] section#main-menu .navbar-nav > .active > a,
    body[data-sidebar-style="bigicons"] section#main-menu .navbar-nav > li > a:hover,
    body[data-sidebar-style="bigicons"] section#main-menu .navbar-nav > .active > a {
        background-color: var(--graphite-lift) !important;
        border-left-color: var(--accent);
        color: #fff !important;
    }
    body[data-sidebar-bg="light"][data-sidebar-style="default"] section#main-menu .navbar-nav > li > a:hover,
    body[data-sidebar-bg="light"][data-sidebar-style="default"] section#main-menu .navbar-nav > .active > a {
        background-color: #F4F3EF !important;
        color: var(--graphite) !important;
    }
}

/* ---------- Layout: horizontal bottom / horizontal top ---------- */
@media (min-width: 992px) {
    body[data-layout^="horizontal"] section#main-menu {
        position: fixed; left: 0; right: 0; width: 100%; height: 64px; bottom: 0; top: auto;
        display: flex; align-items: center;
    }
    body[data-layout="horizontal-top"] section#main-menu { top: 0; bottom: auto; }
    body[data-layout^="horizontal"] section#main-menu::before { display: none; }
    body[data-layout^="horizontal"] section#main-menu .navbar-collapse { width: 100%; }
    body[data-layout^="horizontal"] section#main-menu .navbar-nav {
        flex-direction: row !important; margin: 0 !important; justify-content: center; width: 100%;
    }
    body[data-layout^="horizontal"] section#main-menu .navbar-nav > li > a { border-left: none; border-bottom: 3px solid transparent; }
    body[data-layout^="horizontal"] section#main-menu .navbar-nav > li > a:hover,
    body[data-layout^="horizontal"] section#main-menu .navbar-nav > .active > a { border-bottom-color: var(--accent); }
    body[data-layout^="horizontal"] section#main-menu .dropdown-menu { position: absolute; min-width: 200px; }

    body[data-layout^="horizontal"] section#header,
    body[data-layout^="horizontal"] section#home-banner,
    body[data-layout^="horizontal"] .home-shortcuts,
    body[data-layout^="horizontal"] .product-showcase,
    body[data-layout^="horizontal"] .feature-highlights,
    body[data-layout^="horizontal"] section#main-body,
    body[data-layout^="horizontal"] section#footer { margin-left: 0 !important; }
    body[data-layout="horizontal-bottom"] section#main-body { padding-bottom: 64px; }
    body[data-layout="horizontal-top"] section#header { margin-top: 0; }
    body[data-layout="horizontal-top"] section#home-banner,
    body[data-layout="horizontal-top"] .product-showcase,
    body[data-layout="horizontal-top"] .feature-highlights,
    body[data-layout="horizontal-top"] .home-shortcuts,
    body[data-layout="horizontal-top"] section#main-body { margin-top: 0; }
    body[data-layout^="horizontal"] .sidebar-collapse-toggle { display: none; }
}

/* ---------- Logo placement: shown inside sidebar top ---------- */
.sidebar-logo-slot {
    display: none;
    padding: 22px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo-slot img { max-height: 32px; }
.sidebar-logo-slot .logo-text { color: #fff; font-family: "Sora", sans-serif; font-weight: 800; font-size: 16px; }
@media (min-width: 992px) {
    body[data-logo="sidebar"] section#main-menu::before { display: none; }
    body[data-logo="sidebar"] .sidebar-logo-slot { display: block; }
    body[data-logo="sidebar"] section#header .logo { display: none; }
}

/* ---------- Footer layouts ---------- */
.footer-layout { display: none; }
body[data-footer="simple"] .footer-layout-simple,
body[data-footer="columns"] .footer-layout-columns,
body[data-footer="newsletter"] .footer-layout-newsletter { display: block; }

.footer-layout-columns .footer-cols,
.footer-layout-newsletter .footer-cols {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 44px 0 30px;
}
.footer-col img { max-height: 30px; margin-bottom: 12px; }
.footer-col .logo-text { color: #fff; font-family: "Sora", sans-serif; font-weight: 800; font-size: 18px; display: block; margin-bottom: 12px; }
.footer-desc { color: rgba(255,255,255,.55); font-size: 13.5px; max-width: 32ch; }
.footer-col h5 { color: rgba(255,255,255,.4); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { color: rgba(255,255,255,.8); font-size: 14px; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; position: relative; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom .back-to-top { position: absolute; right: 0; top: 14px; }
@media (max-width: 860px) { .footer-layout-columns .footer-cols, .footer-layout-newsletter .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-layout-columns .footer-cols, .footer-layout-newsletter .footer-cols { grid-template-columns: 1fr; } }

.footer-newsletter {
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
    padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-newsletter h4 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.footer-newsletter p { color: rgba(255,255,255,.55); font-size: 13.5px; margin: 0; }
.footer-newsletter-form { display: flex; gap: 8px; }
.footer-newsletter-form input {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 8px;
    padding: 11px 14px; color: #fff; font-size: 14px; min-width: 220px;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,.4); }

/* ---------- Customize panel (front-end demo/dev tool) ---------- */
#vantageCustomize {
    position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 200;
}
#vantageCustomizeToggle {
    background: var(--graphite); color: #fff; border: none; width: 44px; height: 44px;
    border-radius: 8px 0 0 8px; cursor: pointer; font-size: 16px; box-shadow: -4px 0 20px rgba(0,0,0,.2);
}
#vantageCustomizePanel {
    position: absolute; top: 50%; right: 44px; transform: translateY(-50%);
    width: 280px; max-height: 80vh; overflow-y: auto;
    background: #fff; border: 1px solid var(--line); border-radius: 12px 0 0 12px;
    box-shadow: -10px 0 40px rgba(0,0,0,.15); padding: 18px;
    display: none;
}
#vantageCustomizePanel.open { display: block; }
#vantageCustomizePanel h6 {
    font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--slate);
    margin: 16px 0 8px; font-weight: 700;
}
#vantageCustomizePanel h6:first-child { margin-top: 0; }
.cust-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cust-swatch {
    width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0;
}
.cust-swatch.active { border-color: var(--graphite); }
.cust-opt {
    border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px;
    font-size: 12.5px; cursor: pointer; flex: 1 1 auto; text-align: center;
}
.cust-opt.active { background: var(--graphite); color: #fff; border-color: var(--graphite); }
#vantageCustomizeReset { width: 100%; margin-top: 16px; padding: 9px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; cursor: pointer; }
