/* =========================
   Base layout
   ========================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Ubuntu, sans-serif;
  color: #111827;
}

main {
  display: block;
}

/* =========================
   Global Layout Variables
   ========================= */

:root {
  --progress-height: 4px;
  --navbar-height: 64px;
  --sticky-offset: calc(var(--progress-height) + var(--navbar-height));

  --section-spacing: 5rem;
  --section-inner-gap: 2.75rem;
  --content-gap: 1.6rem;
  --section-max-width: 1100px;
}

/* =========================
   Scroll Progress Indicator
   ========================= */

.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #111827,
    #2563eb
  );
  box-shadow: 0 0 6px rgba(37, 99, 235, 0.35);
  transition: width 0.08s linear;
}

/* =========================
   Section Scroll Offset
   ========================= */

section {
  scroll-margin-top: var(--sticky-offset);
}

/* =========================
   Section Layout
   ========================= */

section {
  min-height: 100vh; /* makes scroll visible */

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: var(--section-spacing) 2rem;

  box-sizing: border-box;
}

section > .section-inner {
   padding-top: 2rem;
}

section:first-of-type {
  padding-top: calc(var(--section-spacing) * 1.2);
}

/* Hero needs more presence */
section.hero {
  min-height: 100vh;
  padding-top: calc(var(--section-spacing) * 1.4);
  padding-bottom: calc(var(--section-spacing) * 1.2);
}

/* =========================
   Section Inner Container
   ========================= */

.section-inner {
  width: 100%;
  max-width: var(--section-max-width);
  margin: 0 auto;

  align-items: center;
  display: flex;
  flex-direction: column;
  gap: var(--section-inner-gap);
}

.section-inner > * {
  width: 100%;
}

.section-content {
  max-width: 820px;
}

/* =========================
   Section Typography
   ========================= */

section h1 {
  font-size: 2.75rem;
}
section h2 {
  font-size: 2.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #111827;
  margin-bottom: 1rem;
}

section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  max-width: 72ch;
  margin: 0;
}

section p + p {
  margin-top: var(--content-gap);
}

section:not(:first-of-type) {
  border-top: 1px solid #f1f5f9;
}

/* Content sections breathe less */
section:not(.hero) {
  padding-top: calc(var(--section-spacing) * 0.8);
  padding-bottom: calc(var(--section-spacing) * 0.8);
}

section:nth-of-type(even) .section-header {
  align-items: flex-start;
}

section:nth-of-type(odd) .section-header {
  align-items: flex-start;
}

/* Last section should feel complete */
section:last-of-type {
  padding-bottom: calc(var(--section-spacing) * 1.3);
}

/* =========================
   Section Headers
   ========================= */

.section-header {
  max-width:720px;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-header h1,
.section-header h2 {
  margin-bottom: 0.75rem;
  position: relative;
}

.section-header h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background-color: #2563eb;
  margin-top: 0.75rem;
}

section p,
.section-header p {
  font-size: 1.05rem;
  color: #4b5563;
  max-width: 75ch;
}

/* =========================
   Section Header Alignment
   ========================= */

.section-header {
  text-align: center;
}

.section-header p {
  margin-left: auto;
  margin-right: auto;
}

.section-anchor {
  width: 48px;
  height: 3px;
  background-color: #111827;
  border-radius: 2px;
}

.text-section {
  max-width: 900px;
}

/* =========================
   Fallback Heading Alignment
   ========================= */

section > h2:first-child,
section > h1:first-child {
  text-align: center;
}

section > p:first-of-type {
  margin-left: auto;
  margin-right: auto;
}


/* =========================
   Hero Section
   ========================= */

#what-we-do {
  min-height: 100vh;
  justify-content: center;
  padding-top: calc(var(--navbar-height) + 4rem);
  padding-bottom: 6rem;
}

#what-we-do h1 {
  font-size: 3.25rem;
  font-weight: 700;  
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

#what-we-do .section-header > p:last-child {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4b5563;
  max-width: 60ch;
  margin: 0 auto;
}

#what-we-do::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, #1d4ed8, transparent);
  margin: 4rem auto 0;
}

/* =========================
   Hero Rotating Text
   ========================= */

.hero-rotating-text {
  min-height: 1.6em;
  font-size: 1.35rem; /* #1d4ed8*/
  font-weight: 500;
  color: #1d4ed8;/*#2563eb;*/
  margin: 0.75rem 0 2rem;
  overflow: hidden;
}

.hero-rotating-word {
  display: inline-block;
  animation: heroFadeSlide 0.6s ease both;
}

.hero {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f9fafb 100%
  );
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
}

.hero-bg {
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(255,255,255,0.95),
      rgba(255,255,255,0.3)
    ),
    url("/assets/hero/hero-bg0.png");

  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.75),
      rgba(2, 6, 23, 0.85)
    );

  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 3;

  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 0 2rem;

  color: #ffffff;

  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;

  display: block;
  width: 100%;
  height: 1px;
  margin: 4.5rem auto 0;
  background: linear-gradient(
    to right,
    transparent,
    #e5e7eb,
    transparent
  );
}

@keyframes heroFadeSlide {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   Hero Banner
   ========================= */

.hero {
  position: relative;
  background:
    linear-gradient(
      135deg,
      #f8fafc 0%,
      #ffffff 60%
    );
}

.hero + section {
  border-top: none;
}

.hero-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  gap: 1.25rem;
}

/* Eyebrow */
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.hero-header {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Headline emphasis */
.hero h1 {
  font-size: 3.1rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0;
}

/* Subtitle */
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #374151;
  max-width: 70ch;
  margin: 0 auto;
}

/* Trust meta */
.hero-meta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-inner {
    text-align: left;
    align-items: flex-start;
  }
}

@media (min-width: 1400px) {
  .hero-inner {
    max-width: 820px;
  }
}

/* =========================
   Site Header
   ========================= */

.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.header-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: 1.25rem 2rem;

  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  height: 40px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

.brand-tagline {
  font-size: 0.85rem;
  color: #6b7280;
}

/* =========================
   Innovation Pathways
   ========================= */

.pathways {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.pathways-lead {
  font-size: 1.15rem;
  color: #1f2937;
  max-width: 75ch;
}

.pathways-stages {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
}

.pathway-stage h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.pathway-stage p {
  max-width: 75ch;
}

.pathways-support ul {
  list-style: disc;
  padding-left: 1.25rem;
  color: #374151;
}

@media (min-width: 768px) {
  .pathways-stages {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================
   Section Rhythm
   ========================= */

section {
  background-color: #ffffff;
}

section:nth-of-type(even) {
  background-color: #f9fafb; /* very subtle gray */
}

/* =========================
   Visual Section Framing
   ========================= */

.section-frame {
  position: relative;
  padding-top: 2rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.section-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 48px;
  height: 2px;

  background-color: #e5e7eb;
}

section.alt {
  background-color: #f9fafb;
}

.serve-grid,
.thinking-points {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

.serve-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.serve-item {
  max-width: 65ch;
}

.serve-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .serve-grid,
  .thinking-points {
    grid-template-columns: 1fr 1fr;
  }
}

.serve-card,
.thinking-point {
  padding: 2rem;
  border-radius: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.serve-card h3,
.thinking-point h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.content-block {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

/* =========================
   How We Think
   ========================= */

.think-pillars {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .think-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

.think-pillar h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.think-pillar p {
  color: #374151;
  line-height: 1.7;
}

/* =========================
   Contact Section
   ========================= */

.contact-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-details p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #374151;
}

.contact-details strong {
  color: #111827;
}

.contact-map iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 14px;
}

