/* ==========================================================================
   Chain Chain Change — Design System
   Palette: Navy #102436, Gold #C1AD70, Teal #5F978C, White background
   Type: Space Grotesk (display) + Source Sans 3 (body)
   ========================================================================== */

:root {
  --navy: #102436;
  --navy-light: #1c3a52;
  --navy-tint: #eef2f4;
  --gold: #c1ad70;
  --gold-deep: #9c8a52;
  --teal: #5f978c;
  --teal-tint: #eaf2f0;
  --white: #ffffff;
  --text: #1c2530;
  --text-muted: #566270;
  --border: #dfe4e7;
  --max-width: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em 0;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.2em 0; max-width: 68ch; }
p.lede { font-size: 1.2rem; color: var(--text); max-width: 62ch; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { padding-left: 1.2em; }
ul.plain { list-style: none; padding-left: 0; }
li { margin-bottom: 0.5em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 72px 0;
}
.section--tint { background: var(--navy-tint); }
.section--teal-tint { background: var(--teal-tint); }
.section--navy { background: var(--navy); color: #dbe4ea; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--narrow .container { max-width: 760px; }

.eyebrow {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4em;
  display: block;
}

/* ---------------- Header / Navigation ---------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: 20px;
}
.brand img { height: 84px; display: block; }
.brand .brand-name {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  white-space: nowrap;
  margin-right: 28px;
}
.main-nav a:last-child { margin-right: 0; }
.main-nav a:hover { color: var(--teal); text-decoration: none; }
.main-nav a.current { color: var(--teal); border-bottom: 2px solid var(--teal); padding-bottom: 3px; }

.btn {
  display: inline-block;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; }

.btn--primary { background: var(--navy); color: var(--white); }
.btn--primary:hover { background: var(--navy-light); }

.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-deep); color: var(--white); }

.btn--outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 64px 0 72px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.hero-copy .actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero p.lede { margin-bottom: 0; }

/* ---------------- Cards / grids ---------------- */

.grid {
  display: grid;
  gap: 32px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }

.divider {
  border: none;
  border-top: 1px solid var(--teal);
  margin: 0;
}

/* ---------------- Beliefs (numbered list) ---------------- */

.belief {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.belief:last-child { border-bottom: none; }
.belief .num {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-deep);
}
.belief h3 { margin-bottom: 0.35em; }
.belief p { margin-bottom: 0; }

/* ---------------- Founder ---------------- */

.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.founder img {
  width: 100%;
  max-width: 220px;
  border-radius: var(--radius);
  display: block;
}
.founder .name { font-weight: 700; color: var(--navy); margin-bottom: 0.9em; font-family: "Space Grotesk", sans-serif; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--navy);
  color: #b9c6cf;
  padding: 56px 0 28px;
}
.site-footer a { color: #dbe4ea; }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #26404f;
}
.site-footer .brand img { height: 68px; }
.site-footer .brand .brand-name { color: var(--white); font-size: 1.4rem; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.9em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.6em; }
.site-footer .fine-print {
  padding-top: 22px;
  font-size: 0.88rem;
  color: #7f8fa0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Forms ---------------- */

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.form-note { font-size: 0.9rem; color: var(--text-muted); }

.contact-details { display: grid; gap: 18px; }
.contact-details .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-details .label { font-weight: 600; color: var(--navy); min-width: 70px; }

/* ---------------- Image frames (fixed aspect ratio, crops any image consistently) ---------------- */

.img-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-tint);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-frame--hero { aspect-ratio: 4 / 3; }
.img-frame--wide { aspect-ratio: 3 / 2; }
.img-frame--panorama { aspect-ratio: 16 / 9; }

/* ---------------- Utilities ---------------- */

.mt-0 { margin-top: 0; }
.text-muted { color: var(--text-muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.tag-list li {
  background: var(--teal-tint);
  color: var(--navy);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.88rem;
  margin: 0;
}

.placeholder-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; }
  .founder img { width: 160px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1150px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(16, 36, 54, 0.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 28px; width: 100%; border-bottom: 1px solid var(--border); margin-right: 0; }
  .main-nav a.current { border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .nav-cta .btn { padding: 10px 18px; font-size: 0.88rem; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .brand img { height: 54px; }
  .brand .brand-name { font-size: 1.18rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .belief { grid-template-columns: 44px 1fr; }
}

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

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