/* Keira Henderson: design tokens and styles.
   Visual source of truth: original/index.html (inline-styled approved design). */

:root {
  --accent: #F26B1D;
  --accent-hover: #E35F12;
  --accent-text: #A63C06;   /* small orange text, for contrast */
  --bg: #FBF7F2;
  --bg-alt: #F4ECE2;
  --border: #E7DED3;
  --border-strong: #DCD0C2;
  --ink: #1C1917;
  --ink-soft: #44403C;      /* body grey */
  --muted: #57534E;
  --on-dark: #D6D3D1;
  --white: #FFFFFF;

  --font-heading: 'Bricolage Grotesque', Georgia, serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', sans-serif;

  --max-width: 1240px;
  --gutter: 32px;
}

/* Base */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
picture { display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { max-width: var(--max-width); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 112px; padding-bottom: 112px; }
.section--stack { display: flex; flex-direction: column; gap: 56px; }
.text-accent { color: var(--accent); }

.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow--accent-text { color: var(--accent-text); }
.eyebrow--accent { color: var(--accent); }
.eyebrow--muted { color: var(--muted); }

.section-title {
  margin: 0;
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em;
}
.section-title--balanced { max-width: 14em; text-wrap: balance; }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { text-decoration: none; font-weight: 600; padding: 16px 28px; border-radius: 999px; }
.btn--accent, .btn--accent:hover { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark, .btn--dark:hover { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--ink-soft); }
.btn--outline { border: 1.5px solid var(--ink); padding: 14.5px 26px; }
.btn--outline:hover { background: var(--ink); color: var(--bg); }

/* Nav */
.site-header { border-bottom: 1px solid var(--border); }
.nav {
  padding-top: 20px; padding-bottom: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.brand, .brand:hover { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 17px; color: var(--ink);
}
.brand-name { font-family: var(--font-heading); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.nav-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.nav-links { display: contents; }
.nav-links a { text-decoration: none; }
.nav-cta { font-weight: inherit; padding: 12px 20px; }
.nav-menu-cta, .nav-toggle { display: none; }

.nav-toggle {
  width: 44px; height: 44px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu (only when JS is available; without it the links wrap as in the original) */
@media (max-width: 767px) {
  .js .site-header { position: relative; }
  .js .nav { flex-wrap: nowrap; }
  .js .nav-actions { flex-wrap: nowrap; gap: 8px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    flex-direction: column;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(28, 25, 23, 0.08);
    font-size: 17px;
  }
  .js .nav-links.is-open { display: flex; }
  .js .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 519px) {
  .js .nav-cta { display: none; }
  .js .nav-links .nav-menu-cta {
    display: block; margin-top: 16px; padding: 14px 20px; border-bottom: 0;
    text-align: center; font-weight: 600;
    background: var(--ink); color: var(--bg); border-radius: 999px;
  }
  .js .nav-links .nav-menu-cta:hover { background: var(--ink-soft); color: var(--bg); }
}

/* Hero */
.hero {
  padding-top: 96px; padding-bottom: 88px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero-title {
  margin: 0;
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.hero-intro { margin: 0; font-size: 20px; line-height: 1.55; max-width: 34em; color: var(--ink-soft); text-wrap: pretty; }

.questions-card {
  background: var(--accent); border-radius: 28px; padding: 44px 40px;
  display: flex; flex-direction: column; gap: 22px; color: var(--ink);
}
.questions-list { display: flex; flex-direction: column; gap: 0; }
.questions-list p {
  margin: 0; padding: 18px 0; border-top: 1.5px solid rgba(28, 25, 23, 0.35);
  font-family: var(--font-heading); font-size: 25px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em;
}
.questions-list p:last-child { border-bottom: 1.5px solid rgba(28, 25, 23, 0.35); }

/* Clients */
.clients { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.clients-inner { padding-top: 48px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 45%), 1fr));
  gap: 1px; background: var(--border-strong); border: 1px solid var(--border-strong);
}
.logo-cell {
  background: var(--white); min-height: 132px;
  display: flex; align-items: center; justify-content: center; padding: 20px 24px;
}
.logo-cell--stack { flex-direction: column; gap: 8px; }
.logo { width: auto; max-width: 80%; object-fit: contain; }
.logo--wide { max-width: 85%; }
.logo--pg { height: 76px; }
.logo--diageo { height: 32px; }
.logo--qvc { height: 48px; }
.logo--kantar { height: 30px; }
.logo--ons { height: 40px; }
.logo--dfid { height: 52px; }
.logo--abo { height: 56px; }
.logo--nubian { height: 76px; }
.logo-note { font-size: 13px; font-weight: 500; color: var(--muted); }

/* Services */
.services-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.services-intro { margin: 0; max-width: 26em; color: var(--ink-soft); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 36px 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.card-num { font-family: var(--font-heading); font-weight: 800; font-size: 48px; line-height: 1; color: var(--accent); }
.card-title { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -0.015em; }
.card-text { margin: 0; color: var(--ink-soft); }
.card-list {
  margin: 0; padding: 20px 0 0; border-top: 1px solid var(--border); list-style: none;
  display: flex; flex-direction: column; gap: 8px; font-size: 15px;
}

/* Selected work */
.work { background: var(--ink); color: var(--bg); }
.case-list { display: flex; flex-direction: column; }
.case {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px 48px;
  padding: 36px 0; border-top: 1px solid var(--ink-soft);
}
.case:last-child { border-bottom: 1px solid var(--ink-soft); }
.case-title { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
.case-text { margin: 0; color: var(--on-dark); }

/* Approach */
.approach-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.approach-intro { margin: 0; font-size: 19px; color: var(--ink-soft); }
.steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 32px;
}
.step { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 3px solid var(--accent); }
.step-label { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.step-title { margin: 0; font-family: var(--font-heading); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.step-text { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* About */
.about { background: var(--bg-alt); border-top: 1px solid var(--border); }
.about-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 64px; align-items: center; }
.about-photo {
  display: block; aspect-ratio: 4 / 5; max-width: 480px; width: 100%; height: auto;
  border-radius: 28px; background: var(--border); object-fit: cover;
}
.about-text { display: flex; flex-direction: column; gap: 22px; }
.about-title {
  margin: 0;
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.03em;
}
.about-copy { margin: 0; color: var(--ink-soft); text-wrap: pretty; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 20px;
  padding-top: 22px; border-top: 1px solid var(--border-strong); font-size: 15px;
}
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact strong { font-weight: 600; }
.fact span { color: var(--ink-soft); }

/* Contact */
.contact { background: var(--accent); color: var(--ink); }
.contact-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 48px; align-items: end; }
.contact-title {
  margin: 0;
  font-family: var(--font-heading); font-weight: 800;
  font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance;
}
.contact-body { display: flex; flex-direction: column; gap: 24px; }
.contact-text { margin: 0; font-size: 20px; line-height: 1.5; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 14px; }
.footer-inner { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; }
}
