/* ==========================================================================
   Knotted Synergies Consulting — shared stylesheet
   Theme: navy + muted gold, editorial/academic feel
   ========================================================================== */

:root {
  --navy-950: #0b1826;
  --navy-900: #10233a;
  --navy-800: #16324f;
  --navy-700: #1f4468;
  --navy-600: #2c5a86;
  --gold-600: #b6893f;
  --gold-500: #c9a15a;
  --gold-300: #e4cd9c;
  --cream-100: #f7f4ee;
  --cream-50: #fbfaf7;
  --ink: #17232f;
  --ink-soft: #45535f;
  --line: #dfd9cb;
  --max-width: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  background: var(--cream-50);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: "Iowan Old Style", Georgia, serif;
  font-weight: 600;
  color: var(--navy-950);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }

.eyebrow {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 0.9em;
}

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--navy-950);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.25;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

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

.brand .brand-text span {
  display: block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-600);
  text-transform: uppercase;
  margin-top: 2px;
}

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

.main-nav a {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-800);
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--navy-950);
  border-bottom-color: var(--gold-600);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy-800);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--navy-900);
}

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

.hero {
  padding: 96px 0 72px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.88) 0%, rgba(251, 250, 247, 0.72) 45%, rgba(251, 250, 247, 0.6) 100%),
    url('../public/Full herobackground.png') center/cover no-repeat;
  min-height: 78vh;
  display: flex;
  align-items: center;
}

.hero .container { max-width: 820px; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero .eyebrow,
.hero h1,
.hero .lead {
  color: var(--navy-950);
  text-shadow: none;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

.btn {
  display: inline-block;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--navy-950);
  color: var(--cream-50) !important;
  background: var(--navy-950);
  margin-top: 8px;
  transition: background 0.15s ease, color 0.15s ease, border-color .15s ease;
}

.btn:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--navy-950) !important;
}

.btn.outline {
  background: transparent;
  color: var(--navy-950) !important;
}

.btn.outline:hover {
  background: var(--navy-950);
  color: var(--cream-50) !important;
}

/* ---------- Sections ---------- */

section { padding: 68px 0; }

.section-border { border-top: 1px solid var(--line); }
.section-tint { background: var(--cream-100); }

.section-head { max-width: 700px; margin-bottom: 40px; }

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

.grid {
  display: grid;
  gap: 26px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card .num {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--gold-600);
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }

.profile-card {
  background: #ffffff;
  border: 1px solid rgba(23, 35, 47, 0.08);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 380px;
  padding: 12px 12px 18px;
  align-self: center;
}

.profile-photo {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: calc(var(--radius) * 1.5);
}

.profile-photo-small {
  width: 180px;
  height: auto;
  max-width: 100%;
  margin: 8px auto 6px;
}

.profile-photo-circle {
  border-radius: 50%;
  overflow: hidden;
  object-fit: cover;
  display: block;
}

.profile-photo-circle.profile-photo-small {
  width: 160px;
  height: 160px;
}

.profile-name {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: var(--navy-950);
  margin: 8px 0 6px;
  text-align: center;
}

.profile-card-content {
  padding: 12px 20px 18px;
  width: 100%;
}

.divider-list { border-top: 1px solid var(--line); }
.divider-list > * {
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.divider-list > *:last-child { border-bottom: none; }

/* ---------- Publications / list items ---------- */

.pub-item, .project-item {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.pub-item:first-child, .project-item:first-child { padding-top: 0; }
.pub-item:last-child, .project-item:last-child { border-bottom: none; }

.pub-item .meta {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--navy-950);
  color: var(--cream-50);
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 { color: var(--cream-50); }
.cta-band p { color: rgba(251,250,247,0.72); max-width: 560px; margin-left: auto; margin-right: auto; }

.cta-band .btn {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--navy-950) !important;
}
.cta-band .btn:hover { background: var(--cream-50); border-color: var(--cream-50); }

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

.site-footer {
  background: var(--navy-950);
  color: rgba(251,250,247,0.68);
  padding: 56px 0 28px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(251,250,247,0.14);
}

.site-footer h4 {
  color: var(--gold-300);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.site-footer a {
  color: rgba(251,250,247,0.72);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover { color: var(--gold-300); }

.site-footer p { color: rgba(251,250,247,0.6); font-size: 0.85rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.78rem;
  color: rgba(251,250,247,0.5);
}

/* ---------- Contact form ---------- */

form.contact-form {
  display: grid;
  gap: 18px;
  max-width: 560px;
}

form.contact-form label {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy-900);
  display: block;
  margin-bottom: 6px;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-50);
  color: var(--ink);
}

form.contact-form input:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold-600);
}

form.contact-form button { justify-self: start; cursor: pointer; }

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.detail-list li {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
}
.detail-list li:last-child { border-bottom: none; }
.detail-list strong { color: var(--navy-950); display: inline-block; min-width: 110px; }

/* ---------- Insights / blog placeholder ---------- */

.placeholder-panel {
  border: 1px dashed var(--gold-500);
  background: var(--cream-100);
  padding: 48px 32px;
  text-align: center;
  border-radius: var(--radius);
}

/* ---------- Utility ---------- */

.small-caps {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

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

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 10px 28px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  section { padding: 48px 0; }
}

@media (max-width: 400px) {
  .container { padding: 0 18px; }
  .nav-wrap { padding: 14px 18px; }
}
