/* ================================================================
   MSI — Measurement Systems & Services
   Stylesheet v3.0 | May 2026
   ================================================================ */

/* ---------- 1. RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid #C8A45C; outline-offset: 2px; border-radius: 2px; }

/* ---------- 2. BRAND TOKENS ---------- */
:root {
  --navy: #14285b;
  --navy-dark: #0f1f47;
  --navy-light: #2A4180;
  --accent: #c9a45c;
  --accent-light: #f5d37f;
  --accent-dark: #a8884a;
  --praxis: #e08a2a;
  --praxis-dark: #b86a17;
  --cream: #f8f6f1;
  --cream-border: #e5dcc8;
  --gray-900: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-600: #555;
  --gray-500: #7a7a7a;
  --gray-300: #d4d4d4;
  --gray-100: #f5f5f7;
  --gray-50:  #fafafa;
  --white: #ffffff;
  --success: #2c7a4d;
  --error: #c0392b;
  --max-width: 1280px;
  --content-width: 1100px;
  --shadow-sm: 0 2px 8px rgba(20,40,91,0.06);
  --shadow-md: 0 8px 24px rgba(20,40,91,0.10);
  --shadow-lg: 0 16px 48px rgba(20,40,91,0.14);
  --shadow-xl: 0 30px 80px rgba(20,40,91,0.20);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --t-fast: 0.18s ease;
  --t-med: 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy); }
p { margin-bottom: 1rem; color: var(--gray-700); }
.lead { font-size: 1.15rem; color: var(--gray-700); }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 6rem 0; } }
.bg-light { background: var(--gray-50); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }
.bg-navy { background: var(--navy); color: var(--white); }

.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  z-index: 200;
  transition: width 0.05s linear;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow var(--t-med);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 1rem;
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 1; min-width: 0; overflow: hidden; }
.nav-brand img { height: 40px; width: auto; flex-shrink: 0; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; overflow: hidden; }
.nav-brand-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 0.92rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-brand-sub { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--praxis); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-brand-sub .praxis-word { color: var(--praxis); font-weight: 700; }
/* Default: full legal name shown. Only collapse to "MSI" on the very narrowest phones. */
.nav-brand-name-full { display: inline; }
.nav-brand-name-short { display: none; }
@media (max-width: 480px) {
  /* Very narrow phones — full name truly won't fit alongside the hamburger */
  .nav-brand-name-full { display: none; }
  .nav-brand-name-short { display: inline; }
}
@media (min-width: 900px) {
  .nav-brand img { height: 48px; }
  .nav-brand-name { font-size: 1.05rem; }
  .nav-brand-sub { font-size: 0.7rem; letter-spacing: 0.1em; }
}
/* ============ NAV — always-visible, minimalist ============ */
/* All nav links visible at every screen size. No hamburger. No drawer. */
.nav-links { display: flex; list-style: none; gap: 1.5rem; align-items: center; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500; color: var(--gray-900);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-bottom-color: var(--accent); }
.nav-cta {
  display: inline-flex;
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.55rem 1rem !important;
  border-radius: var(--radius-sm);
  border: none !important;
  font-weight: 600;
  transition: background var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--navy-dark); transform: translateY(-1px); }
/* Hamburger toggle: never shown (we don't need it anymore) */
.nav-toggle { display: none !important; }
.mobile-menu { display: none !important; }

/* Tighten layout below 900px so links + CTA fit without the hamburger */
@media (max-width: 899px) {
  .nav {
    padding: 0.6rem 0.75rem;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nav-brand { flex: 0 1 auto; }
  .nav-brand img { height: 34px; }
  .nav-brand-name { font-size: 0.88rem; }
  .nav-brand-sub { font-size: 0.6rem; letter-spacing: 0.06em; }
  .nav-links {
    order: 3;
    flex-basis: 100%;
    gap: 0.85rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--gray-100);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .nav-links a { font-size: 0.86rem; padding: 0.35rem 0; }
  .nav-cta { order: 2; font-size: 0.78rem; padding: 0.4rem 0.7rem !important; }
}
@media (max-width: 480px) {
  .nav-brand-name-full { display: none; }
  .nav-brand-name-short { display: inline; }
}
/* Legacy drawer markup is kept in the HTML for backward compatibility but hidden globally. */

/* ---------- SPLIT HERO (navy banner — easy on the eye) ---------- */
.hero-split {
  position: relative;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(201,164,92,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(255,255,255,0.05) 0%, transparent 50%),
    linear-gradient(135deg, #182f6b 0%, var(--navy) 50%, #1c3a82 100%);
  color: var(--white);
  overflow: hidden;
  padding: 5rem 0 5rem;
  border-bottom: 3px solid var(--accent);
}
.hero-split::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
  pointer-events: none;
}
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero-split-grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .hero-split { padding: 7rem 0 6rem; }
}
.hero-split .eyebrow { color: var(--accent); }
.hero-split h1 { color: var(--white); margin-bottom: 1.5rem; line-height: 1.05; }
.hero-split h1 .accent { color: var(--accent); }
.hero-split p { color: rgba(255,255,255,0.88); font-size: 1.2rem; margin-bottom: 2rem; max-width: 540px; }
.hero-split-image {
  position: relative;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  padding: 0.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-split-image img {
  width: 100%; height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
}
.hero-split-image-fallback {
  width: 100%; min-height: 220px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); padding: 2rem; text-align: center;
  border-radius: var(--radius);
}
.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.hero-meta-item { display: flex; flex-direction: column; }
.hero-meta-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-meta-value .accent-text { color: var(--accent); }
.hero-meta-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ---------- HERO (dark variant, for non-home pages) ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 5rem 0 5rem;
  overflow: hidden;
}
.hero.short { padding: 4rem 0; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,164,92,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--accent); }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.85rem;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast);
  text-align: center;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--navy-dark); }
.btn-accent:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
/* On the navy hero / dark backgrounds, btn-outline reverses to white-on-white */
.hero-split .btn-outline,
.hero .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
  background: transparent;
}
.hero-split .btn-outline:hover,
.hero .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- SECTION HEADERS ---------- */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 3rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--gray-700); }

/* ---------- SERVICE CARDS ---------- */
.services-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--t-med);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--t-med);
}
.service-card:hover { border-color: var(--navy); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 56px; height: 56px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--navy);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.4rem;
}
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.3rem; }
.service-card p { margin-bottom: 1.25rem; flex-grow: 1; }
.service-card ul { list-style: none; margin-bottom: 1.5rem; }
.service-card li {
  padding: 0.5rem 0; padding-left: 1.5rem;
  position: relative;
  font-size: 0.92rem; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}
.service-card li:last-child { border-bottom: none; }
.service-card li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.service-card a.card-link {
  font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: auto;
}
.service-card a.card-link::after { content: '→'; transition: transform var(--t-fast); }
.service-card a.card-link:hover::after { transform: translateX(4px); }

/* ---------- WHY THIS MATTERS + CALCULATOR ---------- */
.why-matters {
  background: var(--cream);
  padding: 5rem 0;
}
@media (min-width: 768px) { .why-matters { padding: 7rem 0; } }
.why-matters-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.why-matters h2 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.1;
  max-width: 1000px;
  margin: 0 auto 1.5rem;
}
.why-matters h2 .money { color: var(--navy); white-space: nowrap; }
.why-matters .lead {
  max-width: 820px; margin: 0 auto 3.5rem;
  font-size: 1.1rem; line-height: 1.7;
}
.why-bullets {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 3.5rem;
}
@media (min-width: 768px) { .why-bullets { grid-template-columns: repeat(3, 1fr); } }
.why-bullet {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: left;
  box-shadow: 0 1px 2px rgba(20,40,91,0.04);
}
.why-bullet h3 { color: var(--navy); margin-bottom: 0.75rem; font-size: 1.25rem; }
.why-bullet p { color: var(--gray-600); font-size: 0.98rem; line-height: 1.7; margin: 0; }

.calc-card {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: left;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .calc-card { padding: 2.5rem; } }
.calc-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .calc-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.calc-intro h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.calc-intro p { color: var(--gray-600); margin-bottom: 1.75rem; }
.calc-inputs { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .calc-inputs { grid-template-columns: 1fr 1fr; } }
.calc-input label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.calc-input label .edit-pencil { display: none; }
.calc-input input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: #fffdf7;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  cursor: text;
}
.calc-input input:hover { background: #fcf6e6; }
.calc-input input:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(20,40,91,0.12);
}

/* Calculator mode toggle (Crude Oil ↔ Jet Fuel) */
.calc-mode-toggle {
  display: inline-flex;
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.5rem;
}
.calc-mode-btn {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--gray-700);
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.calc-mode-btn:hover { color: var(--navy); }
.calc-mode-btn.active {
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.calc-mode-btn .mode-icon { font-size: 1rem; }

/* Calculate button row */
.calc-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.calc-go-btn {
  padding: 0.85rem 1.85rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border-radius: var(--radius-sm) !important;
  background: var(--navy) !important;
  color: var(--white) !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  min-width: 160px !important;
}
.calc-go-btn:hover {
  background: var(--accent) !important;
  color: var(--navy-dark) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(201,164,92,0.35) !important;
}
.calc-go-btn:active { transform: translateY(0) !important; }
.calc-go-btn.flash {
  animation: calcFlash 0.6s ease;
}
@keyframes calcFlash {
  0%   { background: var(--accent); color: var(--navy-dark); }
  100% { background: var(--navy); color: var(--white); }
}
.calc-action-hint {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-style: italic;
}
.calc-output {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
@media (min-width: 768px) { .calc-output { padding: 2.25rem; } }
.calc-output .eyebrow { color: var(--accent); margin-bottom: 1.5rem; font-size: 0.78rem; }
.calc-row { padding: 0.75rem 0; }
.calc-row + .calc-row { border-top: 1px solid rgba(255,255,255,0.08); }
.calc-row-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.25rem;
}
.calc-row-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.calc-annual {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.calc-annual .calc-row-label { color: rgba(255,255,255,0.75); }
.calc-annual .calc-row-value {
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--accent-light);
  margin-top: 0.5rem;
  line-height: 1;
}
.calc-formula {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ---------- STATS BAND ---------- */
.stats-band { background: var(--navy); color: var(--white); padding: 3rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; text-align: center; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-top: 0.75rem;
}

/* ---------- SPLIT (img + text) ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split.reverse .split-content { order: 2; }
}
.split-content h2 { margin-bottom: 1rem; }
.split-content p { margin-bottom: 1.25rem; }
.split-list { list-style: none; margin-bottom: 1.5rem; }
.split-list li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; }
.split-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.split-image {
  border-radius: var(--radius-lg);
  background: var(--cream);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
}
.split-image img {
  width: 100%; height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
}
.split-image.portrait { /* no forced aspect — image keeps its natural ratio */ }

/* ---------- IMAGE PLACEHOLDERS (graceful fallback) ---------- */
.img-placeholder {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-border) 100%);
  border: 2px dashed var(--gray-500);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
  color: var(--navy);
  min-height: 280px;
  position: relative; overflow: hidden;
}
.img-placeholder.tall { min-height: 400px; }
.img-placeholder-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.5rem;
}
.img-placeholder-desc {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--navy); margin-bottom: 0.5rem;
}
.img-placeholder-note { font-size: 0.85rem; color: var(--gray-700); max-width: 340px; margin-bottom: 0.75rem; }
.img-placeholder-file {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.85rem;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem; font-weight: 600;
  background: var(--white);
  color: var(--navy-dark);
  border-radius: 4px;
  border: 1px solid var(--gray-300);
}

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0.5rem; top: 0.5rem; bottom: 0;
  width: 2px; background: var(--cream-border);
}
.timeline-item { position: relative; padding-bottom: 2.5rem; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -2rem; top: 0.4rem;
  width: 14px; height: 14px;
  background: var(--accent);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy);
  border-radius: 50%;
}
.timeline-year {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy); margin-bottom: 0.5rem;
}
.timeline-title { font-weight: 700; margin-bottom: 0.5rem; color: var(--gray-900); }

/* ---------- COVERAGE LIST ---------- */
.coverage-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
}
@media (min-width: 600px) { .coverage-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .coverage-grid { grid-template-columns: repeat(4, 1fr); } }
.coverage-item {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 500; color: var(--navy);
  transition: all var(--t-fast);
}
.coverage-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.coverage-item::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* ---------- REAL US MAP ---------- */
.us-map-wrap {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) { .us-map-wrap { padding: 2.5rem; } }
.us-map { width: 100%; height: auto; display: block; }
.us-map .state { fill: #e9e4d6; stroke: var(--white); stroke-width: 1.2; transition: fill var(--t-fast); }
.us-map .state.served { fill: var(--accent); cursor: pointer; }
.us-map .state.served:hover { fill: var(--navy); }
.us-map .border { fill: none; stroke: var(--cream-border); stroke-width: 1; }
.us-map .hq-marker { fill: var(--navy); stroke: var(--white); stroke-width: 2; }
.us-map .hq-pulse { fill: var(--navy); opacity: 0.3; }
.map-tooltip {
  position: absolute;
  background: var(--navy-dark);
  color: var(--white);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast);
  white-space: nowrap;
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.map-tooltip.visible { opacity: 1; }
.map-legend {
  display: flex; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--cream-border);
  font-size: 0.88rem; color: var(--gray-700);
}
.map-legend-item { display: flex; align-items: center; gap: 0.5rem; }
.map-legend-dot { width: 14px; height: 14px; border-radius: 3px; }

/* ---------- LOGOS BAND ---------- */
.logos-band {
  background: var(--gray-50);
  padding: 3rem 0;
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
}
.logos-label {
  text-align: center; font-size: 0.8rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 1.5rem;
}
.logos-track {
  display: flex; gap: 3rem;
  flex-wrap: wrap; justify-content: center; align-items: center;
}
.logo-slot {
  width: 170px; height: 60px;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; color: var(--gray-500);
  text-align: center; padding: 0 0.5rem; font-weight: 500;
}

/* ---------- CTA ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 30% 30%, rgba(201,164,92,0.18) 0%, transparent 50%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 2rem; }

/* ---------- CONTACT FORM ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.contact-info {
  background: var(--cream);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: fit-content;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--cream-border); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.25rem;
}
.contact-info-value { color: var(--gray-900); font-weight: 500; }
.contact-info-value a { color: var(--navy); }
.contact-info-value a:hover { text-decoration: underline; }

.contact-emails-grid {
  display: grid; gap: 0.5rem;
  grid-template-columns: 1fr;
  margin-top: 0.25rem;
}
@media (min-width: 500px) { .contact-emails-grid { grid-template-columns: 1fr 1fr; } }
.contact-email-row {
  display: flex; flex-direction: column;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}
.contact-email-row .label-tiny {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.15rem;
}
.contact-email-row a { color: var(--navy); font-weight: 600; word-break: break-all; }

form .form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (min-width: 600px) { form .form-row.two { grid-template-columns: 1fr 1fr; } }
form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--gray-900); }
form label .req { color: var(--error); }
form input, form select, form textarea {
  width: 100%; padding: 0.75rem 1rem;
  font-family: inherit; font-size: 1rem;
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
form input:focus, form select:focus, form textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,40,91,0.1);
}
form textarea { resize: vertical; min-height: 140px; }
form .form-submit { margin-top: 0.5rem; }
.form-status { margin-top: 1.5rem; padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status.success { display: block; background: rgba(44,122,77,0.1); color: var(--success); border: 1px solid rgba(44,122,77,0.3); }
.form-status.error { display: block; background: rgba(192,57,43,0.1); color: var(--error); border: 1px solid rgba(192,57,43,0.3); }

/* ---------- ACCORDION ---------- */
.accordion { border-top: 1px solid var(--cream-border); }
.accordion-item { border-bottom: 1px solid var(--cream-border); }
.accordion-trigger {
  width: 100%; text-align: left;
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600; color: var(--navy);
}
.accordion-trigger:hover { color: var(--accent-dark); }
.accordion-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 400;
  transition: transform var(--t-med);
}
.accordion-item[data-open="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--t-med); }
.accordion-item[data-open="true"] .accordion-panel { max-height: 600px; }
.accordion-body { padding: 0 0 1.5rem; color: var(--gray-700); }

/* ---------- GALLERY (natural borders, no crop, no overlay, no click-to-expand) ---------- */
.gallery {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 0.5rem;
  display: flex; flex-direction: column;
  text-align: center;
}
.gallery-item img {
  width: 100%; height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
}
.gallery-caption {
  font-size: 0.78rem;
  color: var(--gray-600);
  padding: 0.5rem 0.25rem 0.25rem;
  line-height: 1.4;
}
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-image { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-caption {
  position: absolute; bottom: 1.5rem;
  left: 50%; transform: translateX(-50%);
  color: var(--white); font-size: 0.95rem;
  text-align: center; max-width: 80%;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- FILTER CHIPS ---------- */
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-chip {
  background: var(--white);
  border: 1.5px solid var(--cream-border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem; font-weight: 500;
  color: var(--gray-700); cursor: pointer;
  transition: all var(--t-fast);
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.service-card.filtering-out { display: none; }

/* ---------- TOAST — removed in v12 (no more pop-up notifications) ---------- */
.toast { display: none !important; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding: 4rem 0 2rem; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand img {
  height: 56px; width: auto;
  background: var(--white);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 1rem;
}
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; max-width: 320px; }
.footer-col h4 {
  color: var(--white); font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.4rem 0; }
.footer-col a { color: rgba(255,255,255,0.7); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- UTILITIES ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }

/* ---------- ANIMATIONS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
  .fade-in.in-view { opacity: 1; transform: translateY(0); }
  .fade-in-delay-1 { transition-delay: 0.1s; }
  .fade-in-delay-2 { transition-delay: 0.2s; }
  .fade-in-delay-3 { transition-delay: 0.3s; }
}

/* ---------- STORY HEADER BANNER (uses logo-secondary.png) ---------- */
.story-banner {
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.story-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(201,164,92,0.18) 0%, transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(255,255,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.story-banner > * { position: relative; }
.story-banner-logo {
  display: block;
  max-width: 320px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.story-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin: 1rem auto 1rem;
  max-width: 900px;
}
.story-banner h1 .accent { color: var(--accent); }
.story-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
}
.story-banner .praxis-line {
  margin-top: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--praxis);
}
.story-banner .praxis-line .praxis-word { font-weight: 700; }

/* ---------- NAVY ACCENT BAND (between sections) ---------- */
.navy-band {
  background: var(--navy);
  color: var(--white);
  padding: 2rem 1.5rem;
  text-align: center;
}
.navy-band p {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.navy-band .accent { color: var(--accent); font-weight: 600; }

/* ---------- PRAXIS WORDMARK (used in subtitles + footer) ---------- */
.praxis-word { color: var(--praxis); font-weight: 700; letter-spacing: 0.04em; }
.footer-brand .praxis-word { color: var(--praxis); }

/* ---------- SERVICE NETWORK PANEL (simpler than the polygon map) ---------- */
.service-network {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, #1c3a82 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 1.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.service-network::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 50% 20%, rgba(201,164,92,0.25) 0%, transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.service-network > * { position: relative; z-index: 1; }
@media (min-width: 768px) { .service-network { padding: 4rem 3rem; } }
.service-network-hq {
  text-align: center;
  margin-bottom: 2.5rem;
}
.service-network-hq-pin {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: var(--navy-dark);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.service-network-hq-pin::before {
  content: '★';
  font-size: 1rem;
}
.service-network-hq h3 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.5rem;
}
.service-network-hq p {
  color: rgba(255,255,255,0.78);
  margin: 0;
}
.service-network-states {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 600px) { .service-network-states { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .service-network-states { grid-template-columns: repeat(8, 1fr); } }
.state-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  text-align: center;
  transition: all var(--t-fast);
}
.state-chip.hq {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-dark);
}
.state-chip:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.state-chip.hq:hover { background: var(--accent-dark); color: var(--white); }
.state-chip-abbr {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  display: block;
}
.state-chip.hq .state-chip-abbr { color: var(--navy-dark); }
.state-chip-name {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-top: 0.35rem;
  font-weight: 500;
}
.state-chip.hq .state-chip-name { color: var(--navy-dark); opacity: 0.85; }
.service-network-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- LIGHTBOX (brought back, cleaner) ---------- */
.gallery-item { cursor: zoom-in; transition: transform var(--t-fast); }
.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lightbox {
  position: fixed; inset: 0;
  background: rgba(15,31,71,0.95);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-image {
  max-width: 92vw; max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  background: var(--white);
  padding: 0.5rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; cursor: pointer;
  transition: background var(--t-fast);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- HOME STATS BAND (less crowded — 4 even cells) ---------- */
.stats-band .stats-grid > div { padding: 0 0.5rem; }

/* ---------- TIMELINE WITH IMAGES (alongside each entry) ---------- */
.timeline-item.has-image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 700px) {
  .timeline-item.has-image {
    grid-template-columns: 1fr 220px;
    gap: 1.5rem;
  }
}
.timeline-item-image {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 0.4rem;
  box-shadow: var(--shadow-sm);
}
.timeline-item-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ---------- ROTATED IMAGE (for sideways portrait JCS photo) ---------- */
.split-image.rotate-cw {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/4;
}
.split-image.rotate-cw img {
  transform: rotate(90deg);
  transform-origin: center center;
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

/* ---------- LINKEDIN ICON (footer) ---------- */
.footer-social {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-social-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  transition: all var(--t-fast);
}
.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy-dark);
}
.footer-social svg { width: 18px; height: 18px; }

/* ---------- HOME STORY PREVIEW (image-first, lineage text below) ---------- */
.story-preview-image {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}
.story-preview-image img {
  width: 100%; height: auto;
  display: block;
  border-radius: var(--radius);
}
.story-preview-copy { max-width: 820px; margin: 0 auto; }
.story-preview-copy p { font-size: 1.05rem; line-height: 1.75; }
.story-preview-copy .btn { margin-top: 0.75rem; }

/* ---------- HALMOR HERITAGE CALLOUT (home page) ---------- */
.heritage-callout {
  background: var(--cream);
  padding: 4rem 0;
  border-top: 1px solid var(--cream-border);
  border-bottom: 1px solid var(--cream-border);
}
@media (min-width: 768px) { .heritage-callout { padding: 5rem 0; } }
.heritage-callout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 900px) {
  .heritage-callout-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
}
.heritage-callout-image {
  background: var(--white);
  border: 1px solid var(--cream-border);
  padding: 0.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.heritage-callout-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* ---------- CENTERED CONTACT MAP ---------- */
.contact-maps {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .contact-maps { grid-template-columns: 1fr 1fr; }
}
.contact-map {
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}
.contact-map h3 {
  color: var(--navy);
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}
.contact-map .contact-map-sub {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}
.contact-map iframe {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  display: block;
}
.contact-map-link {
  display: block;
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.85rem;
}
.contact-map-link a { color: var(--navy); font-weight: 600; }

/* ---------- PIG SWEEP® SECTION (services page) ---------- */
.pigsweep-section { padding: 5rem 0; }
.pigsweep-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}
.pigsweep-tagline {
  font-size: 1.15rem;
  color: var(--gray-700);
  max-width: 760px;
  margin: 0 auto 2rem;
}
.pigsweep-logo-wrap {
  margin: 0 auto 1rem;
  max-width: 360px;
  padding: 1rem;
}
.pigsweep-logo-wrap img {
  width: 100%; height: auto; display: block;
}
.pigsweep-logo-placeholder {
  background: var(--cream);
  border: 2px dashed var(--gray-500);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  color: var(--gray-700);
  font-size: 0.95rem;
  text-align: center;
}
.pigsweep-logo-placeholder code {
  background: var(--white);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  color: var(--navy);
  font-family: 'Courier New', monospace;
}
.pigsweep-patents {
  font-size: 0.85rem;
  color: var(--gray-600);
  max-width: 880px;
  margin: 0.5rem auto 1.75rem;
  line-height: 1.6;
}
.pigsweep-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 800px) {
  .pigsweep-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.pigsweep-col h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.pigsweep-col p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-700);
}
.pigsweep-list {
  list-style: disc;
  padding-left: 1.25rem;
}
.pigsweep-list li {
  padding: 0.4rem 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
}

/* ---------- PRAXIS LOGO SLOT (story page 2026 timeline) ---------- */
.praxis-logo-slot {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
}
.praxis-logo-slot img { max-width: 240px; height: auto; display: block; }
.praxis-logo-slot-placeholder {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  background: var(--white);
  border: 1px dashed var(--gray-500);
  border-radius: var(--radius);
  color: var(--gray-700);
  font-family: 'Courier New', monospace;
}

/* ---------- BODY TEXT UNIFORMITY (story page paragraphs) ---------- */
.story-uniform p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 1.1rem;
}
.story-uniform p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--gray-700);
  font-weight: 400;
}

/* ---------- MASONRY-STYLE GALLERY (Tetris packing, natural aspect ratios) ---------- */
/* Override the older grid-based gallery on home page so images pack into columns */
.gallery {
  column-count: 2;
  column-gap: 0.75rem;
  display: block;
}
@media (min-width: 600px) { .gallery { column-count: 3; } }
@media (min-width: 900px) { .gallery { column-count: 4; } }
@media (min-width: 1200px) { .gallery { column-count: 5; } }
.gallery .gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: block;
  margin: 0 0 0.75rem;
  background: var(--white);
  border: 1px solid var(--cream-border);
  border-radius: var(--radius);
  padding: 0.4rem;
  text-align: center;
  cursor: zoom-in;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.gallery .gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gallery .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

/* ---------- HERO "Read the Full Story" LINK UNDER IMAGE (v15: simple text + arrow) ---------- */
.hero-story-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}
/* Simple white text + → arrow with a subtle outlined pill — mirrors the "View Service Details →" style */
.hero-story-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  padding: 0.55rem 1.1rem !important;
  background: transparent !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  border: 1px solid rgba(255,255,255,0.45) !important;
  border-radius: 999px !important;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.hero-story-link span {
  display: inline-block !important;
  transition: transform 0.2s ease !important;
  font-size: 1.05em !important;
}
.hero-story-link:hover {
  color: #c9a45c !important;
  border-color: #c9a45c !important;
  background: rgba(255,255,255,0.04) !important;
}
.hero-story-link:hover span { transform: translateX(3px) !important; }

/* ---------- PRINT ---------- */
@media print {
  .site-header, .site-footer, .mobile-menu, .scroll-progress, .nav-cta, .btn { display: none; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}
