/* =========================================================
   Bsmart Consultancy: one-page site. Tokens, base, header, hero, strip, who we help.
   Loaded in order: base.css, sections.css, responsive.css
   Edit colours and fonts in :root; everything else uses them.
   ========================================================= */

:root {
  /* colour: light surfaces */
  --bg: #FBF8F3;
  --bg-alt: #F3EDE3;
  --tint: #E4ECEA;
  --white: #FFFFFF;
  --line: #E3DCCE;
  --line-strong: #CFC6B3;

  /* colour: text */
  --ink: #16202B;
  --ink-soft: #3A4651;
  --muted: #4A5560;

  /* colour: brand */
  --teal: #123C4A;
  --teal-dark: #0C2B36;
  --teal-ink: #0B2731;
  --teal-line: #2C5260;
  --accent: #A63E29;
  --accent-dark: #8F3322;
  --accent-ink: #7E2C1B;

  /* colour: on dark surfaces (rust fails contrast on teal, so use these) */
  --peach: #F2B8A6;
  --apricot: #E8957A;
  --pale: #C9D8DE;
  --on-dark: #E4ECEF;

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* layout */
  --max: 1200px;
  --gutter: 32px;
  --header-h: 76px;
  --radius: 16px;

  /* depth: layered, low-alpha so it works on cream and sand alike */
  --shadow-card: 0 1px 2px rgb(22 32 43 / .04), 0 4px 12px -4px rgb(22 32 43 / .06), 0 18px 36px -24px rgb(18 60 74 / .22);
  --shadow-lift: 0 1px 2px rgb(22 32 43 / .05), 0 10px 20px -8px rgb(22 32 43 / .10), 0 28px 48px -28px rgb(18 60 74 / .32);

  /* motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --press: scale(.97);
}

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

html { scroll-padding-top: calc(var(--header-h) + 16px); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--peach); color: var(--teal-ink); }

/* faint paper grain so the cream reads as stock, not a flat fill */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

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

em { font-style: italic; font-variation-settings: "SOFT" 100; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* the skip link focuses <main> (tabindex="-1"); don't ring the whole page */
main:focus, main:focus-visible { outline: none; }
.section--dark :focus-visible,
.contact :focus-visible,
.site-footer :focus-visible,
.strip :focus-visible,
.signs :focus-visible { outline-color: var(--apricot); }
.cta-band :focus-visible,
.mobile-cta:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 6px var(--teal); }

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 60;
  background: var(--teal);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 8px;
}
.skip:focus { left: 16px; color: var(--white); }

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: 112px; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--teal); color: var(--on-dark); }

/* placeholders: easy to spot, easy to search for "[" */
.ph {
  outline: 1px dashed currentColor;
  outline-offset: 2px;
  border-radius: 3px;
  padding: 0 4px;
}

/* ---------- typography helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 600 13px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow--light { color: var(--peach); }
.eyebrow--muted { color: var(--muted); }

.h2 {
  font: 400 clamp(34px, 4.6vw, 54px) / 1.08 var(--serif);
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.02em;
  color: var(--teal);
  text-wrap: balance;
}
.h2 em { color: var(--accent); }
.h2--light { color: var(--white); }
.h2--light em { color: var(--peach); }
.h2--xl { font-size: clamp(44px, 7vw, 88px); line-height: 1; }

.h3 { font: 500 28px/1.2 var(--serif); color: var(--teal); }
.h3--light { color: var(--white); }

.lead { font-size: 20px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }

.head { display: flex; flex-direction: column; gap: 16px; max-width: 780px; }

.stack { display: flex; flex-direction: column; gap: 24px; }
.stack--lg { gap: 56px; }
.stack--md { gap: 36px; }
.stack--sm { gap: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.btn__arrow { transition: transform .25s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 24px -14px rgb(166 62 41 / .8); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); }
.btn--ghost {
  padding: 0 6px;
  border-radius: 0;
  color: var(--teal);
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 2px no-repeat;
}
.btn--ghost:hover { color: var(--accent); }
.btn--white { background: var(--white); color: var(--accent-ink); }
.btn--apricot { border: 0; background: var(--apricot); color: var(--teal-ink); font: inherit; font-weight: 600; cursor: pointer; }
.btn--apricot:hover { background: var(--peach); }
.btn--white:hover { background: var(--bg-alt); color: var(--accent-ink); }
.actions { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgb(251 248 243 / .82);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgb(18 60 74 / .35);
}
/* without blur (older browsers) the bar stays near-opaque so text behind it can't show through */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgb(251 248 243 / .96); }
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header.is-scrolled {
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding-block: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--teal);
  text-decoration: none;
}
.brand__mark { flex: none; align-self: flex-start; width: 44px; height: 44px; }
.brand__name {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font: 600 26px/1 var(--serif);
  letter-spacing: -0.01em;
}
.brand__name small {
  font: 600 10.5px/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.brand__tagline { margin-top: 1px; font: italic 400 12.5px/1 var(--serif); letter-spacing: 0; color: var(--accent-ink); white-space: nowrap; }
.brand--light { color: var(--white); --mark-tile: var(--bg); --mark-head: var(--teal); }
.brand--light:hover { color: var(--white); }
.brand--light .brand__name small { color: var(--pale); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; font-weight: 500; }
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav a:hover { color: var(--accent); }
.nav a:hover::after,
.nav a[aria-current="location"]::after { transform: scaleX(1); }
.nav a[aria-current="location"] { color: var(--teal); }
.nav .nav__cta {
  background: var(--teal);
  color: var(--white);
  padding: 0 22px;
  border-radius: 999px;
  transition: background-color .2s;
}
.nav .nav__cta:hover { background: var(--teal-dark); color: var(--white); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding-block: 48px 96px; }
.hero__grid {
  display: grid;
  gap: 56px;
  align-items: center;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 {
  font: 400 clamp(36px, 5.8vw, 70px) / 1.04 var(--serif);
  font-variation-settings: "SOFT" 50;
  letter-spacing: -0.03em;
  color: var(--teal);
  text-wrap: balance;
}
.hero h1 em { color: var(--accent); }
.hero__copy .lead { max-width: 580px; }


.signs {
  position: relative;
  background: var(--teal);
  color: var(--white);
  border-radius: 24px;
  padding: 40px 40px 32px;
  box-shadow: 0 40px 60px -40px rgb(12 43 54 / .6);
  overflow: hidden;
}
.signs::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -110px;
  top: -110px;
  border-radius: 50%;
  border: 1px solid var(--teal-line);
  box-shadow: 0 0 0 40px rgb(255 255 255 / .02), 0 0 0 80px rgb(255 255 255 / .015);
}
.signs h2 { margin-bottom: 12px; }
.signs ol { counter-reset: sign; position: relative; }
.signs li {
  counter-increment: sign;
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 15px 0;
  border-top: 1px solid var(--teal-line);
  font: 400 21px/1.3 var(--serif);
}
.signs li a {
  flex: 1;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(var(--peach), var(--peach)) left bottom / 0 1px no-repeat;
  transition: background-size .35s var(--ease-out), color .2s;
}
.signs li a:hover { color: var(--peach); background-size: 100% 1px; }
.signs li::before {
  content: counter(sign, decimal-leading-zero);
  content: counter(sign, decimal-leading-zero) / "";
  flex: none;
  font: 500 14px/1 var(--sans);
  letter-spacing: .06em;
  color: var(--peach);
}
.signs__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  color: var(--peach);
  font-weight: 600;
  text-decoration: none;
}
.signs__link:hover { color: var(--white); }

/* ---------- credential strip ---------- */
.strip { background: var(--teal-ink); color: var(--white); }
.strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 20px 32px;
  padding-block: 30px;
  font-size: 15px;
}
.strip__grid > div { border-left: 1px solid var(--teal-line); padding-left: 18px; }
.strip strong { display: block; font-size: 16px; }
.strip span { color: var(--pale); }
.strip .ph { color: inherit; }

/* ---------- who we help ---------- */
.who { padding-block: 104px; }
.who__grid {
  display: grid;
  gap: 40px 64px;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}
.who__head { display: flex; flex-direction: column; gap: 18px; }
.who__intro { font: 400 30px/1.2 var(--serif); color: var(--teal); text-wrap: balance; }
.who__items { display: grid; gap: 36px 40px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.item { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); padding-top: 18px; }
.who__items .item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.item h3 { font: 500 23px/1.25 var(--serif); color: var(--teal); }
.item p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); }
.item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.item__link span { transition: transform .25s var(--ease-out); }
.item__link:hover { color: var(--accent-dark); }
.item__link:hover span { transform: translateX(4px); }
