/* ============================================================
   EREBUS CONSULTING LTD
   Site stylesheet. Colours and type follow Brand Reference V0.2.

   HOW TO EDIT COLOURS: change the hex values in :root below.
   Every colour on the site comes from these, so one change
   updates the whole site.

   HOW TO ADD PHOTOS: see README-how-to-update.txt, section 3.
   ============================================================ */

:root {
  /* Brand palette */
  --accent-orange: #C46A1E;
  --light-orange:  #E89A3E;
  --deep-rust:     #B85C2A;
  --dark-rust:     #9E3E1D;
  --deep-orange:   #924E16;
  --mid-teal:      #1B6B7A;
  --deep-teal:     #003C46;
  --near-black:    #0E0E0E;
  --dark-grey:     #3B3B3B;
  --off-white:     #FAF3E8;
  --warm-cream:    #F2E6D0;

  /* Derived tints */
  --rule:      rgba(184, 92, 42, 0.28);
  --rule-soft: rgba(184, 92, 42, 0.16);

  /* Type */
  --font-body: Aptos, "Segoe UI", Arial, Helvetica, sans-serif;
  --font-head: Tenorite, "Aptos Display", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --wrap: 1240px;
  --gutter: 32px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--near-black);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--deep-teal); }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-teal);
  color: var(--off-white);
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  color: var(--deep-orange);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  font-weight: 700;
  color: var(--deep-orange);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-grey);
  line-height: 1.25;
}

h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-orange);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.5;
  color: var(--dark-grey);
}

/* Eyebrow label above section headings */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-rust);
  margin: 0 0 1rem;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--near-black);
}
.brand img { height: 46px; width: auto; }

@media (max-width: 640px) {
  .brand img { height: 36px; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--deep-rust);
  color: var(--deep-orange);
  font: inherit;
  font-size: 0.9rem;
  padding: 9px 15px;
  cursor: pointer;
  border-radius: 2px;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--dark-grey);
  font-size: 0.96rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--deep-orange); border-bottom-color: var(--accent-orange); }
.site-nav a.current { color: var(--deep-orange); border-bottom-color: var(--accent-orange); }

.site-nav .nav-cta {
  background: var(--accent-orange);
  color: var(--off-white);
  padding: 10px 20px;
  border-bottom: none;
  border-radius: 2px;
}
.site-nav .nav-cta:hover { background: var(--dark-rust); color: var(--off-white); border-bottom-color: transparent; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--off-white);
    border-bottom: 3px solid var(--accent-orange);
    box-shadow: 0 14px 26px rgba(0,0,0,0.09);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 22px; }
  .site-nav li { border-top: 1px solid var(--rule-soft); }
  .site-nav a { display: block; padding: 15px 0; border-bottom: none; }
  .site-nav .nav-cta { text-align: center; margin-top: 16px; }
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 7.5vw, 104px) 0; }

section.tint { background: var(--warm-cream); }

section.dark {
  background: var(--deep-teal);
  color: var(--off-white);
}
section.dark h2, section.dark h3 { color: var(--off-white); }
section.dark .eyebrow { color: var(--light-orange); }
section.dark .lede { color: rgba(250, 243, 232, 0.88); }
section.dark a { color: var(--light-orange); }

.section-head { margin-bottom: 3rem; }
.section-head h2 { max-width: 22ch; }

/* Heading on the left, supporting text beside it. Uses the
   full page width rather than a narrow single column. */
.section-head-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
.section-head-split h2 { margin-bottom: 0; max-width: 20ch; }
.section-head-split .lede { max-width: 48ch; }

@media (max-width: 860px) {
  .section-head-split { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .section-head-split h2 { max-width: 24ch; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--deep-teal);
  color: var(--off-white);
  overflow: hidden;
}

/* IMAGE SLOT. Set a photo with an inline style on .hero-media:
   style="background-image:url('img/your-photo.jpg')"
   Without a photo it falls back to the SVG graphic behind. */
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Two-layer overlay. The first darkens the left side where the
   text sits; the second lifts the whole image toward the brand
   teal so photos of any colour temperature sit on-brand. */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 42, 50, 0.86) 0%,
    rgba(0, 48, 56, 0.70) 40%,
    rgba(0, 55, 64, 0.34) 74%,
    rgba(0, 60, 70, 0.16) 100%
  );
  z-index: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--deep-teal);
  mix-blend-mode: color;
  opacity: 0.10;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(76px, 12vw, 168px) 0 clamp(64px, 9vw, 128px);
}

.hero h1 {
  color: var(--off-white);
  max-width: 20ch;
}

.hero .eyebrow { color: var(--light-orange); }

.hero-rule {
  width: 104px;
  height: 4px;
  background: var(--accent-orange);
  margin: 2rem 0;
}

/* Wide lede. Reads as a statement of position, not a caption. */
.hero .lede {
  color: rgba(250, 243, 232, 0.92);
  max-width: 70ch;
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.6rem;
}

.hero-compact .hero-inner {
  padding: clamp(60px, 8vw, 112px) 0 clamp(52px, 7vw, 92px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 28px;
  border-radius: 2px;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary { background: var(--accent-orange); color: var(--off-white); }
.btn-primary:hover { background: var(--dark-rust); color: var(--off-white); }

.btn-secondary {
  background: transparent;
  color: var(--deep-orange);
  border-color: var(--deep-rust);
}
.btn-secondary:hover { background: var(--warm-cream); }

.hero .btn-primary:hover,
section.dark .btn-primary:hover { background: var(--light-orange); color: var(--deep-teal); }

.hero .btn-secondary,
section.dark .btn-secondary { color: var(--off-white); border-color: rgba(250,243,232,0.55); }
.hero .btn-secondary:hover,
section.dark .btn-secondary:hover { background: rgba(250,243,232,0.12); color: var(--off-white); }

/* ---------- Band: full-width image strip between sections ---------- */
/* IMAGE SLOT. Same method as the hero: set an inline
   background-image on .band-media. */
.band {
  position: relative;
  min-height: clamp(240px, 32vw, 400px);
  display: flex;
  align-items: center;
  background: var(--deep-teal);
  overflow: hidden;
}

.band-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.band-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,42,50,0.86) 0%, rgba(0,48,56,0.56) 50%, rgba(0,55,64,0.22) 100%);
  z-index: 1;
}

.band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--deep-teal);
  mix-blend-mode: color;
  opacity: 0.10;
}

.band-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 0;
  color: var(--off-white);
}

.band-inner .wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.band-inner p {
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 2.7vw, 2.1rem);
  line-height: 1.25;
  font-weight: 700;
  max-width: 26ch;
  margin: 0;
}
.band-inner .eyebrow { color: var(--light-orange); }

/* ---------- Card grid ---------- */
/* Cards sit flush with hairline gaps rather than floating
   boxes. Reads sharper and more engineered. */
.grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

.card {
  background: var(--off-white);
  padding: 34px 30px;
}

section.tint .grid { background: rgba(184, 92, 42, 0.22); border-color: rgba(184, 92, 42, 0.22); }
section.tint .card { background: var(--off-white); }

section.dark .grid { background: rgba(250,243,232,0.18); border-color: rgba(250,243,232,0.18); }
section.dark .card { background: var(--deep-teal); }
section.dark .card h3 { color: var(--off-white); }
section.dark .card p { color: rgba(250,243,232,0.8); }
section.dark .card ul { color: rgba(250,243,232,0.8); }

.card h3 { margin-bottom: 0.6rem; color: var(--deep-orange); }
.card h4 { margin-bottom: 0.8rem; }

/* Small label above a card heading. Visual only, so it is a span
   rather than a heading level - keeps the document outline clean. */
.card-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 0.8rem;
}
.card p { font-size: 0.99rem; color: var(--dark-grey); }

.card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--dark-grey);
}
.card li { margin-bottom: 0.4rem; }

.card-num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-orange);
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}
section.dark .card-num { border-bottom-color: rgba(250,243,232,0.25); }

/* ---------- Signature: the decision panel ---------- */
.decision {
  border: 1px solid var(--rule);
  margin-bottom: 20px;
  background: var(--off-white);
}
.decision:last-child { margin-bottom: 0; }

.decision-quote {
  background: var(--warm-cream);
  border-left: 5px solid var(--accent-orange);
  padding: 24px 28px;
}

section.tint .decision-quote { background: #EADCC0; }

.decision-quote p {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  font-weight: 700;
  color: var(--dark-rust);
  margin: 0;
  line-height: 1.3;
}

.decision-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.decision-col { padding: 28px; }

.decision-col + .decision-col {
  border-left: 1px solid var(--rule);
}

.decision-col h3 {
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep-rust);
  margin-bottom: 1.1rem;
}

.decision-col ul {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.98rem;
}
.decision-col li { margin-bottom: 0.6rem; }
.decision-col li:last-child { margin-bottom: 0; }

.decision-services {
  padding: 18px 28px;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--dark-grey);
  background: rgba(242, 230, 208, 0.45);
}
.decision-services strong { color: var(--deep-rust); }

@media (max-width: 760px) {
  .decision-body { grid-template-columns: 1fr; }
  .decision-col + .decision-col {
    border-left: none;
    border-top: 1px solid var(--rule);
  }
}

/* ---------- Stage row ---------- */
.stages {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  background: rgba(250, 243, 232, 0.2);
  border: 1px solid rgba(250, 243, 232, 0.2);
}

.stage {
  background: var(--deep-teal);
  padding: 28px 24px;
}

.stage-num {
  display: block;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--light-orange);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.stage h3 {
  font-size: 1rem;
  color: var(--off-white);
  margin-bottom: 1rem;
}

.stage ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: rgba(250, 243, 232, 0.78);
}
.stage li { margin-bottom: 0.5rem; padding-left: 15px; position: relative; }
.stage li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--accent-orange);
}

/* ---------- Figure / inline graphic ---------- */
.figure {
  border: 1px solid var(--rule);
  background: var(--off-white);
  padding: 30px;
  margin: 0;
}
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.86rem;
  color: var(--dark-grey);
}

section.dark .figure { background: rgba(250,243,232,0.05); border-color: rgba(250,243,232,0.2); }
section.dark .figure figcaption { color: rgba(250,243,232,0.75); border-top-color: rgba(250,243,232,0.2); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Capability tag list ---------- */
.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.creds li {
  border: 1px solid var(--deep-rust);
  color: var(--deep-rust);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 15px;
  border-radius: 2px;
}

section.dark .creds li { border-color: rgba(250,243,232,0.45); color: rgba(250,243,232,0.9); }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--off-white);
  padding: 32px 30px;
}
section.tint .quote { background: var(--off-white); }

.quote blockquote {
  margin: 0 0 1.4rem;
  color: var(--near-black);
  font-size: 1.02rem;
  line-height: 1.55;
  position: relative;
  padding-top: 1.3rem;
}
.quote blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 3px;
  background: var(--mid-teal);
}

.quote cite {
  font-style: normal;
  font-size: 0.86rem;
  color: var(--deep-rust);
  line-height: 1.45;
  display: block;
}
.quote cite strong { display: block; color: var(--dark-grey); }

/* ---------- Contact ---------- */
.contact-lines {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  font-size: 1.08rem;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  background: rgba(250,243,232,0.2);
  border: 1px solid rgba(250,243,232,0.2);
}
.contact-lines li { background: var(--deep-teal); padding: 26px 24px; }
.contact-lines strong {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--light-orange);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.contact-lines a { color: var(--off-white); text-decoration: none; border-bottom: 1px solid var(--accent-orange); }
.contact-lines a:hover { color: var(--light-orange); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-teal);
  color: rgba(250, 243, 232, 0.8);
  padding: 64px 0 32px;
  font-size: 0.92rem;
  border-top: 4px solid var(--accent-orange);
}

.footer-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-bottom: 40px;
}

.site-footer img { height: 96px; width: auto; margin-bottom: 22px; }

@media (max-width: 640px) {
  .site-footer img { height: 76px; }
}

.site-footer h4 {
  color: var(--light-orange);
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(250, 243, 232, 0.8); text-decoration: none; }
.site-footer a:hover { color: var(--light-orange); text-decoration: underline; }

.footer-legal {
  border-top: 1px solid rgba(250, 243, 232, 0.2);
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(250, 243, 232, 0.6);
}

.footer-tagline {
  font-style: italic;
  color: var(--light-orange);
  margin-bottom: 0.6rem;
}
