/*
  PressHarbor Custom Styles — Nexus Theme
  Based on WHMCS Nexus theme
  Upstream version: 9.01
  Last synced: 2026-02-16
  Customizations:
  - Brand palette remapped to PressHarbor colors
  - Inter typeface replaces Open Sans
  - Blue nav band (#006cb7) matching WordPress marketing site
  - Orange primary/CTA buttons (#F59117)
  - Dark footer (#0f172a)
  - Card geometry, form focus rings, and link colors aligned to WP theme
*/

/* ── Google Fonts: Inter ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Brand palette ── */
:root {
    /* PressHarbor brand */
    --ph-navy:          #003d6b;
    --ph-blue:          #006cb7;
    --ph-blue-light:    #0080d4;
    --ph-orange:        #F59117;
    --ph-orange-light:  #fdb913;
    --ph-teal:          #2F8F83;
    --ph-gray-50:       #f8fafc;
    --ph-gray-100:      #f1f5f9;
    --ph-gray-500:      #64748b;
    --ph-gray-700:      #334155;
    --ph-gray-900:      #0f172a;

    /* Remap Nexus semantic tokens to PressHarbor values */
    --primary:           #006cb7;
    --primary-lifted:    #0080d4;
    --primary-accented:  #003d6b;

    --bg-inverted:       #0f172a;
    --bg-lifted:         #f8fafc;

    --rounding-sm:       4px;
    --rounding-md:       8px;
    --rounding-lg:       12px;
}

/* ── Base typography ── */
body,
html {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}


/* ════════════════════════════════════════════════
   HEADER — Blue band
   ════════════════════════════════════════════════ */

.ph-header {
    background: var(--ph-blue);
    border-bottom: none;
    box-shadow: 0 2px 16px rgba(0, 108, 183, 0.25);
}

/* Topbar (logged-in user strip) */
.ph-header .topbar {
    background-color: var(--ph-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}
.ph-header .topbar .btn {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    padding: 2px 8px;
}
.ph-header .topbar .btn:hover {
    color: #fff;
}
.ph-header .topbar .input-group-text {
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}
.ph-header .topbar .btn-active-client span {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
}

/* Main nav band — blue set here directly so it wins over header.header in theme.min.css */
.ph-nav-band {
    background: var(--ph-blue);
    padding: 14px 0;
}
.ph-nav-band .container {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

/* Logo */
.ph-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 36px;
}
.ph-logo:hover {
    text-decoration: none;
    opacity: 0.9;
}
.ph-wordmark {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}
.ph-press  { color: var(--ph-orange); }
.ph-harbor { color: #ffffff; font-weight: 800; }

/* Nav collapse area (holds both primary + secondary navbars) */
.ph-nav-collapse {
    display: flex !important;
    flex: 1;
    align-items: center;
}
.ph-nav-collapse .navbar-nav {
    flex-direction: row;
    gap: 2px;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}
.ph-nav-collapse .navbar-nav .nav-item > a,
.ph-nav-collapse .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 7px 12px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.ph-nav-collapse .navbar-nav .nav-item > a:hover,
.ph-nav-collapse .navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}
.ph-nav-collapse .navbar-nav .nav-item.active > a {
    color: #fff;
}

/* Dropdown menus */
.ph-header .dropdown-menu {
    background: var(--ph-navy);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.ph-header .dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    font-size: 0.88rem;
    padding: 7px 12px;
}
.ph-header .dropdown-item:hover,
.ph-header .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.ph-header .dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Right-side nav (secondary — login, register) */
.ph-nav-right .nav-item > a,
.ph-nav-right .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Cart + hamburger toolbar */
.ph-toolbar {
    flex-direction: row !important;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0 !important;
    margin-left: 12px !important;
    list-style: none;
}
.ph-toolbar .nav-link.cart-btn {
    position: relative;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 7px 12px;
    line-height: 1;
    overflow: visible !important;
}
.ph-toolbar .nav-link.cart-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff !important;
    text-decoration: none;
}
.ph-toolbar .badge {
    position: absolute;
    top: -9px;
    right: -9px;
    background: var(--ph-orange);
    color: #fff;
    font-size: 10px;
    padding: 4px 7px;
    border-radius: 50px;
}

/* Hamburger button */
.ph-hamburger {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    overflow: hidden;
}
.ph-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    pointer-events: none;
}
.ph-hamburger:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Mobile only: hide nav until hamburger opens it */
@media (max-width: 1199px) {
    .ph-nav-collapse.collapse:not(.show) {
        display: none !important;
    }
}
@media (max-width: 1199px) {
    .ph-nav-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ph-navy);
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 200;
    }
    .ph-nav-collapse .navbar-nav {
        flex-direction: column !important;
        width: 100%;
        padding: 0 16px !important;
    }
    .ph-nav-collapse .navbar-nav .nav-item > a,
    .ph-nav-collapse .navbar-nav .nav-link {
        display: block;
        padding: 9px 12px;
    }
    .ph-nav-band .container {
        flex-wrap: wrap;
        position: relative;
    }
}


/* ════════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════════ */

.master-breadcrumb {
    background-color: var(--ph-gray-100);
}
.master-breadcrumb .breadcrumb {
    background-color: var(--ph-gray-100);
    font-size: 0.85rem;
}
.master-breadcrumb .breadcrumb a {
    color: var(--ph-blue);
}
.master-breadcrumb .breadcrumb-item.active {
    color: var(--ph-gray-500);
}
.master-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--ph-gray-500);
}


/* ════════════════════════════════════════════════
   MAIN BODY
   ════════════════════════════════════════════════ */

section#main-body {
    background-color: var(--ph-gray-50);
    padding: 32px 0 60px;
}


/* ════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════ */

.primary-content .card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}
.primary-content .card-body {
    padding: 32px;
}
.primary-content .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}
.primary-content .card-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 16px 16px 0 0;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
}


/* ════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════ */

.btn-primary {
    background: var(--ph-orange) !important;
    border-color: var(--ph-orange) !important;
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--ph-orange-light) !important;
    border-color: var(--ph-orange-light) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(245, 145, 23, 0.35) !important;
}
.btn-primary.disabled,
.btn-primary:disabled {
    background: var(--ph-orange) !important;
    border-color: var(--ph-orange) !important;
    opacity: 0.55;
}

.btn-default {
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
.btn-default:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-success {
    border-radius: 8px;
}
.btn-danger {
    border-radius: 8px;
}


/* ════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════ */

.form-control {
    border-radius: 8px;
    border-color: #cbd5e1;
    font-family: 'Inter', sans-serif;
    color: #1e293b;
}
.form-control:focus {
    border-color: var(--ph-blue);
    box-shadow: 0 0 0 3px rgba(0, 108, 183, 0.12);
}
.form-group label {
    font-weight: 500;
    font-size: 0.88rem;
    color: #334155;
}


/* ════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════ */

.sidebar .card {
    border-radius: 12px;
}
.sidebar .list-group-item.active,
.sidebar .list-group-item.active:hover {
    background-color: var(--ph-blue);
    border-color: var(--ph-blue);
}
.sidebar .list-group-item:hover {
    background-color: var(--ph-gray-100);
}


/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */

footer.footer {
    background-color: #0f172a;
    padding: 40px 0 28px;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Inter', sans-serif;
}

.ph-footer-brand {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}
.ph-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.ph-footer-logo:hover {
    opacity: 0.85;
    text-decoration: none;
}
.ph-footer-wordmark {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.ph-footer-copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

footer.footer .nav-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    padding: 4px 12px 4px 0;
    font-family: 'Inter', sans-serif;
}
footer.footer .nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

footer.footer .copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.78rem;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 0;
}

footer.footer .list-inline {
    margin-bottom: 0;
}
footer.footer .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}
footer.footer .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}


/* ════════════════════════════════════════════════
   ALERTS / FLASH MESSAGES
   ════════════════════════════════════════════════ */

.alert {
    border-radius: 10px;
    font-size: 0.9rem;
}
.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}
.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.alert-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}


/* ════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════ */

.pagination .page-item.active .page-link {
    background-color: var(--ph-blue);
    border-color: var(--ph-blue);
}
.pagination .page-link {
    color: var(--ph-blue);
    border-radius: 6px;
}
.pagination .page-link:hover {
    color: var(--ph-navy);
}


/* ════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════ */

.table thead th {
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ph-gray-500);
    border-bottom: 2px solid #e2e8f0;
}


/* ════════════════════════════════════════════════
   MISC — modal, links
   ════════════════════════════════════════════════ */

a {
    color: var(--ph-blue);
}
a:hover {
    color: var(--ph-navy);
}

/* Override Nexus link color inside cards (it defaults to --text/dark) */
.primary-content a:not(.btn):not(.nav-link):not(.breadcrumb-item a) {
    color: var(--ph-blue);
}
.primary-content a:not(.btn):not(.nav-link):hover {
    color: var(--ph-navy);
}

.modal .modal-header {
    background-color: var(--ph-gray-50);
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}


/* ════════════════════════════════════════════════
   ORDER / STORE AREA
   ════════════════════════════════════════════════ */

/* When viewing the cart/store, remove the breadcrumb for cleanliness */
.page-store .master-breadcrumb {
    display: none;
}

section#main-body .primary-content p:empty {
    display: none;
}
