/* ==========================================================================
   CMJ Management Group — Site Stylesheet
   Design tokens: deep navy / midnight blue primary, off-white & soft gray
   secondary, professional blue accent. Display type: Fraunces (serif,
   used sparingly for headline moments). Body/UI type: Inter.
   ========================================================================== */

:root {
  /* Color */
  --navy: #0b1a33;
  --midnight: #14284a;
  --steel: #33507d;
  --steel-soft: #4a6690;
  --blue: #2f5fe0;
  --blue-dark: #2148b3;
  --offwhite: #f7f7f5;
  --gray-100: #eef0f3;
  --gray-200: #e4e7ec;
  --gray-300: #d7dbe2;
  --charcoal: #2b2f36;
  --charcoal-soft: #565d6b;
  --white: #ffffff;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --max-width: 1280px;
  --section-pad-y: 6.5rem;
  --section-pad-y-sm: 4rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--offwhite);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Scroll offset so anchored sections clear the sticky navbar */
section[id] {
  scroll-margin-top: 84px;
}

.container-cmj {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 992px) {
  .container-cmj {
    padding-inline: 2.5rem;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.5vw + 1.5rem, 2.6rem);
  color: var(--navy);
  max-width: 40ch;
}

.section-sub {
  color: var(--charcoal-soft);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-top: 0.85rem;
}

.section-head {
  margin-bottom: 3rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-300);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-cmj {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-cmj:hover {
  transform: translateY(-2px);
}

.btn-primary-cmj {
  background: var(--navy);
  color: var(--white);
}

.btn-primary-cmj:hover {
  background: var(--midnight);
  color: var(--white);
}

.btn-outline-cmj {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--navy);
}

.btn-outline-cmj:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--gray-100);
}

.btn-light-cmj {
  background: var(--white);
  color: var(--navy);
}

.btn-light-cmj:hover {
  background: var(--gray-100);
  color: var(--navy);
}

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */

.navbar-cmj {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(247, 247, 245, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar-cmj.is-scrolled {
  border-bottom-color: var(--gray-300);
  box-shadow: 0 4px 24px rgba(11, 26, 51, 0.06);
}

.navbar-cmj .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.05rem;
}

.brand-cmj {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-cmj span {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--steel-soft);
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links-cmj {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links-cmj a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.94rem;
  position: relative;
  padding-block: 0.25rem;
}

.nav-links-cmj a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}

.nav-links-cmj a:hover::after,
.nav-links-cmj a.active::after {
  width: 100%;
}

.nav-links-cmj a:hover,
.nav-links-cmj a.active {
  color: var(--navy);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.icon-btn {
  color: var(--navy);
  font-size: 1.1rem;
  padding: 0.35rem;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.icon-btn:hover {
  background: var(--gray-100);
}

.navbar-toggler-cmj {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  background: transparent;
  color: var(--navy);
}

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

.hero {
  padding-top: 4.5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr 0.95fr;
    gap: 2.5rem;
  }
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.4vw + 2.2rem, 3.6rem);
  line-height: 1.12;
  color: var(--navy);
  margin-top: 0.9rem;
}

.hero-text {
  color: var(--charcoal-soft);
  font-size: 1.12rem;
  max-width: 44ch;
  margin-top: 1.4rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: auto;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -1.25rem;
  background: linear-gradient(135deg, rgba(47, 95, 224, 0.08), rgba(11, 26, 51, 0.04));
  border-radius: calc(var(--radius-lg) + 1rem);
  z-index: -1;
}

/* --------------------------------------------------------------------------
   Trust / Benefits strip
   -------------------------------------------------------------------------- */

.trust-strip {
  background: var(--navy);
  color: var(--offwhite);
  padding-block: 3.25rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.trust-item .bi {
  font-size: 1.4rem;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #cdd9ff;
}

.trust-item h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.trust-item p {
  color: rgba(247, 247, 245, 0.68);
  font-size: 0.92rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Section base
   -------------------------------------------------------------------------- */

.section {
  padding-block: var(--section-pad-y);
}

@media (max-width: 767.98px) {
  .section {
    padding-block: var(--section-pad-y-sm);
  }
}

.section-alt {
  background: var(--gray-100);
}

/* --------------------------------------------------------------------------
   Categories
   -------------------------------------------------------------------------- */

.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gray-300);
  background: var(--white);
  height: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  border-color: var(--steel);
  box-shadow: 0 16px 40px rgba(11, 26, 51, 0.1);
}

.category-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.category-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.category-card:hover .category-media img {
  transform: scale(1.06);
}

.category-body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.category-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.category-body p {
  font-size: 0.87rem;
  color: var(--charcoal-soft);
  margin: 0;
}

.category-arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover .category-arrow {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Products
   -------------------------------------------------------------------------- */

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 16px 40px rgba(11, 26, 51, 0.1);
  border-color: var(--gray-300);
}

.product-media {
  background: var(--gray-100);
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-image {
  transform: scale(1.04);
}

.product-body {
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-rating {
  color: #d8a300;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.product-rating .bi-star {
  color: var(--gray-300);
}

.product-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gray-200);
}

.product-price {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.product-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-link .bi {
  transition: transform 0.25s ease;
}

.product-card:hover .product-link .bi {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Promotional banner
   -------------------------------------------------------------------------- */

.promo-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: var(--white);
}

.promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 26, 51, 0.92) 0%, rgba(11, 26, 51, 0.55) 55%, rgba(11, 26, 51, 0.25) 100%);
  z-index: 1;
}

.promo-content {
  position: relative;
  z-index: 2;
  padding: 3.5rem;
  max-width: 34rem;
}

.promo-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
  font-size: clamp(1.9rem, 1.4vw + 1.6rem, 2.5rem);
}

.promo-content p {
  color: rgba(247, 247, 245, 0.82);
  margin-top: 1rem;
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   Why choose us — documentation-style list, not cards
   -------------------------------------------------------------------------- */

.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .why-list {
    grid-template-columns: 1fr 1fr;
  }
}

.why-item {
  padding: 1.8rem 1.6rem 1.8rem 0;
  border-top: 1px solid var(--gray-300);
  display: flex;
  gap: 1.1rem;
}

.why-list .why-item:nth-child(1),
.why-list .why-item:nth-child(2) {
  border-top: 1px solid var(--gray-300);
}

@media (min-width: 768px) {
  .why-item:nth-child(odd) {
    padding-right: 2.2rem;
    border-right: 1px solid var(--gray-300);
  }
  .why-item:nth-child(even) {
    padding-left: 2.2rem;
  }
}

.why-item .bi {
  font-size: 1.15rem;
  color: var(--blue);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.why-item h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.why-item p {
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--gray-300);
}

.about-fact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--charcoal-soft);
  margin-bottom: 0.3rem;
}

.about-fact-value {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .steps-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.step-item {
  position: relative;
  padding-top: 1.5rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--gray-300);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.step-item p {
  color: var(--charcoal-soft);
  font-size: 0.94rem;
  margin: 0;
}

@media (min-width: 768px) {
  .step-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.1rem;
    right: -1.9rem;
    width: 1.4rem;
    height: 1px;
    background: var(--gray-300);
  }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 1.9rem 1.8rem;
  height: 100%;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  line-height: 1.5;
}

.testimonial-author {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.86rem;
  color: var(--charcoal-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.testimonial-author .bi {
  color: var(--blue);
}

/* --------------------------------------------------------------------------
   Final CTA
   -------------------------------------------------------------------------- */

.final-cta {
  background: linear-gradient(135deg, var(--navy), var(--midnight));
  border-radius: var(--radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  color: var(--white);
}

.final-cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--white);
  font-size: clamp(1.9rem, 1.4vw + 1.6rem, 2.5rem);
}

.final-cta p {
  color: rgba(247, 247, 245, 0.78);
  max-width: 40ch;
  margin: 1rem auto 0;
}

.final-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--gray-300);
}

.contact-info-item:last-child {
  border-bottom: 1px solid var(--gray-300);
}

.contact-info-item .bi {
  color: var(--blue);
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

.contact-info-item h3 {
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.contact-info-item p,
.contact-info-item a {
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  margin: 0;
}

.form-cmj label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-cmj .form-control {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  background: var(--white);
}

.form-cmj .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 95, 224, 0.14);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer-cmj {
  background: var(--navy);
  color: rgba(247, 247, 245, 0.78);
  padding-top: 4rem;
}

.footer-cmj h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.footer-cmj ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-cmj a {
  color: rgba(247, 247, 245, 0.72);
  font-size: 0.92rem;
}

.footer-cmj a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 247, 245, 0.12);
  margin-top: 3rem;
  padding-block: 1.5rem;
  font-size: 0.84rem;
  color: rgba(247, 247, 245, 0.55);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Scroll-reveal animation (single, restrained utility)
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero load-in sequence */
.hero-eyebrow,
.hero-heading,
.hero-text,
.hero-cta-row,
.hero-media {
  opacity: 0;
  transform: translateY(14px);
  animation: hero-in 0.7s var(--ease) forwards;
}

.hero-eyebrow { animation-delay: 0.05s; }
.hero-heading { animation-delay: 0.15s; }
.hero-text { animation-delay: 0.28s; }
.hero-cta-row { animation-delay: 0.4s; }
.hero-media { animation-delay: 0.2s; }

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-eyebrow,
  .hero-heading,
  .hero-text,
  .hero-cta-row,
  .hero-media {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
