/* *****************************************************

    ** Custom Stylesheet **

    Any custom styling you want to apply should be
    defined here.

***************************************************** */

/* Custom CSS for Nexus Cart
 *
 * This block allows you to customize theme colors and styles for the entire Nexus Cart template.
 *
 * To customize colors:
 * - Replace the var() references with your own hex colors or other CSS values.
 * - For example, instead of --primary: #4b5563; use --primary: #your-color;
 * - You can also override any CSS properties here.
 */

html {
    font-size: 14px;
}

:root {
    --white: #fff;

    /* Neutral shades */
    --neutral-50: #fbf9fa;
    --neutral-100: #f4f5f7;
    --neutral-200: #e4e4e7;
    --neutral-300: #d0d5dd;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --neutral-950: #030712;

    /* Neutral shades */
    /* define own pallet with brand colors */
    --primary-50: var(--neutral-50);
    --primary-100: var(--neutral-100);
    --primary-200: var(--neutral-200);
    --primary-300: var(--neutral-300);
    --primary-400: var(--neutral-400);
    --primary-500: var(--neutral-500);
    --primary-600: var(--neutral-600);
    --primary-700: var(--neutral-700);
    --primary-800: var(--neutral-800);
    --primary-900: var(--neutral-900);
    --primary-950: var(--neutral-900);

    /* Primary colors */
    /* Use shades from comments if `primary` colors use other colors, then neutral */
    --primary: var(--neutral-900);          /* var(--primary-600) */
    --primary-lifted: var(--neutral-800);   /* var(--primary-700) */
    --primary-accented: var(--neutral-700); /* var(--primary-800) */

    /* Secondary colors */
    --secondary: var(--neutral-500);
    --secondary-lifted: var(--neutral-600);
    --secondary-accented: var(--neutral-700);

    /* Success colors */
    --success: #00a63e;
    --success-lifted: #008236;
    --success-accented: #016630;

    /* Info colors */
    --info: #155dfc;
    --info-lifted: #1447e6;
    --info-accented: #193cb8;

    /* Notice colors */
    --notice: #7f22fe;
    --notice-lifted: #7008e7;
    --notice-accented: #5d0ec0;

    /* Warning colors */
    --warning: #f54a00;
    --warning-lifted: #ca3500;
    --warning-accented: #9f2d00;

    /* Error colors */
    --error: #e7000b;
    --error-lifted: #c10007;
    --error-accented: #9f0712;

    /* Grayscale colors */
    --grayscale: var(--neutral-900);
    --grayscale-lifted: var(--neutral-800);
    --grayscale-accented: var(--neutral-700);

    /* Neutral colors */
    --neutral: var(--neutral-500);
    --neutral-lifted: var(--neutral-600);
    --neutral-accented: var(--neutral-700);

    /* Text neutral colors */
    --text-inverted: var(--white);
    --text-muted: var(--neutral-400);
    --text-lifted: var(--neutral-500);
    --text-accented: var(--neutral-600);
    --text: var(--neutral-900);

    /* Border neutral colors */
    --border-muted: var(--neutral-200);
    --border: var(--neutral-300);
    --border-lifted: var(--neutral-400);
    --border-accented: var(--neutral-600);

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

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

    /* Additional custom properties */
    /* Font sizes */
    --text-xs: 0.625rem;
    --text-sm: 0.75rem;
    --text-md: 0.875rem;
    --text-lg: 1rem;

    /* Spacing */
    --outline-sm: 1px;
    --outline-md: 2px;
    --outline-lg: 3px;

    /* Rounding */
    --rounding-sm: 0.25rem;
    --rounding-md: 0.5rem;
    --rounding-lg: 0.75rem;

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

/* ==========================================================================
   Stray Domains branding
   Added by the straydomains theme. Confined to custom.css so the stock
   twenty-one files remain untouched and upgrade-safe.
   ========================================================================== */

:root {
    --stray-navy: #0f172a;
    --stray-hero-blue: #103a5e;
    --stray-hero-blue-dark: #0c2a45;
    --stray-cyan: #0284c7;
    --stray-cyan-hover: #0369a1;
    --stray-cyan-light: #29a3e0;
    --stray-green: #37c26b;
    --stray-muted: #b9cbe0;
}

/* ---------- Navbar branding (CSS only, header.tpl untouched) ---------- */

.navbar,
#header .navbar,
.navbar-default {
    background-color: var(--stray-hero-blue-dark) !important;
    border-color: transparent;
}

.navbar-brand,
.navbar .navbar-brand {
    color: var(--stray-cyan-light) !important;
    font-weight: 700;
}

/* ---------- Hero shell ---------- */

.stray-hero {
    position: relative;
    margin: -30px -15px 40px;
    padding: 44px 20px 56px;
    background-color: var(--stray-hero-blue);
    background-image: url('../img/worldmap.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* darken the worldmap watermark so text keeps contrast */
.stray-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 58, 94, 0.82) 0%, rgba(12, 42, 69, 0.9) 100%);
}

.stray-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 940px;
    margin: 0 auto;
}

/* ---------- Mascot + headline row ---------- */

.stray-hero__banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.stray-hero__mascot {
    flex: 0 0 auto;
    width: 200px;
    height: auto;
}

.stray-hero__headline {
    margin: 0;
    text-align: left;
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
}

/* ---------- Tagline + subheadline ---------- */

.stray-hero__tagline {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.stray-hero__sub {
    margin: 0 auto 30px;
    max-width: 720px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--stray-muted);
}

/* ---------- Search bar ---------- */

.stray-hero__form {
    max-width: 720px;
    margin: 0 auto;
}

.stray-search {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.stray-search__icon {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: #eef2f7;
    color: #64748b;
    font-size: 1.15rem;
}

.stray-search__input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    padding: 16px 14px;
    font-size: 1.1rem;
    color: #0f172a;
    background: #fff;
}

.stray-search__input::placeholder { color: #9aa8bb; }
.stray-search__input:focus { outline: 0; }

.stray-search__clear {
    border: 0;
    background: none;
    padding: 0 14px;
    font-size: 1.4rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

.stray-search__clear:hover { color: #0f172a; }

.stray-search__btn {
    flex: 0 0 auto;
    border: 0;
    background: var(--stray-cyan-light);
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0 30px;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.stray-search__btn i { margin-left: 8px; }

.stray-search__btn:hover,
.stray-search__btn:focus {
    background: var(--stray-cyan-hover);
    color: #fff;
}

.stray-hero__transfer {
    display: inline-block;
    margin-top: 14px;
    border: 0;
    background: none;
    color: #9ed8f5;
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
}

.stray-hero__transfer:hover { color: #fff; }

/* ---------- Trust / pricing pills ---------- */

.stray-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    margin-top: 30px;
}

.stray-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 10px 22px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    color: #0f172a;
    line-height: 1.15;
}

.stray-pill__kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.stray-pill--label {
    flex-direction: row;
}

.stray-pill--label .stray-pill__kicker,
.stray-pill--label .stray-pill__title {
    display: block;
    text-align: left;
}

.stray-pill__title {
    font-size: 1.15rem;
    font-weight: 800;
}

.stray-pill--label > :first-child { margin-right: -6px; }

.stray-pill__pin {
    font-size: 1.5rem;
    color: #0f172a;
}

/* TLD price pills */

.stray-pill__ext {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--stray-cyan-light);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.stray-pill__price {
    font-size: 1.2rem;
    font-weight: 800;
}

.stray-pill__term {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.stray-pill--whois .stray-pill__free {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--stray-green);
}

.stray-pill--whois {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
}

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

@media (max-width: 991px) {
    .stray-hero__headline { font-size: 1.9rem; }
    .stray-hero__tagline  { font-size: 1.35rem; }
    .stray-hero__mascot   { width: 160px; }
}

@media (max-width: 767px) {
    .stray-hero { padding: 32px 16px 40px; }

    .stray-hero__banner {
        flex-direction: column;
        gap: 4px;
    }

    .stray-hero__headline {
        text-align: center;
        font-size: 1.7rem;
    }

    .stray-hero__tagline { font-size: 1.15rem; }
    .stray-hero__sub     { font-size: 0.92rem; }

    .stray-search { flex-wrap: wrap; }

    .stray-search__btn {
        width: 100%;
        padding: 14px 20px;
    }

    .stray-pill { min-height: 50px; padding: 8px 16px; }
}

/* ==========================================================================
   Stray Domains — layout integration with twenty-one's page chrome
   These rules reconcile the hero with header.tpl's markup without editing any
   stock template file.
   ========================================================================== */

/* header.tpl renders its own domain search above #main-body whenever
   $templatefile == 'homepage'. The hero already provides a search bar, so the
   stock one is suppressed to avoid two competing search boxes. It only ever
   exists on the homepage, so this selector cannot affect other pages. */
#frmDomainHomepage {
    display: none !important;
}

/* Drop the breadcrumb strip on the hero page only, so the hero sits directly
   beneath the navbar as designed. Scoped via :has() so every other page keeps
   its breadcrumb; browsers without :has() simply keep it everywhere, which is
   a harmless fallback. */
body:has(.stray-hero) .master-breadcrumb {
    display: none;
}

/* Break the hero out of #main-body's .container so it spans the viewport.
   overflow-x is clamped because 100vw includes the scrollbar width and would
   otherwise introduce a horizontal scrollbar. */
body:has(.stray-hero) {
    overflow-x: hidden;
}

.stray-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: -30px;
    margin-bottom: 44px;
}

/* #main-body adds top padding that would show as a pale band above the hero */
body:has(.stray-hero) #main-body {
    padding-top: 0;
}

/* Slightly larger mascot now that the hero is full width */
.stray-hero__mascot {
    width: 230px;
}

@media (max-width: 991px) {
    .stray-hero__mascot {
        width: 170px;
    }
}

/* ---------- Footer branding ----------
   Carry the same deep navy used by the navigation through to the end of every
   page, replacing the stock charcoal footer. */
footer.footer {
    background-color: var(--stray-hero-blue-dark);
    border-top: 3px solid var(--stray-cyan-light);
    color: #e7f4fc;
}

footer.footer .nav-link {
    color: #e7f4fc;
}

footer.footer .nav-link:hover,
footer.footer .nav-link:focus {
    color: #fff;
    text-decoration: underline;
}

footer.footer .btn {
    background-color: rgba(41, 163, 224, 0.22);
    color: #fff;
}

footer.footer .btn:hover,
footer.footer .btn:focus {
    background-color: var(--stray-cyan);
    color: #fff;
}
