/* ----------------------------------------------------
   Header
---------------------------------------------------- */

.header {

  background: var(--brand-navy);
  color: var(--bg-white);
  padding: 0.6rem 0;
  border-bottom: 1px solid #e5e5e5;
  position: relative;
}

cbg-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: block; /* important */
  min-height: 60px;
}

.header .container {
  padding-left: var(--space-m);
  padding-right: var(--space-m);
}

  
/* Header layout */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.subtitle {
  margin-top: var(--space-xs);
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
}

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

.hero-text h2 {
  margin-top: 0;
  color: var(--brand-navy);
  font-size: 1.8rem;
}

.hero-text p {
  color: var(--text-muted);
}

.hero-text ul {
  padding-left: 1.2rem;
  margin: var(--space-m) 0;
}

.hero-image img {
  width: 100%;
  max-width: 300px; /* or 350px depending on your design */
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

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

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  margin-top: var(--space-m);
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--brand-blue);
  color: var(--bg-white);
}

.btn-primary:hover {
  background: var(--brand-navy);
}

.btn-secondary {
  background: var(--bg-white);
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
}

.btn-secondary:hover {
  background: var(--brand-blue);
  color: var(--bg-white);
}

/* ----------------------------------------------------
   Sections
---------------------------------------------------- */

.section h2 {
  margin-top: 0;
  color: var(--brand-navy);
  font-size: 1.6rem;
}

/* ----------------------------------------------------
   Cards
---------------------------------------------------- */

.card {
  background: var(--bg-white);
  padding: var(--space-m);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.card h3 {
  margin-top: 0;
  color: var(--brand-navy);
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin: var(--space-s) 0 var(--space-m);
}

.note {
  color: var(--text-muted);
  margin-top: var(--space-m);
}

/* ----------------------------------------------------
   Icon Color Utilities (QMS, EMS, OH&S, etc.)
---------------------------------------------------- */

.icon-qms { color: var(--brand-blue); }
.icon-ems { color: var(--brand-green); }
.icon-ohs { color: var(--brand-purple); }
.icon-growth { color: var(--brand-navy); }
.icon-support { color: var(--brand-yellow); }
.icon-innovation { color: var(--brand-orange); }
.icon-target { color: var(--brand-purple); }

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

.footer-flex {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  text-align: center;
}

.footer-copy {
  font-size: 0.9rem;
  opacity: 0.9;
}

.payment-disclaimer {
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.4;
}

/* Logo */
  .cbg-logo {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.25;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
  }

  /* Main word — elegant serif, slightly condensed, spaced */
  .cbg-logo-main {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 1.2rem;              /* smaller */
    font-weight: 500;
    letter-spacing: 0.12em;         /* more refined spacing */
    color: #ffffff;
    margin-bottom: 0.25rem;         /* subtle whitespace between lines */
  }

  /* Subline — small caps feel, wide spacing */
  .cbg-logo-sub {
    font-family: "Playfair Display", "Georgia", serif;
    font-size: 0.55rem;             /* smaller */
    letter-spacing: 0.35em;         /* wide spacing like your image */
    color: #ffffff;
    opacity: 0.95;
  }




/* Navigation (desktop) */
.nav {
  display: flex;
  gap: var(--space-l);
}

.nav-item {
  color: var(--bg-white);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-s) var(--space-m);
  border-radius: var(--radius);
  transition: 0.2s ease;
}

/* Add right padding/margin to the last item */
.nav-item:last-child {
  margin-right: var(--space-s);
}

.nav-item:hover {
  background: rgba(255,255,255,0.15);
}

/* Hamburger button (desktop hidden) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--bg-white);
  cursor: pointer;
  padding: 0.25rem 0.5rem; 
  margin-left: auto;
}

/* Mobile behavior */
@media (max-width: 700px) {
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--bg-white);
    cursor: pointer;
    padding: var(--space-s) var(--space-l);
    margin-left: auto;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: var(--space-l);
    width: 200px;
    background: var(--brand-navy);
    padding: var(--space-s) 0;
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 999;
  }

  .nav.open {
    display: flex;
  }

  .nav-item {
    padding: var(--space-m);
    width: 100%;
  }
}
