:root {
  --tg-bg: #f5f5f7;
  --tg-bg-soft: #fafafa;
  --tg-bg-dark: #141726;
  --tg-bg-dark-soft: #1c1f30;
  --tg-border: #e5e5ea;
  --tg-text: #111827;
  --tg-muted: #6b7280;

  /* Accent palette (Titanium red) */
  --tg-accent: #D10000;
  --tg-accent-soft: rgba(209, 0, 0, 0.12);
}

/* Global */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--tg-text);
  background-color: var(--tg-bg);
}

/* Links */

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navbar / Brand */

.bg-nav {
  background-color: #ffffff;
}

.navbar-brand {
  font-size: 0.95rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--tg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  background: radial-gradient(circle at 20% 0%, #ffe5e5, #f9fafb);
  color: #7f1d1d;
}

.brand-title {
  font-weight: 600;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--tg-muted);
}

.navbar-light .navbar-nav .nav-link {
  font-size: 0.9rem;
  color: #374151;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: var(--tg-accent);
}

/* Hero */

.hero {
  min-height: 90vh;
  padding-top: 200px;
  padding-bottom: 64px;
  background:
    radial-gradient(circle at 0% 0%, #eef2ff, transparent 55%),
    radial-gradient(circle at 100% 100%, #ffe5e5, transparent 50%);
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--tg-muted);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-text {
  font-size: 0.98rem;
  color: #4b5563;
  max-width: 32rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tg-muted);
  margin-bottom: 0.15rem;
}

.meta-value {
  color: #111827;
}

/* Hero right stack */

.hero-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 360px;
  margin-left: auto;
}

.hero-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--tg-border);
  padding: 1rem 1.15rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.hero-card.primary {
  border-color: rgba(209, 0, 0, 0.35);
  background: linear-gradient(135deg, #ffe5e5, #f9fafb);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--tg-accent);
}

/* Hero image fade */
.hero-with-image {
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 75%;                       /* how much is covered */
  height: 100%;
  background-image: url("../img/hero-1.jpg"); /* <-- put your image here */
  background-size: cover;
  background-position: center left;
  z-index: 1;

  /* Fade from image (left) into transparent (right) */
  mask-image: linear-gradient(to right, black 30%, transparent 80%);
  -webkit-mask-image: linear-gradient(to right, black 30%, transparent 80%);
  opacity: 0.3; /* controls blend strength */
}

/* Keep all hero content above the image */
.hero .container {
  position: relative;
  z-index: 2;
}


/* Sections */

.section {
  padding: 80px 0;
}

.section-soft {
  background-color: var(--tg-bg-soft);
}

.section-lined {
  background-color: #ffffff;
  border-top: 1px solid var(--tg-border);
  border-bottom: 1px solid var(--tg-border);
}

.section-dark {
  background: radial-gradient(circle at top left, #1f2937, #020617);
  color: #f9fafb;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--tg-muted);
  margin-bottom: 0.75rem;
}

.section-dark .section-label {
  color: #9ca3af;
}

.section-title {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-dark .section-title {
  color: #f9fafb;
}

.text-light-weak {
  color: #e5e7eb;
}

/* Mission */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.mission-item {
  background-color: #ffffff;
  border-radius: 0.85rem;
  border: 1px solid var(--tg-border);
  padding: 0.9rem 1rem;
}

/* Story timeline horizontal */

.timeline-horizontal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.timeline-card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid var(--tg-border);
  padding: 0.9rem 1rem;
  position: relative;
}

.timeline-tag {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background-color: var(--tg-accent-soft);
  color: #7f1d1d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

/* Mission: 3-column responsive grid */
.mission-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

/* Story pillars */
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.story-pillar {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid var(--tg-border);
  padding: 0.9rem 1rem;
  height: 100%;
}

.story-pill-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--tg-muted);
  margin-bottom: 0.35rem;
}

/* Responsive tweaks for the new grids */
@media (max-width: 991.98px) {
  .mission-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  .mission-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Story: vertical rail */

.story-shell {
  position: relative;
  padding-left: 1.75rem;
}

.story-rail {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.7rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(148, 163, 184, 0.2),
    rgba(15, 23, 42, 0.5)
  );
}

.story-node {
  position: relative;
  display: flex;
  margin-bottom: 1.4rem;
}

.story-node:last-child {
  margin-bottom: 0;
}

.story-node-marker {
  position: absolute;
  left: -0.1rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 2px solid var(--tg-accent);
  box-shadow: 0 0 0 4px var(--tg-accent-soft);
}

.story-node-body {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid var(--tg-border);
  padding: 0.9rem 1rem;
  margin-left: 0.8rem;
}

.story-node-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tg-muted);
  margin-bottom: 0.25rem;
}

.story-node-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.story-node-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background-color: #f9fafb;
  color: #4b5563;
}

.story-node-metric span {
  font-weight: 600;
  color: var(--tg-accent);
}

/* Responsive */

@media (max-width: 767.98px) {
  .story-shell {
    padding-left: 1.4rem;
  }

  .story-rail {
    left: 0.6rem;
  }

  .story-node-body {
    margin-left: 0.7rem;
  }
}


/* Offices */

.office-card {
  background-color: #ffffff;
  border-radius: 0.9rem;
  border: 1px solid var(--tg-border);
  padding: 0.9rem 1rem;
  height: 100%;
}

.office-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--tg-muted);
  margin-bottom: 0.15rem;
}

/* Sectors row */

.sectors-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.sector-pill {
  display: flex;
  gap: 0.9rem;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background-color: #ffffff;
  border: 1px solid var(--tg-border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.03);
}

.sector-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: var(--tg-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f1d1d;
  flex-shrink: 0;
}

/* Subsidiaries */

.sub-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--tg-border);
  padding: 1rem 1.1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.sub-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background-color: var(--tg-accent-soft);
  color: #7f1d1d;
  margin-bottom: 0.5rem;
}

.sub-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}

/* Numbers */

.stat-block {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 1.3rem 1.1rem;
  height: 100%;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--tg-accent);
  margin-bottom: 0.2rem;
}

.stat-caption {
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* People */

.people-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--tg-border);
  padding: 1rem 1.1rem;
  height: 100%;
}

.people-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 0% 0%, #ffe5e5, #f3f4f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #7f1d1d;
  margin-bottom: 0.5rem;
}

/* Insights */

.insight-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--tg-border);
  padding: 1rem 1.1rem;
  height: 100%;
  color: #111827; /* ensure main text is dark */
}

.insight-card h5 {
  color: #111827;
}

.insight-card p {
  color: #4b5563;
}

.insight-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tg-muted);
  margin-bottom: 0.3rem;
}


/* Jobs */

.job-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--tg-border);
  padding: 1rem 1.1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.job-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tg-muted);
  margin-bottom: 0.5rem;
}

/* Contact */

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.contact-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--tg-border);
  padding: 1.1rem 1.2rem;
}

/* Buttons */

.btn-accent {
  background-color: var(--tg-accent);
  border-color: var(--tg-accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #b00000;
  border-color: #b00000;
  color: #ffffff;
}

/* Back to top */

.btn-back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1030;
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  display: none;
  font-size: 0.9rem;
}

/* Footer */

.footer {
  background-color: #ffffff;
}

.text-accent {
  color: var(--tg-accent) !important;
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Forms */

.form-control {
  border-radius: 0.6rem;
}

/* Responsive tweaks */

@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding-top: 140px;   /* you can tune this (120–160) if you like */
  }

  .hero-stack {
    margin-left: 0;       /* stop pushing it to the right */
    margin-right: 0;
    max-width: 100%;      /* let it span the text width */
  }
}



@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .section {
    padding: 64px 0;
  }

  .timeline-horizontal {
    grid-template-columns: minmax(0, 1fr);
  }

  .mission-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-info {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Glassmorphism effect (whiter, clearer, high contrast) */
.hero-card.glass,
.hero-card.glassy {
  background: rgba(255, 255, 255, 0.65); /* increased white */
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Primary card (Energy & Capital) with slight red tint */
.hero-card.glass.primary {
  background: rgba(255, 240, 240, 0.65); /* whiter + very subtle red base */
  border: 1px solid rgba(209, 0, 0, 0.35);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 24px 55px rgba(209, 0, 0, 0.14);
}

.hero-card.glass h6,
.hero-card.glass p,
.hero-card.glass .meta-label {
  color: #1f2937; /* stronger grey */
}

.hero-card.glass.primary h6,
.hero-card.glass.primary p,
.hero-card.glass.primary .meta-label {
  color: #7f1d1d; /* elegant, muted red */
}

/* Sectors: system grid */

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.5rem;
}

.sector-card {
  background-color: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--tg-border);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.03);
}

.sector-card-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.4rem;
}

.sector-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background-color: var(--tg-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tg-accent);
  flex-shrink: 0;
}

.sector-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tg-muted);
}

.sector-card-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.sector-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.sector-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.72rem;
  color: #4b5563;
  background-color: #f9fafb;
}

/* Responsive layout for sectors */

@media (max-width: 1199.98px) {
  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .sector-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Inline alert animation for contact form */
.alert-inline-animate {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.alert-inline-animate.alert-show {
  opacity: 1;
  transform: translateY(0);
}

.footer-social-link {
  font-size: 1.25rem;
  color: var(--tg-text);
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: var(--tg-accent);
}

.nav-logo {
  height: 38px;        /* Adjust size as needed */
  width: auto;
  display: block;
}

@media (max-width: 767.98px) {
  .nav-logo {
    height: 32px;
  }
}
