/* =========================================================
   Moringa Studios — core stylesheet
   Edit the variables below to change colour/type sitewide.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #131110;
  --bg-alt: #1C1917;
  --bg-alt-2: #211D1A;
  --text: #F3EFE8;
  --text-muted: #A79E90;
  --line: rgba(243,239,232,0.13);
  --red: #D8232A;
  --red-dark: #A5181D;
  --red-tint: rgba(216,35,42,0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1160px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }

h1,h2,h3{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1{ font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
h2{ font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3{ font-size: 1.2rem; }
p{ margin: 0 0 1.1em; }
.lede{ font-size: 1.15rem; color: var(--text-muted); max-width: 46ch; }

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
section{ padding: 88px 0; }
@media (max-width: 720px){ section{ padding: 56px 0; } .wrap{ padding: 0 20px; } }

.rule{ height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary{ background: var(--red); color: #fff; }
.btn-primary:hover{ background: var(--red-dark); }
.btn-ghost{ border-color: rgba(243,239,232,0.35); color: var(--text); background: transparent; }
.btn-ghost:hover{ border-color: var(--text); }
.btn-row{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- header / nav ---------- */
header.site{
  position: sticky; top: 0; z-index: 40;
  background: rgba(19,17,16,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  max-width: var(--wrap); margin: 0 auto;
}
.brand{ display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img{ height: 52px; width: auto; }
@media (max-width: 720px){ .brand img{ height: 42px; } }
.nav-links{ display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a{
  text-decoration: none; color: var(--text-muted); font-size: 0.94rem;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color: var(--text); border-color: var(--red); }
.nav-cta{ display: flex; align-items: center; gap: 22px; }
.nav-toggle{ display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px){
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; padding: 0 32px;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .nav-links.open{ max-height: 400px; padding: 18px 32px 24px; }
  .nav-links li{ width: 100%; }
  .nav-links a{ display: block; padding: 10px 0; }
  .nav-toggle{ display: block; }
  .nav-cta .btn{ display: none; }
}

/* ---------- hero ---------- */
.hero{ padding: 96px 0 80px; }
.hero .wrap{ display: grid; gap: 40px; }
.hero h1{ max-width: 16ch; }
.hero .lede{ max-width: 52ch; margin-bottom: 28px; }

.hero-split{ display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
@media (max-width: 900px){ .hero-split{ grid-template-columns: 1fr; } }
.hero-frame{
  border: 1px solid var(--line);
  padding: 10px;
  background: var(--bg-alt);
}
.hero-frame img{ width: 100%; height: 460px; object-fit: cover; object-position: center 20%; }
@media (max-width: 900px){ .hero-frame img{ height: 320px; } }
.hero-frame .caption{ padding: 12px 4px 2px; font-size: 0.82rem; color: var(--text-muted); }

/* ---------- selected work ---------- */
.work-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 860px){ .work-grid{ grid-template-columns: 1fr; } }
.work-card{ background: var(--bg-alt); border: 1px solid var(--line); }
.work-card .poster{ width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.work-card .poster-placeholder{
  width: 100%; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt-2); color: var(--text-muted); font-size: 0.9rem; text-align: center; padding: 20px;
}
.work-card .body{ padding: 22px 24px 26px; }
.work-card h3{ margin-bottom: 4px; }
.work-card .role{ color: var(--red); font-size: 0.85rem; margin-bottom: 10px; }
.work-card p{ color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0; }
.badge{
  display: inline-block; font-size: 0.75rem; color: var(--text-muted);
  border: 1px solid var(--line); padding: 3px 10px; border-radius: 3px; margin-bottom: 10px;
}

.sprockets{
  display: flex; gap: 10px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sprockets span{ width: 10px; height: 6px; background: var(--line); flex: none; }
@media (max-width: 720px){ .sprockets span:nth-child(n+18){ display:none; } }

/* ---------- grids / cards ---------- */
.grid{ display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px){ .grid-3, .grid-2{ grid-template-columns: 1fr; } }

.tile{ background: var(--bg); padding: 34px; }
.tile h3{ margin-bottom: 10px; }
.tile p{ color: var(--text-muted); margin-bottom: 14px; font-size: 0.96rem; }
.tile a.more{ font-size: 0.9rem; color: var(--red); text-decoration: none; border-bottom: 1px solid transparent; }
.tile a.more:hover{ border-color: var(--red); }

/* ---------- callout / feature band ---------- */
.callout{
  background: var(--bg-alt);
  border-left: 3px solid var(--red);
  padding: 44px 48px;
  margin-top: 40px;
}
.callout h2{ margin-bottom: 14px; }
@media (max-width: 720px){ .callout{ padding: 30px 24px; } }

.split{ display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; gap: 32px; } }

/* ---------- service sections (services.html) ---------- */
.service-block{ padding: 56px 0; border-top: 1px solid var(--line); }
.service-block:first-of-type{ border-top: 0; }
.service-block .num{ color: var(--text-muted); font-family: var(--font-body); font-size: 0.85rem; }
.service-block h2{ margin-top: 6px; }
.service-block .body{ max-width: 62ch; color: var(--text-muted); }
.service-block .body strong{ color: var(--text); font-weight: 500; }

/* ---------- team ---------- */
.team-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 860px){ .team-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card img{ width: 100%; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; }
.team-card .role{ color: var(--red); font-size: 0.85rem; margin-bottom: 4px; }
.team-card .bio{ color: var(--text-muted); font-size: 0.9rem; }

/* ---------- advisor feature ---------- */
.advisor-card{
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start;
  background: var(--bg-alt); border: 1px solid var(--line); padding: 32px; margin-top: 40px;
}
@media (max-width: 720px){ .advisor-card{ grid-template-columns: 1fr; } }
.advisor-card img{ width: 100%; aspect-ratio: 1; object-fit: cover; }
.advisor-card .role{ color: var(--red); font-size: 0.88rem; margin-bottom: 10px; }
.advisor-card p{ color: var(--text-muted); }
.bio-page p{ max-width: 68ch; color: var(--text-muted); }
.bio-page p strong{ color: var(--text); font-weight: 500; }

/* ---------- forms ---------- */
form.contact-form{ display: grid; gap: 18px; max-width: 560px; }
.field{ display: grid; gap: 6px; }
.field label{ font-size: 0.88rem; color: var(--text-muted); }
.field input, .field select, .field textarea{
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.98rem;
}
.field textarea{ resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus{ outline: 2px solid var(--red); outline-offset: 1px; }
.form-note{ font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.contact-meta{ display: grid; gap: 22px; }
.contact-meta h3{ margin-bottom: 6px; }
.contact-meta p{ color: var(--text-muted); }
.contact-meta a{ color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-meta a:hover{ border-color: var(--red); }

/* ---------- footer ---------- */
footer.site{ border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 40px; }
.footer-grid{ display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 720px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-grid h4{ font-size: 0.85rem; color: var(--text-muted); font-weight: 500; margin: 0 0 14px; }
.footer-grid ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a{ text-decoration: none; color: var(--text); font-size: 0.92rem; }
.footer-grid a:hover{ color: var(--red); }
.footer-bottom{
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--text-muted); font-size: 0.85rem; flex-wrap: wrap; gap: 10px;
}

/* ---------- page header (non-home pages) ---------- */
.page-head{ padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head .lede{ margin-top: 12px; }

/* ---------- utility ---------- */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
