/* ==========================================================================
   Ferrero Forward Consulting Ltd.
   Palette and type derived from the FF monogram: navy authority, sage accent,
   and a repeating chevron motif taken from the logo's forward arrow.
   ========================================================================== */

:root {
  --navy: #0B2440;
  --navy-deep: #071A30;
  --navy-soft: #16375C;
  --sage: #7C9186;
  --sage-light: #A3B4AB;
  --paper: #F4F6F5;
  --white: #FFFFFF;
  --ink: #2B2B2B;
  --ink-soft: #55605C;
  --rule: #DDE3E1;

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Source Sans 3', system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: 1.5rem;
  --radius: 3px;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sage); }

:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* Type ------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); }
p { margin: 0 0 1.1rem; }
strong { color: var(--navy); font-weight: 600; }

.eyebrow {
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 1.4rem; height: 2px;
  background: var(--sage);
  flex: none;
}
.on-navy .eyebrow { color: var(--sage-light); }
.on-navy .eyebrow::before { background: var(--sage-light); }

.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); }

/* Layout ----------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-paper { background: var(--paper); }
.on-navy { background: var(--navy); color: #E7ECEA; }
.on-navy h1, .on-navy h2, .on-navy h3 { color: #fff; }
.on-navy strong { color: #fff; }
.on-navy a { color: var(--sage-light); }

/* Chevron motif — the signature device, echoing the logo's forward arrow -- */
.chev-rule {
  height: 10px;
  width: 100%;
  background-image:
    linear-gradient(135deg, var(--sage) 25%, transparent 25%),
    linear-gradient(225deg, var(--sage) 25%, transparent 25%);
  background-size: 14px 14px;
  background-repeat: repeat-x;
  opacity: .5;
}

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(180%) blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem var(--gutter);
  max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 42px; height: 42px; }
.brand-text { font-family: var(--display); line-height: 1.05; }
.brand-name {
  display: block; font-weight: 800; font-size: .95rem;
  letter-spacing: .01em; color: var(--navy); text-transform: uppercase;
}
.brand-sub {
  display: block; font-size: .62rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--sage); font-weight: 600;
}

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: .5rem .75rem; font-family: var(--display); font-weight: 600;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  letter-spacing: .07em; text-transform: uppercase; text-decoration: none;
  color: var(--navy); display: block; padding: .85rem 0;
  border-bottom: 1px solid var(--rule);
}
.site-nav a[aria-current="page"] { color: var(--sage); }

@media (max-width: 899px) {
  .site-nav {
    display: none; border-top: 1px solid var(--rule);
    padding: .25rem var(--gutter) 1.25rem;
  }
  .site-nav.open { display: block; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; gap: 1.6rem; align-items: center; }
  .site-nav a { padding: .25rem 0; border-bottom: 2px solid transparent; }
  .site-nav a:hover { border-bottom-color: var(--sage); color: var(--navy); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--sage); }
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  text-align: left;
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 600; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: .9rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--navy);
  background: var(--navy); color: #fff; transition: background .18s, color .18s, border-color .18s;
}
.btn::after { content: "›"; font-size: 1.2em; line-height: 0; transform: translateY(-1px); }
.btn:hover { background: var(--sage); border-color: var(--sage); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.on-navy .btn, .hero .btn, .page-head .btn, .cta-band .btn {
  background: var(--sage); border-color: var(--sage); color: #fff;
}
.on-navy .btn:hover, .hero .btn:hover, .page-head .btn:hover, .cta-band .btn:hover {
  background: #fff; border-color: #fff; color: var(--navy);
}
.on-navy .btn-ghost, .hero .btn-ghost, .page-head .btn-ghost, .cta-band .btn-ghost {
  background: transparent; border-color: rgba(255,255,255,.55); color: #fff;
}
.on-navy .btn-ghost:hover, .hero .btn-ghost:hover, .page-head .btn-ghost:hover, .cta-band .btn-ghost:hover {
  background: #fff; color: var(--navy); border-color: #fff;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Hero ------------------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: #E7ECEA;
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(124,145,134,.10) 25%, transparent 25%),
    linear-gradient(225deg, rgba(124,145,134,.10) 25%, transparent 25%);
  background-size: 64px 64px;
  opacity: .5;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.35fr .65fr; gap: 3.5rem; }
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal; color: var(--sage-light);
  display: block;
}
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #C9D4D0; max-width: 46ch; }
.hero-mark { justify-self: center; max-width: 190px; margin-top: .5rem; }
@media (min-width: 900px) { .hero-mark { max-width: 260px; margin-top: 0; } }
.hero-mark img { filter: brightness(0) invert(1); opacity: .95; }

/* Statement band --------------------------------------------------------- */
.statement { background: var(--paper); border-top: 3px solid var(--sage); }
.statement-inner { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 820px) {
  .statement-inner { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 3rem; }
}
.statement h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.03em; margin: 0;
}
.statement h2 span { color: var(--sage); display: block; }

/* Cards / grids ---------------------------------------------------------- */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; display: flex; flex-direction: column;
  border-top: 3px solid var(--sage);
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,36,64,.09); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1rem; }
.card .card-link {
  margin-top: auto; font-family: var(--display); font-weight: 600;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--navy);
}
.card .card-link::after { content: " ›"; }
.card a.stretch::after {
  content: ""; position: absolute; inset: 0;
}
.card { position: relative; }

/* Service group ---------------------------------------------------------- */
.svc-group { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.svc-group-head { border-bottom: 2px solid var(--navy); padding-bottom: .6rem; margin-bottom: 1.5rem; }
.svc-group-head h2 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.svc-group-head p { margin: .5rem 0 0; color: var(--ink-soft); font-size: .98rem; }

/* Bio -------------------------------------------------------------------- */
.bio { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 760px) { .bio { grid-template-columns: 260px 1fr; gap: 2.5rem; } }
.bio-photo { border-radius: var(--radius); overflow: hidden; border-bottom: 4px solid var(--sage); }
.bio-photo.placeholder {
  aspect-ratio: 4/5; background: var(--navy);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.bio-photo.placeholder span {
  font-family: var(--display); font-weight: 800; font-size: 3.5rem;
  color: rgba(255,255,255,.22); letter-spacing: .05em;
}
.bio-role {
  font-family: var(--display); font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--sage);
  margin-bottom: .35rem;
}

/* Prose (service + content pages) ---------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 {
  margin-top: 2.6rem; padding-left: 1rem;
  border-left: 4px solid var(--sage);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.3rem; }
.prose ul li {
  position: relative; padding-left: 1.5rem; margin-bottom: .55rem;
}
.prose ul li::before {
  content: "›";
  position: absolute; left: .25rem; top: -.05rem;
  color: var(--sage); font-weight: 700; font-size: 1.15rem;
}
.prose ol { padding-left: 1.25rem; margin: 0 0 1.3rem; }
.prose ol li { margin-bottom: .55rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .96rem; }
.prose th { background: var(--navy); color: #fff; text-align: left; padding: .7rem .9rem; font-family: var(--display); }
.prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--rule); }
.prose tr:nth-child(even) td { background: var(--paper); }

.pull {
  background: var(--paper); border-left: 4px solid var(--sage);
  padding: 1.15rem 1.4rem; margin: 1.8rem 0;
  font-family: var(--display); font-weight: 600; font-size: 1.08rem;
  color: var(--navy); line-height: 1.4;
}

/* Page header ------------------------------------------------------------ */
.page-head { background: var(--navy); color: #E7ECEA; padding: clamp(2.5rem,6vw,4rem) 0 clamp(2rem,5vw,3rem); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(135deg, rgba(124,145,134,.09) 25%, transparent 25%),
    linear-gradient(225deg, rgba(124,145,134,.09) 25%, transparent 25%);
  background-size: 56px 56px; opacity: .5;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; margin-bottom: .4rem; }
.page-head .sub { color: var(--sage-light); font-size: 1.1rem; font-family: var(--display); font-weight: 500; }

.breadcrumb { font-size: .8rem; margin-bottom: 1.2rem; color: var(--sage-light); }
.breadcrumb a { color: var(--sage-light); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* CTA band --------------------------------------------------------------- */
.cta-band { background: var(--navy); color: #E7ECEA; text-align: left; }
.cta-band h2 { color: #fff; }
.cta-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 820px) { .cta-inner { grid-template-columns: 1.4fr .6fr; gap: 3rem; } }
.cta-contact { font-family: var(--display); font-size: 1.02rem; line-height: 1.9; }
.cta-contact a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--sage); }
.cta-contact a:hover { color: var(--sage-light); }

/* Contact form ----------------------------------------------------------- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
label { display: block; font-family: var(--display); font-weight: 600; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); margin-bottom: .35rem; }
input, textarea {
  width: 100%; font-family: var(--body); font-size: 1rem;
  padding: .75rem .85rem; border: 1px solid var(--rule); border-radius: var(--radius);
  background: #fff; color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--sage); outline: 3px solid rgba(124,145,134,.3); outline-offset: 0; }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .88rem; color: var(--ink-soft); }
button.btn { font: inherit; font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }

/* Contact detail block --------------------------------------------------- */
.contact-detail { background: var(--paper); border-top: 3px solid var(--sage); border-radius: var(--radius); padding: 1.6rem; }
.contact-detail dt { font-family: var(--display); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-top: 1rem; }
.contact-detail dt:first-child { margin-top: 0; }
.contact-detail dd { margin: .15rem 0 0; font-size: 1.05rem; }
.contact-detail dd a { text-decoration: none; border-bottom: 1px solid var(--sage); }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #9FB0AA; padding: 3rem 0 1.5rem; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #C2CFCA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 54px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: .9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13); margin-top: 2.5rem; padding-top: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .84rem; color: #7F918B;
}

/* Service page layout with optional side image ---------------------------
   The aside sits in the whitespace to the right of the prose. If the figure
   inside it stays commented out, the aside collapses and the page looks
   exactly as it does now. */
.svc-body { display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
@media (min-width: 1000px) {
  .svc-body { flex-direction: row; gap: 3.5rem; }
  .svc-body .prose { flex: 1 1 auto; min-width: 0; }
  .svc-aside { flex: 0 0 320px; position: sticky; top: 6rem; }
}
.svc-figure { margin: 0; }
.svc-figure img {
  width: 100%; border-radius: var(--radius);
  border-bottom: 4px solid var(--sage);
}
.svc-figure figcaption {
  font-family: var(--display); font-size: .8rem; line-height: 1.45;
  color: var(--ink-soft); margin-top: .7rem; padding-left: .9rem;
  border-left: 2px solid var(--sage);
}

/* Reveal ----------------------------------------------------------------
   Deliberately a no-op. Content is always visible; nothing on this site
   depends on JavaScript to be readable. */
.reveal { opacity: 1; }

/* Full-width page banner image ------------------------------------------ */
.page-banner { margin: 0 0 2.5rem; }
.page-banner img {
  width: 100%; border-radius: var(--radius);
  border-bottom: 4px solid var(--sage);
  aspect-ratio: 16 / 7; object-fit: cover;
}
.page-banner figcaption {
  font-family: var(--display); font-size: .82rem; line-height: 1.5;
  color: var(--ink-soft); margin-top: .8rem; padding-left: 1rem;
  border-left: 2px solid var(--sage); max-width: 70ch;
}
