/* MAXimum Research, Inc. -- Main Stylesheet */
/* Fonts: Oswald (headings) + Source Serif 4 (body) */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --red:          #c0392b;
  --red-dark:     #922b21;
  --red-light:    #f9ebea;
  --red-mid:      #e74c3c;
  --charcoal:     #1c1c1c;
  --charcoal-mid: #2d2d2d;
  --ink:          #333333;
  --body-text:    #444444;
  --muted:        #777777;
  --faint:        #aaaaaa;
  --rule:         #e0e0e0;
  --bg:           #f8f6f2;
  --bg-warm:      #f2ede6;
  --surface:      #ffffff;
  --nav-bg:       #1c1c1c;
  --nav-height:   64px;
  --max-width:    1140px;
  --gutter:       2rem;
  --radius:       4px;
  --radius-lg:    8px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.13);
  --transition:   0.18s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 400;
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red-dark);
}

ul, ol {
  padding-left: 1.5rem;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }

p {
  margin-bottom: 1.1rem;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--surface);
}

.section--dark {
  background: var(--charcoal);
  color: #ffffff;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #ffffff;
}

.section--red {
  background: var(--red);
  color: #fff;
}

.section--red h1,
.section--red h2,
.section--red h3 {
  color: #fff;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.section-subtitle {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header--center {
  text-align: center;
}

/* Red accent rule under section titles */
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--red);
  margin-top: 0.6rem;
}

.section-header--center .section-title::after {
  margin: 0.6rem auto 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 2rem;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--red);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-mark svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.nav-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.nav-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  gap: 0;
  flex: 1;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a,
.nav-links > li > span {
  display: flex;
  align-items: center;
  gap: 4px;
  height: var(--nav-height);
  padding: 0 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > span:hover,
.nav-links > li.active > a {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}

.nav-links > li > a.active {
  color: #fff;
  border-bottom: 2px solid var(--red);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--charcoal-mid);
  min-width: 210px;
  border-top: 2px solid var(--red);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  list-style: none;
  padding: 0.4rem 0;
  z-index: 300;
}

.nav-links > li:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.nav-dropdown li a:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
}

/* Dropdown arrow indicator */
.nav-arrow {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform var(--transition);
}

.nav-links > li:hover .nav-arrow {
  transform: rotate(180deg);
}

/* CTA button in nav */
.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}

.nav-cta a {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--red);
  color: #fff !important;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
  white-space: nowrap;
}

.nav-cta a:hover {
  background: var(--red-dark);
}

/* Mobile hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f0f0f0;
  transition: var(--transition);
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  background: var(--charcoal);
  padding: 3rem 0 2.5rem;
  border-bottom: 3px solid var(--red);
}

.page-hero h1 {
  color: #ffffff;
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.page-hero p {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumb li { color: #ffffff; }
.breadcrumb li a { color: #ffffff; text-decoration: none; }
.breadcrumb li a:hover { color: #fff; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.5rem; opacity: 0.4; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  border: 1px solid var(--rule);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.7rem 1.75rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: #ffffff;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
  color: #ffffff;
}

/* ============================================================
   ACCORDION (replaces Wix "Read More" sections)
   ============================================================ */
.accordion {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover {
  background: var(--bg-warm);
}

.accordion-header h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--charcoal);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--red);
  transition: transform var(--transition);
}

.accordion.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion.open .accordion-body {
  max-height: 2000px;
}

.accordion-content {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ============================================================
   MODAL (replaces Wix popup dialogs)
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.2rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  transition: color var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--charcoal);
}

.modal-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal-body {
  padding: 1.5rem 1.75rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.modal-body p { margin-bottom: 0.9rem; }
.modal-body ul { margin-bottom: 0.9rem; }
.modal-body li { margin-bottom: 0.3rem; }

/* Trigger links for modals */
.modal-trigger {
  color: var(--red);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 400;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  transition: color var(--transition);
}

.modal-trigger:hover {
  color: var(--red-dark);
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  background: var(--charcoal);
  padding: 2.5rem 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--red-mid);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.8rem;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
}

/* ============================================================
   INDUSTRY TAG CLOUD
   ============================================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2rem;
  font-size: 0.82rem;
  color: var(--ink);
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.tag:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* ============================================================
   TWO-COLUMN CONTENT LAYOUT
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.two-col--60-40 {
  grid-template-columns: 3fr 2fr;
}

.two-col--40-60 {
  grid-template-columns: 2fr 3fr;
}

/* ============================================================
   PROFILE CARDS (team bios)
   ============================================================ */
.profile-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}

.profile-card-header {
  background: var(--charcoal);
  padding: 2rem 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.15);
}

.profile-name {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.profile-title {
  font-size: 0.82rem;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
}

.profile-card-body {
  padding: 1.5rem 1.75rem;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--body-text);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: var(--red);
  margin-left: 2px;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: 'Source Serif 4', serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #cccccc;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.form-control::placeholder {
  color: var(--faint);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--red);
}

.form-check label {
  font-size: 0.92rem;
  color: var(--body-text);
  cursor: pointer;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--charcoal);
  color: #f0f0f0;
  padding: 3.5rem 0 1.5rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .nav-logo-text {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: block;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #f0f0f0;
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.45rem;
}

.footer-col ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
  color: #f0f0f0;
}

.footer-contact-line svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--red-mid);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: #f0f0f0;
}

.footer-bottom a {
  color: #f0f0f0;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #aaaaaa;
}

/* ============================================================
   NOTICE BAR (DNC / received a call)
   ============================================================ */
.notice-bar {
  background: var(--red-light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.notice-bar strong {
  color: var(--red-dark);
}

/* ============================================================
   TABLE STYLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--charcoal);
  color: #ffffff;
  padding: 0.75rem 1rem;
  text-align: left;
}

td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tr:nth-child(even) td {
  background: var(--bg);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--muted); }
.text-red     { color: var(--red); }
.text-white   { color: #ffffff; }
.text-small   { font-size: 0.85rem; }
.text-large   { font-size: 1.1rem; }
.font-heading { font-family: 'Oswald', sans-serif; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --gutter: 1.25rem; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }
  .two-col,
  .two-col--60-40,
  .two-col--40-60 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--charcoal-mid);
    padding: 0.5rem 0 1rem;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .nav-links.open > li > a,
  .nav-links.open > li > span {
    height: auto;
    padding: 0.75rem 1.5rem;
  }
  .nav-links.open .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: rgba(0,0,0,0.2);
    padding-left: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section { padding: 2.5rem 0; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 2rem; }
}

/* ============================================================
   FADE-IN ANIMATION (driven by nav.js IntersectionObserver)
   Visible by default -- animation only applies on a live server
   ============================================================ */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Animation only kicks in when JS has had a chance to run on a server */
.fade-in.js-loaded {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.js-loaded.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.js-loaded:nth-child(2) { transition-delay: 0.08s; }
.fade-in.js-loaded:nth-child(3) { transition-delay: 0.16s; }
.fade-in.js-loaded:nth-child(4) { transition-delay: 0.24s; }
.fade-in.js-loaded:nth-child(5) { transition-delay: 0.32s; }
.fade-in.js-loaded:nth-child(6) { transition-delay: 0.40s; }

/* ============================================================
   LOGO IMAGE
   ============================================================ */
.nav-logo-img {
  height: 40px !important;
  width: 40px !important;
  max-height: 40px !important;
  max-width: 40px !important;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.footer-logo .nav-logo-img {
  height: 36px !important;
  width: 36px !important;
  max-height: 36px !important;
  max-width: 36px !important;
}

.footer-logo .nav-logo-text {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* ============================================================
   GLOBAL SVG GUARD
   Prevents bare inline SVGs without explicit width/height
   attributes from expanding to fill their container.
   Any SVG that needs to be larger must set width/height explicitly.
   ============================================================ */
svg:not([width]):not([height]):not(.site-footer svg):not(.stat-strip svg) {
  max-width: 24px;
  max-height: 24px;
}

