/* ==========================================================================
   BMD Learning Ltd — Brand stylesheet
   Behaviour · Mindset · Development
   ========================================================================== */

:root {
  /* Brand palette */
  --ink:        #122742;  /* Deep navy — primary, headings */
  --ink-2:      #1B3553;
  --teal:       #1FA199;  /* Growth teal — primary accent */
  --teal-dark:  #15788F;
  --teal-light: #3FBFB0;
  --amber:      #F4B860;  /* Warm highlight */
  --amber-dark: #E0A23F;

  /* Neutrals */
  --bg:         #F7F9FB;
  --surface:    #FFFFFF;
  --surface-2:  #EEF3F6;
  --line:       #E1E8EE;
  --text:       #233140;
  --muted:      #5A6B7B;
  --muted-2:    #8295A4;

  /* System */
  --radius:     16px;
  --radius-sm:  10px;
  --shadow-sm:  0 1px 3px rgba(18,39,66,.06), 0 1px 2px rgba(18,39,66,.04);
  --shadow:     0 10px 30px -12px rgba(18,39,66,.18);
  --shadow-lg:  0 30px 60px -25px rgba(18,39,66,.30);
  --maxw:       1160px;
  --ease:       cubic-bezier(.16,.84,.44,1);

  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Reset & base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }

/* Layout helpers --------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tight { padding: clamp(48px, 6vw, 72px) 0; }
.section--alt { background: var(--surface); }
.section--ink { background: var(--ink); color: #D8E2EC; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--teal-light); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); }
.section--ink .lead { color: #B9C8D6; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px -8px rgba(31,161,153,.6); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; box-shadow: 0 12px 26px -8px rgba(31,161,153,.7); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); background: #EAF6F4; }
.btn--outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Header / nav ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,249,251,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); background: rgba(255,255,255,.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { height: 42px; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .97rem;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav__links a:hover, .nav__links a.active { background: var(--surface-2); color: var(--teal-dark); }
.nav__cta { margin-left: 10px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  width: 44px; height: 44px;
}
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s var(--ease); margin: 5px auto; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 130px) 0 clamp(64px, 8vw, 110px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 82% -8%, rgba(31,161,153,.16), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(244,184,96,.12), transparent 55%);
}
.hero .container { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--teal); }
.hero__sub { font-size: 1.22rem; color: var(--muted); max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero__meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--font-head); font-size: 1.55rem; color: var(--ink); }
.hero__meta span { font-size: .9rem; color: var(--muted); }

/* Hero visual card */
.hero__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__card h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.bmd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bmd-list li { display: flex; gap: 14px; align-items: flex-start; }
.bmd-badge {
  flex: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem;
}
.bmd-badge.b { background: var(--teal); }
.bmd-badge.m { background: var(--teal-dark); }
.bmd-badge.d { background: var(--amber-dark); }
.bmd-list strong { font-family: var(--font-head); color: var(--ink); display: block; font-size: 1.02rem; }
.bmd-list small { color: var(--muted); font-size: .92rem; }

/* Cards / grids ---------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D2DEE7; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(31,161,153,.14), rgba(31,161,153,.05));
  color: var(--teal-dark);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 14px; font-size: .98rem; }
.card ul { margin: 0; padding-left: 0; list-style: none; }
.card ul li { position: relative; padding-left: 24px; margin-bottom: 7px; color: var(--text); font-size: .96rem; }
.card ul li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal-light);
}
.card__tag { font-family: var(--font-head); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); }

/* Approach steps --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 18px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  color: var(--teal); display: block; margin-bottom: 10px;
}
.step::after {
  content: ""; position: absolute; top: 7px; left: 0; width: 38px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Difference / values ---------------------------------------------------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__dot { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; color: var(--teal-dark); }
.section--ink .feature__dot { background: rgba(255,255,255,.08); color: var(--teal-light); }
.feature h3 { font-size: 1.1rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }
.section--ink .feature p { color: #A9BACA; }

/* Pillars (purpose/mission/vision) -------------------------------------- */
.pillar { border-left: 3px solid var(--teal); padding: 4px 0 4px 22px; }
.pillar h3 { font-size: 1.18rem; margin-bottom: 6px; }
.pillar p { color: var(--muted); margin: 0; }

/* Sectors / tags --------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--ink);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }

/* CTA band --------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--ink), var(--ink-2)); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 70px); text-align: center; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 85% 0%, rgba(31,161,153,.4), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 640px; margin: 0 auto 14px; }
.cta-band p { color: #BCD0DF; max-width: 540px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .hero__actions { justify-content: center; margin: 0; }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,161,153,.12);
}
.form__note { font-size: .88rem; color: var(--muted); }
.form-status { font-size: .96rem; padding: 12px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(31,161,153,.1); color: var(--teal-dark); border: 1px solid rgba(31,161,153,.3); }

/* Contact info cards */
.info-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.info-card .feature__dot { background: var(--surface-2); }
.info-card h4 { font-family: var(--font-head); margin: 0 0 2px; color: var(--ink); font-size: 1.02rem; }
.info-card p, .info-card a { margin: 0; color: var(--muted); }

/* Page hero (interior) --------------------------------------------------- */
.page-hero { padding: clamp(56px, 7vw, 92px) 0 clamp(40px,5vw,60px); position: relative; overflow: hidden; }
.page-hero::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(700px 360px at 88% -20%, rgba(31,161,153,.12), transparent 60%);
}
.page-hero .container { position: relative; z-index: 1; max-width: 820px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #B9C8D6; padding: 68px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand p { color: #93A6B7; font-size: .95rem; max-width: 300px; margin-top: 16px; }
.footer__logo { filter: brightness(0) invert(1); height: 40px; opacity: .96; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-head); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: #B9C8D6; font-size: .96rem; }
.footer ul a:hover { color: var(--teal-light); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #8295A4; }
.footer__bmd { display: inline-flex; gap: 6px; align-items: center; }
.footer__bmd b { color: var(--teal-light); }

/* HubSpot embedded form — match brand --------------------------------------
   HubSpot renders inline markup with .hs-form-* classes; these overrides make
   it match the site's native form styling. */
.hs-embed .hs-form fieldset { max-width: none !important; }
.hs-embed .hs-form-field { margin-bottom: 18px; }
.hs-embed .hs-form-field > label {
  display: block; margin-bottom: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink);
}
.hs-embed .hs-form-field > label .hs-form-required { color: var(--teal-dark); margin-left: 2px; }
.hs-embed .hs-field-desc { color: var(--muted); font-size: .85rem; margin: 0 0 7px; }

.hs-embed .hs-input {
  width: 100% !important; box-sizing: border-box;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .2s, box-shadow .2s;
}
.hs-embed textarea.hs-input { resize: vertical; min-height: 130px; }
.hs-embed .hs-input:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,161,153,.12);
}
.hs-embed select.hs-input { appearance: none; -webkit-appearance: none; background-image: none; }
.hs-embed ul.inputs-list { list-style: none; margin: 6px 0 0; padding: 0; }
.hs-embed ul.inputs-list label { font-family: var(--font-body); font-weight: 400; display: flex; gap: 8px; align-items: center; }
.hs-embed .hs-input[type="checkbox"], .hs-embed .hs-input[type="radio"] { width: auto !important; accent-color: var(--teal); }

.hs-embed .hs-button {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  background: var(--teal); color: #fff; box-shadow: 0 8px 20px -8px rgba(31,161,153,.6);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.hs-embed .hs-button:hover { transform: translateY(-2px); background: var(--teal-dark); box-shadow: 0 12px 26px -8px rgba(31,161,153,.7); }

.hs-embed .hs-error-msg, .hs-embed .hs-error-msgs label { color: #C0392B; font-size: .88rem; margin-top: 6px; }
.hs-embed .hs-form-field .input { margin-right: 0 !important; }
.hs-embed .submitted-message { background: rgba(31,161,153,.1); color: var(--teal-dark); border: 1px solid rgba(31,161,153,.3); padding: 16px; border-radius: var(--radius-sm); font-size: .96rem; }
.hs-embed .legal-consent-container { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.hs-embed .hs-richtext { color: var(--muted); font-size: .9rem; }

/* Reveal on scroll ------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .25s var(--ease);
  }
  .nav__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; }
  .nav__cta { margin: 6px 0 0; }
  .nav__toggle { display: block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
