/* ============================================================
   BIFROST IMPACT — Main Stylesheet
   ============================================================ */

/* 1. Fonts
   ------------------------------------------------------------ */
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramond.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/EBGaramondItalic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* 2. Design tokens
   ------------------------------------------------------------ */
:root {
  --bg:     #0F1B30;
  --text:   #B5AC9E;
  --cream:  #EFE6D6;
  --accent: #C9A268;

  --arc-1:  #C9A268;
  --arc-2:  #C97A5F;
  --arc-3:  #A8956E;
  --arc-4:  #7A8AA3;
  --arc-5:  #6E7AA3;
  --arc-6:  #A37A8A;

  --text-muted: rgba(181, 172, 158, 0.6);
  --divider:    rgba(181, 172, 158, 0.15);

  --font-main:  'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'EB Garamond', Georgia, serif;

  --section-v:     5rem;
  --container-max: 960px;
  --prose-max:     640px;
}

/* 3. Reset
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* 4. Layout utilities
   ------------------------------------------------------------ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad {
  padding: var(--section-v) 0;
}

/* 5. Typography
   ------------------------------------------------------------ */
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.headline-hero {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 2rem;
}

.headline-hero em {
  font-style: italic;
  color: var(--accent);
}

.headline-section {
  font-size: 24px;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h1.headline-section {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

.body-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.body-text p + p {
  margin-top: 1.25em;
}

/* 6. Navigation
   ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--divider);
  padding: 0.5rem 0;
  height: 66px;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-logo-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-panel img {
  height: 68px;
  max-height: 100%;
  width: auto;
  display: block;
}

.nav-wordmark {
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--cream);
  text-decoration: none;
}


/* ============================================================
   LANDING PAGE
   ============================================================ */

/* Hero
   ------------------------------------------------------------ */
.hero {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 2rem 3rem;
  text-align: center;
}

.hero-inner {
  max-width: var(--prose-max);
  width: 100%;
}

.hero-inner .eyebrow {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 3rem;
}

.hero-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.hero-intro p + p {
  margin-top: 1.25em;
}

/* Bridge arc stroke colours
   ------------------------------------------------------------ */
.arc-1 { stroke: var(--arc-1); }
.arc-2 { stroke: var(--arc-2); }
.arc-3 { stroke: var(--arc-3); }
.arc-4 { stroke: var(--arc-4); }
.arc-5 { stroke: var(--arc-5); }
.arc-6 { stroke: var(--arc-6); }

/* Bridge section
   ------------------------------------------------------------ */
.bridge {
  padding: 0 0 6rem;
}

.bridge-arc {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.bridge-arc svg {
  width: min(520px, 90vw);
  height: auto;
  display: block;
  overflow: visible;
}

.bridge-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 960px;
  margin: 0 auto;
}

.bridge-panel {
  display: block;
  padding: 3rem 3.5rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.bridge-panel:hover {
  background-color: rgba(239, 230, 214, 0.03);
  text-decoration: none;
}

.bridge-panel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 0;
}

.bridge-panel-eyebrow {
  display: block;
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.bridge-panel-headline {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.3;
  margin-bottom: 2rem;
}

.bridge-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 14px;
  color: var(--cream);
  transition: gap 0.2s ease;
}

.bridge-panel:hover .bridge-cta {
  gap: 0.6rem;
}

/* Method
   ------------------------------------------------------------ */
.method {
  border-top: 1px solid var(--divider);
  padding: var(--section-v) 0;
}

.method-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.method .eyebrow {
  color: var(--cream);
  font-size: 17px;
}

.method-header .headline-section {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.method-header .body-text {
  max-width: var(--prose-max);
  margin: 0 auto;
}

/* ADDIE method — static SVG arc
   ------------------------------------------------------------ */
.addie {
  margin-bottom: 2rem;
}

.addie-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

@media (max-width: 899px) {
  .addie-svg { display: none; }
}

.addie-mobile {
  list-style: none;
  padding: 0;
  max-width: var(--prose-max);
  margin: 0 auto;
  display: none;
}

@media (max-width: 899px) {
  .addie-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
}

.addie-mobile-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.addie-mobile-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
}

.addie-mobile-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.addie-mobile-text {
  flex: 1;
  padding-top: 0.3rem;
}

.addie-mobile-name {
  display: block;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.addie-mobile-desc {
  display: block;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

.addie-step-1 { color: var(--arc-1); }
.addie-step-2 { color: var(--arc-2); }
.addie-step-3 { color: var(--arc-3); }
.addie-step-4 { color: var(--arc-4); }
.addie-step-5 { color: var(--arc-6); }

.method-capstone {
  max-width: 580px;
  margin: 0 auto;
  padding: 3rem 0;
  text-align: center;
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  border-top: 1px solid var(--divider);
}

/* About
   ------------------------------------------------------------ */
.about {
  border-top: 1px solid var(--divider);
  padding: var(--section-v) 0;
}

.about-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.about .eyebrow {
  color: var(--cream);
  font-size: 17px;
}

.about-header .headline-section {
  font-size: 16px;
  color: var(--accent);
}

.about-content {
  max-width: var(--prose-max);
  margin: 0 auto;
}

.about-photo {
  margin: 2rem 0;
}

.about-photo img {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto;
}

/* Contact
   ------------------------------------------------------------ */
.contact {
  border-top: 1px solid var(--divider);
  padding: var(--section-v) 0;
  text-align: center;
}

.contact .eyebrow {
  color: var(--cream);
  font-size: 17px;
  margin-bottom: 1.5rem;
}

.contact-box {
  max-width: var(--prose-max);
  margin: 0 auto;
  border: 1px solid rgba(201, 162, 104, 0.25);
  border-radius: 6px;
  padding: 2.5rem 3rem;
  text-align: left;
}

.contact-box .headline-section {
  font-size: 16px;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-box-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-item-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ============================================================
   SUBPAGES
   ============================================================ */

.subpage-hero {
  padding: 7rem 2rem 5rem;
  text-align: center;
}

.subpage-hero .headline-section {
  font-size: 30px;
  max-width: var(--prose-max);
  margin-left: auto;
  margin-right: auto;
}

.hero-promise {
  color: var(--accent);
}

.subpage-argument {
  border-top: 1px solid var(--divider);
  padding: var(--section-v) 0;
}

.subpage-argument .body-text {
  max-width: var(--prose-max);
  margin: 0 auto;
}

.subpage-examples {
  border-top: 1px solid var(--divider);
  padding: var(--section-v) 0;
}

.subpage-examples-header {
  margin-bottom: 3rem;
}

.subpage-examples .eyebrow {
  color: var(--cream);
  font-size: 17px;
}

.example-blocks {
  max-width: var(--prose-max);
  margin: 0 auto;
}

.example-block + .example-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--divider);
}

.example-heading {
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.example-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  :root {
    --section-v: 4rem;
  }

  .hero {
    padding: 2rem 1.5rem 2.5rem;
  }

  .headline-hero {
    font-size: 28px;
  }

  .nav-links {
    gap: 1.25rem;
  }

  /* Bridge: stack vertically */
  .bridge-split {
    grid-template-columns: 1fr;
  }

  .bridge-divider-line {
    height: 1px;
    width: 100%;
  }

  .bridge-panel {
    padding: 2.5rem 2rem;
  }

  /* Contact box */
  .contact-box {
    padding: 2rem 1.5rem;
  }

  .contact-items {
    flex-direction: column;
    gap: 1.25rem;
  }

  /* About: smaller circle on mobile */
  .about-photo img {
    width: 120px;
    height: 120px;
  }

  /* Subpages */
  .subpage-hero {
    padding: 5rem 1.5rem 4rem;
  }

  .subpage-hero .headline-section {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 12px;
  }

  .bridge-panel {
    padding: 2rem 1.5rem;
  }

}
