:root {
  --crest-navy: #162246;
  --crest-navy-dark: #0e1733;
  --crest-blue: #24406f;
  --crest-gold: #f3b63f;
  --crest-gold-dark: #d99b24;
  --crest-ink: #20283a;
  --crest-muted: #667085;
  --crest-soft: #f5f7fa;
  --crest-line: #e5e9f0;
  --crest-white: #ffffff;
  --crest-success: #21885f;
}

.crest-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 82px;
    padding: 8px 24px 8px 0;
    text-decoration: none;
}

.crest-brand img {
    display: block;
    width: 175px;
    height: auto;
    max-width: none;
    max-height: 62px;
    object-fit: contain;
}

@media (max-width: 1199px) {
    .crest-brand img {
        width: 155px;
    }
}

@media (max-width: 991px) {
    .crest-brand {
        height: 72px;
        padding-right: 15px;
    }

    .crest-brand img {
        width: 145px;
        max-height: 54px;
    }
}

html { scroll-behavior: smooth; }
body.body-wrapper { color: var(--crest-ink); background: #fff; }
body { overflow-x: hidden; }

/* Shared navigation */
.crest-nav.main-nav {
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 8px 28px rgba(14,23,51,.08);
  min-height: 82px;
  z-index: 1040;
}
.crest-nav .container-fluid { padding-left: 28px !important; padding-right: 28px !important; }
.crest-nav .navbar-brand { padding: 11px 18px 11px 0; }

.crest-nav .navbar-nav .nav-link {
  color: var(--crest-navy) !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 30px 13px !important;
}
.crest-nav .navbar-nav .nav-link:hover,
.crest-nav .navbar-nav .active > .nav-link { color: var(--crest-gold-dark) !important; }
.crest-nav .dropdown-menu {
  border: 0;
  border-top: 3px solid var(--crest-gold);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 35px rgba(14,23,51,.12);
  padding: 8px 0;
}
.crest-nav .dropdown-item { font-size: 14px; padding: 10px 18px; color: var(--crest-ink); }
.crest-nav .dropdown-item:hover { background: var(--crest-soft); color: var(--crest-navy); }
.crest-nav-actions { gap: 9px; padding-right: 2px; }
.crest-nav .btn { white-space: nowrap; }
.crest-cart-link { position: relative; }
.crest-cart-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; margin-left: 5px; padding: 0 6px;
  border-radius: 10px; background: var(--crest-gold); color: var(--crest-navy-dark);
  font-size: 11px; font-weight: 800;
}

/* Buttons */
.btn-crest-primary,
.btn.btn-crest-primary {
  background: var(--crest-navy); border: 1px solid var(--crest-navy); color: #fff;
  border-radius: 4px; font-weight: 700; padding: 11px 20px;
}
.btn-crest-primary:hover { background: var(--crest-navy-dark); border-color: var(--crest-navy-dark); color: #fff; }
.btn-crest-gold,
.btn.btn-crest-gold {
  background: var(--crest-gold); border: 1px solid var(--crest-gold); color: var(--crest-navy-dark);
  border-radius: 4px; font-weight: 800; padding: 11px 20px;
}
.btn-crest-gold:hover { background: var(--crest-gold-dark); border-color: var(--crest-gold-dark); color: var(--crest-navy-dark); }
.btn-crest-outline,
.btn.btn-crest-outline {
  background: #fff; border: 1px solid #cad1dc; color: var(--crest-navy);
  border-radius: 4px; font-weight: 700; padding: 10px 18px;
}
.btn-crest-outline:hover { border-color: var(--crest-navy); color: var(--crest-navy); }

/* Homepage */
.crest-home-hero {
  margin-top: 82px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(14,23,51,.96) 0%, rgba(22,34,70,.93) 48%, rgba(22,34,70,.66) 100%),
    url('/images/background/homepage-one-banner.jpg') center/cover no-repeat;
  color: #fff;
  min-height: 610px;
  display: flex;
  align-items: center;
}
.crest-home-hero:after {
  content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(243,182,63,.22);
  border-radius: 50%; right: -130px; top: 65px;
}
.crest-home-hero .container { position: relative; z-index: 2; }
.crest-eyebrow { color: var(--crest-gold); font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.crest-home-hero h1 { color: #fff; font-size: 56px; line-height: 1.06; max-width: 850px; margin: 14px 0 20px; font-weight: 800; }
.crest-home-hero .lead { color: rgba(255,255,255,.82); font-size: 20px; line-height: 1.7; max-width: 760px; }
.crest-hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.crest-hero-proof { margin-top: 42px; display: flex; gap: 32px; flex-wrap: wrap; }
.crest-proof-item strong { display: block; font-size: 22px; color: #fff; }
.crest-proof-item span { color: rgba(255,255,255,.65); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.crest-webinar-strip { background: var(--crest-gold); color: var(--crest-navy-dark); }
.crest-webinar-strip .container { padding-top: 18px; padding-bottom: 18px; }
.crest-webinar-strip .date-box { min-width: 78px; border-right: 1px solid rgba(14,23,51,.18); margin-right: 18px; }
.crest-webinar-strip .date-box strong { display: block; font-size: 20px; }
.crest-webinar-strip .date-box span { font-size: 12px; font-weight: 700; text-transform: uppercase; }
.crest-webinar-strip h4 { color: var(--crest-navy-dark); margin: 0 0 3px; font-size: 18px; }
.crest-webinar-strip p { margin: 0; color: rgba(14,23,51,.72); }

.crest-section { padding: 78px 0; }
.crest-section-soft { background: var(--crest-soft); }
.crest-section-navy { background: var(--crest-navy); color: #fff; }
.crest-section-head { max-width: 790px; margin-bottom: 34px; }
.crest-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.crest-section-head h2 { font-size: 36px; line-height: 1.2; color: var(--crest-navy); font-weight: 800; margin: 8px 0 12px; }
.crest-section-navy .crest-section-head h2 { color: #fff; }
.crest-section-head p { color: var(--crest-muted); font-size: 16px; line-height: 1.75; margin: 0; }
.crest-section-navy .crest-section-head p { color: rgba(255,255,255,.72); }

.crest-card {
  background: #fff; border: 1px solid var(--crest-line); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(14,23,51,.05); height: 100%; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.crest-card:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(14,23,51,.09); }
.crest-card-image { height: 205px; overflow: hidden; background: #edf0f5; }
.crest-card-image img { width: 100%; height: 100%; object-fit: cover; }
.crest-card-body { padding: 24px; }
.crest-card h3, .crest-card h4 { color: var(--crest-navy); font-weight: 800; }
.crest-card p { color: var(--crest-muted); line-height: 1.65; }
.crest-card-meta { font-size: 12px; font-weight: 800; color: var(--crest-gold-dark); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; }

.crest-audit-panel {
  background: #fff; border-radius: 14px; padding: 36px; box-shadow: 0 12px 38px rgba(14,23,51,.07);
}
.crest-audit-list { padding: 0; list-style: none; margin: 24px 0 0; }
.crest-audit-list li { padding: 11px 0; border-bottom: 1px solid var(--crest-line); color: var(--crest-ink); }
.crest-audit-list li:last-child { border-bottom: 0; }
.crest-audit-list i { color: var(--crest-success); margin-right: 9px; }

.crest-isoltx-intro { position: relative; overflow: hidden; }
.crest-isoltx-intro:before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 85% 20%, rgba(243,182,63,.13), transparent 34%); }
.crest-isoltx-intro .container { position: relative; }
.crest-isoltx-logo { max-width: 260px; margin-bottom: 18px; }
.crest-module-card .crest-card-image { height: 185px; }
.crest-module-price { font-size: 18px; font-weight: 800; color: var(--crest-navy); }
.crest-module-price small { font-size: 12px; color: var(--crest-muted); font-weight: 600; }
.crest-core-badge { display:inline-block; background:#e8f4ee; color:#17724f; font-weight:800; font-size:11px; padding:5px 8px; border-radius:12px; }

.crest-trust-row { align-items: center; justify-content: center; }
.crest-trust-row img { max-height: 68px; max-width: 190px; filter: grayscale(100%); opacity: .72; transition: .2s ease; margin: 16px 28px; }
.crest-trust-row img:hover { filter: none; opacity: 1; }

/* Generic page upgrade */
.page-title.bg-title { margin-top: 82px; min-height: 260px; display:flex; align-items:center; background-position:center; }
.page-title .title h3 { font-size: 38px; font-weight: 800; }
.section { padding-top: 68px; padding-bottom: 68px; }
.blog-post { border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(14,23,51,.06); border: 1px solid var(--crest-line); background: #fff; }
.blog-post .post-content { padding: 24px; }
.blog-post .post-title h2, .blog-post .post-title h3 { color: var(--crest-navy); }

/* Product/store */
.crest-product-hero { margin-top:82px; padding:78px 0 62px; background:linear-gradient(115deg,var(--crest-navy-dark),var(--crest-blue)); color:#fff; }
.crest-product-hero h1 { color:#fff; font-size:46px; font-weight:800; margin:10px 0 14px; }
.crest-product-hero p { color:rgba(255,255,255,.76); max-width:770px; font-size:18px; line-height:1.7; }
.crest-platform-card { background:#fff; border:1px solid var(--crest-line); border-radius:12px; padding:28px; }
.crest-platform-list { display:flex; gap:9px; flex-wrap:wrap; margin-top:18px; }
.crest-platform-pill { background:var(--crest-soft); color:var(--crest-navy); border:1px solid var(--crest-line); border-radius:20px; padding:7px 11px; font-size:12px; font-weight:700; }
.crest-store-grid .crest-card { margin-bottom:28px; }
.crest-store-price { font-size:24px; color:var(--crest-navy); font-weight:800; }
.crest-store-price .suffix { font-size:12px; color:var(--crest-muted); font-weight:600; }

/* Module profile */
.crest-module-profile-hero { margin-top:82px; padding:68px 0; background:var(--crest-soft); border-bottom:1px solid var(--crest-line); }
.crest-module-profile-hero h1 { color:var(--crest-navy); font-size:44px; font-weight:800; }
.crest-module-profile-image { border-radius:14px; overflow:hidden; box-shadow:0 18px 48px rgba(14,23,51,.12); }
.crest-module-profile-image img { width:100%; min-height:330px; object-fit:cover; }
.crest-content-prose { font-size:16px; line-height:1.8; color:#424b5f; }
.crest-content-prose h2,.crest-content-prose h3,.crest-content-prose h4 { color:var(--crest-navy); }
.crest-purchase-card { position:sticky; top:110px; border-top:4px solid var(--crest-gold); }

/* Portal/store */
.crest-portal-shell { margin-top:82px; background:var(--crest-soft); min-height:calc(100vh - 82px); padding:48px 0 70px; }
.crest-portal-title { color:var(--crest-navy); font-weight:800; }
.crest-summary-card { border:1px solid var(--crest-line); border-radius:10px; background:#fff; padding:20px; height:100%; }
.crest-summary-card .value { font-size:30px; font-weight:800; color:var(--crest-navy); }
.crest-summary-card .label { color:var(--crest-muted); font-size:13px; }
.crest-cart-panel { position:sticky; top:108px; background:#fff; border:1px solid var(--crest-line); border-top:4px solid var(--crest-gold); border-radius:10px; padding:22px; }
.crest-cart-item { border-top:1px solid var(--crest-line); padding:14px 0; }
.crest-cart-item:first-child { border-top:0; }
.crest-cart-total { font-size:22px; color:var(--crest-navy); font-weight:800; }
.crest-checkout-panel { background:#fff; border:1px solid var(--crest-line); border-radius:12px; padding:28px; }
.crest-order-status { display:inline-block; border-radius:15px; padding:5px 10px; font-size:11px; font-weight:800; text-transform:uppercase; }
.crest-order-status-paid { background:#e8f4ee;color:#17724f; }
.crest-order-status-pending { background:#fff4dd;color:#8a5a00; }
.crest-order-status-cancelled,.crest-order-status-failed { background:#fbeaea;color:#a82727; }

/* Footer */
.crest-footer { background:var(--crest-navy-dark); color:rgba(255,255,255,.7); padding:60px 0 22px; }
.crest-footer-logo { max-width:230px; background:#fff; border-radius:6px; padding:9px 12px; margin-bottom:16px; }
.crest-footer h5 { color:#fff; font-weight:800; font-size:15px; margin-bottom:15px; }
.crest-footer a { color:rgba(255,255,255,.72); }
.crest-footer a:hover { color:var(--crest-gold); }
.crest-footer ul { list-style:none; padding:0; margin:0; }
.crest-footer li { margin:8px 0; }
.crest-footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top:38px; padding-top:20px; font-size:12px; }

@media (max-width: 1199px) {
  .crest-nav .navbar-nav .nav-link { padding-left:9px !important; padding-right:9px !important; font-size:13px; }
  .crest-nav .navbar-brand img { width:190px; }
}
@media (max-width: 991px) {
  .crest-nav { min-height:72px; }
  .crest-nav .container-fluid { padding-left:18px !important; padding-right:18px !important; }
  .crest-nav .navbar-brand img { width:180px; max-height:50px; }
  .crest-nav .navbar-collapse { background:#fff; border-top:1px solid var(--crest-line); padding:8px 18px 18px; max-height:calc(100vh - 72px); overflow:auto; }
  .crest-nav .navbar-nav .nav-link { padding:11px 0 !important; }
  .crest-nav-actions { margin-top:10px; display:flex; flex-wrap:wrap; }
  .crest-home-hero,.crest-product-hero,.crest-module-profile-hero,.page-title.bg-title { margin-top:72px; }
  .crest-home-hero { min-height:540px; }
  .crest-home-hero h1 { font-size:43px; }
  .crest-section { padding:60px 0; }
  .crest-cart-panel,.crest-purchase-card { position:static; }
}
@media (max-width: 767px) {
  .crest-home-hero { min-height:520px; }
  .crest-home-hero h1 { font-size:36px; }
  .crest-home-hero .lead { font-size:17px; }
  .crest-hero-proof { gap:18px; }
  .crest-section-head h2 { font-size:30px; }
  .crest-webinar-strip .date-box { border-right:0; border-bottom:1px solid rgba(14,23,51,.18); padding-bottom:8px; margin-bottom:10px; }
  .crest-product-hero h1,.crest-module-profile-hero h1 { font-size:34px; }
  .crest-module-profile-image img { min-height:220px; }
}
