/* =========================================================
   thesamueladekunle.com — shared stylesheet
   One file for every page: colours, type, header, footer,
   buttons, booking pop-up and shared components.
   ========================================================= */

:root {
  --ink: #13141d;
  --ink-soft: #1e2030;
  --paper: #eee9dd;
  --paper-soft: #e4ded0;
  --paper-card: #f5f1e8;
  --gold: #d3a24a;
  --gold-dim: #8a6a2f;
  --forest: #0B3D2E;
  --green: #008751;
  --text-light: #f3efe3;
  --text-dark: #1a1a22;
  --text-dim: #565766;
  --line-dark: #33344a;
  --line-light: #c7bfa8;
  --max: 1140px;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --header-h: 72px;

  --font-display: 'Unbounded', sans-serif;
  --font-heading: 'Archivo Black', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, video, svg, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { max-width: 68ch; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; color: var(--ink); overflow-wrap: anywhere; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 300; }
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Header (built once by js/site.js) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 233, 221, 0.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-light);
  min-height: var(--header-h);
}
.site-header .nav { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; font-weight: 600; list-style: none; }
.nav-links > li { position: relative; }
.nav-link { color: var(--text-dark); padding: 6px 0; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; }
.nav-link:hover { color: var(--gold-dim); }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 7px; }
.nav-link .caret { width: 10px; height: 10px; transition: transform .2s ease; }
.has-sub[data-open="true"] .caret { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 12px); left: -18px; min-width: 290px;
  background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius-md);
  box-shadow: 0 18px 40px -18px rgba(19,20,29,.35); padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s ease;
}
.has-sub[data-open="true"] .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { display: block; padding: 10px 12px; border-radius: 8px; font-weight: 600; color: var(--text-dark); line-height: 1.3; }
.subnav a small { display: block; font-weight: 500; font-size: .78rem; color: var(--text-dim); margin-top: 2px; }
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.nav-cta { border: 1px solid var(--ink); padding: 9px 18px; border-radius: var(--radius-sm); font-weight: 700; font-size: .88rem; color: var(--ink); white-space: nowrap; transition: background .2s ease, color .2s ease; }
.nav-cta:hover { background: var(--ink); color: var(--paper); }
.menu-btn { display: none; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--ink); border-radius: var(--radius-sm); padding: 8px 12px; font: 700 .85rem var(--font-body); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }
.noscript-nav { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 0; font-weight: 600; font-size: .9rem; }

@media (max-width: 920px) {
  /* backdrop-filter would trap the fixed menu panel inside the header, so use a solid bar on phones */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .menu-btn { display: inline-flex; }
  .nav-panel {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper);
    overflow-y: auto; padding: 20px 20px 40px; display: none; border-top: 1px solid var(--line-light);
  }
  .site-header[data-menu="open"] .nav-panel { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; font-size: 1.05rem; }
  .nav-links > li { border-bottom: 1px solid var(--line-light); }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 2px; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 12px; display: none; min-width: 0; }
  .has-sub[data-open="true"] .subnav { display: block; }
  .subnav a { padding: 10px 12px; background: var(--paper-card); margin-bottom: 6px; }
  .nav-links > li.cta-item { border-bottom: 0; padding-top: 18px; }
  .nav-cta { display: block; text-align: center; padding: 14px; font-size: 1rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- Footer (built once by js/site.js) ---------- */
.site-footer { background: var(--ink); color: #b8b5c4; padding: 56px 0 28px; font-size: .9rem; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: var(--text-light); font-size: 1.05rem; }
.site-footer p { color: #b8b5c4; margin-top: 10px; font-size: .9rem; }
.foot-title { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 600; }
.foot-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-list a { color: #d9d5c9; }
.foot-list a:hover { color: var(--gold); }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; font-family: var(--font-body); border: 1px solid transparent; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: #dfb93e; }
.btn-outline { border-color: var(--gold); color: var(--text-light); background: transparent; }
.btn-outline:hover { background: rgba(211, 162, 74, 0.15); }
.btn-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ink:hover { background: var(--ink); color: var(--paper); }

/* ---------- Shared bits ---------- */
.tag, .eyebrow { font-family: var(--font-mono); font-size: .76rem; color: var(--gold-dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.lede { color: var(--text-dim); font-size: 1.05rem; max-width: 70ch; }
.back-nav { font-family: var(--font-mono); font-size: .84rem; font-weight: 600; color: var(--gold-dim); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.back-nav:hover { color: var(--ink); }
.card { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 28px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: 1px solid var(--line-light); padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--text-dark); }
.logo-badge { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 14px; background: #fff; border: 1px solid var(--line-light); display: grid; place-items: center; overflow: hidden; }
.logo-badge img { width: 82%; height: 82%; object-fit: contain; }

/* Booking pop-up (one for the whole site) */
dialog.cal-dialog { margin: auto; inset: 0; max-height: 90vh; border: 0; border-radius: 18px; padding: 0; width: min(560px, 94vw); height: min(740px, 90vh); overflow: hidden; background: var(--paper-card); color: var(--text-dark); }
dialog.cal-dialog::backdrop { background: rgba(19, 20, 29, .72); }
dialog.cal-dialog[open] { display: flex; flex-direction: column; }
.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-light); background: var(--paper); }
.cal-bar strong { font-family: var(--font-display); font-size: .95rem; }
.cal-bar .cal-actions { display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; }
.cal-bar a:hover { color: var(--gold-dim); }
.cal-close { background: none; border: 1px solid var(--line-light); border-radius: 8px; width: 34px; height: 34px; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
dialog.cal-dialog iframe { flex: 1; border: 0; width: 100%; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Service & case-study page components (shared) ---------- */
.page-hero { padding: 60px 0 44px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin: 10px 0 16px; max-width: 22ch; }
.page-hero .lede { font-size: 1.1rem; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.block { padding: 56px 0; }
.block-head { max-width: 760px; margin-bottom: 28px; }
.block-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-top: 8px; }
.block-head p { color: var(--text-dim); margin-top: 10px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.svc { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 24px; }
.svc h3 { font-size: 1.05rem; margin-bottom: 12px; }
.svc ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.svc li { display: flex; gap: 10px; font-size: .94rem; line-height: 1.5; }
.svc li::before { content: "→"; color: var(--gold-dim); font-weight: 700; font-family: var(--font-mono); }
.proof-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.proof-card { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.proof-card .top { display: flex; gap: 14px; align-items: center; }
.proof-card h3 { font-size: 1.02rem; line-height: 1.3; }
.proof-card .meta { font-family: var(--font-mono); font-size: .72rem; color: var(--gold-dim); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.proof-card p { font-size: .92rem; color: var(--text-dim); }
.proof-card .result { font-family: var(--font-display); color: var(--ink); font-size: .95rem; }
.proof-card a.go { margin-top: auto; font-weight: 700; font-size: .88rem; color: var(--ink); border-bottom: 1px solid var(--gold); align-self: flex-start; padding-bottom: 2px; }
.proof-card a.go:hover { color: var(--gold-dim); }
.mini-steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; counter-reset: s; }
.mini-steps li { counter-increment: s; background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius-md); padding: 20px; font-size: .92rem; color: var(--text-dim); }
.mini-steps li::before { content: "0" counter(s); display: block; font-family: var(--font-heading); color: var(--gold-dim); margin-bottom: 6px; }
.mini-steps b { color: var(--ink); display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: .95rem; }
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq details { background: var(--paper-card); border: 1px solid var(--line-light); border-radius: var(--radius-sm); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--gold-dim); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--text-dim); font-size: .95rem; }
.cta-band { background: var(--ink); color: var(--text-light); padding: 72px 0; }
.cta-band h2 { color: var(--text-light); font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 24ch; }
.cta-band p { color: #d3cfc4; margin-top: 12px; max-width: 60ch; }
.cta-band .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cta-band .tag { color: var(--gold); }
.shot { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-light); background: var(--paper-soft); aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.label-concept { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: #6b4e16; background: #f3e3bf; border-radius: 999px; padding: 3px 10px; }
@media (max-width: 760px) { .page-hero { padding: 40px 0 28px; } .block { padding: 40px 0; } .cta-band { padding: 56px 0; } }
