/* ==========================================================================
   Blue Valley Shisa Nyama — sample site
   Palette taken from the logo: charcoal ink, white ground, flame red.
   ========================================================================== */

:root {
  /* Colour */
  --ink:        #17120f;
  --ink-soft:   #5b514a;
  --paper:      #fbf8f4;
  --white:      #ffffff;
  --sand:       #f1e9de;
  --line:       #e5dcd1;
  --accent:     #c4161c;
  --accent-dk:  #9c1116;
  --ember:      #f45b4a; /* accent tuned for dark backgrounds */

  /* Type */
  --font-display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: Georgia, "Iowan Old Style", "Times New Roman", Times, serif;

  --fs-xs: 14px;
  --fs-s:  16px;
  --fs-m:  18px;
  --fs-l:  20px;
  --fs-xl: 28px;
  --fs-2xl: 40px;
  --fs-3xl: 64px;

  /* Space */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 40px;
  --s-6: 64px;
  --s-7: 96px;

  --radius: 3px;
  --gutter: 24px;
  --maxw: 1200px;

  /* Height of the sample banner + sticky header, deducted from the full-screen
     hero so the first screen ends where the viewport does. */
  --chrome: 150px;
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-m);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent); }

a:hover { color: var(--accent-dk); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: var(--s-3);
  top: -100px;
  z-index: 60;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: var(--fs-s);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
}

.skip-link:focus { top: var(--s-2); color: var(--white); }

/* ------------------------------------------------------------- layout --- */

.wrap {
  width: min(var(--maxw), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.wrap--narrow { max-width: 680px; }

.measure { max-width: 62ch; }

.section { padding-block: var(--s-6); }

/* keeps in-page anchors clear of the sticky header */
[id] { scroll-margin-top: var(--s-7); }

.section--tall { padding-block: var(--s-7); }

.section--sand { background: var(--sand); }

.section--white { background: var(--white); }

.stack > * + * { margin-top: var(--s-4); }

.stack-tight > * + * { margin-top: var(--s-3); }

/* ------------------------------------------------------------ banner ---- */

.sample-banner {
  background: var(--ink);
  color: #f6efe7;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  line-height: 1.45;
  padding: var(--s-2) var(--gutter);
  text-align: center;
  border-bottom: 3px solid var(--accent);
}

/* ------------------------------------------------------------ header ---- */

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

.site-header.is-stuck { box-shadow: 0 1px 12px rgba(23, 18, 15, 0.09); }

.header-inner {
  display: flex;
  flex-wrap: wrap; /* keeps the no-JS nav readable on narrow screens */
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-4);
  min-height: 76px;
  padding-block: var(--s-2);
}

.brand { display: inline-flex; align-items: center; }

.brand img { height: 48px; width: auto; }

.nav-toggle { display: none; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-s);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  padding-block: var(--s-2);
  transition: color 150ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
}

.site-nav a:hover { color: var(--accent); }

.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a[aria-current="page"] { color: var(--accent); }

.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ------------------------------------------------------------ buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-s);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 14px var(--s-4);
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.btn--primary { background: var(--accent); color: var(--white); }

.btn--primary:hover { background: var(--accent-dk); color: var(--white); }

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover { background: var(--ink); color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* --------------------------------------------------------------- type --- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 3px;
  background: var(--accent);
  flex: none;
}

.h-hero {
  font-size: clamp(40px, 7vw, var(--fs-3xl));
}

.h-section {
  font-size: clamp(28px, 4.2vw, var(--fs-2xl));
}

.h-sub {
  font-size: var(--fs-l);
  letter-spacing: -0.01em;
}

.lead {
  font-size: var(--fs-l);
  line-height: 1.55;
}

.small {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  line-height: 1.5;
}

.muted { color: var(--ink-soft); }

/* --------------------------------------------------------------- hero --- */

/* Full-height photo hero: the picture carries the whole first screen, so there
   is no empty ground left over above the fold. --chrome is roughly the height
   of the sample banner plus the header, which sit above it. */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - var(--chrome));
  min-height: calc(100svh - var(--chrome)); /* avoids the mobile URL-bar jump */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #100d0b;
  color: #f6efe7;
  padding-block: var(--s-7) var(--s-6);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(16, 13, 11, 0.94) 10%, rgba(16, 13, 11, 0.4) 58%, rgba(16, 13, 11, 0.26) 100%),
    linear-gradient(to right, rgba(16, 13, 11, 0.82) 0%, rgba(16, 13, 11, 0.3) 62%, rgba(16, 13, 11, 0.08) 100%);
}

.hero .h-hero { margin-bottom: var(--s-4); color: var(--white); }

.hero .lead { max-width: 56ch; color: #ece2d8; }

.hero .btn-row { margin-top: var(--s-5); }

.hero .eyebrow { color: #e0d5ca; }

.hero .eyebrow::before { background: var(--ember); }

.hero .muted { color: #c9bdb2; }

.hero .btn--ghost { border-color: rgba(246, 239, 231, 0.6); color: #f6efe7; }

.hero .btn--ghost:hover { background: #f6efe7; color: var(--ink); border-color: #f6efe7; }

.hero :focus-visible { outline-color: var(--ember); }

.hero-aside {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(246, 239, 231, 0.3);
  max-width: 46ch;
}

.hero-aside .h-sub { color: var(--white); }

.hero-aside .h-sub + .small { margin-top: var(--s-3); }

.hero-scroll {
  display: none;
  position: absolute;
  right: max(var(--gutter), (100% - var(--maxw)) / 2);
  bottom: var(--s-5);
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e0d5ca;
  transition: color 150ms ease;
}

.hero-scroll:hover { color: var(--white); }

.hero-scroll-arrow {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 150ms ease;
}

.hero-scroll:hover .hero-scroll-arrow { transform: translateY(2px) rotate(45deg); }

.page-head {
  background: var(--white);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
}

.page-head .lead { max-width: 56ch; margin-top: var(--s-4); }

/* -------------------------------------------------------------- media --- */

.band {
  background: var(--ink);
}

.band img {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  height: clamp(240px, 38vw, 480px);
  object-fit: cover;
}

.band--short img { height: clamp(200px, 26vw, 340px); }

.media-note {
  padding: var(--s-2) 0 0;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------- splits --- */

.split {
  display: grid;
  gap: var(--s-5);
  align-items: start;
}

.split--offset { grid-template-columns: 1fr; }

/* heading that sits above a split, so the media column starts lower */
.split-head { margin-bottom: var(--s-5); }

/* wide enough for the heading to sit on a single line on desktop */
.split-head .h-section { max-width: 40ch; }

.split-media img {
  width: 100%;
  height: clamp(240px, 34vw, 380px);
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------------------------------------------------------- fact list --- */

.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  gap: var(--s-1);
  padding-block: var(--s-3);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.facts dd {
  margin: 0;
  font-size: var(--fs-m);
}

.facts a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* --------------------------------------------------------- numbered ----- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-top: 1px solid var(--line);
}

.steps > li::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.steps h3 { font-size: var(--fs-l); margin-bottom: var(--s-2); }

/* ------------------------------------------------------------- notice --- */

.notice {
  border-left: 3px solid var(--accent);
  background: var(--white);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.notice h2 { font-size: var(--fs-l); margin-bottom: var(--s-2); }

/* ------------------------------------------------------------ dark CTA -- */

.cta {
  background: var(--ink);
  color: #f6efe7;
  padding-block: var(--s-6);
}

.cta .h-section { color: var(--white); }

.cta a:not(.btn) { color: var(--ember); }

.cta a:not(.btn):hover { color: var(--white); }

.cta :focus-visible { outline-color: var(--ember); }

.cta-inner {
  display: grid;
  gap: var(--s-5);
  align-items: end;
}

.cta-contact {
  font-family: var(--font-display);
  font-size: var(--fs-l);
  line-height: 1.5;
}

.cta-contact a { text-underline-offset: 4px; }

/* ------------------------------------------------------------- footer --- */

.site-footer {
  /* a shade deeper than the CTA band above it, so the two read as separate */
  background: #100d0b;
  color: #cdc3ba;
  border-top: 1px solid rgba(246, 239, 231, 0.14);
  padding-block: var(--s-6) var(--s-5);
  font-family: var(--font-display);
  font-size: var(--fs-s);
}

.site-footer a { color: #f6efe7; text-underline-offset: 3px; }

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

.site-footer :focus-visible { outline-color: var(--ember); }

.footer-grid {
  display: grid;
  gap: var(--s-5);
}

.footer-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f857d;
  margin-bottom: var(--s-3);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

.footer-wordmark {
  font-size: var(--fs-l);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--s-3);
}

.footer-bottom {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(246, 239, 231, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #8f857d;
}

/* ------------------------------------------------------- 700px and up --- */

@media (min-width: 700px) {
  :root { --gutter: 40px; --chrome: 126px; }

  .split--half { grid-template-columns: 1fr 1fr; gap: var(--s-6); }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s-6); }

  .cta-inner { grid-template-columns: 1.3fr 1fr; gap: var(--s-6); }

  .steps > li { grid-template-columns: 96px 1fr; }
}

/* ------------------------------------------------------- 960px and up --- */

@media (min-width: 960px) {
  :root { --gutter: 48px; --chrome: 122px; }

  .hero { padding-block: var(--s-7) var(--s-7); }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: var(--s-7);
    align-items: end;
  }

  .hero-aside {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    border-left: 1px solid rgba(246, 239, 231, 0.3);
    padding-left: var(--s-5);
  }

  .hero-scroll { display: inline-flex; }

  .split--offset { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); }

  .split--offset.is-flipped .split-media { order: -1; }

  .split--wide-media { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s-6); }

  .section--tall { padding-block: var(--s-7); }
}

/* --------------------------------------------- small phones (<=420px) --- */

@media (max-width: 420px) {
  :root { --gutter: 20px; }

  body { font-size: 17px; }

  .brand img { height: 40px; }
}

/* ------------------------------------------------- collapsible nav ------ */

@media (max-width: 859px) {
  [data-js="on"] .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-display);
    font-size: var(--fs-s);
    font-weight: 700;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px var(--s-3);
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease;
  }

  [data-js="on"] .nav-toggle:hover { border-color: var(--ink); color: var(--accent); }

  [data-js="on"] .nav-toggle .bars {
    display: block;
    position: relative;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  [data-js="on"] .nav-toggle .bars::before,
  [data-js="on"] .nav-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
  }

  [data-js="on"] .nav-toggle .bars::before { top: -6px; }
  [data-js="on"] .nav-toggle .bars::after { top: 6px; }

  [data-js="on"] .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(23, 18, 15, 0.1);
    padding: var(--s-2) var(--gutter) var(--s-4);
  }

  [data-js="on"] .site-nav[data-open="true"] { display: block; }

  [data-js="on"] .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  [data-js="on"] .site-nav li + li { border-top: 1px solid var(--line); }

  [data-js="on"] .site-nav a {
    display: block;
    font-size: var(--fs-l);
    padding-block: var(--s-3);
  }

  [data-js="on"] .site-nav a::after { display: none; }

  .header-inner { position: relative; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

/* ------------------------------------------------------ reduced motion -- */

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