*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  color-scheme: light;
  --navy: #1d5394;
  --teal: #007f45;
  --green-nav: #007f45;
  --text-dark: #2d2d4f;
  --text-mid: #2d2d4f;
  --white: #ffffff;
  --light-bg: #f4f6f8;
  --border: #dde3e8;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  overflow-x: hidden; /* fallback for older browsers */
  overflow-x: clip;   /* prevents any horizontal shift, even programmatic */
  -webkit-text-size-adjust: 100%; /* stops iOS Safari auto-boosting font size in narrow columns (footer, FAQ text blocks) */
  text-size-adjust: 100%;
}

/* ── ACCESSIBILITY: keyboard focus & skip link ──
   :focus-visible only triggers for keyboard/non-pointer interaction, so this
   changes nothing for mouse/touch visitors — same look, same layout. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 84px;
}

.nav-logo img {
  height: 76px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--green-nav); }

.nav-links > li > a { font-weight: 700; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-right a {
  text-decoration: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 16px;
  border-left: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-right a:hover { color: var(--green-nav); }

/* ── DROPDOWNS ── */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: ' ▾'; font-size: 10px; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  background: #fff;
  border-top: 3px solid var(--green-nav);
  border: 0.5px solid var(--border);
  border-top: 3px solid var(--green-nav);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 2000;
  min-width: 560px;
  flex-direction: row;
}

.has-dropdown.open .dropdown { display: flex; }
.has-dropdown.open > a::after { content: ' ▴'; }

/* Left sidebar: category tabs */
.dropdown-tabs {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  border-right: 1px solid var(--border);
  background: #f9f9f9;
}

.dropdown-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.dropdown-tab:hover,
.dropdown-tab.active {
  background: #fff;
  color: var(--green-nav);
}

.dropdown-tab::after { content: '›'; font-size: 16px; color: #aaa; }
.dropdown-tab:hover::after,
.dropdown-tab.active::after { color: var(--green-nav); }

/* Right panel: items */
.dropdown-panels { flex: 1; padding: 16px 20px; }

.dropdown-panel { display: none; flex-direction: column; gap: 4px; }
.dropdown-panel.active { display: flex; }

.dropdown-panel-heading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-nav);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}

.dropdown-item:hover { background: #f4f8f4; }

.dropdown-item img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.dropdown-item-text .item-name {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-item-text .item-desc {
  font-size: 12px;
  color: #767676;
  margin-top: 1px;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 700px;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* iframes have no native object-fit support, so they still need the vh-based cover trick */
.hero-video-wrap iframe {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  object-fit: cover;
}

/* <video> supports object-fit natively — size it to the hero box itself, not the viewport,
   so it scales correctly when .hero's height is reduced on mobile */
.hero-video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,20,35,0.72) 0%, rgba(10,20,35,0.35) 60%, rgba(10,20,35,0.15) 100%);
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 64px;
  max-width: 560px;
  color: #fff;
}

.hero-content h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.92;
  margin-bottom: 28px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.pillars-header {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.pillars-header h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 6px 0 0;
}

.section-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-nav);
  margin-bottom: 8px;
}

.btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 2px solid rgba(255,255,255,0.7);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.btn-learn:hover { border-color: #fff; }

/* ── PRODUCT FEATURE SECTIONS ── */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.product-feature.reverse { direction: rtl; }
.product-feature.reverse > * { direction: ltr; }

.product-feature-img {
  position: relative;
  overflow: hidden;
}

.product-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-feature-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.product-icon-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.product-icon-wrap img {
  height: 52px;
  width: auto;
}

.product-icon-wrap h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
}

.product-feature-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 28px;
  max-width: 420px;
}

.product-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.product-mini-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.product-mini-item img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.product-mini-item .mini-label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-mini-item .mini-label:hover { color: var(--teal); }

.product-mini-item .mini-desc {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
  line-height: 1.4;
}

/* ── FULL-WIDTH PHOTO FEATURE ── */
.photo-feature {
  position: relative;
  height: 600px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
  margin-bottom: -60px;
  z-index: 1;
}

.photo-feature.clip-top {
  clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 60px), 0 100%);
  z-index: 2;
}

.photo-feature.clip-top-only {
  clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%);
  margin-bottom: 0;
  z-index: 3;
}

.photo-feature.clip-none {
  clip-path: none;
  margin-bottom: 0;
}

.photo-feature img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.photo-feature-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,20,35,0.38);
}

.photo-feature-content {
  position: absolute;
  bottom: 80px;
  left: 64px;
  max-width: 440px;
  color: #fff;
  text-align: left;
}

.photo-feature-content.right {
  left: auto;
  right: 64px;
  text-align: right;
}

.photo-feature-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.photo-feature-content.right .photo-feature-title {
  justify-content: flex-end;
}

.photo-feature-title h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
  margin: 0;
}

.photo-feature-title img {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.photo-feature-content p {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* ── STATS + MAP ── */
.stats-map {
  background: #f8f9fb;
  padding: 64px 64px 48px;
  overflow: visible;
}
#agre-map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 32px;
}
/* ── TABLET (≤900px) ── */
@media (max-width: 900px) {
  /* Feature cards: 3-col → 2-col */
  .feature-cards-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Related products: 3-col → 2-col */
  .related-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* CTA bar: 2-col → stacked */
  .cta-section {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding: 56px 40px !important;
    text-align: center;
  }
  .cta-section p { max-width: none; }
  .cta-section a { justify-self: center; }
  /* Contact section: 2-col → stacked */
  .contact-section {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 56px 40px !important;
  }
  /* Page hero (navy solid hero) */
  .page-hero { padding: 64px 24px !important; }
  .page-hero h1 { font-size: 2rem !important; }
  /* Footer: 5-col inline → 3-col at tablet */
  .footer-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 28px 20px !important; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── MOBILE (≤768px) ── */
@media (max-width: 768px) {
  /* Map + stats */
  #agre-map { height: 380px !important; }
  .stats-map { padding: 48px 20px 36px; }
  .stats-row { gap: 12px !important; }
  .stat-box .num { font-size: 30px !important; }

  /* Main hero */
  .hero { height: 480px; }
  .hero-content { left: 24px; right: 24px; bottom: 56px; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 14px; }
  .hero-content br { display: none; }

  /* Footer — single stacked column, styled to match the mobile nav accordion */
  footer { padding: 40px 0 16px !important; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 0 !important; margin-bottom: 8px !important; }
  .footer-brand { grid-column: 1 / -1; padding: 0 24px 28px; }
  .footer-grid > div:not(.footer-brand) { border-top: 1px solid rgba(255,255,255,0.12); padding: 4px 24px; }
  footer h3 { padding: 14px 0 2px; margin-bottom: 0 !important; }
  .footer-accordion-btn { padding: 14px 0; font-size: 15px; }
  .footer-accordion-btn .toggle-icon { font-size: 20px; }
  .footer-accordion-body { padding: 0 0 12px 8px; }
  .footer-accordion-body a { padding: 9px 0; font-size: 14px; }
  footer ul li a { display: block; padding: 9px 0; font-size: 14px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 20px 24px 0; }

  /* Page hero (navy solid) */
  .page-hero { padding: 56px 20px !important; }
  .page-hero h1 { font-size: 1.85rem !important; }
  .page-hero p, .page-hero .subtitle { font-size: 1rem !important; }

  /* Feature cards: horizontal scroll strip */
  .features-section { padding: 48px 0 40px !important; }
  .features-section .features-section-header { padding: 0 20px; }
  .feature-cards-grid {
    display: flex !important;
    grid-template-columns: unset !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 4px 20px 16px 24px !important;
    scrollbar-width: thin;
    scrollbar-color: #1d5394 #dde3e8;
  }
  .feature-cards-grid::-webkit-scrollbar { height: 4px; }
  .feature-cards-grid::-webkit-scrollbar-track { background: #dde3e8; border-radius: 2px; }
  .feature-cards-grid::-webkit-scrollbar-thumb { background: #1d5394; border-radius: 2px; }
  .feature-cards-grid .feature-card {
    flex: 0 0 auto !important;
    width: 260px !important;
    scroll-snap-align: start;
  }

  /* Wide feature card: 2-col → 1-col */
  .feature-card-wide { grid-template-columns: 1fr !important; gap: 20px !important; }
  .feature-card-wide .feature-card-right ul { grid-template-columns: 1fr !important; }

  /* Add-ons: 2-col → 1-col */
  .addons-grid { grid-template-columns: 1fr !important; }
  .addons-section { padding: 40px 20px; }

  /* Downloads bar: horizontal → vertical */
  .downloads-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 40px 20px !important;
    gap: 20px !important;
  }

  /* Testimonial */
  .testimonial-section { padding: 48px 20px !important; }
  .testimonial-attribution { flex-wrap: wrap; justify-content: center; }
  .testimonial-attribution-text { text-align: center; }

  /* Related products: auto-scroll carousel */
  .related-section { padding: 48px 20px !important; }
  .related-grid {
    display: block !important;
    grid-template-columns: unset !important;
    overflow: hidden !important;
    margin: 0 -20px !important;
    padding: 8px 0 !important;
  }
  .related-carousel-track {
    display: flex;
    gap: 16px;
    padding: 4px 20px 12px;
    will-change: transform;
  }
  .related-carousel-track .related-card {
    flex: 0 0 210px;
    min-width: 210px;
  }

  /* CTA section */
  .cta-section {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 48px 20px !important;
    text-align: center;
  }
  .cta-section p { max-width: none; }
  .cta-section a { justify-self: center; }

  /* Contact section */
  .contact-section {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 48px 20px !important;
  }
  .contact-form { grid-template-columns: 1fr !important; }
  .contact-form .btn-submit { grid-column: 1; }

  /* Product feature (2-col photo+text) */
  .product-feature { grid-template-columns: 1fr; min-height: 0; }
  .product-feature-img { min-height: 220px; }
  .product-feature-content { padding: 40px 20px; }
  .product-mini-grid { grid-template-columns: 1fr; }

  /* FAQ section */
  .faq-section { padding: 48px 20px; }
}

/* Feature card horizontal scroll: also apply in mobile landscape.
   Many phones report widths >768px when rotated (e.g. 812–932px), so the
   ≤768px query above misses them and the grid falls back to its multi-column
   layout — showing every card at once instead of the intended scroll strip.
   Target short-height touch viewports instead of relying on width alone. */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .feature-cards-grid {
    display: flex !important;
    grid-template-columns: unset !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 4px 20px 16px 24px !important;
    scrollbar-width: thin;
    scrollbar-color: #1d5394 #dde3e8;
  }
  .feature-cards-grid::-webkit-scrollbar { height: 4px; }
  .feature-cards-grid::-webkit-scrollbar-track { background: #dde3e8; border-radius: 2px; }
  .feature-cards-grid::-webkit-scrollbar-thumb { background: #1d5394; border-radius: 2px; }
  .feature-cards-grid .feature-card {
    flex: 0 0 auto !important;
    width: 260px !important;
    scroll-snap-align: start;
  }
}

/* Card scroll nav (arrows + counter) — kept outside any media query since
   the .card-scroll-nav element is only ever inserted by JS (initCardScrollNav)
   when a mobile-portrait or mobile-landscape viewport is detected, so a
   width-gated block here would miss the landscape case. */
.card-scroll-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px 0;
}
.csn-btn {
  background: none;
  border: 1.5px solid #1d5394;
  color: #1d5394;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  flex-shrink: 0;
}
.csn-btn:not(:disabled):hover { background: #1d5394; color: #fff; }
.csn-btn:disabled { border-color: #dde3e8; color: #bcc1ca; cursor: default; }
.csn-counter {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #5a6175;
  min-width: 44px;
  text-align: center;
}

.stats-map-header {
  text-align: center;
  margin-bottom: 48px;
}

.stats-map-header h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.stats-map-header p {
  font-size: 15px;
  color: #666;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto 48px;
}

.stat-box {
  text-align: center;
}

.stat-box .num {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.stat-box .lbl {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  font-weight: 500;
}

/* ── FAQ ── */
.faq-section {
  background: var(--light-bg);
  padding: 72px max(64px, calc((100vw - 1100px) / 2));
  clip-path: polygon(0 32px, 100% 0, 100% 100%, 0 100%);
  margin-top: -2px;
}

.faq-section h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 40px;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 18px 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--teal);
  flex-shrink: 0;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
}

/* ── CONTACT CTA ── */
.contact-cta {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.contact-cta img.cta-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.contact-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,20,35,0.5);
}

.contact-cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
  color: #fff;
}

.contact-cta-content h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 32px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #dde3e8;
  border-radius: 6px;
  background: #fafbfc;
  color: #2d2d4f;
  font-size: 14px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  transition: border-color 0.2s;
}

.contact-form input:focus:not(:focus-visible),
.contact-form select:focus:not(:focus-visible),
.contact-form textarea:focus:not(:focus-visible) { outline: none; }

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa0aa; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: #007f45; background: #fff; }

.contact-form .full-width { grid-column: 1 / -1; }

.contact-form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.contact-form .form-required-note {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: #9aa0aa;
  margin: -4px 0 4px;
}

.form-consent {
  grid-column: 1 / -1;
  font-size: 12.5px;
  line-height: 1.5;
  color: #9aa0aa;
  margin: -2px 0 2px;
}
.form-consent a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}
.form-consent a:hover { text-decoration: underline; }

.btn-submit {
  grid-column: 1 / -1;
  padding: 14px;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-submit:hover { background: #008a47; }

/* ── NEWS ARTICLE PAGES ── */
/* Base styles for article pages that use .page-hero without defining it themselves.
   Pages with their own inline .page-hero override these via the cascade. */
/* Viewport-centered container for all navy .page-hero sections.
   Using 100vw-based margins places the block at the true visual center
   of the browser window (including scrollbar), not just the scrollable area.
   Both margins must use the same formula (not margin-right:auto) — with
   width left auto, an auto margin-right resolves to 0 whenever the vw-based
   value is below the max-width cap (i.e. every viewport under ~1150px),
   which silently right-flushed the box and pushed its centered text ~12px
   off-center on all mobile/tablet widths. */
.page-hero .container {
  max-width: 1100px;
  margin-left: max(24px, calc((100vw - 1100px) / 2));
  margin-right: max(24px, calc((100vw - 1100px) / 2));
  padding: 0 24px;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 24px 56px;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 38px;
  margin: 0 auto 14px;
  color: #fff;
  line-height: 1.3;
  text-wrap: balance;
}
.page-hero p {
  max-width: 680px;
  margin: 0 auto 16px;
  color: rgba(255,255,255,0.8);
  text-wrap: balance;
}
.news-date-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px max(64px, calc((100vw - 1100px) / 2)) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
}

footer h3 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

footer ul { list-style: none; }

footer ul li { margin-bottom: 9px; }

footer ul li a {
  text-decoration: none;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

footer ul li a:hover { color: rgba(255,255,255,0.9); }

.footer-accordion-list { margin-bottom: 4px; }

.footer-accordion { border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-accordion:last-child { border-bottom: none; }

.footer-accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 9px 0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.footer-accordion-btn:hover { color: rgba(255,255,255,0.95); }

.footer-accordion-btn .toggle-icon {
  font-size: 16px;
  line-height: 1;
  color: var(--teal);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}
.footer-accordion-btn.open .toggle-icon { transform: rotate(45deg); }

.footer-accordion-body {
  display: none;
  padding: 2px 0 10px 14px;
}
.footer-accordion-body.open { display: block; }

.footer-accordion-body a {
  display: block;
  padding: 6px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.58);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-accordion-body a:hover { color: #fff; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 28px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 32px;
}
.footer-social a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}
.footer-social a:hover { color: #ffffff; }

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── MOBILE NAV ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 84px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  z-index: 999;
  border-top: 3px solid var(--teal);
}
.mobile-menu.open { display: block; }

.mobile-nav-link {
  display: block;
  padding: 16px 24px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--teal); }

.mobile-accordion { border-bottom: 1px solid var(--border); }

.mobile-accordion-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 24px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.mobile-accordion-btn .toggle-icon {
  font-size: 22px;
  line-height: 1;
  color: var(--teal);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.mobile-accordion-btn.open .toggle-icon { transform: rotate(45deg); }

.mobile-accordion-body {
  display: none;
  background: #f9f9f9;
  padding: 8px 0 12px;
}
.mobile-accordion-body.open { display: block; }

.mobile-section-heading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  padding: 14px 28px 6px;
}

.mobile-section-subheading {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: #7a828c;
  padding: 0 28px 8px;
}

.mobile-accordion-body a {
  display: block;
  padding: 10px 28px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.mobile-accordion-body a:hover { color: var(--teal); background: #eef5f0; }

.mobile-link-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #7a828c;
  margin-top: 2px;
}
.mobile-accordion-body a:hover .mobile-link-desc { color: var(--teal); }

.mobile-nav-logins {
  display: flex;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.mobile-nav-logins-top {
  border-top: none;
  border-bottom: 1px solid var(--border);
  margin-top: 0;
  margin-bottom: 8px;
}
.mobile-login-btn {
  display: inline-block;
  padding: 11px 22px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

/* ── COOKIE CONSENT BANNER ── */
.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15,20,30,0.5);
  animation: cookie-consent-backdrop-in 0.3s ease;
}
.cookie-consent-backdrop.cookie-consent-hide {
  animation: cookie-consent-backdrop-out 0.25s ease forwards;
}
@keyframes cookie-consent-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cookie-consent-backdrop-out {
  to { opacity: 0; }
}
.cookie-consent-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  width: 420px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  padding: 28px 28px 24px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  animation: cookie-consent-in 0.35s ease;
}
@keyframes cookie-consent-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.cookie-consent-banner.cookie-consent-hide {
  animation: cookie-consent-out 0.25s ease forwards;
}
@keyframes cookie-consent-out {
  to { opacity: 0; transform: translate(-50%, -50%) scale(0.94); }
}
.cookie-consent-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: #9aa0aa;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.cookie-consent-close:hover { background: var(--light-bg); color: var(--text-dark); }
.cookie-consent-logo img {
  height: 20px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}
.cookie-consent-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.cookie-consent-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-mid);
  margin-bottom: 18px;
}
.cookie-consent-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}
.cookie-consent-link:hover { text-decoration: underline; }
.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-consent-accept {
  flex: 1;
  padding: 12px 20px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.cookie-consent-accept:hover { background: #163f70; }
.cookie-consent-decline {
  background: none;
  border: none;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.cookie-consent-decline:hover { color: var(--navy); }
@media (max-width: 600px) {
  .cookie-consent-banner {
    width: calc(100vw - 32px);
    max-width: none;
    padding: 24px 20px 20px;
  }
}
.mobile-login-outline {
  color: var(--navy);
  border: 2px solid var(--navy);
}
.mobile-login-outline:hover { background: var(--navy); color: #fff; }
.mobile-login-solid {
  background: var(--teal);
  color: #fff;
  border: 2px solid var(--teal);
}
.mobile-login-solid:hover { background: #008a47; border-color: #008a47; }

@media (max-width: 1220px) {
  nav { padding: 0 20px; height: 72px; }
  .nav-logo img { height: 60px; }
  .nav-links { display: none; }
  .nav-right { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 480px) {
  nav { height: 60px; }
  .nav-logo img { height: 46px; }
}

/* Visually hidden but still readable by screen readers / search engines — use for a real <h1> on pages where the heading is represented visually by a logo/image */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── SHARED PAGE-LEVEL CLASSES (overrides page <style> via !important) ── */

/* Feature pillars / pillar grids used across product + support pages */
@media (max-width: 900px) {
  .feature-pillars { grid-template-columns: repeat(2, 1fr) !important; }
  .pillars-grid    { grid-template-columns: repeat(2, 1fr) !important; }
  .partners-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  .page-cta        { grid-template-columns: 1fr !important; gap: 24px !important; padding: 56px 40px !important; text-align: center !important; }
  .steps-grid      { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  /* Feature pillars: horizontal scroll strip */
  .feature-pillars {
    display: block !important;
    grid-template-columns: unset !important;
    padding: 48px 0 40px !important;
  }
  .feature-pillars .pillars-header { padding: 0 20px; }
  .pillar-scroll-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 4px 20px 16px 24px;
    scrollbar-width: thin;
    scrollbar-color: #1d5394 #dde3e8;
  }
  .pillar-scroll-strip::-webkit-scrollbar { height: 4px; }
  .pillar-scroll-strip::-webkit-scrollbar-track { background: #dde3e8; border-radius: 2px; }
  .pillar-scroll-strip::-webkit-scrollbar-thumb { background: #1d5394; border-radius: 2px; }
  .pillar-scroll-strip .pillar {
    flex: 0 0 auto !important;
    width: 260px !important;
    scroll-snap-align: start;
  }
  .pillars-grid    { grid-template-columns: 1fr !important; }
  .partners-grid   { grid-template-columns: 1fr !important; }
  .steps-grid      { grid-template-columns: 1fr !important; }
  /* Feature pillars 2x2: horizontal scroll strip (integration-projects.html) */
  .feature-pillars-2x2 {
    display: block !important;
    grid-template-columns: unset !important;
    padding: 48px 0 40px !important;
  }
  .feature-pillars-2x2 .pillars-header { padding: 0 20px; }
  /* Partner logo grid on blend-controls etc */
  .logo-grid       { grid-template-columns: repeat(3, 1fr) !important; }
  /* Partner strip (blend-controls, scale-systems, third-party-software) */
  .partners-strip  { padding: 32px 20px !important; }
}

/* Feature pillars horizontal scroll: also apply in mobile landscape — see the
   matching .feature-cards-grid landscape query above for why width alone
   isn't a reliable mobile signal. */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .feature-pillars {
    display: block !important;
    grid-template-columns: unset !important;
    padding: 48px 0 40px !important;
  }
  .feature-pillars .pillars-header { padding: 0 20px; }
  .pillar-scroll-strip {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 4px 20px 16px 24px;
    scrollbar-width: thin;
    scrollbar-color: #1d5394 #dde3e8;
  }
  .pillar-scroll-strip::-webkit-scrollbar { height: 4px; }
  .pillar-scroll-strip::-webkit-scrollbar-track { background: #dde3e8; border-radius: 2px; }
  .pillar-scroll-strip::-webkit-scrollbar-thumb { background: #1d5394; border-radius: 2px; }
  .pillar-scroll-strip .pillar {
    flex: 0 0 auto !important;
    width: 260px !important;
    scroll-snap-align: start;
  }
  .feature-pillars-2x2 {
    display: block !important;
    grid-template-columns: unset !important;
    padding: 48px 0 40px !important;
  }
  .feature-pillars-2x2 .pillars-header { padding: 0 20px; }
}

@media (max-width: 480px) {
  .logo-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Main hero — shrink further on small phones */
  .hero { height: 420px; }
  .hero-content { bottom: 40px; }
  .hero-content h1 { font-size: 22px; }
}

/* ── PRODUCT PAGE WHITE HERO (triangle + icon grid) ── */
@media (max-width: 900px) {
  .prod-hero-grid {
    grid-template-columns: 1fr !important;
    padding: 64px 40px !important;
    gap: 36px !important;
  }
  .prod-hero-grid > div:last-child {
    display: flex;
    justify-content: center;
    order: -1;
  }
  .prod-hero-grid > div:last-child img {
    height: 140px !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .prod-hero-grid {
    padding: 48px 20px !important;
    gap: 28px !important;
  }
  .prod-hero-grid > div:last-child img {
    height: 110px !important;
  }
  /* Product hero h1 */
  .prod-hero-grid h1 { font-size: 2.1rem !important; }
  /* Hero CTA buttons */
  .prod-hero-grid div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 480px) {
  .prod-hero-grid { padding: 40px 16px !important; }
  .prod-hero-grid h1 { font-size: 1.8rem !important; }
  .prod-hero-grid > div:last-child img { height: 90px !important; }
}

/* ── DIAGONAL CLIP HELPERS ── */
.clip-bottom {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
  margin-bottom: -2px;
}

.clip-top {
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  margin-top: -2px;
  padding-top: 80px;
}

/* ── CONTACT FORM SUBMISSION (send-form.ashx) ── */

/* Spam trap. Absolutely positioned so it never takes a cell in the form grids,
   and hidden from assistive tech — only a bot filling every field will touch it. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Result message, inserted by initContactForms() in js/main.js. */
.form-status {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.form-status.show { display: block; }

.form-status.ok {
  background: #eaf7f0;
  border: 1px solid #00ab58;
  color: #14603a;
}

.form-status.error {
  background: #fdf0f0;
  border: 1px solid #c0392b;
  color: #8e2b20;
}

.contact-form button[disabled],
.hp-contact-form button[disabled],
.btn-submit[disabled] {
  opacity: 0.65;
  cursor: default;
}
