/* ─────────────────────────────────────────────────────────────────────────────
   msc-landing.css — Home / landing page styles only.
   Loaded exclusively by static/layouts/home.html.
   Not loaded on dash, admin, login, register, or otp pages.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Brand variables (landing page) ───────────────────────────────────────── */
:root {
  --brand-primary:      #2E6A8E;
  --brand-primary-dark: #1D4E6A;
  --brand-accent:       #F5C400;
  --brand-charcoal:     #1A2535;
  --brand-navy:         #0F1E2D;
}

/* ── Home page body scope ──────────────────────────────────────────────────── */
.home-page {
  font-family: "Merriweather", serif;
  font-size: 15px;
  background-color: #fff !important;
  color: #212529 !important;
}

.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4,
.home-page h5,
.home-page h6 {
  font-family: "Merriweather Sans", sans-serif;
}

.home-page .text-muted {
  color: #6c757d !important;
}

.home-page .bg-primary {
  background-color: var(--brand-primary) !important;
}

.home-page .btn-primary {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.home-page .btn-primary:hover,
.home-page .btn-primary:focus {
  color: #fff !important;
  background-color: var(--brand-primary-dark) !important;
  border-color: var(--brand-primary-dark) !important;
}

/* ── Landing layout elements ───────────────────────────────────────────────── */
.page-top {
  padding-top: 5rem;
}

hr.divider {
  border-width: 0.2rem;
  border-color: var(--brand-primary);
  max-width: 3.25rem;
  margin-left: auto;
  margin-right: auto;
}

hr.light {
  border-color: #D8E3EC;
}

.btn-xl {
  padding: 1.25rem 2.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Merriweather Sans", sans-serif;
  border: none;
  border-radius: 10rem;
}

.page-section {
  padding: 8rem 0;
}

/* ── Main nav ──────────────────────────────────────────────────────────────── */
#mainNav {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  background-color: #fff;
  transition: background-color 0.2s ease;
}

#mainNav .navbar-brand {
  font-weight: 700;
  color: #212529 !important;
}

#mainNav .navbar-nav .nav-item .nav-link {
  color: #6c757d !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 0;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link:active {
  color: var(--brand-primary) !important;
}

#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--brand-primary) !important;
}

@media (min-width: 992px) {
  #mainNav {
    box-shadow: none;
    background-color: transparent;
  }

  #mainNav .navbar-brand {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  #mainNav .navbar-brand:hover {
    color: #fff !important;
  }

  #mainNav .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0 1rem;
  }

  #mainNav .navbar-nav .nav-item .nav-link:hover {
    color: #fff !important;
  }

  #mainNav.navbar-scrolled {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    background-color: #fff !important;
  }

  #mainNav.navbar-scrolled .navbar-brand {
    color: #212529 !important;
  }

  #mainNav.navbar-scrolled .navbar-brand:hover {
    color: var(--brand-primary) !important;
  }

  #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link {
    color: #212529 !important;
  }

  #mainNav.navbar-scrolled .navbar-nav .nav-item .nav-link:hover {
    color: var(--brand-primary) !important;
  }
}

/* ── Masthead / hero ───────────────────────────────────────────────────────── */
header.masthead {
  padding-top: 10rem;
  padding-bottom: calc(10rem - 4.5rem);
  background: linear-gradient(135deg, rgba(15, 30, 45, 0.97) 0%, rgba(26, 37, 53, 0.94) 60%, rgba(46, 106, 142, 0.88) 100%), url("/img/photo.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: cover;
}

header.masthead h1 {
  font-size: 2.25rem;
}

@media (min-width: 992px) {
  header.masthead {
    height: 100vh;
    min-height: 40rem;
    padding-top: 4.5rem;
    padding-bottom: 0;
  }

  header.masthead p {
    font-size: 1.15rem;
  }

  header.masthead h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1200px) {
  header.masthead h1 {
    font-size: 3.5rem;
  }
}

/* ── Utility ───────────────────────────────────────────────────────────────── */
.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.text-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.text-accent {
  color: var(--brand-accent) !important;
}

.home-page .text-accent {
  color: var(--brand-accent) !important;
}

/* ── Module cards ──────────────────────────────────────────────────────────── */
.ehs-module-card {
  background:    #fff;
  border:        1px solid #E8EDF3;
  border-radius: 8px;
  padding:       1.5rem 1.25rem;
  height:        100%;
  transition:    box-shadow 0.15s, transform 0.15s, border-color 0.15s;
}

.ehs-module-card:hover {
  box-shadow:   0 6px 20px rgba(46, 106, 142, 0.14);
  transform:    translateY(-2px);
  border-color: var(--brand-primary);
}

.ehs-module-icon {
  width:          48px;
  height:         48px;
  border-radius:  8px;
  background:     #D0E6F0;
  display:        flex;
  align-items:    center;
  justify-content: center;
  font-size:      1.4rem;
  color:          var(--brand-primary);
  margin-bottom:  1rem;
  flex-shrink:    0;
}

.ehs-module-icon.accent {
  background: #FEF6CC;
  color:      var(--brand-accent);
  color:      #C9A000;
}

.ehs-module-icon.warning {
  background: #FAE0D0;
  color:      #D4580A;
}

.ehs-module-icon.success {
  background: #DCFCE7;
  color:      #15803D;
}

.ehs-module-icon.purple {
  background: #EDE9F9;
  color:      #6D57B8;
}

.ehs-module-icon.danger {
  background: #FEE2E2;
  color:      #B91C1C;
}

.ehs-module-card h5 {
  font-size:   0.95rem;
  font-weight: 700;
  color:       #0F1E2D;
  margin-bottom: 0.4rem;
}

.ehs-module-card p {
  font-size:   0.82rem;
  color:       #64748B;
  margin:      0;
  line-height: 1.5;
}

.ehs-module-group-label {
  font-size:      0.72rem;
  font-weight:    700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color:          var(--brand-primary);
  margin-bottom:  1rem;
  padding-bottom: 0.5rem;
  border-bottom:  2px solid #D0E6F0;
}

/* ── Platform / feature strip ──────────────────────────────────────────────── */
.ehs-platform-stat {
  text-align: center;
  padding:    1.5rem 1rem;
}

.ehs-platform-stat .stat-value {
  font-size:   2.5rem;
  font-weight: 700;
  color:       #fff;
  line-height: 1;
}

.ehs-platform-stat .stat-label {
  font-size:   0.85rem;
  color:       rgba(255, 255, 255, 0.7);
  margin-top:  0.35rem;
}

/* ── About section bg + text reset ────────────────────────────────────────── */
.home-page .bg-ehs-primary {
  background-color: var(--brand-primary) !important;
  color: #fff !important;
}

.home-page .bg-ehs-dark {
  background-color: var(--brand-charcoal) !important;
  color: #fff !important;
}

.home-page .bg-ehs-navy {
  background-color: var(--brand-navy) !important;
  color: #fff !important;
}

/* Allow white text utilities to work inside colored sections */
.home-page .bg-ehs-primary .text-white,
.home-page .bg-ehs-dark .text-white,
.home-page .bg-ehs-navy .text-white {
  color: #fff !important;
}

.home-page .bg-ehs-primary .text-white-75,
.home-page .bg-ehs-dark .text-white-75,
.home-page .bg-ehs-navy .text-white-75 {
  color: rgba(255, 255, 255, 0.75) !important;
}

.home-page .bg-ehs-primary .text-white-50,
.home-page .bg-ehs-dark .text-white-50,
.home-page .bg-ehs-navy .text-white-50 {
  color: rgba(255, 255, 255, 0.55) !important;
}

.home-page .bg-ehs-primary h2,
.home-page .bg-ehs-dark h2,
.home-page .bg-ehs-dark .fw-semibold {
  color: #fff !important;
}
