/* ================================================================
   BROOMHILL CONSULTING CORPORATION LIMITED
   Brand CSS — Crimson Red + Charcoal + White
   ================================================================ */

/* ---- CUSTOM PROPERTIES ---- */
:root {
  /* Brand Palette */
  --red:          #BF1E2D;
  --red-dark:     #9a1724;
  --red-deep:     #7a1020;
  --red-light:    #d94455;
  --red-pale:     #f9eaec;
  --red-mist:     #fdf3f4;

  --charcoal:     #1e1e1e;
  --charcoal-mid: #2c2c2c;
  --charcoal-lt:  #3d3d3d;

  --white:        #ffffff;
  --off-white:    #f8f8f8;
  --gray-50:      #f5f5f5;
  --gray-100:     #ebebeb;
  --gray-200:     #d6d6d6;
  --gray-400:     #9e9e9e;
  --gray-600:     #636363;
  --gray-800:     #2e2e2e;
  --text:         #1a1a1a;
  --text-muted:   #5e5e5e;

  /* Gold accent (subtle, for awards/callouts) */
  --gold:         #c9a84c;
  --gold-pale:    #f8f0dc;

  /* Typography */
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  /* Spacing */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;
  --sp-3xl: 8rem;

  /* Layout */
  --container: 1200px;
  --nav-h:     76px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* Shadows */
  --s-sm:  0 1px 4px rgba(0,0,0,.08);
  --s-md:  0 4px 16px rgba(0,0,0,.10);
  --s-lg:  0 10px 40px rgba(0,0,0,.13);
  --s-xl:  0 20px 60px rgba(0,0,0,.17);
  --s-red: 0 8px 24px rgba(191,30,45,.30);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --t:    250ms var(--ease);
  --t-fast: 150ms var(--ease);
  --t-slow: 400ms var(--ease);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5 { line-height: 1.18; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-family: var(--font-serif); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-family: var(--font-serif); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.25rem); }
h4 { font-size: 1rem; }
p { color: var(--text-muted); }
p + p { margin-top: .85rem; }
.lead { font-size: 1.12rem; line-height: 1.78; color: var(--gray-800); }

/* ---- LAYOUT ---- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.section { padding-block: var(--sp-3xl); }
.section--sm { padding-block: var(--sp-xl); }
.section--dark {
  /* Fallback for no-JS; canvas overwrites this */
  background: linear-gradient(180deg, #2a0c12 0%, #1e1e1e 100%);
  color: var(--white);
  position: relative; overflow: hidden;
}
/* All direct children above canvas */
.section--dark > .container,
.section--dark > div {
  position: relative;
  z-index: 1;
}
.section--red { background: var(--red); color: var(--white); }
.section--offwhite { background: var(--off-white); }
.section--mist { background: var(--red-mist); }

/* ---- SECTION HEADER ---- */
.sec-header { text-align: center; max-width: 680px; margin-inline: auto; margin-bottom: var(--sp-xl); }
.sec-header--left { text-align: left; margin-inline: 0; }
.sec-label {
  display: inline-block;
  font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: var(--red-pale);
  padding: .3em .9em; border-radius: var(--r-full); margin-bottom: var(--sp-sm);
}
.section--dark .sec-label,
.section--red .sec-label { background: rgba(255,255,255,.15); color: var(--white); }
.sec-title { color: var(--charcoal); margin-bottom: .75rem; }
.section--dark .sec-title,
.section--red .sec-title { color: var(--white); }
.sec-desc { font-size: 1.03rem; color: var(--text-muted); }
.section--dark .sec-desc { color: rgba(255,255,255,.65); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .78em 1.8em; border-radius: var(--r-full);
  font-size: .93rem; font-weight: 600; transition: all var(--t);
  white-space: nowrap;
}
.btn-red {
  background: var(--red); color: var(--white);
  box-shadow: var(--s-red);
}
.btn-red:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(191,30,45,.38); }
.btn-outline-red { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline-red:hover { background: var(--red); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--red); }
.btn-white:hover { background: var(--off-white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-lt); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: .55em 1.3em; font-size: .85rem; }

/* ---- NAVIGATION ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  transition: background var(--t), box-shadow var(--t);
  /* Transparent by default — sits over hero/banner */
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--gray-200), var(--s-sm);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: var(--sp-md);
}

/* ---- Logo ---- */
.nav-logo { display: flex; align-items: center; gap: .6rem; transition: opacity var(--t-fast); }
.nav-logo:hover { opacity: .88; }

/* The logo JPG has a white background — mix-blend-mode removes it on dark headers */
.nav-logo img {
  height: 52px; width: auto; object-fit: contain;
  border-radius: var(--r-sm);
  /* Default (transparent/dark bg): blend white away */
  mix-blend-mode: screen;
  filter: brightness(1.05);
  transition: mix-blend-mode var(--t), filter var(--t);
}
/* Once scrolled (white bg), restore normal rendering */
.site-header.scrolled .nav-logo img {
  mix-blend-mode: normal;
  filter: none;
  background: transparent;
  border: 1px solid var(--gray-100);
}

.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }

/* Default: white text on dark background */
.nav-logo-text strong {
  font-size: .95rem; font-weight: 800; color: var(--white);
  letter-spacing: -.01em;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  transition: color var(--t);
}
.nav-logo-text small {
  font-size: .65rem; color: rgba(255,255,255,.65);
  letter-spacing: .02em; font-weight: 400;
  transition: color var(--t);
}
/* Scrolled: switch to dark text */
.site-header.scrolled .nav-logo-text strong { color: var(--charcoal); text-shadow: none; }
.site-header.scrolled .nav-logo-text small  { color: var(--gray-600); }

/* ---- Nav links ---- */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: .42em .88em; border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 500;
  /* Default: white on dark hero/banner */
  color: rgba(255,255,255,.9);
  transition: all var(--t-fast); position: relative;
}
.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.15);
}
.nav-links a.active {
  color: var(--white); font-weight: 700;
  background: rgba(255,255,255,.12);
}
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--white);
}

/* Scrolled: switch to dark + red active */
.site-header.scrolled .nav-links a          { color: var(--gray-800); }
.site-header.scrolled .nav-links a:hover    { color: var(--red); background: var(--red-pale); }
.site-header.scrolled .nav-links a.active   { color: var(--red); background: transparent; }
.site-header.scrolled .nav-links a.active::after { background: var(--red); }

/* CTA button always red */
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  font-weight: 600 !important; padding: .52em 1.3em !important;
  box-shadow: var(--s-red); margin-left: .5rem;
  /* Override active state background */
  background-color: var(--red) !important;
}
.nav-cta:hover  { background: var(--red-dark) !important; transform: translateY(-1px); }
.nav-cta.active { background: var(--red) !important; }
.nav-cta.active::after { display: none; }

/* Mobile toggle — white by default, dark when scrolled */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: var(--r-sm); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--white); /* white on dark bg */
  border-radius: 2px; transition: transform var(--t), opacity var(--t), background var(--t);
}
.site-header.scrolled .nav-toggle span { background: var(--charcoal); }

/* ---- PAGE BANNER (inner pages) ---- */
.page-banner {
  padding-top: calc(var(--nav-h) + var(--sp-xl));
  padding-bottom: var(--sp-2xl);
  position: relative; overflow: hidden;
  /* Fallback for no-JS — canvas paints over this */
  background: linear-gradient(180deg, #2a0c12 0%, #1e1e1e 100%);
}

/* Canvas covers the full banner — positioned behind all content */
.banner-canvas,
.cta-canvas,
.cta-band-canvas {
  position: absolute;
  inset: 0;              /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

/* All banner content sits above the canvas */
.page-banner > .container,
.page-banner > .page-banner-stats {
  position: relative; z-index: 1;
}

/* Subtle text-shadow on h1 for readability over moving background */
.page-banner h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
  margin-bottom: .85rem;
}

/* Subtle texture overlay — REMOVED (was causing visible diagonal lines) */

.page-banner .container { position: relative; z-index: 1; }

/* Stats row that lives INSIDE the banner — fully seamless */
.page-banner-stats {
  position: relative; z-index: 1;
  margin-top: var(--sp-md);
  /* No border, no padding-top — pure continuation of the banner */
}

/* Shared layout for the stat items */
.exp-stats-inner {
  display: flex; align-items: center;
  flex-wrap: nowrap;           /* keep on one line */
  gap: 0;
}
.exp-stat {
  display: flex;
  flex-direction: row;         /* number + label side by side */
  align-items: baseline;
  gap: .45rem;
  padding: 0 var(--sp-lg) 0 0;
  white-space: nowrap;
}
/* The number */
.exp-stat-num  {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800; font-family: var(--font-serif);
  color: var(--white); line-height: 1; display: inline;
}
/* The + suffix */
.exp-stat-plus {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 800; font-family: var(--font-serif);
  color: var(--red-light); line-height: 1;
  margin-right: .3rem;
}
/* The label — sits on the same baseline as the number */
.exp-stat-label {
  font-size: .68rem; color: rgba(255,255,255,.45);
  letter-spacing: .07em; text-transform: uppercase; font-weight: 500;
  line-height: 1;
}
/* Thin vertical divider */
.exp-stat-sep  {
  width: 1px; height: 1.1em; align-self: center;
  background: rgba(255,255,255,.18); flex-shrink: 0;
  margin-right: var(--sp-lg);
}
.page-banner-eyebrow { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.page-banner-eyebrow span { font-size: .75rem; color: rgba(255,255,255,.4); font-weight: 500; }
.page-banner-eyebrow .sep { color: rgba(255,255,255,.18); }
.page-banner-eyebrow .current { color: rgba(255,150,150,.9); }
.page-banner h1 { color: var(--white); margin-bottom: .85rem; }
.page-banner p { color: rgba(255,255,255,.62); font-size: 1.05rem; max-width: 560px; line-height: 1.7; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--charcoal); /* #1e1e1e — same as CTA band bottom */
  color: rgba(255,255,255,.7);
  /* No top border or margin — CTA bleeds straight in */
}
.footer-top {
  display: grid; grid-template-columns: 1.1fr 2fr;
  gap: var(--sp-3xl); padding-block: var(--sp-3xl);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .nav-logo { margin-bottom: var(--sp-md); }
.footer-brand .nav-logo-text strong { color: var(--white); }
.footer-brand .nav-logo-text small { color: rgba(255,255,255,.35); }
.footer-tagline { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.7; }
.footer-tagline em { font-style: italic; color: rgba(255,255,255,.35); font-size: .78rem; display: block; margin-top: .25rem; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-lg); }
.footer-col h5 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: var(--sp-md); }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--red-light); }
.footer-contact-item { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; }
.footer-contact-item svg { width: 15px; height: 15px; color: var(--red-light); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item span { font-size: .85rem; color: rgba(255,255,255,.58); line-height: 1.5; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: var(--sp-md); font-size: .8rem; color: rgba(255,255,255,.28);
  flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a { color: var(--red-light); }

/* ---- CARDS ---- */
.card {
  background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--gray-100); padding: var(--sp-lg);
  transition: all var(--t-slow);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--s-lg); border-color: transparent; }
.card--red { background: var(--red); border-color: transparent; color: var(--white); }
.card--dark { background: var(--charcoal); border-color: transparent; color: var(--white); }

/* ---- VALUE TAG ---- */
.v-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .28em .8em; border-radius: var(--r-full);
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  background: var(--gray-100); color: var(--gray-600);
}

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--gray-100); margin-block: var(--sp-lg); }
.divider--red { background: var(--red-pale); }

/* ---- FADE-IN ANIMATIONS ---- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-up.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s !important; }
.delay-2 { transition-delay: .2s !important; }
.delay-3 { transition-delay: .3s !important; }
.delay-4 { transition-delay: .4s !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --sp-3xl: 4.5rem; --sp-2xl: 3.5rem; }
  .nav-links {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column; padding: var(--sp-md);
    gap: 2px; border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--s-lg);
  }
  .nav-links.open { display: flex; }
  /* On mobile dropdown (always white bg), force dark text */
  .nav-links a          { width: 100%; padding: .7em 1em; border-radius: var(--r-md); color: var(--gray-800) !important; }
  .nav-links a:hover    { color: var(--red) !important; background: var(--red-pale) !important; }
  .nav-links a.active   { color: var(--red) !important; background: var(--red-mist) !important; }
  .nav-links a.active::after { background: var(--red) !important; }
  .nav-cta { margin-left: 0 !important; margin-top: .5rem; text-align: center; justify-content: center; color: var(--white) !important; }
  .nav-toggle { display: flex; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   COMPREHENSIVE MOBILE POLISH
   ================================================================ */

/* --- Page banner: tighter on small screens --- */
@media (max-width: 768px) {
  .page-banner {
    padding-top: calc(var(--nav-h) + var(--sp-lg));
    padding-bottom: var(--sp-lg);
  }
  .page-banner h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
  .page-banner p  { font-size: .95rem; }

  /* Experience stats: allow wrap on narrow screens but keep compact */
  .exp-stats-inner { flex-wrap: wrap; gap: .5rem 0; }
  .exp-stat        { padding: .25rem var(--sp-md) .25rem 0; }
  .exp-stat-sep    { display: none; }
  .page-banner-stats { margin-top: var(--sp-sm); }
}

@media (max-width: 480px) {
  /* Hero */
  .hero-badge  { font-size: .68rem; }
  .hero-sub    { font-size: .95rem; }

  /* Page banner */
  .page-banner h1 { font-size: 1.6rem; }

  /* Footer brand tighter */
  .footer-top  { gap: var(--sp-xl); }
  .footer-brand .nav-logo img { height: 40px; }

  /* Buttons full-width in banners */
  .page-banner .btn { width: 100%; justify-content: center; }

  /* Section titles */
  h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); }

  /* Experience stats fully stacked */
  .exp-stats-inner { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .exp-stat-sep    { display: none; }

  /* Services subnav — scroll horizontally */
  .services-subnav-inner { flex-wrap: nowrap; }
  .ssn-btn { font-size: .78rem; padding: .35em .85em; }
}

