/* =====================================================================
   GICS public marketing site - standalone, elegant stylesheet.

   Deliberately separate from site.css (the signed-in app shell / internal
   screens) so this public face can carry its own, more refined visual
   language without ever risking a change to how the app looks after
   sign-in - see the header comment in Views/Shared/_PublicLayout.cshtml
   for the full rationale. The tokens below are self-contained; this file
   has zero runtime dependency on the internal stylesheet.

   No external fonts or CDN calls (this ships as a real deployed app, which
   may run on an intranet with no outbound internet) - a carefully tuned
   system-font stack does the typographic work, and every texture is an
   inline SVG data URI, never a network request.

   Design language: an institutional deep-green brand paired with a
   restrained brass accent (used sparingly - eyebrows, hairlines, small
   marks) for a considered, premium feel; warm "paper" surfaces instead of
   stark white; soft, green-tinted layered shadows; generous whitespace;
   and quiet, tasteful motion that fully respects prefers-reduced-motion.
   ===================================================================== */

:root {
  /* Brand greens - deep and institutional. */
  --pub-green-darkest: #0d2b19;
  --pub-green-darker: #123821;
  --pub-green-dark: #1a5732;
  --pub-green: #1f7a41;
  --pub-accent: #34a558;
  --pub-green-soft: #e7f3ea;
  --pub-green-mist: #f0f7f1;

  /* Brass accent - the elegance note. Deeper on light surfaces (for AA
     contrast), brighter on dark. Used sparingly, never as a large fill. */
  --pub-brass: #9a7b28;
  --pub-brass-bright: #d8b45c;
  --pub-brass-soft: #f3ead2;

  /* Warm paper surfaces, softer than pure white. */
  --pub-surface: #ffffff;
  --pub-paper: #fbfcf9;
  --pub-surface-muted: #f4f7f2;

  --pub-ink: #16231b;
  --pub-ink-soft: #51625a;
  --pub-ink-faint: #869287;
  --pub-line: #e4ece4;
  --pub-line-strong: #d5e0d6;

  /* Layered, green-tinted shadows - soft and low, never harsh. */
  --pub-shadow-xs: 0 1px 2px rgba(13, 43, 25, 0.05);
  --pub-shadow-sm: 0 2px 4px rgba(13, 43, 25, 0.05), 0 3px 8px rgba(13, 43, 25, 0.05);
  --pub-shadow-md: 0 6px 16px rgba(13, 43, 25, 0.08), 0 12px 32px rgba(13, 43, 25, 0.07);
  --pub-shadow-lg: 0 12px 28px rgba(13, 43, 25, 0.12), 0 28px 64px rgba(13, 43, 25, 0.14);

  --pub-radius: 18px;
  --pub-radius-lg: 24px;
  --pub-radius-sm: 11px;
  --pub-container: 1180px;

  --pub-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --pub-font: "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --pub-font-display: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;

  /* Reusable fine-grain texture for dark panels (inline, no network call). */
  --pub-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.pub-body {
  margin: 0;
  background: var(--pub-paper);
  color: var(--pub-ink);
  font-family: var(--pub-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pub-body a { text-decoration: none; color: inherit; }

.pub-body ::selection { background: rgba(52, 165, 88, 0.22); }

.pub-body :focus-visible {
  outline: 3px solid rgba(52, 165, 88, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Scroll-reveal (progressive enhancement) ----------
   Elements start hidden only when JS has flagged the document ready to
   animate; without JS (or with reduced motion) they are fully visible. */
.js-reveal .pub-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--pub-ease), transform 0.7s var(--pub-ease);
  will-change: opacity, transform;
}
.js-reveal .pub-reveal.is-visible { opacity: 1; transform: none; }
.js-reveal .pub-reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--pub-ease), transform 0.6s var(--pub-ease);
}
.js-reveal .pub-reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js-reveal .pub-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.js-reveal .pub-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.js-reveal .pub-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.js-reveal .pub-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.js-reveal .pub-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.35s; }

/* ---------- Shared scaffolding ---------- */

.pub-wrap {
  max-width: var(--pub-container);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.pub-section { padding: 6rem 0; }
.pub-section-muted { background: var(--pub-surface-muted); }

.pub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pub-brass);
  margin-bottom: 0.9rem;
}
.pub-eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.7;
}

.pub-section-head {
  max-width: 680px;
  margin: 0 0 3.25rem;
}

.pub-section-head h2 {
  font-family: var(--pub-font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--pub-green-darkest);
  margin: 0 0 0.9rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.pub-section-head p {
  color: var(--pub-ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Buttons ---------- */

.pub-btn-primary,
.pub-btn-ghost,
.pub-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--pub-font);
  border-radius: 999px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.2s var(--pub-ease), box-shadow 0.2s var(--pub-ease),
    background 0.2s var(--pub-ease), border-color 0.2s var(--pub-ease), color 0.2s var(--pub-ease);
}

.pub-btn-primary {
  background: var(--pub-surface);
  color: var(--pub-green-darkest) !important;
  font-size: 0.98rem;
  padding: 0.85rem 1.8rem;
  box-shadow: var(--pub-shadow-md);
  border: 1px solid transparent;
}
.pub-btn-primary:hover { transform: translateY(-2px); box-shadow: var(--pub-shadow-lg); }
.pub-btn-primary .pub-btn-arrow { transition: transform 0.2s var(--pub-ease); }
.pub-btn-primary:hover .pub-btn-arrow { transform: translateX(3px); }

.pub-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff !important;
  font-size: 0.98rem;
  padding: 0.85rem 1.7rem;
  background: rgba(255, 255, 255, 0.04);
}
.pub-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }

/* ---------- Nav ---------- */

.pub-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 252, 249, 0.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--pub-ease), border-color 0.3s var(--pub-ease), box-shadow 0.3s var(--pub-ease);
}
.pub-nav.is-scrolled {
  background: rgba(251, 252, 249, 0.92);
  border-bottom-color: var(--pub-line);
  box-shadow: var(--pub-shadow-xs);
}

.pub-nav-inner {
  max-width: var(--pub-container);
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pub-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.pub-brand-logo {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--pub-green) 0%, var(--pub-green-dark) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), var(--pub-shadow-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-brand-logo svg { width: 19px; height: 19px; }

/* An uploaded logo (Administration -> Company Settings) replaces the
   green badge entirely - it already carries its own branding/colors, so
   forcing it into a small colored square would fight the image rather
   than frame it. Sized to the nav's height, natural aspect ratio. */
.pub-brand-logo.pub-brand-logo-img {
  width: auto;
  height: 34px;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.pub-brand-logo-img img {
  height: 100%;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  border-radius: 6px;
}

.pub-brand-mark {
  font-family: var(--pub-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pub-green-darkest);
}

.pub-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.pub-nav-links a:not(.pub-btn-login) {
  position: relative;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pub-ink-soft);
  padding: 0.25rem 0;
  transition: color 0.18s var(--pub-ease);
}
.pub-nav-links a:not(.pub-btn-login)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--pub-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--pub-ease);
}
.pub-nav-links a:not(.pub-btn-login):hover { color: var(--pub-green-dark); }
.pub-nav-links a:not(.pub-btn-login):hover::after { transform: scaleX(1); }

.pub-btn-login {
  background: linear-gradient(140deg, var(--pub-green) 0%, var(--pub-green-dark) 100%);
  color: #fff !important;
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
  box-shadow: var(--pub-shadow-sm);
}
.pub-btn-login:hover { box-shadow: var(--pub-shadow-md); transform: translateY(-1px); }

/* Mobile menu toggle - hidden on desktop. */
.pub-nav-toggle {
  display: none;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--pub-line-strong);
  border-radius: 11px;
  background: var(--pub-surface);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.pub-nav-toggle span {
  position: relative;
  width: 18px;
  height: 1.6px;
  background: var(--pub-green-darkest);
  border-radius: 2px;
  transition: background 0.2s var(--pub-ease);
}
.pub-nav-toggle span::before,
.pub-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: var(--pub-green-darkest);
  border-radius: 2px;
  transition: transform 0.24s var(--pub-ease);
}
.pub-nav-toggle span::before { top: -6px; }
.pub-nav-toggle span::after { top: 6px; }
.pub-nav.is-open .pub-nav-toggle span { background: transparent; }
.pub-nav.is-open .pub-nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.pub-nav.is-open .pub-nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.pub-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(760px 460px at 82% -12%, rgba(52, 165, 88, 0.34), transparent 60%),
    radial-gradient(560px 420px at -8% 116%, rgba(52, 165, 88, 0.16), transparent 55%),
    linear-gradient(158deg, var(--pub-green-dark) 0%, var(--pub-green-darker) 52%, var(--pub-green-darkest) 100%);
  color: #eaf4ec;
  padding: 6rem 0 8.5rem;
  overflow: hidden;
}
.pub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pub-grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: -1;
  pointer-events: none;
}
/* faint brass hairline where the hero meets the page */
.pub-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 92, 0.5), transparent);
  z-index: -1;
}

.pub-hero-inner {
  max-width: var(--pub-container);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 3.5rem;
}

.pub-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pub-brass-bright);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(216, 180, 92, 0.3);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.pub-hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pub-brass-bright);
  box-shadow: 0 0 0 3px rgba(216, 180, 92, 0.25);
}

.pub-hero h1 {
  font-family: var(--pub-font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1.35rem;
  color: #ffffff;
}
.pub-hero h1 .pub-hero-accent {
  color: var(--pub-brass-bright);
  font-style: italic;
  font-weight: 600;
}

.pub-hero p.pub-hero-sub {
  font-size: 1.16rem;
  line-height: 1.68;
  color: #cfe6d5;
  max-width: 540px;
  margin: 0 0 2.4rem;
}

.pub-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.pub-hero-note {
  margin-top: 1.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: #a9ccb2;
}
.pub-hero-note svg { width: 17px; height: 17px; flex: none; color: var(--pub-brass-bright); }

/* Hero visual - abstract, decorative shield/coverage composition. */
.pub-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}
.pub-hero-visual svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }

.pub-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

/* Floating glass chip on the hero visual. */
.pub-hero-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--pub-shadow-md);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.pub-hero-chip .pub-chip-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pub-hero-chip .pub-chip-dot svg { width: 15px; height: 15px; }
.pub-hero-chip small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: #b7d4bf;
  letter-spacing: 0.02em;
}
.pub-hero-chip-1 { top: 8%; left: -4%; animation: pub-float 7s var(--pub-ease) infinite; }
.pub-hero-chip-2 { bottom: 10%; right: -6%; animation: pub-float 8s var(--pub-ease) infinite 0.8s; }
.pub-hero-chip-1 .pub-chip-dot { background: rgba(52, 165, 88, 0.85); }
.pub-hero-chip-2 .pub-chip-dot { background: rgba(216, 180, 92, 0.9); color: #3a2c05; }

@keyframes pub-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Stats strip (overlaps hero bottom edge) ---------- */

.pub-stats-wrap {
  max-width: var(--pub-container);
  margin: -4.75rem auto 0;
  padding: 0 1.75rem;
  position: relative;
  z-index: 3;
}

.pub-stats {
  background: var(--pub-surface);
  border-radius: var(--pub-radius-lg);
  box-shadow: var(--pub-shadow-lg);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  position: relative;
}
.pub-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pub-green) 0%, var(--pub-accent) 45%, var(--pub-brass-bright) 100%);
}

.pub-stat {
  padding: 2.4rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--pub-line);
}
.pub-stat:last-child { border-right: none; }

.pub-stat-number {
  font-family: var(--pub-font-display);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  color: var(--pub-green-dark);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.pub-stat-number .pub-stat-plus { color: var(--pub-brass); }

.pub-stat-label {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pub-ink-faint);
}

/* ---------- What We Do: product cards ---------- */

.pub-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.pub-product-card {
  position: relative;
  background: var(--pub-surface);
  border: 1px solid var(--pub-line);
  border-radius: var(--pub-radius);
  padding: 2rem 1.7rem;
  overflow: hidden;
  transition: box-shadow 0.25s var(--pub-ease), transform 0.25s var(--pub-ease), border-color 0.25s var(--pub-ease);
}
.pub-product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--pub-accent), var(--pub-brass-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--pub-ease);
}
.pub-product-card:hover {
  box-shadow: var(--pub-shadow-md);
  transform: translateY(-4px);
  border-color: rgba(52, 165, 88, 0.35);
}
.pub-product-card:hover::before { transform: scaleX(1); }

.pub-product-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--pub-green-mist), var(--pub-green-soft));
  color: var(--pub-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(31, 122, 65, 0.1);
}
.pub-product-icon svg { width: 26px; height: 26px; }

.pub-product-card h3 {
  font-family: var(--pub-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--pub-green-darkest);
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
}

.pub-product-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--pub-ink-soft);
  margin: 0;
}

/* ---------- About / Mission ---------- */

.pub-about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.pub-about-grid h2 {
  font-family: var(--pub-font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--pub-green-darkest);
  margin: 0 0 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.pub-about-grid .pub-about-body {
  color: var(--pub-ink-soft);
  font-size: 1.05rem;
  line-height: 1.8;
  white-space: pre-line;
}

.pub-mission-card {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(420px 260px at 85% 0%, rgba(52, 165, 88, 0.22), transparent 60%),
    linear-gradient(158deg, var(--pub-green-dark) 0%, var(--pub-green-darkest) 100%);
  color: #eaf4ec;
  border-radius: var(--pub-radius-lg);
  padding: 2.6rem 2.4rem 2.4rem;
  box-shadow: var(--pub-shadow-lg);
  overflow: hidden;
}
.pub-mission-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pub-grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: -1;
}
.pub-mission-quote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--pub-brass-bright);
  display: block;
  margin-bottom: 0.4rem;
}
.pub-mission-card p {
  position: relative;
  font-size: 1.14rem;
  line-height: 1.7;
  margin: 0;
  color: #eef6ef;
  font-weight: 450;
}
.pub-mission-card .pub-mission-rule {
  width: 44px;
  height: 2px;
  background: var(--pub-brass-bright);
  margin-top: 1.6rem;
  border-radius: 2px;
}

/* ---------- News & Highlights ---------- */

.pub-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.pub-highlight-card {
  background: var(--pub-surface);
  border: 1px solid var(--pub-line);
  border-radius: var(--pub-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--pub-ease), transform 0.25s var(--pub-ease);
}
.pub-highlight-card:hover { box-shadow: var(--pub-shadow-md); transform: translateY(-4px); }

.pub-highlight-media {
  position: relative;
  height: 176px;
  background: linear-gradient(140deg, var(--pub-green-soft), var(--pub-green-mist));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pub-highlight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--pub-ease);
}
.pub-highlight-card:hover .pub-highlight-media img { transform: scale(1.05); }

.pub-highlight-media-placeholder {
  color: var(--pub-green);
  font-family: var(--pub-font-display);
  font-size: 2rem;
  font-weight: 800;
  opacity: 0.4;
}

.pub-highlight-body { padding: 1.5rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; }

.pub-highlight-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.pub-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  background: var(--pub-green-soft);
  color: var(--pub-green-dark);
}

.pub-highlight-date {
  font-size: 0.8rem;
  color: var(--pub-ink-faint);
  font-weight: 500;
}

.pub-highlight-card h3 {
  font-family: var(--pub-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pub-green-darkest);
  margin: 0 0 0.55rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pub-highlight-card p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--pub-ink-soft);
  margin: 0;
  flex: 1;
}

.pub-empty-note {
  color: var(--pub-ink-faint);
  font-size: 0.96rem;
  font-style: italic;
  background: var(--pub-surface-muted);
  border: 1px dashed var(--pub-line-strong);
  border-radius: var(--pub-radius);
  padding: 1.5rem 1.75rem;
}

/* ---------- Closing CTA ---------- */

.pub-cta {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(620px 340px at 12% 18%, rgba(52, 165, 88, 0.3), transparent 60%),
    radial-gradient(520px 300px at 92% 92%, rgba(216, 180, 92, 0.16), transparent 62%),
    linear-gradient(158deg, var(--pub-green-darker) 0%, var(--pub-green-darkest) 100%);
  color: #eaf4ec;
  border-radius: var(--pub-radius-lg);
  padding: 4rem 2.5rem;
  text-align: center;
  overflow: hidden;
}
.pub-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pub-grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: -1;
}
.pub-cta .pub-eyebrow { color: var(--pub-brass-bright); justify-content: center; }
.pub-cta h2 {
  font-family: var(--pub-font-display);
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  letter-spacing: -0.02em;
}
.pub-cta p {
  color: #cfe6d5;
  font-size: 1.06rem;
  margin: 0 auto 2rem;
  max-width: 520px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */

.pub-footer {
  background: var(--pub-green-darkest);
  color: rgba(234, 244, 236, 0.72);
  padding: 3rem 0 2.5rem;
  position: relative;
}
.pub-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 92, 0.4), transparent);
}

.pub-footer-inner {
  max-width: var(--pub-container);
  margin: 0 auto;
  padding: 0 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.pub-footer-brand {
  font-family: var(--pub-font-display);
  font-weight: 700;
  color: #ffffff;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.pub-footer-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--pub-green) 0%, var(--pub-green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.pub-footer-logo svg { width: 17px; height: 17px; }
.pub-footer-logo.pub-footer-logo-img {
  width: auto;
  height: 30px;
  background: none;
  border-radius: 0;
}
.pub-footer-logo-img img {
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 5px;
}

.pub-footer-website {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--pub-brass-bright) !important;
  border: 1px solid rgba(216, 180, 92, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  transition: background 0.18s var(--pub-ease), border-color 0.18s var(--pub-ease);
}
.pub-footer-website:hover { background: rgba(216, 180, 92, 0.12); border-color: rgba(216, 180, 92, 0.65); }

.pub-footer-copy { font-size: 0.84rem; }

.pub-footer-login {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pub-brass-bright) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Hospital Network directory ---------- */

.pub-hospital-hero {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(720px 440px at 86% -12%, rgba(52, 165, 88, 0.34), transparent 60%),
    linear-gradient(158deg, var(--pub-green-dark) 0%, var(--pub-green-darkest) 100%);
  color: #eaf4ec;
  padding: 4.5rem 0 3.75rem;
  overflow: hidden;
}
.pub-hospital-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pub-grain);
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: -1;
}
.pub-hospital-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 92, 0.5), transparent);
  z-index: -1;
}

.pub-hospital-hero h1 {
  font-family: var(--pub-font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.7rem;
  color: #ffffff;
}

.pub-hospital-hero p {
  font-size: 1.08rem;
  color: #cfe6d5;
  max-width: 660px;
  margin: 0 0 2rem;
  line-height: 1.65;
}

/* Search - an icon-prefixed pill field + brass-hover button. */
.pub-hospital-search {
  display: flex;
  gap: 0.6rem;
  max-width: 520px;
}

.pub-hospital-search-field {
  position: relative;
  flex: 1;
}
.pub-hospital-search-field svg {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--pub-ink-faint);
  pointer-events: none;
}
.pub-hospital-search-field input[type="text"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.85rem 1.35rem 0.85rem 2.8rem;
  font-size: 0.98rem;
  font-family: var(--pub-font);
  box-shadow: var(--pub-shadow-md);
  background: rgba(255, 255, 255, 0.97);
  color: var(--pub-ink);
}
.pub-hospital-search-field input[type="text"]::placeholder { color: var(--pub-ink-faint); }
.pub-hospital-search-field input[type="text"]:focus {
  outline: none;
  box-shadow: var(--pub-shadow-md), 0 0 0 3px rgba(216, 180, 92, 0.45);
}

.pub-hospital-search button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-weight: 700;
  font-family: var(--pub-font);
  background: #ffffff;
  color: var(--pub-green-darkest);
  box-shadow: var(--pub-shadow-md);
  cursor: pointer;
  transition: transform 0.18s var(--pub-ease), box-shadow 0.18s var(--pub-ease);
}
.pub-hospital-search button:hover { transform: translateY(-1px); box-shadow: var(--pub-shadow-lg); }

.pub-hospital-search-clear {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cfe6d5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Directory grid ---------- */

.pub-hospital-section { padding-top: 3.25rem; }

.pub-hospital-count {
  color: var(--pub-ink-faint);
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 1.9rem;
}
.pub-hospital-count strong {
  color: var(--pub-green-dark);
  font-weight: 700;
}

.pub-hospital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.6rem;
}

.pub-hospital-card {
  position: relative;
  border-radius: var(--pub-radius);
  background: linear-gradient(180deg, var(--hue-mist, var(--pub-green-mist)) 0%, var(--pub-surface) 150px, var(--pub-surface) 100%);
  border: 1px solid var(--pub-line);
  box-shadow: var(--pub-shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--pub-ease), transform 0.25s var(--pub-ease), border-color 0.25s var(--pub-ease);
}
.pub-hospital-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: linear-gradient(90deg, var(--hue-a, var(--pub-accent)), var(--hue-b, var(--pub-brass-bright)));
  opacity: 0.92;
  transition: opacity 0.25s var(--pub-ease);
}
.pub-hospital-card:hover {
  box-shadow: var(--pub-shadow-md);
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--hue-a, var(--pub-accent)) 40%, var(--pub-line));
}
.pub-hospital-card:hover::before { opacity: 1; }

/* Six curated accent hues, cycled in list order by HospitalNetwork.cshtml
   (purely decorative, not tied to any hospital attribute) - what keeps a
   long directory from reading as a wall of identical white tiles, without
   going back to the old solid color-block cards this replaced. Each hue
   feeds the top accent bar, the monogram tile, and a soft color wash across
   the card's upper portion that fades to white by the time the address/
   contact rows start, so body text always sits on a plain, readable page. */
.pub-hospital-card.pub-hue-0 {
  --hue-ink: var(--pub-green-dark);
  --hue-mist: var(--pub-green-mist);
  --hue-soft: var(--pub-green-soft);
  --hue-a: var(--pub-accent);
  --hue-b: var(--pub-brass-bright);
}
.pub-hospital-card.pub-hue-1 {
  --hue-ink: #9a7b28;
  --hue-mist: #faf3e2;
  --hue-soft: #f3ead2;
  --hue-a: #d8b45c;
  --hue-b: #9a7b28;
}
.pub-hospital-card.pub-hue-2 {
  --hue-ink: #0d6e63;
  --hue-mist: #e8f6f3;
  --hue-soft: #cdece5;
  --hue-a: #23a390;
  --hue-b: #0d6e63;
}
.pub-hospital-card.pub-hue-3 {
  --hue-ink: #2a5a9c;
  --hue-mist: #eaf1fb;
  --hue-soft: #d2e2f6;
  --hue-a: #4a86d6;
  --hue-b: #2a5a9c;
}
.pub-hospital-card.pub-hue-4 {
  --hue-ink: #ad4f30;
  --hue-mist: #fbeee7;
  --hue-soft: #f4d8c8;
  --hue-a: #dd7d4e;
  --hue-b: #ad4f30;
}
.pub-hospital-card.pub-hue-5 {
  --hue-ink: #6a4a92;
  --hue-mist: #f2ecf8;
  --hue-soft: #e0d0ef;
  --hue-a: #8f6bbd;
  --hue-b: #6a4a92;
}

.pub-hospital-card-top {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1.5rem 1.6rem 1.15rem;
}

.pub-hospital-monogram {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--hue-mist, var(--pub-green-mist)), var(--hue-soft, var(--pub-green-soft)));
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  color: var(--hue-ink, var(--pub-green-dark));
  font-family: var(--pub-font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pub-hospital-card-title { min-width: 0; }

.pub-hospital-card-title h3 {
  font-family: var(--pub-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--pub-green-darkest);
  letter-spacing: -0.01em;
  margin: 0.15rem 0 0.45rem;
  line-height: 1.25;
}

.pub-hospital-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pub-hospital-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.24rem 0.62rem;
  border-radius: 999px;
}
.pub-hospital-tag svg { width: 11px; height: 11px; }

.pub-tag-cashless {
  background: var(--pub-green-soft);
  color: var(--pub-green-dark);
}
.pub-tag-panel {
  background: var(--pub-brass-soft);
  color: var(--pub-brass);
}

.pub-hospital-card-body {
  padding: 0 1.6rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-top: 1px solid var(--pub-line);
  padding-top: 1.15rem;
  margin-top: 0.1rem;
}

.pub-hospital-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--pub-ink-soft);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pub-hospital-row-icon {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--pub-surface-muted);
  color: var(--pub-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-hospital-row-icon svg { width: 15px; height: 15px; }

/* Discounts - a quiet labelled strip of three stat chips. */
.pub-hospital-discounts {
  margin-top: auto;
  padding-top: 1.05rem;
  border-top: 1px dashed var(--pub-line-strong);
}

.pub-hospital-discounts-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pub-ink-faint);
  margin-bottom: 0.55rem;
}

.pub-hospital-discount-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.pub-hospital-discount {
  text-align: center;
  background: var(--pub-surface-muted);
  border: 1px solid var(--pub-line);
  border-radius: var(--pub-radius-sm);
  padding: 0.62rem 0.4rem 0.55rem;
}

.pub-hospital-discount-value {
  font-family: var(--pub-font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--pub-green-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pub-hospital-discount-name {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pub-ink-faint);
  margin-top: 0.28rem;
}

.pub-hospital-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--pub-ink-faint);
  font-size: 1rem;
  background: var(--pub-surface-muted);
  border: 1px dashed var(--pub-line-strong);
  border-radius: var(--pub-radius);
}
.pub-hospital-empty a { color: var(--pub-green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.pub-hospital-empty p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .pub-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .pub-hero-visual { order: -1; min-height: 240px; margin: 0 auto; max-width: 360px; }
  .pub-hero { padding: 4.5rem 0 8rem; }
}

@media (max-width: 860px) {
  .pub-about-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .pub-stats { grid-template-columns: 1fr; }
  .pub-stat { border-right: none; border-bottom: 1px solid var(--pub-line); }
  .pub-stat:last-child { border-bottom: none; }
  .pub-section { padding: 4.5rem 0; }
}

@media (max-width: 720px) {
  .pub-nav-toggle { display: inline-flex; }
  .pub-nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--pub-surface);
    border-bottom: 1px solid var(--pub-line);
    box-shadow: var(--pub-shadow-md);
    padding: 0.5rem 1.25rem 1.25rem;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    pointer-events: none;
    transition: clip-path 0.3s var(--pub-ease), opacity 0.2s var(--pub-ease);
  }
  .pub-nav.is-open .pub-nav-links {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    pointer-events: auto;
  }
  .pub-nav-links a:not(.pub-btn-login) {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--pub-line);
    font-size: 1rem;
  }
  .pub-nav-links a:not(.pub-btn-login)::after { display: none; }
  .pub-btn-login { margin-top: 0.9rem; justify-content: center; padding: 0.8rem 1.4rem; }
}

@media (max-width: 560px) {
  .pub-wrap { padding: 0 1.35rem; }
  .pub-nav-inner { padding: 0.85rem 1.35rem; }
  .pub-hero-inner { padding: 0 1.35rem; }
  .pub-stats-wrap { padding: 0 1.35rem; }
  .pub-hero-chip { display: none; }
  .pub-hospital-search { flex-direction: column; max-width: none; }
  .pub-cta { padding: 3rem 1.5rem; }
  .pub-mission-card { padding: 2.2rem 1.75rem; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  .pub-hero-chip-1,
  .pub-hero-chip-2 {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal .pub-reveal,
  .js-reveal .pub-reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
