/* === Graphite & Electric Lime (Light Mode) === */
:root {
  --body-bg: #FFFFFF;
  --text-main: #222222;        /* charcoal */
  --text-muted: #555555;
  --accent: #A3EB00;           /* Electric Lime */
  --accent-dark: #6EA600;
  --card-bg: #FAFAFA;
  --border-colour: #DDDDDD;
  --header-bg: #1A1A1A;        /* Graphite header */
  --footer-bg: #111111;
}

/* --- Base Layout --- */
body {
  background: var(--body-bg);
  color: var(--text-main);
  font-family: "Exo 2", "Roboto", sans-serif;
  line-height: 1.7;
}

/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

/* --- Header / Navigation --- */
.container-header {
  background: var(--header-bg);
  border-bottom: 3px solid var(--accent);
}
.container-header .navbar-brand,
.container-header .nav-link {
  color: #FFF !important;
  font-weight: 600;
  text-transform: uppercase;
}
.container-header .nav-link:hover {
  color: var(--accent) !important;
}

/* --- Buttons --- */
.btn, button, .button {
  background-color: var(--accent);
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  padding: 0.6em 1.2em;
  transition: 0.3s;
}
.btn:hover, button:hover, .button:hover {
  background-color: var(--accent-dark);
}

/* --- Cards / Modules --- */
.card, .moduletable {
  background-color: var(--card-bg);
  border: 1px solid var(--border-colour);
  border-radius: 6px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* --- Headings --- */
h1, h2, h3, h4 {
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --- Forms --- */
input, select, textarea {
  background: #FFF;
  border: 1px solid var(--border-colour);
  color: var(--text-main);
  border-radius: 4px;
  padding: 0.6em;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 4px var(--accent);
  outline: none;
}

/* --- Footer --- */
.footer {
  background: var(--footer-bg);
  color: #EEE;
  border-top: 3px solid var(--accent);
  text-align: center;
  padding: 2rem 1rem;
}
.footer a {
  color: var(--accent);
}
.footer a:hover {
  color: var(--accent-dark);
}

/* --- Hero / CTA --- */
.hero-section {
  background: linear-gradient(180deg, #F8F8F8 0%, #FFFFFF 100%);
  color: var(--text-main);
  text-align: center;
  padding: 5rem 1rem;
  border-bottom: 3px solid var(--accent);
}
.hero-section h1 {
  color: var(--accent-dark);
  font-size: 2.4rem;
  font-weight: 700;
}
.hero-section p {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin: 0.5rem 0 2rem;
}
.hero-section .btn {
  background: var(--accent);
  color: #000;
}
.hero-section .btn:hover {
  background: var(--accent-dark);
  color: #FFF;
}

/* --- Top Menu Styling --- */
.container-header .navbar-nav {
  justify-content: center;
  gap: 1.5rem;
}

.container-header .nav-link {
  color: #FFF !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.6rem 0.8rem;
  transition: 0.3s ease;
}

.container-header .nav-link:hover,
.container-header .nav-item.active .nav-link {
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent);
}


/* --- Modern lightweight headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Exo 2", "Roboto", sans-serif;
  font-weight: 400;                /* lighter weight */
  color: var(--accent-dark, #6EA600);
  letter-spacing: 0.3px;
  text-transform: none;
  margin-top: 1.4rem;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

/* Optional: slightly smaller sizes for cleaner flow */
h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4, h5, h6 { font-size: 1.1rem; }

/* Optional hover accent for section headers */
h2:hover, h3:hover {
  color: var(--accent);
  transition: color 0.3s ease;
}

/* --- Centre logo and menu, move tagline --- */

/* === CNB Technologies Header Fix === */

/* === CNB Technologies True Centre Alignment Fix === */

/* Force full-width centre context */
.container-header,
.container-header .navbar,
.container-header .navbar-collapse,
.container-header .navbar-brand,
.menu-horizontal {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
}

/* Logo */
.container-header .navbar-brand img {
  display: block;
  margin: 0 auto !important;
  max-width: 180px;
  height: auto;
}

/* Tagline */
.container-header .navbar-brand::after {
  content: "TSCM Bug Sweeping • Privacy Protection";
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: #5ac8fa;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

/* Menu */
.menu-horizontal {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.menu-horizontal li {
  list-style: none;
}

.menu-horizontal a {
  color: #fff !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  padding: 0.25rem 0.4rem;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}

.menu-horizontal a:hover,
.menu-horizontal li.current a {
  color: var(--accent) !important;
  border-bottom: 2px solid var(--accent);
}

/* --- High-contrast headings with lime underline --- */
h1, h2, h3, h4, h5, h6 {
  color: #222;              /* charcoal */
  font-weight: 400;         /* matches your current clean style */
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  position: relative;
}


/* --- Slim lime divider above headings --- */
/* 
h2, h1 {
  position: relative;
  color: #222;      
  font-weight: 400;
  margin-top: 2.4rem;        
  padding-top: 1.2rem;   
}
*/
/* decorative line */
/*
h2::before, h1::before {
  content: "";
  display: block;
  width: 40%;         
  height: 1px;
  background: var(--accent);  
  margin: 0 auto;            
  margin-bottom: 0.6rem;    
  margin-bottom: 50px;   
  border-radius: 1px;
}
*/

/* hero-image class for article images*/
.hero-image {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;

  height: 400px;          /* fixed hero height */
  overflow: hidden;       /* trims excess image */
}

/* Crop instead of resize */
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* THIS is the key */
  object-position: center;
  display: block;
}

/* 60% black overlay */
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  pointer-events: none;
}

figure.hero-image {
  margin-top: -1em;
  border-bottom: 3px solid var(--accent);
}

/* footer grid*/

/* Override Cassiopeia footer centering */
.footer {
  text-align: center;
}

.footer .footer-inner {
  text-align: left;
}

/* Grid */
.footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Lists behave normally again */
.footer ul {
  padding-left: 1.1rem;
  margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    color: #ffffff;
  }
  .footer h4 {
  color: #ffffff;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
}

/* Footer headings – improve contrast */
.footer h3 {
  color: #ffffff;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}


.footer h3::after {
  content: "";
  display: block;
  /*width: 70px;
  height: 2px;*/
  background: var(--accent);
  margin-top: 6px;
}
