/* Joule Safety Solutions | Brand System v28.0 | April 2026 */

:root {
  --field: #2a3b19; --canopy: #3d5625; --fern: #5a7a38; --sage: #a4b792;
  --rose: #ceb8bc; --chalk: #f5f2f0; --carbon: #3d3530; --slate: #b8b0a0;
  --border: #d3d1c7; --border-light: #e8e5e0;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
  --max-width: 1120px;
  --nav-height: 56px;
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-weight: 400; color: var(--carbon); background: var(--chalk); line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fern); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--canopy); }

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--field); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }
h2 { font-size: clamp(1.2rem, 2.8vw, 1.6rem); margin-bottom: 0.5rem; }
h3 { font-size: clamp(1rem, 2.2vw, 1.15rem); margin-bottom: 0.375rem; font-weight: 500; }
p { margin-bottom: 0.75rem; }
p:last-child { margin-bottom: 0; }
.eyebrow { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--fern); margin-bottom: 0.25rem; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }

/* === SECTIONS === */
.section { padding: 2.25rem 0; }
.section--dark { background: var(--field); color: var(--chalk); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--chalk); }
.section--dark .eyebrow { color: var(--sage); }
.section--sage { background: #eef1ea; }
.section--sage p, .section--sage .card p { color: var(--carbon); }
.section__desc { max-width: 540px; margin: 0.375rem auto 0; color: #6b6660; text-align: center; font-size: 0.9375rem; }

/* === NAVIGATION === */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); background: var(--field); z-index: 100; }
.nav.scrolled { box-shadow: 0 1px 16px rgba(0,0,0,0.2); }
.nav__inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 24px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }
.nav__links a { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(245,242,240,0.55); padding: 2px 0; transition: color 0.25s ease; position: relative; }
.nav__links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--sage); transition: width 0.3s ease; }
.nav__links a:hover { color: var(--chalk); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--chalk); }
.nav__links a.active::after { width: 100%; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--chalk); }
.nav__toggle svg { width: 22px; height: 22px; }

/* === HERO === */
.hero { background: var(--field); padding: calc(var(--nav-height) + 2.5rem) 0 2rem; text-align: center; }
.hero__logo { margin: 0 auto 1rem; }
.hero__logo img { max-width: 380px; width: 70%; margin: 0 auto; }
.hero__identity { font-family: var(--font-heading); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(164,183,146,0.65); margin-bottom: 0.25rem; }
.hero__tagline { font-family: var(--font-body); font-size: clamp(0.9rem, 2vw, 1.1rem); color: rgba(245,242,240,0.55); font-style: italic; }

/* === MANIFESTO === */
.manifesto { max-width: 660px; margin: 0 auto; padding: 0 1.25rem; }
.manifesto p { font-size: clamp(0.95rem, 1.8vw, 1.0625rem); line-height: 1.8; color: var(--carbon); margin-bottom: 1rem; }
.manifesto .callout { font-family: var(--font-heading); font-size: clamp(1.05rem, 2.2vw, 1.25rem); font-weight: 700; color: var(--field); line-height: 1.45; border-left: 3px solid var(--sage); padding-left: 1rem; margin: 1.5rem 0; }

/* === BUTTONS === */
.btn { display: inline-block; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.7rem 1.75rem; border: 2px solid transparent; cursor: pointer; transition: all 0.3s ease; text-decoration: none; }
.btn--primary { background: var(--field); color: var(--chalk); border-color: var(--field); }
.btn--primary:hover { background: var(--canopy); border-color: var(--canopy); color: var(--chalk); }
.btn--outline { background: transparent; color: var(--field); border-color: var(--field); }
.btn--outline:hover { background: var(--field); color: var(--chalk); }
.btn--outline-light { background: transparent; color: var(--chalk); border-color: rgba(245,242,240,0.3); }
.btn--outline-light:hover { background: rgba(245,242,240,0.07); border-color: rgba(245,242,240,0.5); color: var(--chalk); }

/* === CARDS === */
.card-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; transition: box-shadow 0.3s ease, transform 0.3s ease; flex: 0 1 calc(33.333% - 0.75rem); min-width: 220px; }
.card:hover { box-shadow: 0 3px 16px rgba(42,59,25,0.07); transform: translateY(-1px); }
.card__icon { width: 36px; height: 36px; background: var(--field); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 0.6rem; }
.card__icon svg { width: 18px; height: 18px; stroke: var(--chalk); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* === FEATURED CARD === */
.featured-card { display: flex; align-items: flex-start; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; max-width: 660px; margin: 0 auto; }
.featured-card__badge { flex-shrink: 0; width: 40px; height: 40px; background: var(--field); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.featured-card__badge svg { width: 20px; height: 20px; stroke: var(--chalk); fill: none; stroke-width: 2; stroke-linecap: round; }
.featured-card__content h3 { margin-bottom: 2px; }
.featured-card__content p { color: #6b6660; font-size: 0.875rem; margin-bottom: 0.375rem; }
.featured-card__source { font-family: var(--font-heading); font-size: 0.625rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fern); }

/* === CONTACT STRIP === */
.contact-strip { display: flex; flex-wrap: wrap; gap: 1.75rem; justify-content: center; }
.contact-strip__item { text-align: center; }
.contact-strip__label { font-family: var(--font-heading); font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate); margin-bottom: 2px; }
.contact-strip__value a { font-size: 0.9375rem; color: var(--carbon); border-bottom: 1px solid var(--border); padding-bottom: 1px; }
.contact-strip__value a:hover { color: var(--fern); border-color: var(--fern); }

/* === PAGE HEADER (inner pages) === */
.page-header { padding: calc(var(--nav-height) + 2rem) 0 2rem; background: var(--field); color: var(--chalk); text-align: center; }
.page-header h1 { color: var(--chalk); margin-bottom: 0.375rem; }
.page-header p { color: rgba(245,242,240,0.6); max-width: 520px; margin: 0 auto; font-size: 0.9375rem; }
.page-header .eyebrow { color: var(--sage); }

/* === FOOTER === */

/* === UTILITIES === */
.text-center { text-align: center; }
.mt-sm { margin-top: 0.75rem; } .mt-md { margin-top: 1rem; } .mt-lg { margin-top: 1.5rem; } .mt-xl { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 0.75rem; } .mb-md { margin-bottom: 1rem; } .mb-lg { margin-bottom: 1.5rem; } .mb-xl { margin-bottom: 2rem; }
.placeholder { text-align: center; padding: 3rem 1.25rem; max-width: 520px; margin: 0 auto; }
.placeholder p { color: var(--slate); font-size: 1.0625rem; margin-bottom: 1.5rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp 0.5s ease forwards; }
.fade-up-d1 { animation-delay: 0.08s; } .fade-up-d2 { animation-delay: 0.16s; }
.fade-up-d3 { animation-delay: 0.24s; } .fade-up-d4 { animation-delay: 0.32s; }

/* === MOBILE === */
@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--field); flex-direction: column; padding: 1.5rem 1.25rem; gap: 1rem; border-bottom: 1px solid rgba(245,242,240,0.08); transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; }
  .nav__links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__links a { font-size: 0.875rem; }
  .hero { padding: calc(var(--nav-height) + 1.5rem) 0 1.5rem; }
  .hero__logo img { max-width: 280px; width: 75%; }
  .section { padding: 1.75rem 0; }
  .card { flex: 0 1 100%; min-width: 0; }
  .featured-card { flex-direction: column; }
  .contact-strip { flex-direction: column; gap: 1rem; }
  .page-header { padding: calc(var(--nav-height) + 1.5rem) 0 1.5rem; }
}


@media (min-width: 481px) and (max-width: 768px) {
  .card { flex: 0 1 calc(50% - 0.5rem); }
}
@media (max-width: 480px) {
  .hero__logo img { max-width: 240px; }
  .nav__logo img { height: 20px; }
}

/* === HERO CAROUSEL (Sherpa crossfade approach) === */
.hero-bg { background: var(--field); width: 100%; margin-top: var(--nav-height); }
.hero-carousel { position: relative; width: 100%; max-width: 1200px; margin: 0 auto; overflow: hidden; }
.hero-carousel img { position: absolute; top: 0; left: 0; width: 100%; display: block; height: auto; opacity: 0; transition: opacity 1.2s ease; }
.hero-carousel img.active { opacity: 1; }
.hero-carousel img:first-child { position: relative; }

/* === TAGLINE BAR === */
.tagline-bar { background: var(--field); padding: 1rem 1.25rem; text-align: center; }
.tagline-bar p { font-family: 'Lato', sans-serif; font-size: clamp(0.85rem, 1.8vw, 1rem); color: rgba(245,242,240,0.55); font-style: italic; margin: 0; }

/* === CTA LOGO === */
.cta-logo { margin: 0 auto 1rem; }
.cta-logo img { max-width: 220px; width: 45%; margin: 0 auto; }



/* === CROSS-NAV === */
.cross-nav { padding: 1.5rem 0; border-top: 1px solid var(--border-light); }
.cross-nav__label { font-family: var(--font-heading); font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--slate); text-align: center; margin-bottom: 0.75rem; }
.cross-nav__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.cross-nav__card { flex: 0 1 220px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1rem; text-decoration: none; transition: box-shadow 0.3s ease, transform 0.2s ease; display: block; }
.cross-nav__card:hover { box-shadow: 0 4px 16px rgba(42,59,25,0.08); transform: translateY(-2px); }
.cross-nav__card-eyebrow { font-family: var(--font-heading); font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.cross-nav__card h4 { font-family: var(--font-heading); font-size: 0.8125rem; font-weight: 700; color: var(--field); margin-bottom: 0.25rem; line-height: 1.3; }
.cross-nav__card p { font-size: 0.6875rem; color: #6b6660; line-height: 1.5; }
.cross-nav__card--training { border-style: dashed; }

/* === TRAINING CALLOUT === */
.training-callout { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 1px dashed var(--border); border-radius: 6px; padding: 0.75rem 1rem; max-width: 480px; margin: 0 auto; text-decoration: none; transition: background 0.2s; }
.training-callout:hover { background: #faf9f7; }
.training-callout__icon { flex-shrink: 0; width: 32px; height: 32px; background: var(--sage); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.training-callout__icon svg { width: 16px; height: 16px; stroke: var(--field); fill: none; stroke-width: 2; }
.training-callout__text { font-size: 0.75rem; color: #6b6660; line-height: 1.4; }
.training-callout__text strong { color: var(--field); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 640px) {
  .cross-nav__card { flex: 0 1 100%; }
}

/* === NAV SPARK BUTTON === */
.nav__spark { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--chalk); background: var(--fern); padding: 6px 16px; border-radius: 4px; text-decoration: none; transition: background 0.3s; white-space: nowrap; }
.nav__spark:hover { background: var(--canopy); color: var(--chalk); }

/* === TRUST BAR (above fold) === */
.trust-bar { background: var(--chalk); border-bottom: 1px solid var(--border-light); padding: 0.625rem 0; }
.trust-bar__inner { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.trust-bar__stat { text-align: center; }
.trust-bar__num { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; color: var(--field); line-height: 1; }
.trust-bar__label { font-size: 0.5625rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 1px; }

/* === MEASUREMENT BAND === */
.measure-band { background: var(--field); padding: 1.5rem 1.25rem; text-align: center; }
.measure-band p { font-family: var(--font-heading); font-size: clamp(0.9rem, 2vw, 1.125rem); font-weight: 500; color: var(--chalk); max-width: 640px; margin: 0 auto; line-height: 1.6; }
.measure-band strong { color: var(--sage); font-weight: 700; }

/* === WHEN TO CALL === */
.when-to-call { max-width: 720px; margin: 0 auto; }
.when-to-call__grid { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.when-to-call__item { flex: 0 1 calc(50% - 0.25rem); background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--fern); border-radius: 4px; padding: 0.75rem 1rem; font-size: 0.8125rem; color: var(--carbon); line-height: 1.5; }

/* === SECTION CTA (inline, subtle) === */
.section-cta { text-align: center; margin-top: 1.25rem; }
.section-cta a { font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fern); }
.section-cta .btn { margin: 0 0.375rem; }

/* === SPARK PAGE === */
.spark-hero { background: var(--field); padding: calc(var(--nav-height) + 2rem) 0 2rem; text-align: center; }
.spark-hero h1 { color: var(--chalk); }
.spark-hero p { color: rgba(245,242,240,0.65); max-width: 520px; margin: 0 auto; }
.spark-what { max-width: 600px; margin: 0 auto; }
.spark-what li { padding: 0.625rem 0; border-bottom: 1px solid var(--border-light); font-size: 0.9375rem; color: var(--carbon); line-height: 1.6; }
.spark-what li:last-child { border-bottom: none; }
.spark-for { max-width: 600px; margin: 0 auto; }
.spark-for li { padding: 0.5rem 0 0.5rem 1rem; font-size: 0.9375rem; color: var(--carbon); line-height: 1.5; position: relative; }
.spark-for li::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--fern); }
.booking-box { background: #fff; border: 2px solid var(--fern); border-radius: 8px; padding: 2rem; max-width: 480px; margin: 0 auto; text-align: center; }
.booking-box h3 { color: var(--field); margin-bottom: 0.5rem; }
.booking-box p { color: #6b6660; font-size: 0.875rem; margin-bottom: 1rem; }

@media (max-width: 768px) {
  .trust-bar__inner { gap: 1.25rem; }
  .trust-bar__num { font-size: 1rem; }
  .when-to-call__item { flex: 0 1 100%; }
  .nav__spark { font-size: 0.625rem; padding: 5px 12px; }
}

/* === NAV DROPDOWN === */
.nav__dropdown { position: relative; }
.nav__dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: var(--field); border-radius: 0 0 6px 6px; padding: 0.5rem 0; min-width: 220px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); z-index: 100; }
.nav__dropdown:hover .nav__dropdown-menu { display: block; }
.nav__dropdown-menu a { display: block; padding: 0.5rem 1.25rem; font-family: var(--font-heading); font-size: 0.6875rem; font-weight: 500; color: rgba(245,242,240,0.7); text-decoration: none; text-transform: uppercase; letter-spacing: 0.06em; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav__dropdown-menu a:hover { color: var(--chalk); background: rgba(245,242,240,0.08); }
.nav__dropdown-menu a.dd-sep { border-top: 1px solid rgba(245,242,240,0.1); margin-top: 0.25rem; padding-top: 0.75rem; }
@media (max-width: 768px) {
  .nav__dropdown-menu { position: static; transform: none; box-shadow: none; background: rgba(0,0,0,0.15); border-radius: 0; padding: 0; }
  .nav__dropdown:hover .nav__dropdown-menu { display: block; }
  .nav__dropdown-menu a { padding: 0.5rem 2rem; font-size: 0.625rem; }
}

/* === SERVICE HUB CARDS === */
.hub-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.hub-card { flex: 0 1 calc(33.333% - 0.5rem); min-width: 200px; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 1rem; text-decoration: none; transition: box-shadow 0.3s, transform 0.2s; display: block; text-align: center; }
.hub-card:hover { box-shadow: 0 4px 16px rgba(42,59,25,0.08); transform: translateY(-2px); }
.hub-card__icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 0.5rem; }
.hub-card__icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.hub-card h4 { font-size: 0.8125rem; color: var(--field); margin-bottom: 0.25rem; }
.hub-card p { font-size: 0.6875rem; color: #6b6660; line-height: 1.4; }
@media (max-width: 640px) { .hub-card { flex: 0 1 calc(50% - 0.375rem); } }
@media (max-width: 400px) { .hub-card { flex: 0 1 100%; } }

/* === BAND WIDTH (matches hero carousel) === */
.band-width { max-width: 1200px; margin-left: auto; margin-right: auto; }

/* === FOOTER (BCSP-style redesign) === */
.footer { background: var(--field); color: rgba(245,242,240,0.6); padding: 0; }
.footer__contact-bar { padding: 1.25rem 0; border-bottom: 1px solid rgba(245,242,240,0.1); }
.footer__contact-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; max-width: 800px; margin: 0 auto; padding: 0 1.25rem; }
.footer__contact-item h4 { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; color: var(--chalk); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.25rem; }
.footer__contact-item a { color: rgba(245,242,240,0.6); font-size: 0.8125rem; text-decoration: none; transition: color 0.2s; }
.footer__contact-item a:hover { color: var(--chalk); }
.footer__main { display: flex; justify-content: space-between; align-items: flex-start; padding: 1.5rem 1.5rem 1rem; max-width: 900px; margin: 0 auto; flex-wrap: wrap; gap: 1.5rem; }
.footer__brand { flex: 0 1 280px; }
.footer__brand a { display: inline-block; }
.footer__brand img { max-width: 140px; width: 140px; height: auto; margin-bottom: 0.5rem; }
.footer__brand p { font-size: 0.75rem; font-style: italic; color: rgba(245,242,240,0.45); line-height: 1.5; }
.footer__nav { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.footer__nav-group h4 { font-family: var(--font-heading); font-size: 0.5625rem; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.5rem; }
.footer__nav-group a { display: block; color: rgba(245,242,240,0.55); font-size: 0.75rem; text-decoration: none; padding: 2px 0; transition: color 0.2s; }
.footer__nav-group a:hover { color: var(--chalk); }
.footer__bottom-bar { border-top: 1px solid rgba(245,242,240,0.1); padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.75rem; max-width: 900px; margin: 0 auto; }
.footer__legal { font-size: 0.625rem; color: rgba(245,242,240,0.35); }
.footer__legal a { color: rgba(245,242,240,0.35); text-decoration: none; }
.footer__legal a:hover { color: rgba(245,242,240,0.6); }
.footer__social { display: flex; gap: 0.75rem; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: rgba(245,242,240,0.4); transition: color 0.2s; }
.footer__social a:hover { color: var(--chalk); }
.footer__social svg { width: 18px; height: 18px; max-width: 18px; max-height: 18px; display: block; }

@media (max-width: 768px) {
  .footer__main { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem 1.25rem 1rem; }
  .footer__brand { flex: none; width: auto; }
  .footer__brand img { width: 120px; max-width: 120px; margin: 0 auto 0.5rem; }
  .footer__nav { justify-content: center; gap: 2rem; }
  .footer__contact-grid { flex-direction: column; align-items: center; text-align: center; gap: 1rem; padding: 0 1.25rem; }
  .footer__bottom-bar { flex-direction: column; align-items: center; text-align: center; padding: 1rem 1.25rem; }
  .footer__social a { width: 28px; height: 28px; }
  .footer__social svg { width: 16px; height: 16px; max-width: 16px; max-height: 16px; }
}
