@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

:root {
  /* Brand colors (from Jupiter logo) */
  --jupiter-primary: #1b2951; /* Deep navy */
  --jupiter-primary-600: #2a3b6b; /* Lighter navy for hover */
  --jupiter-primary-800: #0f1a35; /* Darker navy for headers on light bg */
  --jupiter-accent: #d4aa29; /* Gold accent */
  --jupiter-accent-600: #e6c347; /* Lighter gold hover */

  /* Neutrals */
  --jupiter-text: #2c2c2c; /* Body text */
  --jupiter-text-2: #5a5a5a; /* Secondary text */
  --jupiter-muted: #8b8b8b; /* Tertiary/caption */
  --jupiter-border: #e6e6ea; /* Lines, dividers */
  --jupiter-bg: #ffffff; /* Page background */
  --jupiter-bg-2: #f8f6f0; /* Subtle cream section bg */

  /* Typography (Google Fonts recommended) */
  --font-heading: "Playfair Display", serif; /* Elegant, authoritative */
  --font-body: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;

  /* Sizing & radii */
  /* --container-max: 1366px; */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(27, 41, 81, 0.08);
  --shadow-md: 0 8px 24px rgba(27, 41, 81, 0.12);
}

/*  */

/* Page base */
body {
  color: var(--jupiter-text);
  background: var(--jupiter-bg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings: serif for authority, tight leading */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--jupiter-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.2px;
  margin-top: 0;
}

/* Suggested sizes for consulting site */
h1 {
  font-size: clamp(2.2rem, 2.5vw + 1.2rem, 3.2rem);
}
h2 {
  font-size: clamp(1.8rem, 1.8vw + 1rem, 2.4rem);
}
h3 {
  font-size: clamp(1.4rem, 1.2vw + 0.9rem, 1.8rem);
}
h4 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}
h5 {
  font-size: 1.1rem;
  font-family: var(--font-body);
  font-weight: 600;
}
h6 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
}

/* Links */
a {
  color: #454545;
  transition: color 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease;
  text-decoration: none;
}
a:hover,
a:focus {
  color: var(--jupiter-primary-600) !important;
  outline: none;
  text-decoration: none;
}

/* Buttons & forms focus */
.btn:focus,
.form-control:focus {
  box-shadow: none;
  border-color: var(--jupiter-primary-600);
}

/* Layout container */
.container-fluid {
  max-width: var(--container-max);
}

/* Paragraph & small text */
p {
  margin-bottom: 1rem;
}
.lead {
  font-size: 1.125rem;
  color: var(--jupiter-text-2);
}
.small,
small {
  color: var(--jupiter-muted);
}

/* Utilities aligned with brand */
.text-primary {
  color: var(--jupiter-primary) !important;
}
.text-accent {
  color: var(--jupiter-accent) !important;
}
.bg-primary {
  background-color: var(--jupiter-primary) !important;
}
.bg-cream {
  background-color: var(--jupiter-bg-2) !important;
}
.border-muted {
  border-color: var(--jupiter-border) !important;
}
.shadow-brand {
  box-shadow: var(--shadow-md) !important;
}

/* Brand buttons */
.btn-jupiter {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--jupiter-primary);
  --bs-btn-border-color: var(--jupiter-primary);
  --bs-btn-hover-bg: var(--jupiter-primary-600);
  --bs-btn-hover-border-color: var(--jupiter-primary-600);
  --bs-btn-focus-shadow-rgb: 27, 41, 81;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: var(--radius-md);
}

.btn-jupiter-outline {
  color: var(--jupiter-primary);
  background: transparent;
  border: 2px solid var(--jupiter-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.btn-jupiter-outline:hover {
  background: var(--jupiter-primary);
  color: #fff;
}

/* Accent (gold) button */
.btn-jupiter-accent {
  color: var(--jupiter-primary);
  background: var(--jupiter-accent);
  border: 2px solid var(--jupiter-accent);
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--radius-md);
}
.btn-jupiter-accent:hover {
  background: var(--jupiter-accent-600);
  border-color: var(--jupiter-accent-600);
}

/* Section helpers for consulting content */
.section {
  padding: 72px 0;
}
.section-title {
  margin-bottom: 20px;
}
.section-subtitle {
  color: var(--jupiter-text-2);
  max-width: 720px;
}

/* Cards */
.card-brand {
  border: 1px solid var(--jupiter-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-brand .card-title {
  color: var(--jupiter-primary);
}

/* Badges for credibility markers */
.badge-gold {
  background: var(--jupiter-accent);
  color: var(--jupiter-primary);
  border-radius: 999px;
  font-weight: 600;
}


/* Core button reset: sharp, confident */
.btn{
  font-weight: 500 !important;
  letter-spacing: .4px !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;                 /* sharp edges */
  padding: .72rem 1.25rem !important;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease !important;
  box-shadow: none !important;
}
.btn:hover{ transform: translateY(-1px) !important; }
.btn:active{ transform: translateY(0) !important; }

/* Large size refinement */
.btn-lg{
  padding: .95rem 1.45rem !important;
  font-size: 1rem !important;
  border-radius: 0 !important;
}

/* Consulting primary (navy) — high contrast, crisp focus */
.btn-primary{
  --bs-btn-color: #ffffff !important;
  --bs-btn-bg: #17213D !important;                /* slightly deeper than #1B2951 for bolder look */
  --bs-btn-border-color: #17213D !important;

  --bs-btn-hover-color: #ffffff !important;
  --bs-btn-hover-bg: #1F2F5B !important;          /* hover navy */
  --bs-btn-hover-border-color: #1F2F5B !important;

  --bs-btn-active-color: #ffffff !important;
  --bs-btn-active-bg: #0E1730 !important;         /* pressed navy */
  --bs-btn-active-border-color: #0E1730 !important;

  --bs-btn-disabled-color: #ffffff !important;
  --bs-btn-disabled-bg: #8D97AF !important;
  --bs-btn-disabled-border-color: #8D97AF !important;

  --bs-btn-focus-shadow-rgb: 27,41,81 !important;
  border-width: 1px !important;
}
.btn-primary:hover{
  box-shadow: 0 8px 20px rgba(23,33,61,.22) !important;
}
.btn-primary:focus{
  outline: 0 !important;
  box-shadow: 0 0 0 .18rem rgba(27,41,81,.28) !important;  /* crisp focus ring */
}

/* Outline primary — strong outline, subtle fill on hover */
.btn-outline-primary{
  --bs-btn-color: #17213D !important;
  --bs-btn-border-color: #17213D !important;

  --bs-btn-hover-color: #17213D !important;
  --bs-btn-hover-bg: rgba(23,33,61,.07) !important;       /* minimal fill on hover */
  --bs-btn-hover-border-color: #1F2F5B !important;

  --bs-btn-active-color: #ffffff !important;
  --bs-btn-active-bg: #17213D !important;
  --bs-btn-active-border-color: #17213D !important;

  --bs-btn-disabled-color: #A0A7BA !important;
  --bs-btn-disabled-border-color: #C9CEDA !important;

  --bs-gradient: none !important;
  border-width: 1px !important;
  border-radius: 0 !important;
}
.btn-outline-primary:hover{
  box-shadow: inset 0 -2px 0 rgba(23,33,61,.25) !important; /* firm hover cue without rounding */
}

/* Optional: gold accent hover for primaries on dark backgrounds */
.dark .btn-primary:hover{
  box-shadow: 0 10px 24px rgba(212,170,41,.25) !important; /* subtle premium pop */
}

/* Global focus consistency */
.btn:focus{
  outline: 0 !important;
  box-shadow: 0 0 0 .18rem rgba(27,41,81,.28) !important;
}







/* Nav link tone (works with Bootstrap .navbar-light on white) */
.navbar {
  position: relative;
  transition: 0.5s;
  z-index: 999 !important;
  font-family: var(--font-body);
  background: rgba(27, 41, 81, 0.2) !important; /* subtle translucent navy */
}

/* Sticky state on scroll */
.navbar.nav-sticky {
  position: fixed;
  top: 0;
  width: 100%;
  box-shadow: 0 2px 5px rgba(27, 41, 81, 0.18);
  transition: 0.5s;
  background: #ffffff !important; /* solid on stick */
}

/* Brand */
.navbar .navbar-brand {
  margin: 0;
  color: var(--jupiter-primary);
  font-size: 42px;
  line-height: 0px;
  font-weight: 800;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.navbar .navbar-brand img {
  max-width: 100%;
  max-height: 70px;
}

/* Links (dark variant palette but brand colors) */
.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  padding: 10px 10px 8px 10px;
  color: #ffffff; /* on translucent/dark background */
  font-weight: 600;
  letter-spacing: 0.4px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--jupiter-accent); /* gold highlight */
  transition: none;
}

/* Initial state over hero (dark/translucent bg) */
.navbar .logo-light{ display:inline-block; }
.navbar .logo-dark{ display:none; }

/* Sticky/solid state (typically white bg) */
.navbar.nav-sticky .logo-light{ display:none; }
.navbar.nav-sticky .logo-dark{ display:inline-block; }

/* Ensure navbar gains a solid bg on scroll for contrast */
.navbar{ transition: background-color .35s ease, box-shadow .35s ease; }
.navbar.nav-sticky{
  background:#fff;
  box-shadow:0 8px 24px rgba(27,41,81,.12);
}


/* Dropdown */
.navbar .dropdown-menu {
  margin-top: 0;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(27, 41, 81, 0.12);
}

/* Desktop */
@media (min-width: 992px) {
  .navbar {
    position: absolute;
    width: 100%;
    top: 35px;
    padding: 20px 60px;
    background: rgba(27, 41, 81, 0.2) !important; /* navy tint */
    z-index: 9;
  }

  .navbar.nav-sticky {
    padding: 10px 60px;
    background: #ffffff !important;
  }

  .page .navbar {
    background: var(
      --jupiter-primary
    ) !important; /* solid navy on inner pages */
  }

  .page .cstm-nav {
    background: #ffffff !important;
    color: var(--jupiter-primary);
    box-shadow: 0 2px 5px rgba(27, 41, 81, 0.18);
  }

  .navbar .cstm-link {
    color: var(--jupiter-primary) !important;
  }

  .navbar .cstm-link:hover,
  .navbar .cstm-link.active {
    color: var(--jupiter-accent) !important;
  }

  .navbar a.nav-link {
    padding: 8px 15px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  /* When sticky on white background, switch link color to navy */
  .navbar.nav-sticky.navbar-dark .nav-link {
    color: var(--jupiter-primary) !important;
  }
  .navbar.nav-sticky.navbar-dark .nav-link:hover,
  .navbar.nav-sticky.navbar-dark .nav-link.active {
    color: var(--jupiter-accent) !important;
  }
}

/* Mobile / Tablet */
@media (max-width: 991.98px) {
  .navbar {
    padding: 15px;
    /* background: var(--jupiter-primary) !important; solid navy */
    background: #ffffff;
    color: var(--jupiter-primary) !important;
  }

  .navbar a.nav-link {
    padding: 5px;
    color: #ffffff !important;
    color: var(--jupiter-primary) !important;
  }

  .navbar a.nav-link:hover,
  .navbar a.nav-link.active {
    color: var(--jupiter-accent) !important;
  }

  .navbar .dropdown-menu {
    box-shadow: none;
    border-radius: 0;
  }

  .navbar.nav-sticky.navbar-dark .nav-link,
  .navbar.nav-sticky.navbar-dark .navbar-toggler-icon {
    color: var(--jupiter-primary) !important;
  }

  .navbar.nav-sticky.navbar-dark .nav-link:hover,
  .navbar.nav-sticky.navbar-dark .nav-link.active {
    color: var(--jupiter-accent) !important;
  }
}

/* Change the three-line icon color */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231B2951' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Optional: button border color */
.navbar-toggler {
  border-color: #1b2951 !important;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--jupiter-primary) !important;
  color: #fff !important;
}

/* header section */
.page-header {
  background: url(../img/header.jpg) center center no-repeat;
  background-size: cover;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: var(--jupiter-primary);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
  font-size: 18px;
  color: var(--jupiter-primary);
}

/* Hero section */
/* Global guards: prevent horizontal overflow everywhere */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
} /* fixes iOS/Firefox overflow cases */ /* [3][6] */

/* Replace this selector: .hero-fullimage .container-fluid */
.container-hero {
  max-width: min(var(--container-max), 96vw);
  margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) clamp(16px, 4vw, 32px);
}

/* Ensure hero internal row doesn't create negative-margin overflow */
.hero-fullimage .row {
  margin-left: 0;
  margin-right: 0;
}

/* Make the background truly edge-to-edge and stable on tiny viewports */
.hero-fullimage {
  position: relative;
  min-height: clamp(520px, 78vh, 880px);
  /* padding-top: 200px; */
  display: flex;
  color: #fff;
  background-image: linear-gradient(
      90deg,
      rgba(27, 41, 81, 0.94) 0%,
      rgba(27, 41, 81, 0.82) 32%,
      rgba(27, 41, 81, 0.48) 56%,
      rgba(27, 41, 81, 0) 82%
    ),
    url("../img/hero.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Typography polish */
.hero-title {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.12;
  letter-spacing: 0.2px;
  font-size: clamp(1.8rem, 2.2vw + 1.1rem, 3.05rem);
  margin-bottom: 0.35rem;
}
.hero-eyebrow {
  color: #d9dfec;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 0.75rem;
}
.hero-subtext {
  color: #e9ecf4;
  font-size: clamp(0.96rem, 0.35vw + 0.94rem, 1.16rem);
  line-height: 1.68;
  max-width: 48ch;
}

/* Buttons: Bootstrap only; ensure contrast on dark bg */
.hero-fullimage .btn-outline-primary {
  color: #fff;
  border-color: #fff;
}
.hero-fullimage .btn-outline-primary:hover {
  background: #fff;
  color: var(--jupiter-primary);
}

/* Hide the “empty” visual column below lg so no phantom space appears */
@media (max-width: 991.98px) {
  .hero-fullimage {
    background-position: center center;
    background-image: linear-gradient(
        0deg,
        rgba(27, 41, 81, 0.95) 0%,
        rgba(27, 41, 81, 0.76) 50%,
        rgba(27, 41, 81, 0.4) 100%
      ),
      url("../img/hero.jpg");
  }
  .container-hero {
    max-width: 100vw;
    padding: 56px 20px;
  }
  .hero-subtext {
    max-width: 100%;
  }
}

/* Small phones */
@media (max-width: 575.98px) {
  .container-hero {
    padding: 48px 16px;
  }
  .hero-fullimage .btn {
    width: 100%;
  }
  .hero-fullimage .row.g-4.mt-4 {
    margin-top: 1.25rem !important;
  }
  .hero-fullimage .border-top > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Ultra small (≤350px) */
@media (max-width: 350px) {
  .container-hero {
    padding: 40px 12px;
  }
  .hero-title {
    font-size: 1.55rem;
  }
  .hero-eyebrow {
    font-size: 0.92rem;
  }
  .hero-subtext {
    font-size: 0.92rem;
  }
  .hero-fullimage .border-top > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Guard: no hero children can exceed viewport */
.hero-fullimage,
.hero-fullimage * {
  max-width: 100%;
  box-sizing: border-box;
}

/*  */
/* Who We Are */
.who-we-are .section-title {
  font-family: var(--font-heading);
  color: var(--jupiter-primary);
  letter-spacing: 0.2px;
}

.who-we-are .fa-check-circle {
  color: var(--jupiter-accent);
  font-size: 1.05rem;
}

/* Optional: subtle divider effect for the image card */
.who-we-are .card-brand .ratio > img {
  filter: saturate(110%);
}

/*  * About Us */
.about-home .fa-check-circle {
  color: var(--jupiter-accent);
}
.about-home .about-callout {
  background: #fff;
  border: 1px solid var(--jupiter-border);
}

/* Why Choose Us home page section */
/* Teaser styles */
.why-jupiter-teaser .container-fluid {
  max-width: var(--container-max);
}

.wj-teaser {
  background: #fff;
  border: 1px solid var(--jupiter-border);
  box-shadow: var(--shadow-sm);
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background-color 0.25s ease;
}
.wj-teaser:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(27, 41, 81, 0.16);
  border-color: rgba(212, 170, 41, 0.45);
  background: linear-gradient(
      0deg,
      rgba(212, 170, 41, 0.05),
      rgba(212, 170, 41, 0.05)
    ),
    #fff;
}

.wj-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: rgba(212, 170, 41, 0.14);
  color: var(--jupiter-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wj-teaser:hover .wj-icon {
  transform: scale(1.06);
  background: rgba(212, 170, 41, 0.22);
}

.wj-more {
  border: 1px dashed var(--jupiter-border);
  background: #fff;
}

/* Mobile polish */
@media (max-width: 575.98px) {
  .why-jupiter-teaser .btn {
    width: 100%;
  }
}


/* ******* Footer *********** */

/* Container width */
.footer-alt .container-fluid{ max-width: var(--container-max); }

/* Base */
.footer-alt{
  background: #0F1A35;
  color: #E6EAF4;
  border-top: 4px solid #D4AA29;
}

/* Headings */
.footer-alt .f-h{
  color:#fff;
  text-transform: uppercase;
  letter-spacing:.6px;
  margin-bottom:.75rem;
  font-weight:700;
}

/* Link visibility and contrast */
.link-strong{
  color:#F1F4FA;                   /* high-contrast link color */
  text-decoration:none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.link-strong:hover{
  color:#E6C347;
  border-color: rgba(230,195,71,.65);
  transform: translateX(2px);
}

/* Lists */
.footer-alt .f-links li{ margin:.4rem 0; }

/* Contact icons */
.footer-alt .f-contact .f-ico{
  width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center;
  background: rgba(212,170,41,.15); color:#E6C347; font-size:14px;
}

/* Social (square) */
.footer-alt .f-social{
  width:40px; height:40px; display:inline-flex; align-items:center; justify-content:center;
  color:#fff; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.14);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease; text-decoration:none;
}
.footer-alt .f-social:hover{
  background: rgba(212,170,41,.22); border-color: rgba(212,170,41,.6); transform: translateY(-2px);
}

/* Map tile */
.footer-alt .map-tile{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  padding: 0;
}

/* Divider */
.footer-alt .f-hr{
  border:0; height:1px;
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,.18), rgba(255,255,255,.08));
}

/* Tone helper */
.text-light-70{ color: rgba(230,234,244,.78); }

/* Buttons inside footer: sharp edges */
.footer-alt .btn{ border-radius:0; font-weight:700; letter-spacing:.4px; text-transform:uppercase; }
.footer-alt .btn-sm{ padding:.55rem .95rem; font-size:.8rem; }

/* Mobile */
@media (max-width: 575.98px){
  .footer-alt .btn{ width:100%; }
}
