/* ==========================================================================
   RBP Consultancy — main stylesheet
   Client palette:
     Dark Espresso  #241A16  -> strong sections, banners, footer, headings
     Ivory / Stone  #F3EFE8  -> alternating background sections
     Antique Brass  #A88950  -> used sparingly: buttons, icons, lines, details
     Warm Charcoal  #292725  -> body text
     Soft White     #FCFBF8  -> main background
   Font: General Sans (self-hosted in /fonts)
   ========================================================================== */

/* ---------- Font ---------- */
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("../fonts/GeneralSans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --espresso: #241A16;
  --espresso-2: #34271F;       /* slightly lighter espresso for hover and inner panels */
  --gold: #A88950;             /* antique brass */
  --gold-text: #7A6236;        /* deeper brass for small text on light backgrounds (readable contrast) */
  --gold-soft: rgba(168, 137, 80, 0.12);
  --charcoal: #292725;
  --white: #FCFBF8;            /* soft white */
  --soft: #F3EFE8;             /* ivory / stone */
  --muted: #6B635B;
  --line: #E5DED3;
  --line-dark: rgba(252, 251, 248, 0.14);

  --font: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 84px;
  --radius: 4px;
  --shadow: 0 24px 60px -30px rgba(36, 26, 22, 0.3);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.7; font-weight: 400;
  color: var(--charcoal); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.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; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--espresso); color: #FCFBF8; padding: 10px 18px; font-size: 14px; font-weight: 500; transition: top 0.2s var(--ease); }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; color: var(--espresso); letter-spacing: -0.025em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -0.015em; }
.accent { color: var(--gold); }
.lead { font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.65; color: #3A3431; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 20px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-text);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

.prose p + p { margin-top: 1.1em; }
.prose p { color: #3A3431; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--espresso); color: #FCFBF8; }
.section--dark h2, .section--dark h3 { color: #FCFBF8; }
.section--dark p { color: rgba(252, 251, 248, 0.78); }
.section--dark .eyebrow { color: var(--gold); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head p { margin-top: 18px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section__head--row > div { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border: 1.5px solid transparent; border-radius: var(--radius);
  font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: 0.01em; line-height: 1; white-space: nowrap;
  cursor: pointer; transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--primary { background: var(--espresso); color: #FCFBF8; }
.btn--primary:hover { background: var(--espresso-2); }
.btn--gold { background: var(--gold); color: var(--espresso); }
.btn--gold:hover { background: #B89B63; }
.btn--ghost { background: transparent; color: var(--espresso); border-color: rgba(36, 26, 22, 0.25); }
.btn--ghost:hover { border-color: var(--espresso); }
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--espresso); border-bottom: 1.5px solid var(--gold); padding-bottom: 4px; }
.link-arrow:hover { color: var(--gold-text); }
.section--dark .link-arrow { color: #FCFBF8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; height: var(--header-h); background: rgba(252, 251, 248, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(36, 26, 22, 0.25); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { flex: none; position: relative; z-index: 260; }
.brand img { height: 46px; width: auto; }

.nav ul { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.nav a { position: relative; display: block; padding: 8px 0; font-size: 14.5px; font-weight: 500; color: #453D37; white-space: nowrap; transition: color 0.2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--espresso); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav__cta { padding: 12px 20px; background: var(--espresso); color: #FCFBF8; border-radius: var(--radius); }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover, .nav .nav__cta[aria-current="page"] { background: var(--gold); color: var(--espresso); }

.nav-toggle { display: none; position: relative; z-index: 260; width: 46px; height: 46px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; padding: 0; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--espresso); transition: transform 0.3s var(--ease), background 0.2s; }
.nav-toggle__bars { top: 22px; }
.nav-toggle__bars::before { left: 0; right: 0; top: -7px; }
.nav-toggle__bars::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 250; height: 100vh; height: 100dvh; overflow-y: auto;
    background: #FFFFFF; display: flex; align-items: flex-start;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav a { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; padding: 16px 0; color: var(--espresso); }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--gold-text); }
  .nav li:last-child { border: 0; margin-top: 24px; }
  .nav .nav__cta { text-align: center; font-size: 17px; padding: 18px; color: #FCFBF8; }
  .nav .nav__cta[aria-current="page"] { color: var(--espresso); }
  body.nav-open { overflow: hidden; }
  /* The header blur would trap the fixed menu inside the header; switch it off while the menu is open */
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #FFFFFF; }
}

/* ---------- Home hero banner: text on the left half, one large photo on the right half ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #FCFBF8;
  display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--header-h));
  background: linear-gradient(160deg, #2F231D 0%, var(--espresso) 55%, #18110E 100%);
}
/* Vertical guide lines and a soft brass arc across the text half */
.hero__lines {
  position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 50%;
  display: flex; justify-content: space-around; pointer-events: none;
}
.hero__lines span { width: 1px; height: 100%; background: rgba(252, 251, 248, 0.05); }
.hero__lines span:nth-child(3) { background: linear-gradient(180deg, rgba(168, 137, 80, 0) 0%, rgba(168, 137, 80, 0.35) 50%, rgba(168, 137, 80, 0) 100%); }
.hero__arc {
  position: absolute; z-index: -1; left: -18vw; bottom: -30vw; width: 52vw; height: 52vw; border-radius: 50%;
  border: 1px solid rgba(168, 137, 80, 0.2); pointer-events: none;
}

.hero__content {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(48px, 6vh, 80px) clamp(36px, 5vw, 80px) clamp(48px, 6vh, 80px) max(var(--gutter), calc((100vw - var(--container)) / 2));
}
.hero__tagline {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 28px; padding: 9px 18px;
  background: rgba(252, 251, 248, 0.06); border: 1px solid rgba(252, 251, 248, 0.16); border-radius: 100px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #FCFBF8;
}
.hero__tagline i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.hero h1 { color: #FCFBF8; font-size: clamp(34px, 3.8vw, 58px); }
.hero h1 .line { display: block; white-space: nowrap; }
.hero__text { margin-top: 24px; max-width: 520px; color: rgba(252, 251, 248, 0.78); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__facts { margin-top: 48px; width: 100%; max-width: 540px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(252, 251, 248, 0.14); }
.hero__facts li { padding: 18px 14px 0 0; }
.hero__facts li + li { padding-left: 18px; border-left: 1px solid rgba(252, 251, 248, 0.1); }
.hero__facts strong { display: block; font-size: 15px; font-weight: 600; color: #FCFBF8; }
.hero__facts span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: rgba(252, 251, 248, 0.62); }

/* Right half: one large photo, full height, with a thin brass inner frame */
.hero__visual { position: relative; min-height: 520px; background: var(--espresso-2); }
.hero__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero__visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(36, 26, 22, 0.35) 0%, rgba(36, 26, 22, 0) 22%); }
.hero__visual::after { content: ""; position: absolute; inset: 28px; z-index: 1; border: 1px solid rgba(168, 137, 80, 0.75); pointer-events: none; }

.btn--ghost-light { background: transparent; color: #FCFBF8; border-color: rgba(252, 251, 248, 0.35); }
.btn--ghost-light:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Services panel overlapping the banner ---------- */
.hero-services { position: relative; z-index: 2; padding-top: clamp(40px, 5vw, 64px); }
.hero-services__card {
  background: #FCFBF8; border-radius: var(--radius); box-shadow: 0 30px 70px -40px rgba(36, 26, 22, 0.45);
  border-top: 3px solid var(--gold); padding: clamp(24px, 3vw, 36px);
}
.hero-services__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-services__head h2 { font-size: clamp(20px, 1.8vw, 24px); }
.hero-services__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.hero-services__item {
  height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 24px; background: #FCFBF8;
  position: relative; transition: background 0.25s var(--ease);
}
.hero-services__item::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold); transition: width 0.35s var(--ease); }
.hero-services__item:hover { background: var(--soft); }
.hero-services__item:hover::after { width: 100%; }
.hero-services__num { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold-text); }
.hero-services__name { font-size: 16.5px; font-weight: 400; line-height: 1.35; letter-spacing: -0.01em; color: var(--espresso); }
.hero-services__item--cta { background: var(--espresso); }
.hero-services__item--cta:hover { background: var(--espresso-2); }
.hero-services__item--cta .hero-services__num { color: var(--gold); font-size: 18px; }
.hero-services__item--cta .hero-services__name { color: #FCFBF8; }

/* ---------- Inner page hero: two-line title first, wide 2:1 image below ---------- */
.page-hero { position: relative; padding-top: clamp(48px, 6vw, 88px); background: #FCFBF8; }
.page-hero::before { /* navy band behind the lower half of the banner image */
  content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; height: clamp(120px, 16vw, 240px); background: var(--espresso);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__top { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: clamp(32px, 4vw, 52px); }
.page-hero h1 { font-size: clamp(34px, 4.4vw, 62px); }
.page-hero h1 .line { display: block; }
@media (min-width: 961px) { .page-hero h1 .line { white-space: nowrap; } }
.page-hero .lead { max-width: 460px; }
.page-hero__banner img { width: 100%; height: auto; border-radius: var(--radius); } /* 2:1 image shown whole */
.contact-hero::before { display: none; }
.page-hero--plain::before { display: none; }
.page-hero--plain { border-bottom: 1px solid var(--line); }
.contact-hero .contact-grid { grid-template-columns: 1fr 1fr; }
.contact-hero h1 { font-size: clamp(32px, 3.9vw, 54px); }

/* ---------- Generic split + media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
.split--reverse > :first-child { order: 2; }
.media img { width: 100%; height: auto; border-radius: var(--radius); } /* natural proportions, no cropping */
.media--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.media--frame { position: relative; isolation: isolate; }
.media--frame::after { content: ""; position: absolute; z-index: -1; inset: 18px -18px -18px 18px; border: 1.5px solid var(--gold); border-radius: var(--radius); }

/* ---------- RBP at a glance (who, what, where, how) ---------- */
.glance__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.glance__intro { position: sticky; top: 120px; }
.glance__intro .lead { margin-top: 22px; }
.glance__statement { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--espresso); }
.glance__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.glance-card {
  position: relative; overflow: hidden; padding: 30px 28px 32px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.glance-card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: width 0.4s var(--ease); }
.glance-card:hover { background: #FCFBF8; box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.glance-card:hover::after { width: 100%; }
.glance-card__icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 26px; background: #FCFBF8; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-text); }
.glance-card__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.glance-card__q { display: block; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.glance-card h3 { font-size: 20px; }
.glance-card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.glance-card--dark { background: var(--espresso); border-color: var(--espresso); }
.glance-card--dark:hover { background: var(--espresso-2); }
.glance-card--dark h3 { color: #FCFBF8; }
.glance-card--dark p { color: rgba(252, 251, 248, 0.75); }
.glance-card--dark .glance-card__q { color: var(--gold); }
.glance-card--dark .glance-card__icon { background: rgba(252, 251, 248, 0.06); border-color: var(--line-dark); color: var(--gold); }
.glance-card--dark .btn { margin-top: 22px; }

/* ---------- Service cards (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; background: #FCFBF8; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.card__img { overflow: hidden; }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__num { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold-text); margin-bottom: 10px; }
.card h3 { font-size: 19.5px; }
.card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--muted); flex: 1; }
.card__more { margin-top: 18px; font-size: 14.5px; font-weight: 500; color: var(--espresso); display: inline-flex; gap: 8px; align-items: center; }
.card:hover .card__more { color: var(--gold-text); }
.card--cta { background: var(--espresso); border-color: var(--espresso); justify-content: center; padding: 32px; }
.card--cta h3 { color: #FCFBF8; font-size: 24px; }
.card--cta p { color: rgba(252, 251, 248, 0.75); flex: 0; }
.card--cta .btn { margin-top: 24px; align-self: stretch; }

/* ---------- Industry tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); isolation: isolate; background: var(--espresso); }
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(36, 26, 22, 0.9) 0%, rgba(36, 26, 22, 0.08) 60%); }
.tile:hover img { transform: scale(1.05); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; }
.tile__title { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: #FCFBF8; line-height: 1.3; }
.tile__meta { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: rgba(252, 251, 248, 0.78); }
.tile__line { display: block; width: 32px; height: 2px; background: var(--gold); margin-top: 14px; transition: width 0.35s var(--ease); }
.tile:hover .tile__line { width: 64px; }

/* ---------- Statement ---------- */
.statement { text-align: center; }
.statement__line { font-size: clamp(34px, 5.4vw, 72px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; color: #FCFBF8; }
.statement__line span { color: var(--gold); }
.statement__rule { width: 2px; height: 48px; background: var(--gold); margin: 0 auto 30px; }
.section--dark .statement__line { color: #FCFBF8; }

/* ---------- Credibility ---------- */
.cred { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cred__list { margin-top: 32px; }
.cred__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cred__list li:first-child { border-top: 1px solid var(--line); }
.cred__icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-text); border-radius: 50%; font-weight: 600; font-size: 14px; }
.cred__list strong { display: block; color: var(--espresso); font-weight: 600; font-size: 17px; }
.cred__list span { display: block; margin-top: 4px; font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Detailed services (What We Do page) ---------- */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 6vw, 80px); scroll-margin-top: 90px; }
.service + .service { border-top: 1px solid var(--line); }
.service:nth-child(even) .service__media { order: 2; }
.service__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.service__num { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold-text); margin-bottom: 14px; }
.service h2 { font-size: clamp(26px, 2.8vw, 38px); }
.service p { margin-top: 18px; color: #3A3431; }
.checklist { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checklist li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; color: var(--charcoal); }
.checklist li::before { content: ""; position: absolute; left: 1px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

/* Text-only service blocks (What We Do page) */
.service--text { align-items: start; }
.service--text h2 { font-size: clamp(26px, 2.6vw, 36px); }
.service--text .checklist { margin-top: 8px; padding: 28px 30px; background: var(--soft); border-radius: var(--radius); border-left: 3px solid var(--gold); }
.service__note { margin-top: 8px; padding: 28px 30px; background: var(--soft); border-radius: var(--radius); border-left: 3px solid var(--gold); font-size: 18px; font-weight: 500; line-height: 1.5; color: var(--espresso); }

/* ---------- Tags ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.tags li { padding: 8px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--espresso); line-height: 1.3; }
.section--soft .tags li { background: #FCFBF8; }

/* ---------- Industries page sectors ---------- */
.sector { padding-block: clamp(48px, 6vw, 88px); }
.sector + .sector { border-top: 1px solid var(--line); }
.sector__index { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold-text); margin-bottom: 14px; }
/* Mosaics: every image shown at 3:2 (the photos' own shape) */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mosaic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.mosaic img:first-child { grid-column: 1 / -1; }
/* Two images: a large image with a smaller one overlapping its corner */
.mosaic--duo { display: block; position: relative; padding-bottom: 14%; }
.mosaic--duo img:first-child { width: 86%; }
.mosaic--duo img:last-child { position: absolute; right: 0; bottom: 0; width: 46%; border: 6px solid #FCFBF8; box-shadow: var(--shadow); }

/* ---------- Quote ---------- */
.quote { font-size: clamp(26px, 3.2vw, 42px); font-weight: 500; line-height: 1.25; letter-spacing: -0.025em; color: #FCFBF8; max-width: 24em; }
.section--dark .quote { color: #FCFBF8; }
.quote::before { content: ""; display: block; width: 48px; height: 2px; background: var(--gold); margin-bottom: 28px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { padding: 30px 26px; background: #FCFBF8; border: 1px solid var(--line); border-radius: var(--radius); }
.section--dark .step { background: var(--espresso-2); border-color: var(--line-dark); }
.step__num { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.1em; color: var(--gold-text); margin-bottom: 36px; }
.section--dark .step__num { color: var(--gold); }
.step__title { display: block; font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--espresso); }
.section--dark .step__title { color: #FCFBF8; }
.step p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Principles (Our Approach) ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principle { padding: 34px 30px; background: #FCFBF8; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.principle p { margin-top: 12px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
/* Grid items default to a min-width of their unwrapped text width, which can force these
   sections wider than a narrow viewport; min-width: 0 lets paragraphs wrap normally instead. */
.hero__grid > *, .split > *, .cred > *, .contact-grid > *, .page-hero__top > *,
.glance__grid > *, .service > *, .cta-band > * { min-width: 0; }
.form-card { background: #FCFBF8; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--espresso); }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--charcoal);
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: #FCFBF8; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 137, 80, 0.2); }
.form-status { margin-top: 16px; font-size: 15px; color: var(--espresso); min-height: 1.5em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--espresso); border-radius: var(--radius); padding: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -220px; width: 460px; height: 460px; border-radius: 50%; border: 1px solid rgba(168, 137, 80, 0.18); pointer-events: none; }
.cta-band h2 { color: #FCFBF8; }
.cta-band p { margin-top: 16px; color: rgba(252, 251, 248, 0.78); max-width: 560px; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.cta-band__steps li { font-size: 15px; color: rgba(252, 251, 248, 0.78); line-height: 1.5; padding: 7px 0 7px 22px; position: relative; }
.cta-band__steps li::before { content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 2px; background: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: rgba(252, 251, 248, 0.72); padding-top: clamp(56px, 7vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(32px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 64px); }
.footer__logo img { width: min(300px, 100%); height: auto; }
.footer__about { margin-top: 22px; max-width: 360px; font-size: 15px; line-height: 1.7; }
.footer__title { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer__links li + li { margin-top: 10px; }
.footer__links a { font-size: 15px; color: rgba(252, 251, 248, 0.78); transition: color 0.2s; }
.footer__links a:hover { color: var(--gold); }
.footer__bar { border-top: 1px solid var(--line-dark); padding-block: 22px; font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: rgba(252, 251, 248, 0.55); }
.footer__address { margin-top: 16px; font-style: normal; font-size: 13px; line-height: 1.6; color: rgba(252, 251, 248, 0.5); }

/* ---------- Sticky WhatsApp button (present on every page) ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 190;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; box-shadow: 0 10px 28px -6px rgba(36, 26, 22, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.whatsapp-fab svg { width: 30px; height: 30px; fill: #FCFBF8; }
.whatsapp-fab:hover { background: #20BD5A; transform: translateY(-2px); box-shadow: 0 14px 32px -6px rgba(36, 26, 22, 0.6); }
.whatsapp-fab:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Scroll reveal (only when JS is available) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .hero h1 { font-size: clamp(34px, 6.2vw, 60px); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__lines { width: 100%; }
  .hero__content { padding: clamp(48px, 7vw, 72px) var(--gutter) 56px; }
  .hero__visual { min-height: 0; aspect-ratio: 3 / 2; }
}
@media (max-width: 1100px) {
  .hero-services__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .contact-hero .contact-grid,
  .split, .cred, .contact-grid, .page-hero__top, .glance__grid, .service, .cta-band { grid-template-columns: 1fr; }
  .glance__intro { position: static; }
  .split--reverse > :first-child, .service:nth-child(even) .service__media { order: 0; }
  .principles, .steps--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  body { font-size: 16px; }
  .brand img { height: 40px; }
  .whatsapp-fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-fab svg { width: 27px; height: 27px; }
  .hero h1 { font-size: 7.4vw; }
  .hero__tagline { font-size: 10.5px; letter-spacing: 0.08em; padding: 8px 14px; gap: 8px; border-radius: 16px; }
  .hero__lines span:nth-child(n+2):nth-child(-n+3) { display: none; }
  .hero-services__grid { grid-template-columns: 1fr; }
  .hero-services__item { padding: 18px; }
  .hero__visual::after { inset: 14px; }
  .media--frame::after { inset: 12px -10px -12px 10px; }
  .glance__cards { grid-template-columns: 1fr; }
  .hero__facts li { padding-right: 8px; }
  .hero__facts li + li { padding-left: 10px; }
  .hero__facts span { font-size: 12.5px; }
  .cards, .tiles, .steps { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
}
