/* Case Studies: shared styles for the hub and every case-study page.
   Moved verbatim from the inline <style> block of case-studies.html. */
/* ==========================================================================
   DESIGN SYSTEM & CSS TOKENS (MATCHING HOMEPAGE EXACTLY)
   ========================================================================== */
:root {
  --bg-cream: #FAF8F5;
  --bg-cream-tint: #F3EFE6;
  --bg-cream-card: #FFFFFF;
  --navy-950: #081219;
  --navy-900: #0C1A24;
  --navy-850: #10212D;
  --navy-800: #162B3A;
  --navy-card: #0D1E26;
  --navy-card-border: rgba(255, 255, 255, 0.08);

  --green-accent: #2A5D4A;
  --green-light: #3D7A63;
  --green-glow: #10B981;
  --green-soft-bg: #EAF4EE;
  --gold-accent: #C98A2C;
  --gold-light: #E5A84B;
  --gold-soft-bg: #FCF5E8;

  --text-dark: #0F1D27;
  --text-muted: #536471;
  --text-subtle: #798793;
  --text-light: #F4F7F9;
  --border-light: #E8E3D8;
  --border-card: #E4DFD3;

  --motion-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --motion-base: 320ms cubic-bezier(0.16, 1, 0.3, 1);
  --motion-reveal: 600ms cubic-bezier(0.22, 1, 0.36, 1);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-subtle: 0 4px 20px -2px rgba(12, 26, 36, 0.04);
  --shadow-card: 0 10px 30px -4px rgba(12, 26, 36, 0.06), 0 4px 12px -2px rgba(12, 26, 36, 0.03);
  --shadow-elevated: 0 20px 45px -10px rgba(12, 26, 36, 0.16);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-spacing {
  padding-top: 92px;
  padding-bottom: 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 14px;
}

.eyebrow i {
  font-size: 0.85rem;
  color: var(--gold-accent);
}

.eyebrow::before {
  content: "—";
  font-weight: 400;
}

/* Editorial Typography Rules (Matching reference headline) */
.heading-serif {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--navy-900);
}

.heading-lg {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
}

.text-green-accent {
  color: var(--green-accent);
}

.sub-copy {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 16px;
}

/* Buttons & Nav CTA Fix */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--navy-900);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(12, 26, 36, 0.16);
}

.btn-primary:hover {
  background-color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 26, 36, 0.25);
}

.btn-primary .arrow {
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn-primary:hover .arrow {
  transform: translateX(4px);
}

.btn-outline {
  border: 1px solid var(--border-card);
  background-color: #FFFFFF;
  color: var(--navy-900);
}

.btn-outline:hover {
  border-color: var(--navy-900);
  background-color: rgba(12, 26, 36, 0.04);
  transform: translateY(-2px);
}

.cta-mobile-text {
  display: none;
}

/* Shared Canonical Header & Sticky Behavior */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 223, 212, 0.7);
  box-shadow: 0 2px 10px rgba(12, 26, 36, 0.02);
  transition: background-color 300ms ease, box-shadow 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
}
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.site-header.scrolled {
  background-color: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: rgba(12, 26, 36, 0.1);
  box-shadow: 0 8px 30px rgba(12, 26, 36, 0.07);
}
.site-header.scrolled::before {
  opacity: 1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-favicon-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.brand-text-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-name {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  white-space: nowrap;
}
.brand-name span {
  font-weight: 400;
  color: var(--green-accent);
  margin-left: 1px;
}
.brand-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #929FA8;
  text-transform: uppercase;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 6px 0;
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--green-accent);
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--green-accent);
  border-radius: 2px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  padding: 8px;
}
.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--navy-900);
  border-radius: 2px;
  transition: var(--motion-fast);
}

/* Mobile Drawer */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 25, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, 85vw);
  background: var(--bg-cream);
  z-index: 1100;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
}
.mobile-nav-drawer.is-open {
  transform: translateX(0);
}
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-brand-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.drawer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy-900);
}
.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(12, 26, 36, 0.06);
  color: var(--navy-900);
}
.drawer-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-accent);
  margin-bottom: 14px;
}
.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-900);
}
.drawer-link.active {
  background: var(--green-soft-bg);
  color: var(--green-accent);
}
.drawer-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-accent);
}

@media (max-width: 900px) {
  .nav-menu { display: none; }
  .mobile-menu-toggle { display: flex; }
  .cta-desktop-text { display: none; }
  .cta-mobile-text { display: inline; }
}

/* ==========================================================================
   PAGE SPECIFIC: CASE STUDIES SCOPED REFINEMENTS
   ========================================================================== */
.sh-case-studies-page {
  background-color: var(--bg-cream);
}

/* Section 01 — Hero */
.sh-hero-section {
  padding-top: 64px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.sh-hero-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 52px;
  align-items: center;
}
.sh-hero-copy .sub-copy {
  max-width: 520px;
  margin-bottom: 32px;
}
.sh-hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sh-hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  background: var(--navy-900);
}
.sh-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* Responsive Breakdown */
@media (max-width: 1024px) {
  .sh-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
