/* *****************************************************
   Megahost.dk – custom.css til WHMCS (Twenty-One + Nexus Cart)
   Placering: /kunder/templates/megahost/css/custom.css
   (undertemaet «megahost», der arver fra twenty-one)
   Farver og skrift svarer til den nye hjemmeside.
   ***************************************************** */

/* Skrifttyper fra hjemmesidens /fonts-mappe (samme server, ingen Google) */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-700.woff') format('woff'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Bricolage Grotesque'; src: url('/fonts/bricolage-800.woff') format('woff'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Megahost Sans'; src: url('/fonts/megahost-sans-400.woff') format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Megahost Sans'; src: url('/fonts/megahost-sans-500.woff') format('woff'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Megahost Sans'; src: url('/fonts/megahost-sans-600.woff') format('woff'); font-weight: 600; font-display: swap; }

html {
    font-size: 14px;
}

/* ---------- Nexus Cart: farvevariabler ---------- */
:root {
    --white: #fff;

    /* Neutrale toner (blågrå, matcher hjemmesidens #14202E) */
    --neutral-50: #f7f6f2;
    --neutral-100: #efede6;
    --neutral-200: #e2e0d8;
    --neutral-300: #cbd2da;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e2b3a;
    --neutral-900: #14202e;
    --neutral-950: #0b131c;

    /* Brandfarve: brændt orange */
    --primary-50: #fdf1ea;
    --primary-100: #fbe1d2;
    --primary-200: #f6bf9f;
    --primary-300: #ef956a;
    --primary-400: #e5683b;
    --primary-500: #d9531f;
    --primary-600: #c2410c;
    --primary-700: #9a3412;
    --primary-800: #7c2d12;
    --primary-900: #5f230e;
    --primary-950: #3b1407;

    --primary: var(--primary-600);
    --primary-lifted: var(--primary-700);
    --primary-accented: var(--primary-800);

    --secondary: var(--neutral-600);
    --secondary-lifted: var(--neutral-700);
    --secondary-accented: var(--neutral-800);

    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    --text-inverted: var(--white);
    --text-muted: var(--neutral-500);
    --text-lifted: var(--neutral-600);
    --text-accented: var(--neutral-700);
    --text: var(--neutral-900);

    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

    --bg: var(--white);
    --bg-muted: var(--neutral-50);
    --bg-lifted: var(--neutral-100);
    --bg-accented: var(--neutral-200);
    --bg-inverted: var(--neutral-900);

    --yellow-200: #fff085;
    --yellow-300: #ffdf20;
    --teal-300: #46edd5;
    --teal-400: #00d5be;
    --emerald-300: #5ee9b5;
    --pink-400: #fb64b6;

    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    --rounding-sm: 0.375rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.875rem;

    --letter-spacing: 0em;
    --disabled-opacity: 25%;
}

/* ---------- Skrift ---------- */
body,
.btn,
.form-control,
input, select, textarea {
    font-family: 'Megahost Sans', 'Open Sans', system-ui, sans-serif;
}
h1, h2, h3, h4,
.h1, .h2, .h3, .h4,
.card-title {
    font-family: 'Bricolage Grotesque', 'Open Sans', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #14202e;
}

/* ---------- Baggrund og links ---------- */
body.primary-bg-color {
    background-color: #f7f6f2;
    color: #14202e;
}
a {
    color: #9a3412;
}
a:hover,
a:focus {
    color: #7c2d12;
}

/* ---------- Header ---------- */
#header {
    background-color: #fff;
    border-bottom: 1px solid #e2e0d8;
}
#header .logo-img {
    max-height: 44px;
    width: auto;
}
#header .main-navbar-wrapper .nav-link {
    color: #14202e;
    font-weight: 500;
}
#header .main-navbar-wrapper .nav-link:hover,
#header .main-navbar-wrapper .nav-item.active > .nav-link {
    color: #c2410c;
}

/* Brødkrummer */
.master-breadcrumb {
    background-color: #efede6;
}
.master-breadcrumb .breadcrumb {
    background-color: transparent;
}

/* ---------- Knapper (Bootstrap i Twenty-One) ---------- */
.btn-primary,
.btn-success {
    background-color: #c2410c;
    border-color: #c2410c;
    color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-success:hover,
.btn-success:focus,
.btn-success:not(:disabled):not(.disabled):active {
    background-color: #9a3412;
    border-color: #9a3412;
    color: #fff;
}
.btn-default,
.btn-outline-primary {
    border-color: #14202e;
    color: #14202e;
}
.btn-default:hover,
.btn-outline-primary:hover {
    background-color: #14202e;
    border-color: #14202e;
    color: #fff;
}

/* ---------- Kort og paneler ---------- */
.card {
    border-color: #e2e0d8;
    border-radius: 12px;
}
.card-header {
    background-color: #fff;
}

/* Sidemenu og mærkater */
.list-group-item.active,
.sidebar .list-group-item.active {
    background-color: #14202e;
    border-color: #14202e;
    color: #fff;
}
.badge-info {
    background-color: #e2e0d8;
    color: #14202e;
}

/* Afkrydsning og radioknapper i kurven (blå billedsprite farvet orange) */
.iradio_square-blue.checked,
.icheckbox_square-blue.checked {
    filter: hue-rotate(176deg) saturate(1.3) brightness(0.9);
}

/* Fokus, så tastaturbrugere kan se, hvor de er */
.btn:focus-visible,
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45);
    border-color: #c2410c;
}

/* ---------- Footer ---------- */
#footer.footer {
    background-color: #14202e;
    color: #cbd5e1;
}
#footer.footer a,
#footer.footer .btn {
    color: #cbd5e1;
}
#footer.footer a:hover {
    color: #fff;
}

/* ---------- Forside: produktkort ---------- */
/* Twenty-One stabler kortene i "card-columns" (murstensmønster).
   Her bliver de til et jævnt gitter: 4 på række på computer, 2 på tablet, 1 på mobil. */
.card-columns.home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    column-count: initial;
}
.card-columns.home .card {
    display: flex;
    margin: 0;
    border: 1px solid var(--neutral-200);
    border-top: 4px solid var(--primary-600);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(20, 32, 46, .05);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card-columns.home .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 32, 46, .10);
}
.card-columns.home .card-body {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 28px 24px !important;
}
.card-columns.home .card-title {
    font-size: 1.35rem;
    margin-bottom: .5rem;
}
.card-columns.home .card-body p {
    color: var(--neutral-600);
    font-size: .95rem;
    margin-bottom: 1.25rem;
}
/* Knappen altid i bunden, fyldt orange */
.card-columns.home .btn {
    margin-top: auto;
    background: var(--primary-600);
    border: 0;
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: .65rem 1rem;
}
.card-columns.home .btn:hover,
.card-columns.home .btn:focus {
    background: var(--primary-700);
    color: #fff;
}

/* ---------- Bestillingskurv: produktkort (Standard Cart) ---------- */
/* Standard Carts egen CSS indlæses EFTER denne fil, så selektorerne her
   skal være mere specifikke end Standard Carts (derfor «body» foran). */
body #order-standard_cart .products .product {
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    margin-bottom: 24px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--neutral-200);
    border-top: 4px solid var(--primary-600);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(20, 32, 46, .05);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
body #order-standard_cart .products .product:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(20, 32, 46, .10);
}
body #order-standard_cart .products .product header {
    background: none;
    border: 0;
    padding: 24px 24px 4px;
}
body #order-standard_cart .products .product header span {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--neutral-900);
}
/* Beskrivelse og liste med fordele i fuld bredde */
body #order-standard_cart .products .product div.product-desc {
    float: none;
    width: 100%;
    padding: 4px 24px 8px;
    font-size: .95rem;
    color: var(--neutral-600);
}
body #order-standard_cart .products .product .product-desc ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}
body #order-standard_cart .products .product .product-desc li {
    padding: 7px 0 7px 26px;
    border-top: 1px solid var(--neutral-100);
    position: relative;
    color: var(--neutral-700);
}
body #order-standard_cart .products .product .product-desc li::before {
    content: "✓";
    position: absolute;
    left: 2px;
    color: var(--primary-600);
    font-weight: 700;
}
body #order-standard_cart .products .product .product-desc .feature-value {
    font-weight: 600;
    color: var(--neutral-900);
}
/* Pris og knap samlet i bunden */
body #order-standard_cart .products .product footer {
    float: none;
    width: 100%;
    margin-top: auto;
    padding: 18px 24px 24px;
    text-align: left;
    font-size: .9rem;
    color: var(--neutral-600);
    border-top: 1px solid var(--neutral-100);
}
body #order-standard_cart .products .product div.product-pricing span.price {
    font-family: "Bricolage Grotesque", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neutral-900);
}
body #order-standard_cart .products .product .btn-order-now {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: .7rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: 0;
    border-radius: 999px;
    background: var(--primary-600);
    color: #fff;
}
body #order-standard_cart .products .product .btn-order-now:hover {
    background: var(--primary-700);
}
body #order-standard_cart .products .row-eq-height > [class*="col-"] {
    margin-bottom: 0;
}
