/*
 * Xpdient client portal theme
 * Loaded after assets/default/css/theme.css and overrides it.
 * Layout inspired by full-width "band" helpdesk themes; colours from the
 * Xpdient logo.
 */

:root {
    --xp-navy-900: #141a33;   /* header, company band */
    --xp-navy-800: #1d2442;   /* menu bar, footer */
    --xp-navy-700: #23375c;   /* logo blue */
    --xp-plum:     #a05271;   /* primary accent */
    --xp-plum-600: #8a4462;
    --xp-coral:    #d37271;
    --xp-peach:    #e0ab8b;
    --xp-cream:    #e2e0b8;

    --xp-text:     #3a3f52;
    --xp-muted:    #6b7080;
    --xp-on-dark:  #c4c7d4;
    --xp-border:   #e3e5ec;
    --xp-surface:  #f6f7fa;
    --xp-link:     #2f5d9e;

    --xp-radius:   6px;
    --xp-shadow:   0 1px 2px rgba(20, 26, 51, 0.06), 0 4px 16px rgba(20, 26, 51, 0.06);
    --xp-font:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Base ---------- */

body.xp-theme {
    background: var(--xp-surface);
    color: var(--xp-text);
    font-family: var(--xp-font);
    font-size: 15px;
    line-height: 1.6;
}
.xp-theme input,
.xp-theme select,
.xp-theme textarea,
.xp-theme button,
.xp-theme .button {
    font-family: var(--xp-font);
}
.xp-theme h1, .xp-theme h2, .xp-theme h3, .xp-theme h4 {
    color: var(--xp-navy-900);
    font-weight: 700;
    line-height: 1.25;
}
.xp-theme a,
.xp-theme a:link,
.xp-theme a:visited {
    color: var(--xp-link);
}
.xp-theme a:hover {
    color: var(--xp-plum);
}

.xp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.xp-container:after {
    content: "";
    display: table;
    clear: both;
}
/* Clearfix pseudo-element would become a flex item in flex containers */
.xp-theme #header .xp-container:after,
.xp-company .xp-container:after,
.xp-theme #footer .xp-container:after {
    display: none;
}
.xp-theme .clear {
    height: 0;
}

/* Default theme boxes the whole site in an 840px card; go full width. */
.xp-theme #container {
    width: auto;
    background: transparent;
    box-shadow: none;
    margin: 0;
}

/* ---------- Header ---------- */

.xp-theme #header {
    background: var(--xp-navy-900);
    height: auto;
    padding: 0;
    color: #fff;
}
.xp-theme #header .xp-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row-reverse;
    min-height: 76px;
}
.xp-theme #header #logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: auto;
    padding: 14px 0;
    text-decoration: none;
}
.xp-theme #header #logo img {
    height: 40px;
    width: auto;
    max-width: none;
    max-height: none;
}
.xp-wordmark {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.xp-wordmark span {
    color: var(--xp-peach);
    font-weight: 500;
}
.xp-theme #header .pull-right {
    float: none;
    text-align: right;
}
.xp-theme #header p {
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: var(--xp-on-dark);
}
.xp-theme #header p:empty {
    display: none;
}
.xp-theme #header p a,
.xp-theme #header p a:visited {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.xp-theme #header p a:hover {
    color: var(--xp-peach);
}

/* ---------- Menu bar ---------- */

.xp-menu {
    background: var(--xp-navy-800);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.xp-theme #nav {
    margin: 0;
    padding: 0;
    height: auto;
    background: none;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
}
.xp-theme #nav li {
    display: block;
    margin: 0;
    padding: 0;
}
.xp-theme #nav li a,
.xp-theme #nav li a:visited {
    display: block;
    height: auto;
    padding: 0;
    line-height: 60px;
    background: none !important;
    border-radius: 0;
    color: var(--xp-on-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}
.xp-theme #nav li a:hover {
    background: none;
    color: #fff;
}
.xp-theme #nav li a.active {
    color: #fff;
    border-bottom-color: var(--xp-coral);
}
/* Font Awesome 3 icons in place of the default PNG sprites */
.xp-theme #nav li a:before {
    font-family: FontAwesome;
    font-weight: normal;
    margin-right: 8px;
    color: var(--xp-peach);
}
.xp-theme #nav li a.home:before    { content: "\f015"; }
.xp-theme #nav li a.kb:before      { content: "\f02d"; }
.xp-theme #nav li a.new:before     { content: "\f0f6"; }
.xp-theme #nav li a.status:before  { content: "\f017"; }
.xp-theme #nav li a.tickets:before { content: "\f0ca"; }

.xp-nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 0;
    cursor: pointer;
}

/* ---------- Content area ---------- */

.xp-theme #content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 24px 56px;
    box-sizing: border-box;
    min-height: 320px;
}
.xp-home #content {
    max-width: none;
    padding: 0;
}
.xp-theme .main-content {
    width: auto;
}

/* Status messages */
.xp-theme #msg_notice,
.xp-theme #msg_warning,
.xp-theme #msg_error,
.xp-theme #msg_info {
    border: 0;
    border-left: 4px solid;
    border-radius: var(--xp-radius);
    padding: 12px 16px;
    margin: 0 0 24px;
    background-image: none;
}
.xp-theme #msg_notice  { background: #e9f6ef; border-color: #2e8b57; color: #1d5c39; }
.xp-theme #msg_warning { background: #fdf6e7; border-color: #d99a1a; color: #7a5300; }
.xp-theme #msg_error   { background: #fbecec; border-color: #c0392b; color: #8a2016; }
.xp-theme #msg_info    { background: #eef3fb; border-color: var(--xp-link); color: var(--xp-navy-700); }
.xp-home #msg_notice,
.xp-home #msg_warning,
.xp-home #msg_error {
    max-width: 1092px;
    margin: 24px auto 0;
}

/* ---------- Buttons & forms ---------- */

.xp-theme .button,
.xp-theme .button:visited,
.xp-theme .green.button,
.xp-theme .green.button:visited,
.xp-theme .blue.button,
.xp-theme .blue.button:visited,
.xp-theme input[type="submit"],
.xp-theme button[type="submit"],
.xp-theme .btn {
    display: inline-block;
    max-width: none;
    background: var(--xp-plum);
    color: #fff;
    border: 0;
    border-radius: var(--xp-radius);
    box-shadow: none;
    text-shadow: none;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.xp-theme .button:hover,
.xp-theme .green.button:hover,
.xp-theme .blue.button:hover,
.xp-theme input[type="submit"]:hover,
.xp-theme button[type="submit"]:hover,
.xp-theme .btn:hover {
    background: var(--xp-plum-600);
    color: #fff;
}
.xp-theme .blue.button,
.xp-theme .blue.button:visited {
    background: var(--xp-navy-700);
}
.xp-theme .blue.button:hover {
    background: var(--xp-navy-900);
}
.xp-theme input[type="reset"],
.xp-theme input[type="button"] {
    background: #fff;
    color: var(--xp-text);
    border: 1px solid var(--xp-border);
    border-radius: var(--xp-radius);
    padding: 9px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}
.xp-theme input[type="reset"]:hover,
.xp-theme input[type="button"]:hover {
    border-color: var(--xp-muted);
}

.xp-theme input[type="text"],
.xp-theme input[type="email"],
.xp-theme input[type="password"],
.xp-theme input[type="tel"],
.xp-theme input[type="number"],
.xp-theme select,
.xp-theme textarea {
    border: 1px solid #cfd3de;
    border-radius: var(--xp-radius);
    padding: 8px 10px;
    font-size: 15px;
    background: #fff;
    color: var(--xp-text);
    box-sizing: border-box;
    max-width: 100%;
}
.xp-theme input:focus,
.xp-theme select:focus,
.xp-theme textarea:focus {
    outline: none;
    border-color: var(--xp-plum);
    box-shadow: 0 0 0 3px rgba(160, 82, 113, 0.18);
}

/* Page headers used across client pages */
.xp-theme #content > h1,
.xp-theme .form-header h1,
.xp-theme .form-header h2 {
    font-size: 28px;
    margin: 0 0 8px;
}
.xp-theme .form-header {
    margin-bottom: 20px;
}

/* Open ticket / dynamic forms */
.xp-theme #ticketForm,
.xp-theme #clientLogin,
.xp-theme #ticketInfo,
.xp-theme #reply {
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: var(--xp-radius);
    box-shadow: var(--xp-shadow);
    padding: 28px;
}
.xp-theme #ticketForm table,
.xp-theme #reply table {
    width: 100%;
}
.xp-theme #ticketForm hr,
.xp-theme #reply hr {
    border: 0;
    border-top: 1px solid var(--xp-border);
}
.xp-theme .redactor-box,
.xp-theme .redactor-toolbar {
    border-radius: var(--xp-radius);
}

/* Sign in / check status */
.xp-theme #clientLogin {
    background-image: none;
    margin-top: 24px;
}
/* Default theme styles all inputs in these forms by ID; match its weight */
.xp-theme #clientLogin input[type="text"],
.xp-theme #clientLogin input[type="email"],
.xp-theme #clientLogin input[type="password"],
.xp-theme #ticketForm div input[type="text"],
.xp-theme #ticketForm div input[type="email"] {
    padding: 9px 10px;
    border: 1px solid #cfd3de;
    border-radius: var(--xp-radius);
    margin-bottom: 15px;
}
.xp-theme #clientLogin div input[type="submit"],
.xp-theme #ticketForm div input[type="submit"] {
    background: var(--xp-plum);
    color: #fff;
    border: 0;
    border-radius: var(--xp-radius);
    padding: 10px 22px;
}
.xp-theme #clientLogin div input[type="submit"]:hover,
.xp-theme #ticketForm div input[type="submit"]:hover {
    background: var(--xp-plum-600);
}

/* Ticket list */
.xp-theme #ticketTable,
.xp-theme table.list {
    width: 100%;
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: var(--xp-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: var(--xp-shadow);
}
.xp-theme #ticketTable th,
.xp-theme table.list th {
    background: var(--xp-surface);
    color: var(--xp-navy-900);
    font-weight: 600;
    padding: 12px;
    border-bottom: 1px solid var(--xp-border);
}
.xp-theme #ticketTable td,
.xp-theme table.list td {
    padding: 12px;
    border-bottom: 1px solid var(--xp-border);
}
.xp-theme #ticketTable tr:last-child td,
.xp-theme table.list tr:last-child td {
    border-bottom: 0;
}
.xp-theme #ticketTable caption {
    text-align: left;
    padding: 0 0 10px;
    font-weight: 600;
}

/* Knowledge base pages */
.xp-theme #kb > li,
.xp-theme .featured-category {
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: var(--xp-radius);
    padding: 16px 20px;
    margin-bottom: 12px;
}
.xp-theme #breadcrumbs {
    color: var(--xp-muted);
}
.xp-theme .sidebar .content,
.xp-theme .sidebar .featured-questions {
    border-radius: var(--xp-radius);
}

/* ---------- Landing page ---------- */

.xp-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 20%, rgba(211, 114, 113, 0.35), transparent 45%),
        radial-gradient(circle at 70% 90%, rgba(160, 82, 113, 0.45), transparent 50%),
        linear-gradient(135deg, var(--xp-navy-900) 0%, var(--xp-navy-700) 100%);
}
/* Faint oversized "X" echoing the logo mark */
.xp-hero:after {
    content: "";
    position: absolute;
    right: -60px;
    top: 50%;
    width: 420px;
    height: 525px;
    transform: translateY(-50%);
    background: url(../images/xpdient-mark.png) center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}
.xp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 96px 0 104px;
}
.xp-hero-content h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.xp-hero-content p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
}

.xp-theme #landing_page {
    padding: 0 0 64px;
}
.xp-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}
.xp-theme a.xp-card,
.xp-theme a.xp-card:visited {
    display: block;
    background: #fff;
    border: 1px solid var(--xp-border);
    border-radius: 10px;
    box-shadow: var(--xp-shadow);
    padding: 36px;
    color: var(--xp-text);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.xp-theme a.xp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px rgba(20, 26, 51, 0.06), 0 12px 32px rgba(20, 26, 51, 0.12);
    color: var(--xp-text);
}
.xp-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    font-size: 26px;
    color: #fff;
    background: linear-gradient(135deg, var(--xp-coral), var(--xp-plum));
    margin-bottom: 20px;
}
.xp-card:nth-child(2) .xp-card-icon {
    background: linear-gradient(135deg, #3e5f95, var(--xp-navy-700));
}
.xp-card h3 {
    font-size: 22px;
    margin: 0 0 10px;
}
.xp-card p {
    color: var(--xp-muted);
    margin: 0 0 24px;
}
.xp-card:nth-child(2) .button {
    background: var(--xp-navy-700);
}
.xp-card:nth-child(2):hover .button {
    background: var(--xp-navy-900);
}
.xp-card:first-child:hover .button {
    background: var(--xp-plum-600);
}

.xp-kb-band {
    background: var(--xp-navy-700);
    color: #fff;
    padding: 56px 0;
    text-align: center;
}
.xp-kb-band h2 {
    color: #fff;
    font-size: 30px;
    margin: 0 0 24px;
}
.xp-kb-search {
    display: flex;
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}
.xp-theme .xp-kb-search input.search {
    flex: 1;
    height: 52px;
    padding: 0 16px;
    border: 0;
}
.xp-theme .xp-kb-search .button {
    height: 52px;
    background: var(--xp-navy-900);
}

.xp-featured {
    padding: 56px 0;
}
.xp-featured h2 {
    font-size: 26px;
    margin: 0 0 24px;
}
.xp-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.xp-theme .xp-featured .featured-category {
    width: auto;
    float: none;
    margin: 0;
}
.xp-featured .category-name {
    font-weight: 700;
    color: var(--xp-navy-900);
    margin-bottom: 8px;
}

/* ---------- Company band & footer ---------- */

.xp-company {
    background: var(--xp-navy-900);
    color: var(--xp-on-dark);
    padding: 56px 0;
}
.xp-company .xp-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.xp-company h3 {
    color: #fff;
    font-size: 22px;
    margin: 0 0 12px;
}
.xp-company p {
    margin: 0 0 16px;
    font-size: 14px;
}
.xp-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 14px;
}
.xp-theme .xp-contact a,
.xp-theme .xp-contact a:visited {
    color: #fff;
    text-decoration: none;
}
.xp-theme .xp-contact a:hover {
    color: var(--xp-peach);
}
.xp-contact i {
    color: var(--xp-peach);
    margin-right: 6px;
}
.xp-social {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}
.xp-theme .xp-social a,
.xp-theme .xp-social a:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--xp-radius);
    background: var(--xp-navy-800);
    color: var(--xp-peach);
    font-size: 18px;
    text-decoration: none;
}
.xp-theme .xp-social a:hover {
    background: var(--xp-plum);
    color: #fff;
}

.xp-theme #footer {
    background: var(--xp-navy-800);
    color: var(--xp-on-dark);
    padding: 20px 0;
    font-size: 13px;
    text-align: left;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.xp-theme #footer .xp-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
}
.xp-theme #footer p {
    margin: 0;
}
.xp-theme #footer a,
.xp-theme #footer a:visited {
    color: var(--xp-on-dark);
}
.xp-theme #footer #poweredBy {
    display: inline;
    width: auto;
    height: auto;
    margin: 0;
    background: none;
    text-indent: 0;
    overflow: visible;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
    .xp-container,
    .xp-theme #content {
        padding-left: 16px;
        padding-right: 16px;
    }
    .xp-theme #content {
        padding-top: 24px;
    }
    .xp-home #content {
        padding: 0;
    }
    .xp-theme #header .xp-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-bottom: 12px;
    }
    .xp-theme #header .pull-right {
        text-align: left;
    }
    .xp-theme #header #logo img {
        height: 32px;
    }
    .xp-wordmark {
        font-size: 19px;
    }
    .xp-nav-toggle {
        display: block;
    }
    .xp-theme #nav {
        display: none;
        flex-direction: column;
        padding-bottom: 8px;
    }
    .xp-theme #nav.xp-open {
        display: flex;
    }
    .xp-theme #nav li a {
        line-height: 44px;
        border-bottom: 0;
        border-left: 3px solid transparent;
        padding-left: 12px;
    }
    .xp-theme #nav li a.active {
        border-left-color: var(--xp-coral);
    }
    .xp-hero:after {
        display: none;
    }
    .xp-hero-content {
        padding: 48px 0 80px;
    }
    .xp-hero-content h1 {
        font-size: 32px;
    }
    .xp-hero-content p {
        font-size: 16px;
    }
    .xp-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .xp-theme a.xp-card {
        padding: 24px;
    }
    .xp-kb-search {
        flex-direction: column;
    }
    .xp-company .xp-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .xp-theme #ticketForm,
    .xp-theme #clientLogin,
    .xp-theme #ticketInfo,
    .xp-theme #reply {
        padding: 18px;
    }
    .xp-theme #ticketTable,
    .xp-theme table.list {
        display: block;
        overflow-x: auto;
    }
}
