/*
 * Quantum Group Impact Fund Website Styles
 *
 * This stylesheet defines a modern, responsive layout that reflects
 * the Quantum Group Impact Fund brand. Colour variables are declared
 * at the root for easy updates. A clean typographic system and
 * generous spacing promote readability. Components such as cards,
 * diagrams, and badges are styled to reinforce the dual‑mandate
 * narrative. Media queries ensure the site adapts gracefully to
 * smaller screens.
 */

/* CSS Variables for easy theme management */
:root {
  --colour-primary: #0a2540; /* Quantum Blue */
  --colour-secondary: #d4a02c; /* Acumen Gold */
  --colour-accent: #00cfc8; /* Energy Teal */
  --colour-light: #ffffff; /* Clean White */
  --colour-grey: #c8d0d6; /* Light Grey */
  --colour-dark-text: #2f3a45; /* Dark Grey text */
  --max-width: 1100px;
  --border-radius: 6px;
  --transition-speed: 0.3s;
}

/* Global resets and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--colour-dark-text);
  background-color: var(--colour-light);
}

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

/* Container utility to center content and constrain width */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--colour-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 48px;
  width: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--colour-primary);
  font-weight: 500;
  transition: color var(--transition-speed);
}

.site-nav a:hover {
  color: var(--colour-secondary);
}

/* Hero section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--colour-light);
}

/* background image with overlay */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(80%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 37, 64, 0.6), rgba(10, 37, 64, 0.9));
  z-index: -1;
}

.hero-content {
  max-width: 680px;
  padding: 2rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Primary button */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.btn-primary {
  background-color: var(--colour-secondary);
  color: var(--colour-light);
}

.btn-primary:hover {
  background-color: var(--colour-accent);
  color: var(--colour-primary);
}

/* Section styles */
.section {
  padding: 4rem 0;
}

.section-light {
  background-color: var(--colour-light);
}

.section-dark {
  background-color: var(--colour-primary);
  color: var(--colour-light);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--colour-primary);
}

.section-dark .section-title {
  color: var(--colour-light);
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 2rem;
  color: var(--colour-primary);
}

/* Paragraph formatting within sections */
.section-text {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Mission & Vision cards */
.mission-vision {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.mission-vision .card {
  flex: 1 1 280px;
  background-color: var(--colour-grey);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mission-vision h3 {
  margin-bottom: 0.5rem;
  color: var(--colour-primary);
}

/* Mandate diagram */
.mandate-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.diagram-box {
  background-color: var(--colour-light);
  border: 2px solid var(--colour-primary);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  text-align: center;
  flex: 1 1 250px;
}

.diagram-box h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--colour-primary);
}

.diagram-box p {
  font-size: 0.875rem;
  color: var(--colour-dark-text);
}

.diagram-subtitle {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--colour-secondary);
}

.diagram-arrow {
  width: 50px;
  height: 2px;
  background-color: var(--colour-accent);
  position: relative;
  flex-shrink: 0;
}

.diagram-arrow::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  border: 6px solid transparent;
  border-left-color: var(--colour-accent);
}

/* Mandate columns */
.mandate-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.mandate-column {
  flex: 1 1 350px;
}

.mandate-column h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--colour-primary);
}

.mandate-column p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Services grid */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.service-block {
  flex: 1 1 300px;
  background-color: var(--colour-grey);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-block h3 {
  margin-bottom: 0.75rem;
  color: var(--colour-primary);
}

.service-block ul {
  list-style-type: none;
  padding-left: 0;
}

.service-block li {
  margin-bottom: 0.5rem;
}

.service-block strong {
  font-weight: 600;
  color: var(--colour-primary);
}

/* Commitment section */
.commitment-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.commitment-text {
  flex: 2 1 350px;
}

.commitment-badge {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.badge {
  background-color: var(--colour-primary);
  color: var(--colour-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.badge-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--colour-primary);
  background-color: var(--colour-accent);
  padding: 0.3rem 1rem;
  border-radius: var(--border-radius);
  margin-top: 0.25rem;
  width: 100%;
  text-align: center;
}

.values-heading {
  margin-bottom: 1rem;
  color: var(--colour-primary);
  font-size: 1.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.value-item {
  background-color: var(--colour-grey);
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.value-item h4 {
  margin-bottom: 0.5rem;
  color: var(--colour-primary);
}

/* Contact section */
.contact-container {
  text-align: center;
}

.contact-info {
  margin-top: 1.5rem;
  font-size: 1rem;
}

.contact-info a {
  color: var(--colour-secondary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.contact-info a:hover {
  color: var(--colour-accent);
}

.cta-text {
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--colour-light);
  line-height: 1.6;
}

.section-dark .cta-text {
  color: var(--colour-light);
}

/* Footer */
.site-footer {
  background-color: var(--colour-primary);
  color: var(--colour-light);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
  }

  .mission-vision {
    flex-direction: column;
  }

  .mandate-diagram {
    flex-direction: column;
  }

  .diagram-arrow {
    width: 2px;
    height: 40px;
  }

  .diagram-arrow::after {
    top: auto;
    right: auto;
    bottom: -5px;
    left: -4px;
    border: 6px solid transparent;
    border-top-color: var(--colour-accent);
  }

  .services-grid {
    flex-direction: column;
  }

  .commitment-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .commitment-badge {
    width: 100%;
    align-items: flex-start;
  }

  .badge, .badge-subtitle {
    width: auto;
  }
}