/* Basic Reset */
*{box-sizing:border-box}html,body{margin:0;padding:0}
:root{
  --blue-900:#0b4aa2;
  --blue-700:#1e5fbf;
  --blue-600:#2563eb;
  --gray-900:#0f172a;
  --gray-800:#1f2937;
  --gray-700:#334155;
  --gray-600:#475569;
  --gray-100:#f1f5f9;
  --white:#ffffff;
  --green-600:#16a34a;
}
body{
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
  color:#0b1220;
  background:#fff;
}

/* Layout helpers */
.container{max-width:1120px;margin:0 auto;padding:0 20px}
.container_perf{max-width:900px;margin:0 auto;padding:0 20px}
.container.narrow{max-width:800px}
.center{text-align:center}
.small{font-size:.925rem}

/* Buttons */
.btn{display:inline-block;border-radius:14px;padding:10px 18px;font-weight:600;text-decoration:none;transition:.2s ease;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.btn--primary{background:#00358C;color:#fff}
.btn--primary:hover{transform:translateY(-1px);filter:brightness(1.05)}
.btn--ghost{background:#fff;color:var(--blue-900);border:1px solid rgba(255,255,255,.6)}
.btn--ghost:hover{background:rgba(255,255,255,.9)}
.btn--light{background:#fff;color:var(--blue-900)}
.btn--light:hover{filter:brightness(0.98)}

/* Hero */
/*.hero{
  background:#0b4aa2;
  color:#fff;
  padding:96px 0;
}*/

.hero-bg {
  background: linear-gradient(135deg, #0b4aa2, #1e5fbf);
  color: #fff;
}

.hero {
  background: transparent;
  color: #fff;
  padding: 50px 0 10px;
}

/*.hero__title{font-size:clamp(32px,5vw,56px);letter-spacing:-.5px;margin:0 0 16px 0;font-weight:800}*/
.hero__subtitle{font-size:clamp(16px,2.2vw,18px);opacity:.95;max-width:800px;margin:0px auto 10px}
.hero__actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top: 20px;}

/* Glow effect for header buttons */
.hero .btn--primary,
.hero .btn--ghost {
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0px rgba(255,255,255,0.25);
  transition: all 0.3s ease;
}

.hero .btn--primary:hover,
.hero .btn--ghost:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.6), 
              0 0 20px rgba(30,95,191,0.6);
  transform: translateY(-2px);
}

/*.hero__title {
  font-size:clamp(24px,3.5vw,36px);margin:28px 0 0;font-weight:700;color: black;
}*/

.hero__title {
  font-size: clamp(24px,3.5vw,36px);
  margin: 0;
  font-weight: 700;
  color: white;
  position: relative;
  /*display: inline-block;*/
  padding: 10px 20px;
  /*text-shadow: 0 2px 6px rgba(255, 255, 255, 0.8);*/
}

/* Sections */
.section{padding:30px 0}
.section--muted{background:#f8fafc}
.section__title{font-size:clamp(24px,3.5vw,36px);margin:0 0 28px;font-weight:700}

.section1{
  padding:1px 0 30px 0;
  background: transparent;
  color: #fff;
}


/* Cards */
.card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:25px 20px;box-shadow:0 12px 28px rgba(2,6,23,.06)}
.card--hover{transition:transform .2s ease, box-shadow .2s ease}
.card--hover:hover{transform:translateY(-4px);box-shadow:0 16px 44px rgba(2,6,23,.10)}
.icon{color:var(--blue-600);margin-bottom:10px}
.card_chart{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:10px 20px;box-shadow:0 12px 28px rgba(2,6,23,.06)}

/* Grid */
.grid{display:grid;gap:22px}
.grid--3{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid--4{grid-template-columns:repeat(1,minmax(0,1fr))}
@media(min-width:720px){.grid--3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:960px){.grid--4{grid-template-columns:repeat(4,1fr)}}

/* Chart */
.chart-wrap{width:100%;overflow:auto}

/* KPI */
.kpi{margin:0 auto 10px auto;font-weight:300; max-width: 900px;}
.kpi--green{color:var(--green-600)}
.kpi_bottom{margin:0 auto 30px auto;font-weight:300; max-width: 900px;}

/*Notice*/
.notice {margin:20px auto 0 auto;font-size:small;font-style: italic;font-weight: normal;margin-top: 20px;max-width: 600px;}

/* Accordion */
/* FAQ background — companion image to the Contact alpine scene */
#section6 {
  position: relative;
  padding: 48px 0;
  background:
    linear-gradient(105deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.13) 50%, rgba(255,255,255,.20) 100%),
    url('images/faq1.png') center 48% / cover no-repeat;
}

/* Accordion Container Frame */
.accordion {
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(2,6,23,.06);
  overflow: hidden;
  margin-top: 20px;
  padding: 20px;
}

#section6 .accordion {
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 38px rgba(2,6,23,.14);
}

/* Keep the dividers between items */
.accordion__item {
  border-bottom: 1px solid #e5e7eb;
}

.accordion__item:last-child {
  border-bottom: none;
}

/*.accordion__item{border-bottom:1px solid #e5e7eb}*/
.accordion__trigger{
  width:100%;text-align:left;background:none;border:0;padding:16px 0;
  font-size:1.1rem;font-weight:500;color:#0b1220;cursor:pointer;display:flex;justify-content:space-between;align-items:center
}
.accordion__trigger::after{content:"+";font-weight:700;color:var(--blue-700)}
.accordion__trigger[aria-expanded="true"]::after{content:"–"}
.accordion__content{max-height:0;overflow:hidden;transition:max-height .25s ease;padding-right:8px;color:#475569}
.accordion__content.open{padding:0 0 16px 0}

/* CTA */
/*.cta{background:linear-gradient(90deg, var(--blue-700), #3b82f6);color:#fff;text-align:center}*/
.cta {
  background: linear-gradient(135deg, #0b4aa2, #1e5fbf, #3b82f6);
  color: #fff;
  text-align: center;
  padding:55px 0;
}

.cta .btn--light {
  position: relative;
  z-index: 1;
  background: #fff;
  color: var(--blue-900);
  box-shadow: 0 0 5px rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}

.cta .btn--light:hover {
  box-shadow: 0 0 20px rgba(255,255,255,0.9), 0 0 60px rgba(30,95,191,0.6);
  transform: translateY(-2px);
}

.cta .section__title{color:#fff}

/* Footer */
/*.footer{background:#0b2a5f;color:#fff;padding:32px 0}*/

.footer {
  background: linear-gradient(180deg, #0b2a5f, #0a1125);
  color: #fff;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(30,95,191,0.6), rgba(255,255,255,0.6), rgba(30,95,191,0.6));
  filter: blur(6px);
}

.footer a{color:#fff;text-decoration:underline}


/* Downloads */
.downloads .doc{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;position:relative}
.doc__icon{color:var(--blue-600);background:#eef2ff;border-radius:14px;display:flex;align-items:center;justify-content:center;width:56px;height:56px;flex:0 0 56px}
.doc__body{display:flex;flex-direction:column}
.doc__title{font-weight:700;margin:0 0 2px 0}
.doc__meta{color:#64748b;font-size:.92rem}
.badge{position:absolute;right:18px;top:18px;background:var(--blue-600);color:#fff;border-radius:999px;padding:6px 10px;font-size:.78rem;font-weight:600}
.downloads .doc:hover .badge{filter:brightness(1.05)}
.downloads .doc:hover .doc__icon{filter:brightness(1.04)}
@media(max-width:720px){.badge{position:static;margin-left:auto}}

/* Modal */
.modal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  max-width: 500px;
  width: 100%;
  position: relative;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  animation: fadeInUp 0.3s ease;
  max-height: calc(100vh - 32px); /* viewport-safe */
  overflow-y: auto;               /* internal scroll */
}

/* === Modernized Close Button === */
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 1.8rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--gray-700);
  background: rgba(255, 255, 255, 0.3);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
}

.modal-close:hover {
  background: rgba(30, 95, 191, 0.9);
  color: #fff;
  box-shadow: 0 0 10px rgba(30, 95, 191, 0.5);
  transform: rotate(90deg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form label {
  font-weight: 600;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
}

/* === Compact Contact Modal ===
   Scoped to #contactModal/#contactForm so the login, info, and monthly
   modals keep their original spacing. Trims vertical height so the whole
   form fits on a normal desktop screen without internal scrolling. */
#contactModal .modal-content {
  padding: 20px 26px;
}

/* Two-column contact details: email/phone left, company/address right */
#contactModal .contact-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.9rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--gray-700);
  width: 100%;
}

#contactModal .cd-col-left {
  text-align: left;
  flex: 0 1 auto;
}

#contactModal .cd-col-right {
  text-align: right;
  flex: 0 1 auto;
}

/* Graceful stacking logic for extra narrow mobile screens */
@media (max-width: 460px) {
  #contactModal .contact-details {
    flex-direction: column;
    gap: 10px;
  }
  #contactModal .cd-col-right {
    text-align: left;
  }
}

#contactForm {
  gap: 8px;
}

#contactForm label {
  margin-bottom: -2px; /* pull each field snug under its label */
}

#contactForm input,
#contactForm textarea {
  padding: 9px 11px;
}

#contactForm textarea {
  min-height: 64px;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Hero logo */
.hero__logo {
  background: rgba(255,255,255,0.08);
  padding: 10px 10px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: float 6s ease-in-out infinite;

  width: 100%;
  max-width: 670px;
  height: auto;
  display: block;
  margin: 25px auto 12px;
}

/* Mobile spacing polish */
@media (max-width: 600px) {
  .hero { padding: 54px 0 0px; }
  .hero__subtitle { margin: 0px auto 10px; }
  .hero__actions { gap: 10px; }
}

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

/* CTA contact card — glass + animated glow border */
.cta-contact {
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  padding: 18px 20px;
  border-radius: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  animation: float 6s ease-in-out infinite; /* already defined in your CSS */
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
  overflow: hidden; /* for the animated border mask */
}

/* Animated gradient border */
.cta-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;                 /* border thickness */
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(255,255,255,0.85),
    rgba(30,95,191,0.85),
    rgba(255,255,255,0.85),
    rgba(30,95,191,0.85),
    rgba(255,255,255,0.85)
  );
  /* mask to show only the border ring */
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: spin 8s linear infinite;
  opacity: 0.75;
  pointer-events: none;
}

/* A faint inner overlay to soften the glow */
.cta-contact::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(20px - 2px);
  box-shadow: inset 0 0 24px rgba(255,255,255,0.06);
  pointer-events: none;
}

/* Typography for the CTA content */
.cta-contact p { margin: 0; color: #fff; font-size: 1rem; }
.cta-contact a { color: #fff; text-decoration: underline; }

/* Slow, subtle spin */
@keyframes spin { to { transform: rotate(360deg); } }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cta-contact, .cta-contact::before { animation: none; }
}

/* Slim black outline for the hero title */
.text-outline{
  /* Primary: crisp stroke in WebKit/Blink */
  /*-webkit-text-stroke: 0.8px rgba(0,0,0,0.9);*/
  /* Keep current fill color (white) from .hero__title */
  /* Fallback for browsers without text-stroke: tight shadow ring */
  text-shadow:
    0  0.5px 0 rgba(0,0,0,0.9),
    0 -0.5px 0 rgba(0,0,0,0.9),
    0.5px  0  0 rgba(0,0,0,0.9),
   -0.5px  0  0 rgba(0,0,0,0.9),
    0.5px  0.5px 0 rgba(0,0,0,0.9),
   -0.5px  0.5px 0 rgba(0,0,0,0.9),
    0.5px -0.5px 0 rgba(0,0,0,0.9),
   -0.5px -0.5px 0 rgba(0,0,0,0.9);
}

/* === Home performance preview === */
.home-performance-intro {
  max-width: 680px;
}

.home-performance-intro span {
  color: #f2d68a;
}

.home-performance-card {
  margin-top: 22px;
  padding: 0;
  overflow: hidden;
  color: #12213a;
  border-color: rgba(201, 160, 106, .72);
  background: #fbfaf7;
  box-shadow: 0 24px 60px rgba(3, 12, 28, .32);
}

.home-performance-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 22px;
  border-bottom: 1px solid #d8c9ae;
  background: linear-gradient(100deg, #f0e3c5 0%, #f7f0e2 48%, #fbfaf7 100%);
}

.home-performance-eyebrow {
  margin: 0 0 5px;
  color: #805b10;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.home-performance-heading h2 {
  margin: 0;
  color: #14243f;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.15;
}

.home-performance-heading #home-performance-description {
  max-width: 690px;
  margin: 8px 0 0;
  color: #43516a;
  font-size: 16px;
  line-height: 1.5;
}

.home-data-through {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 11px;
  color: #34445e;
  border: 1px solid #cdbd9f;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.home-performance-data-card {
  padding: 22px 24px 0;
}

.home-performance-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}

.home-performance-metric {
  min-width: 0;
  padding: 15px 18px 14px;
  overflow: hidden;
  border: 1px solid #d7cdbd;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(20, 36, 63, .07);
}

.home-performance-metric dt {
  margin: 0;
  color: #59677b;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.35;
}

.home-performance-metric dd {
  margin: 0;
}

.home-performance-metric-value {
  min-width: 0;
  margin-top: 4px;
  margin-bottom: 1px;
  overflow-wrap: anywhere;
  color: #12213a;
  font-size: clamp(24px, 4vw, 34px);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.home-performance-metric-value.is-positive { color: #08773d; }
.home-performance-metric-value.is-negative { color: #b73542; }
.home-performance-metric-value.is-neutral { color: #34445e; }

.home-performance-metric-period {
  display: block;
  color: #667287;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.home-performance-figure {
  margin: 0;
  overflow: hidden;
  color: #fbfaf7;
  border: 1px solid rgba(201, 160, 106, .6);
  border-radius: 16px;
  background: #071426;
  box-shadow: 0 16px 34px rgba(7, 20, 38, .24);
}

.home-chart-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 42px;
  margin: 0;
  padding: 12px 18px 0;
  list-style: none;
  color: #eef2f7;
  font-size: 13px;
  font-weight: 700;
}

.home-chart-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-chart-legend-line {
  display: inline-block;
  width: 30px;
  height: 0;
  border-top-style: solid;
  border-radius: 999px;
}

.home-chart-legend-line--afm {
  border-top-width: 4px;
  border-top-color: #63d13f;
}

.home-chart-legend-line--spx {
  border-top-width: 3px;
  border-top-color: #ff3b30;
}

.home-performance-chart-stage {
  position: relative;
  width: 100%;
  height: clamp(340px, 42vw, 460px);
  min-height: 340px;
  padding: 2px 10px 8px;
}

.home-performance-chart-link {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.home-performance-chart-link canvas {
  width: 100% !important;
  height: 100% !important;
}

.home-performance-chart-link:hover {
  background: rgba(255, 255, 255, .015);
}

.home-performance-chart-link:focus-visible {
  outline: 3px solid #d5a94f;
  outline-offset: -3px;
}

.home-chart-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 24px;
  color: #c8cfda;
  background: #071426;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.home-chart-state[hidden] {
  display: none;
}

.home-chart-error {
  gap: 10px;
}

.home-chart-error.is-refresh-error {
  inset: auto 18px 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(201, 160, 106, .72);
  border-radius: 10px;
  background: rgba(7, 20, 38, .94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
}

.home-chart-error[hidden] {
  display: none;
}

.home-chart-error p {
  margin: 0;
}

.home-chart-error button {
  justify-self: center;
  min-height: 44px;
  padding: 9px 18px;
  color: #14243f;
  border: 1px solid #d5a94f;
  border-radius: 10px;
  background: #d5a94f;
  font: inherit;
  cursor: pointer;
}

.home-chart-error button:focus-visible {
  outline: 3px solid #fbfaf7;
  outline-offset: 2px;
}

.home-performance-figure figcaption {
  padding: 2px 18px 14px;
  color: #c8cfda;
  font-size: 12px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
}

.home-performance-bridge {
  max-width: 760px;
  margin: 22px auto 0;
  color: #34445e;
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
}

.home-performance-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 820px;
  margin: 18px auto 0;
}

.btn--hero-action.home-performance-action {
  width: 100%;
  min-height: 68px;
  justify-content: flex-start;
  animation: none;
}

.btn--hero-action.home-performance-action--secondary,
.btn--hero-action.home-performance-action--secondary:hover {
  color: #14243f;
  border-color: #8d6d38;
  background: #fff;
}

.btn--hero-action.home-performance-action--secondary .btn-sub,
.btn--hero-action.home-performance-action--secondary:hover .btn-sub {
  color: #59677b;
}

.home-performance-action:focus-visible,
.home-performance-today-link:focus-visible {
  outline: 3px solid #805b10;
  outline-offset: 3px;
}

.home-performance-today-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 8px auto 18px;
  color: #34445e;
  font-size: 14px;
  font-weight: 750;
  text-decoration-color: rgba(52, 68, 94, .44);
  text-underline-offset: 3px;
}

.home-performance-today-link small {
  color: #667287;
  font-size: 12px;
  font-weight: 600;
}

.home-performance-today-link:hover {
  color: #805b10;
}

@media (max-width: 760px) {
  .home-performance-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 21px 20px 19px;
  }

  .home-data-through {
    white-space: normal;
  }

  .home-performance-data-card {
    padding: 16px 14px 0;
  }

  .home-performance-chart-stage {
    height: clamp(260px, 78vw, 340px);
    min-height: 260px;
    padding: 0 2px 5px;
  }

  .home-performance-actions {
    grid-template-columns: 1fr;
  }

  .home-performance-today-link {
    align-items: center;
    flex-direction: column;
    gap: 1px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .container_perf {
    padding: 0 12px;
  }

  .home-performance-metrics {
    gap: 8px;
  }

  .home-performance-metric {
    padding: 12px 10px;
  }

  .home-performance-metric-value {
    font-size: clamp(21px, 7vw, 28px);
  }

  .home-chart-legend {
    justify-content: center;
    gap: 14px;
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Highlight card in "Why Choose AFM" */
.card--highlight {
  /*background: var(--blue-900);*/
  background: #00358C;
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-radius: 22px;
  padding: 24px 24px;
  box-shadow: 0 12px 28px rgba(2,6,23,.10);
  margin: 55px auto 0;
  max-width: 800px;
}

.card--highlight .highlight-text {
  display: block; /* ensures paragraphs stack vertically */
}

.card--highlight .highlight-text p {
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.card--highlight .icon.white {
  color: #fff;
  flex-shrink: 0;
}

.card--highlight p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.99rem;
}

@media (max-width: 720px) {
  .card--highlight {
    flex-direction: column;
    text-align: center;
  }

  .card--highlight .highlight-text {
    text-align: left;
  }
}

.cta-contact .btn--light {
  margin-bottom: 10px;
}

/* Remove text-outline effect for the button inside CTA */
.no-outline {
  text-shadow: none !important;
  -webkit-text-stroke: 0 !important;
  text-decoration: none !important;
}

/* Modern scroll-down icon — centered */
.scroll-down {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  animation: bounce 2.2s infinite;
  transition: transform 0.3s ease;
  width: 100%;
}

.scroll-down:hover {
  transform: translateY(4px);
}

.scroll-icon {
  filter: drop-shadow(0 0 6px rgba(30,95,191,0.6));
  cursor: pointer;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.scroll-icon:hover {
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.8));
  transform: scale(1.05);
}

/* Bounce animation */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Read-more control: compact downward SVG triangle */
.card__readmore {
  margin-top: 14px;
  width: 44px;
  height: 38px;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--blue-700);
  cursor: pointer;
  line-height: 0;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.readmore-triangle {
  display: block;
  width: 22px;
  height: 28px;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

.card__readmore:hover {
  background: transparent;
  color: var(--blue-700);
  box-shadow: none;
  transform: translateY(2px) scale(1.08);
  filter: brightness(1.08);
}

.card__readmore:focus-visible {
  outline: 2px solid var(--blue-700);
  outline-offset: 2px;
}

/* Slightly larger touch target on mobile */
@media (max-width: 600px) {
  .card__readmore {
    width: 48px;
    height: 42px;
    padding: 5px;
  }
  .readmore-triangle {
    width: 36px;
    height: 32px;
  }
}

/* Ensure uniform card height and aligned "Read more" buttons */
.grid--4 .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid--4 .card h3,
.grid--4 .card p {
  flex-grow: 1; /* pushes the button to the bottom evenly */
}

.grid--4 .card__readmore {
  align-self: center; /* keeps buttons centered */
  margin-top: auto;   /* pushes button to bottom of card */
}

/* === Info Modal: refined translucent + blue glow === */
.info-modal {
  max-width: 520px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow:
    0 0 30px rgba(30, 95, 191, 0.25),
    0 0 60px rgba(30, 95, 191, 0.15);
  position: relative;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  animation: fadeInUp 0.35s ease;
}

.info-modal{
  -webkit-overflow-scrolling: touch;
}

/* Soft animated glowing edge */
.info-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  opacity: 0.8;
  animation: glowPulse 6s ease-in-out infinite;
}

/* Icon & Text */
.info-modal .modal-icon {
  color: red;
  margin-bottom: 5px;
}

.info-modal .modal-text {
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  text-align: left; /* ensure paragraphs stay left-aligned */
}

/* Gentle pulse animation for gradient frame */
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; filter: blur(0px); }
  50% { opacity: 1; filter: blur(1px); }
}

/* === Premium Opening Animation (fade + slide + zoom-in) === */
@keyframes modalAppear {
  0% {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.modal-content {
  animation: modalAppear 0.45s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  transform-origin: center;
}

/* === Smooth Fade-Out Animation for Modal Closing === */
@keyframes modalDisappear {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
}

.modal-content.closing {
  animation: modalDisappear 0.35s ease forwards;
}

/* === Login Button Styling === */
.login-container {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 2000;
}

.login-btn {
  padding: 8px 18px;
  background: linear-gradient(
    135deg,
    rgba(11, 74, 162, 0.75),
    rgba(30, 95, 191, 0.65)
  );
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.login-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(11, 74, 162, 0.75),
    rgba(30, 95, 191, 0.65)
  );
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.client-info {
  display: flex;
  align-items: center;
  gap: 10px; /* reduce space between name and logout icon */
}

.client-name {
  display: flex;
  flex-direction: column;
  line-height: 0.7; /* tighten the vertical space */
}

.logout-btn {
  border: none;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all 0.25s ease;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.25);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Adjust for mobile */
@media (max-width: 600px) {
  .login-container {
    top: 14px;
    right: 16px;
  }
  .login-btn {
    padding: 6px 14px;
    font-size: 0.9rem;
  }
}

/* === About Us tabs === */
#section8 {
  position: relative;
  padding: 48px 0;
  background:
    linear-gradient(105deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.13) 50%, rgba(255,255,255,.20) 100%),
    url('images/team1.png') center 48% / cover no-repeat;
}

.tabs { max-width: 980px; margin: 0 auto; }
.tablist {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px;
}
.tab-btn {
  padding: 14px 28px;             /* bigger padding */
  font-size: 1.1rem;              /* larger text */
  border-radius: 999px;
  border: 2px solid rgba(30,95,191,0.4);
  background: #fff;
  color: var(--blue-700);
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  min-width: 180px;               /* ensures consistent width */
}

.tab-btn[aria-selected="true"] {
  background: #1e5fbf;
  color: #fff;
  border-color: #1e5fbf;
  box-shadow: 0 8px 20px rgba(30,95,191,0.25);
  transform: scale(1.05);         /* slight enlargement when active */
}
.tab-btn:hover { transform: translateY(-1px); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* About cards layout (reuses .card look) */
.about-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
  max-width: 900px;         /* consistent width with other sections */
  margin: 0 auto;           /* center inside container */
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(2,6,23,0.08);
  min-height: 280px;        /* ensures both tabs have the same height baseline */
}

#section8 .about-card {
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 38px rgba(2,6,23,.14);
}

/* Removes the image grid gap for text-only tabs like History */
.about-card--full {
  grid-template-columns: 1fr;
  max-width: 750px; /* Constrains the width for optimal reading comfort */
  margin: 0 auto;   /* Keeps the card perfectly centered */
}

/* Keep the image consistent size */
.about-media img {
  border-radius: 16px;
  width: 205px; /* was 160px → 160 × 1.3 = 208 */
  height: auto;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(2,6,23,.08);
}

/* Text styles */
.about-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-body p {
  margin-top: 0;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* Remove the margin on the very last paragraph to keep the bottom padding perfectly balanced */
.about-body p:last-child {
  margin-bottom: 0;
}

.about-name {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: var(--blue-700);
  font-weight: 700;
}

/* Responsive layout for small screens */
@media (max-width: 640px) {
  .about-card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 20px;
    max-width: 100%;
    min-height: unset;
  }

  .about-media img {
    width: 100%;
    max-width: 400px; /* previously 340px, also 30% larger */
    margin: 0 auto;
  }
}

/* === About Us: Read More === */
.about-body .about-more {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.about-body.expanded .about-more {
  /* max-height will be set dynamically in JS for perfect height,
     but this ensures keyboard users see content if JS is off */
  max-height: 2000px;
}

/* === About Us: Read More button styling (aligned right) === */
.about-body {
  position: relative;
}

.about-readmore {
  display: inline-block;
  width: 120px;              /* only as wide as the text */
  min-width: unset;
  padding: 6px 14px;
  margin-top: 10px;

  /* right alignment */
  display: block;
  margin-left: auto;
  margin-right: 0;
  text-align: center;

  /* inherit the button’s look */
  float: none !important;    /* override possible floats from .card__readmore */
}

/* === Floating Section Navigator === */
.section-nav {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 1200;
  display: none;
}

.section-nav__fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 45px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.65);
  cursor: pointer;
  color: #fff;
  background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15) 60%), linear-gradient(135deg, #0b4aa2, #1e5fbf);
  box-shadow: 0 12px 28px rgba(2,6,23,.22), inset 0 0 20px rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  gap: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

/* On mobile, hide the "Menu" text but keep the icon */
@media (max-width: 768px) {
  .section-nav__fab span {
    display: none;
  }
}

.section-nav__fab .fab-text {
  color: #fff;
  letter-spacing: 0.5px;
}

.section-nav__fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(2,6,23,.28);
  filter: saturate(1.08);
}

.section-nav__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);   /* below the button */
  width: min(88vw, 320px);
  background: rgba(255,255,255,0.98);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(2,6,23,.25);
  transform: translateY(-8px);  /* small upward offset before opening */
  opacity: 0;
  visibility: hidden;
  transition: all .22s ease;
  overflow: hidden;
}

.section-nav.open .section-nav__panel {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.section-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, #0b4aa2, #1e5fbf);
  color: #fff;
  font-weight: 700;
}

.section-nav__close {
  background: rgba(255,255,255,0.2);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.2rem;
  color: #fff;
  cursor: pointer;
}

.section-nav__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 60vh;
  overflow: auto;
}

.section-nav__list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: var(--gray-800);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.section-nav__list li a .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #eaf2ff;
  color: var(--blue-700);
  font-weight: 800;
}

.section-nav__list li a:hover {
  background: #eef2ff;
  color: var(--blue-700);
  transform: translateX(2px);
}

.section-nav__list li a.is-active {
  background: #eaf2ff;
  color: var(--blue-700);
  box-shadow: inset 0 0 0 1.5px rgba(30,95,191,0.35);
}

@media (max-width: 640px) {
  .section-nav { left: 14px; top: 12px; }
  .section-nav__fab { width: 40px; height: 40px; gap: 0px;}
}

@media (prefers-reduced-motion: reduce) {
  .section-nav__fab { transition: none; }
  .section-nav__panel { transition: none; }
}

/* === Quick Nav (icons above labels, hero-friendly) === */
.quick-nav{
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:10px;
  margin: 20px auto 20px;
}

.quick-nav__item{
  appearance:none;
  border:1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color:#fff;
  border-radius:16px;
  padding:8px 12px;
  min-width:75px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-weight:600;
  letter-spacing:.2px;
  cursor: default; /* pas d'action pour l'instant */
  backdrop-filter: blur(6px);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.quick-nav__item svg{
  width:18px;
  height:18px;
  display:block;
}

.quick-nav__item span{
  font-size: .75rem;
  line-height:1;
}

.quick-nav__item.is-active{
  background:#fff;
  color: var(--blue-900);
  border-color:#fff;
  box-shadow: 0 10px 28px rgba(2,6,23,.18);
}

/* état désactivé (Intraday/History) */
.quick-nav__item[aria-disabled="true"]{
  opacity: .75;
}

/* === Quick Nav click animation === */
.quick-nav__item:active {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.18);
}

/* === Hover animation for Quick Nav items === */
.quick-nav__item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  color: #fff;
}

/* smoother transitions for hover/active */
.quick-nav__item {
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

/* focus visible clavier */
.quick-nav__item:focus-visible{
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 2px;
}

/* Mobile: n’afficher que l’icône */
@media (max-width:720px){
  .quick-nav{ gap:8px; }
  .quick-nav__item{
    min-width:auto;
    padding:8px 10px;
    border-radius:14px;
  }
  .quick-nav__item span{ display:none; }
}

.quick-nav__item.is-active {
  position: relative;
  background:#fff;
  color: var(--blue-900);
  border-color:#fff;
  box-shadow: 0 10px 28px rgba(2,6,23,.18);
}

.quick-nav__item.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 16px 4px rgba(255,255,255,0.25);
  opacity: 0;
  animation: pulseActive 2.4s ease-in-out infinite;
}

@keyframes pulseActive {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

/* === Animated section hide/show === */
section[id^="section"], .section1 {
  transition: opacity .35s ease, transform .35s ease, max-height .45s ease, padding .35s ease, margin .35s ease;
  will-change: opacity, transform, max-height, padding, margin;
}

/* hidden state */
.is-hidden {
  opacity: 0;
  transform: translateY(8px);
  max-height: 0 !important;
  overflow: hidden !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  pointer-events: none;
}

.weglot-container {
    position: fixed;
    top: 15px;
    left: 20px;
    padding: 0 5px 0 28px;
    background-color: #142440;
    border-radius: 5px;
    z-index: 2000;
    border: 1px solid rgba(229, 214, 203, 0.82);
}

/* The globe */
.weglot-container::before{
  content:"";
  position:absolute;
  left:6px; top:50%;
  transform:translateY(-50%);
  width:18px; height:18px;
  background-repeat:no-repeat;
  background-position:center;
  background-size:contain;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFAF0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><path d='M2 12h20'/><path d='M12 2a15.3 15.3 0 0 1 0 20a15.3 15.3 0 0 1 0-20'/></svg>");
  color:#f7f1e8;
}

/* === Intraday Info Icon === */
.info-icon-container {
  display: flex;
  justify-content: flex-end;
  padding: 0px 2% 6px 0;
}

.info-icon {
  color: red;
  cursor: pointer;
  transition: all 0.25s ease;
  filter: drop-shadow(0 0 6px rgba(30, 95, 191, 0.3));
}

.info-icon:hover {
  color: red;
  transform: scale(1.1);
  filter: drop-shadow(0 0 12px rgba(30, 95, 191, 0.6));
}

.user-info-row {
  justify-content: center;          /* centers whole row */
  align-items: center;
  gap: 10px;
  padding: 0px 0 6px 15px;
}

.user-display-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: #142440;
}

.login-container,
.weglot-container {
  position: absolute;   /* or `static` */
}

.text-outline-black {
  color: #fff; /* or keep current color */
  -webkit-text-stroke: 1.6px #000; /* black outline */
  paint-order: stroke fill;

  /* Fallback for browsers without text-stroke */
  /*text-shadow:
    1px  0   0 #000,
   -1px  0   0 #000,
    0   1px  0 #000,
    0  -1px  0 #000,
    1px  1px 0 #000,
   -1px  1px 0 #000,
    1px -1px 0 #000,
   -1px -1px 0 #000;*/
}

/* --- Desktop Alignment for Hero Center Container --- */
@media (min-width: 1050px) {
  .hero {
    /* Brings the container up to align with weglot (top: 15px) and login (top: 20px) */
    padding-top: 18px; 
  }
  
  .hero__logo {
    /* Removes the default 25px top margin so it sits flush at the top */
    margin-top: 0; 
  }
}

/* --- FIX FOR THE WHITE SPACE ON SHORT PAGES --- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensures the body is always at least the height of the screen */
}

#newsletter {
  margin-top: auto; /* The newsletter band now anchors the footer zone on short pages */
}
#cta {
  margin-top: 0; /* Sits directly below the newsletter band */
}

/* --- COMPACT CTA STYLING --- */
.cta-compact {
  background: linear-gradient(135deg, #0b4aa2, #1e5fbf);
  padding: 20px 0; /* Keeps it very slim */
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cta-bar {
  display: flex;
  justify-content: center; /* Changed from space-between to center */
  align-items: center;
  gap: 20px;
}

.cta-info {
  display: flex;
  align-items: center;
  justify-content: center; /* Added this to ensure it stays centered if the text wraps onto two lines */
  flex-wrap: wrap; 
  gap: 12px;
  font-size: 0.9rem;
}

.cta-address strong {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.cta-sep {
  opacity: 0.4;
  font-weight: 300;
}

.cta-info a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta-info a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.9rem;
  white-space: nowrap; /* Prevents the button text from breaking into two lines */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .cta-bar {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .cta-info {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .cta-sep {
    display: none; /* Hides the | separators on mobile */
  }
  .cta-info {
    flex-direction: column; /* Stacks the address, email, and phone neatly */
    gap: 8px;
  }
  .cta-address {
    margin-bottom: 5px;
  }
}

/* === Premium Hero Action Buttons (Golden Yellow) === */
.btn--hero-action {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fbbf24; /* A professional, warm golden-yellow */
  color: var(--blue-900); /* Dark blue text for maximum readability */
  border: 1.5px solid #f59e0b; /* Slightly deeper yellow border */
  border-radius: 16px;
  padding: 12px 22px;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(251, 191, 36, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: yellowPulse 2.5s infinite;
}

/* Hover State - Lifts up and turns slightly richer */
.btn--hero-action:hover {
  transform: translateY(-4px) scale(1.02);
  background: #f59e0b; /* Richer amber/gold on hover */
  color: var(--blue-900);
  border-color: #d97706;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2), 0 0 20px rgba(245, 158, 11, 0.5);
  animation: none; /* Stops the pulse while hovering */
}

/* Icon styling */
.btn--hero-action svg {
  flex-shrink: 0;
  color: var(--blue-900); /* Match the text color */
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.btn--hero-action:hover svg {
  transform: scale(1.1);
}

/* Text Container */
.btn--hero-action .btn-text {
  display: flex;
  flex-direction: column;
}

/* Main Text */
.btn--hero-action .btn-main {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
}

/* Subtext */
.btn--hero-action .btn-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: #854d0e; /* Dark golden-brown so it blends beautifully with the yellow */
  margin-top: 2px;
}

/* The subtle attention-grabbing yellow pulse */
@keyframes yellowPulse {
  0% { box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 0 rgba(251, 191, 36, 0.6); }
  70% { box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 12px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,0.15), 0 0 0 0 rgba(251, 191, 36, 0); }
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .btn--hero-action {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
  }
}

/* Golden background with readable text for specific Top Nav items */
#nav-performance {
  background-color: #fbbf24;
  color: var(--blue-900); /* Makes the text and icon dark blue */
  border-color: #f59e0b; /* Matches the slightly darker yellow border */
}

/* Make golden buttons match standard active state when clicked */
#nav-performance.is-active {
  background-color: #fff;
  color: var(--blue-900);
  border-color: #fff;
}

/* === AFM Swiss header redesign === */
.hero-bg {
  background: linear-gradient(135deg, #14243f, #1b2c4e);
}

.hero {
  padding: 40px 24px 28px;
  background: linear-gradient(135deg, #14243f, #1b2c4e);
  overflow: hidden;
}

.section1 {
  background: linear-gradient(135deg, #14243f, #1b2c4e);
}

.header-shell {
  width: min(1000px, 100%);
  margin: 0 auto;
}

.afm-expansion {
  width: 100%;
  text-align: center;
}

.afm-expansion__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.07em;
  white-space: nowrap;
  color: #fff3be; /* fallback color */
  background: linear-gradient(
    180deg,
    #fffdf2 0%,
    #fff6d5 48%,
    #fae9b5 58%,
    #f2d58b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 2px 10px rgba(255, 244, 196, 0.16),
    0 7px 24px rgba(246, 201, 95, 0.12);
}

.afm-expansion__separator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.2vw, 14px);
  width: 100%;
  margin: clamp(11px, 1.5vw, 17px) auto clamp(10px, 1.5vw, 16px);
}

.afm-expansion__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #f5cb68 35%, #ffe9a7);
  box-shadow: 0 0 8px rgba(246, 201, 95, 0.3);
}

.afm-expansion__line:last-child {
  background: linear-gradient(90deg, #ffe9a7, #f5cb68 65%, transparent);
}

.afm-expansion__diamond {
  width: clamp(10px, 1vw, 13px);
  height: clamp(10px, 1vw, 13px);
  border: 1px solid #ffe39a;
  background: linear-gradient(145deg, #fff0b0 0%, #f6c95f 58%, #dca83d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 0 12px rgba(246, 201, 95, 0.38);
  transform: rotate(45deg);
}

.header-topline {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.hero__logo {
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0;
  padding: 0;
  justify-self: start;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.quick-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(7px, 1vw, 14px);
  margin: 0;
}

.quick-nav__item,
#nav-performance {
  width: clamp(52px, 4.2vw, 58px);
  min-width: clamp(52px, 4.2vw, 58px);
  height: clamp(52px, 4.2vw, 58px);
  padding: 10px 4px;
  border: 1px solid rgba(229, 214, 203, 0.82);
  border-radius: 10px;
  background: linear-gradient(135deg, #14243f, #1b2c4e);
  color: #f7f1e8;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.quick-nav__item svg {
  width: clamp(20px, 1.7vw, 24px);
  height: clamp(20px, 1.7vw, 24px);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.08));
}

.quick-nav__item span {
  font-size: clamp(0.64rem, 0.72vw, 0.76rem);
  font-weight: 500;
  line-height: 1;
}

#nav-performance span {
  font-family: 'Playfair Display', Georgia, serif;
}

.hero .login-btn {
  padding: 6px 11px;
  border: 1px solid rgba(229, 214, 203, 0.82);
  border-radius: 10px;
  background: linear-gradient(135deg, #14243f, #1b2c4e);
  color: #f7f1e8;
  font-size: 0.82rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
}

.quick-nav__item:hover,
#nav-performance:hover {
  transform: translateY(-3px);
  background: rgba(23, 42, 87, 0.78);
  border-color: #f2d68a;
  color: #fffaf0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 16px rgba(242, 214, 138, 0.13);
}

.hero .login-btn:hover {
  transform: translateY(-3px);
  background: rgba(23, 42, 87, 0.78);
  border-color: #f2d68a;
  color: #fffaf0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 16px rgba(242, 214, 138, 0.13);
}

.quick-nav__item.is-active,
.quick-nav__item.is-active:hover,
#nav-performance.is-active,
#nav-performance.is-active:hover {
  background: linear-gradient(145deg, #ffe293 0%, #f6c95f 55%, #e9b84b 100%);
  color: #07143b;
  border-color: #f8d477;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 0 22px rgba(246, 201, 95, 0.26),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

.quick-nav__item.is-active:focus-visible,
#nav-performance.is-active:focus-visible {
  outline: 3px solid #f5d77f;
  outline-offset: 3px;
}

.quick-nav__item.is-active::after {
  box-shadow: 0 0 18px 4px rgba(255, 218, 119, 0.28);
}

.section-heading {
  width: min(600px, 80%);
  margin: clamp(28px, 3.5vw, 46px) auto 0;
  display: grid;
  grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}

.section-heading[hidden],
.section-heading__glow[hidden] {
  display: none !important;
}

.section-heading__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, #f5cb68 72%, #ffe9a7);
  box-shadow: 0 0 8px rgba(246, 201, 95, 0.3);
}

.section-heading__line:last-child {
  background: linear-gradient(90deg, #ffe9a7, #f5cb68 28%, transparent);
}

.section-heading__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.035em;
  color: #f8d675;
  background: linear-gradient(180deg, #fff3be 4%, #f7d77a 52%, #e8b84f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 7px 24px rgba(246, 201, 95, 0.14);
}

.section-heading__title.is-changing {
  animation: sectionTitleReveal 0.36s ease both;
}

.section-heading__glow {
  width: min(410px, 48%);
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, #d8a831 36%, #fff3b2 50%, #d8a831 64%, transparent);
  box-shadow: 0 0 12px 2px rgba(255, 198, 54, 0.3);
}

@keyframes sectionTitleReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .hero { padding-top: 40px; }
  .header-topline {
    grid-template-columns: minmax(210px, 34%) minmax(0, 1fr);
    gap: 20px;
  }
  .quick-nav { gap: 8px; }
  .quick-nav__item,
  #nav-performance {
    min-width: 52px;
    width: 52px;
    height: 56px;
  }
}

@media (max-width: 760px) {
  .hero { padding: 60px 16px 24px; }
  .afm-expansion__title {
    font-size: clamp(13px, 3.4vw, 20px);
    letter-spacing: 0.055em;
  }
  .afm-expansion__separator {
    margin-top: 10px;
    margin-bottom: 12px;
  }
  .header-topline {
    grid-template-columns: minmax(150px, 36%) minmax(0, 1fr);
    gap: 12px;
  }
  .quick-nav { gap: 5px; }
  .quick-nav__item,
  #nav-performance {
    min-width: 36px;
    width: 36px;
    height: 36px;
    padding: 7px;
    border-radius: 8px;
  }
  .quick-nav__item svg { width: 19px; height: 19px; }
  .quick-nav__item span { display: none; }
  .section-heading { width: min(430px, 88%); gap: 12px; }
  .section-heading__title { font-size: 27px; }
  .section-heading__glow { width: min(300px, 58%); }
  .hero .login-btn {
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
  }
}

@media (max-width: 540px) {
  .afm-expansion__separator {
    gap: 8px;
    margin-bottom: 10px;
  }
  .afm-expansion__diamond {
    width: 9px;
    height: 9px;
  }
  .header-topline {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .hero__logo { width: min(100%, 280px); align-self: flex-start; }
  .quick-nav { width: 100%; justify-content: center; }
  .section-heading { margin-top: 32px; }
  .section-heading__line { height: 1px; }
  .section-heading__glow { margin-top: 14px; }
  .section-heading__title { font-size: 24px; }
}

/* The Performance label is longer than the other quick-nav labels. */
@media (min-width: 761px) {
  #nav-performance {
    width: clamp(94px, 8vw, 104px);
    min-width: clamp(94px, 8vw, 104px);
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* === Inline 'See history' link (replaces the old 'Why?' badge) === */
.link--see-history {
  color: #fbbf24;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.link--see-history:hover,
.link--see-history:focus {
  color: #fde68a;
  text-decoration-thickness: 2px;
}

.link--see-history:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
  border-radius: 3px;
}

/* === Modal Popup Styling === */
.why-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stays in place on screen */
  z-index: 10000; /* Extremely high to appear over everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
  opacity: 0; /* for animation */
  transition: opacity 0.3s ease; /* for animation */
}

/* Active class to show modal via JS */
.why-modal.open {
  display: flex; /* Show the flex container */
  opacity: 1; /* Fade in */
}

/* Modal Overlay (Backdrop) */
.why-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent color */
  cursor: pointer; /* Suggests clicking closes */
}

/* Modal Content Container */
.why-modal-content {
  position: relative; /* Base for absolute positioning children */
  background-color: #fefefe;
  padding: 10px; /* Minimal padding around image */
  border-radius: 16px; /* Match site border radius */
  max-width: 90%; /* Responsive width */
  max-height: 90%; /* Responsive height */
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); /* Deep premium shadow */
  z-index: 10001; /* Above overlay */
  transform: scale(0.9); /* for animation */
  transition: transform 0.3s ease; /* for animation */
  text-align: center; /* center image if it's smaller than content area */
}

/* Show content animation */
.why-modal.open .why-modal-content {
  transform: scale(1); /* pop in */
}

/* Close Button (top-right of image) */
.why-modal-close {
  color: #fff;
  position: absolute;
  top: -15px; /* offset outside content box */
  right: -15px; /* offset outside content box */
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6); /* circular background for 'X' */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s ease;
}

.why-modal-close:hover {
  background: #000;
  color: var(--gold-400); /* change 'X' color on hover */
}

/* Responsive Image inside Modal */
.why-modal-image {
  display: block;
  width: 100%; /* Ensures it can still shrink on smaller screens */
  max-width: 700px; /* Locks the maximum size to its native 700px width */
  height: auto;
  border-radius: 12px; 
  margin: 0 auto; /* Ensures the image stays perfectly centered in the popup */
}

/* =======================================================================
   LX InfoTech — Contact / Consultation full-page section  (#section11)
   Everything is scoped under .contact-section / .lxc-* so it cannot
   affect the other sections, the existing modals, or the global forms.
   ======================================================================= */
.contact-section{
  /* scoped palette (derived from the mockup) */
  --lxc-navy:#1b2c4e;
  --lxc-navy-deep:#14243f;
  --lxc-gold:#b48a52;
  --lxc-gold-soft:#ecdfc9;
  --lxc-ink:#3d4a63;
  --lxc-line:#e4e7ee;

  position:relative;
  width:100%;
  color:var(--lxc-ink);
  padding:0 20px;
  background:#ffffff;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  transition:opacity .45s ease, transform .45s ease;
}
.contact-section *{box-sizing:border-box;}

/* Photo PANEL: the alpine scene, constrained to a 900px-wide panel with clean white
   around it. Holds the logo + both columns. 'center bottom' keeps mountains, lake and
   edelweiss in frame; the overlay keeps navy text readable (stronger on the left).
   Swap images/contact_bg.jpg to change the photo. */
.lxc-photo{
  position:relative;
  max-width:900px;
  margin:0 auto;
  padding:44px 40px 88px;
  background:
    linear-gradient(103deg, rgba(255,255,255,.62) 0%, rgba(255,255,255,.34) 44%, rgba(255,255,255,.12) 100%),
    url('images/contact1.png') center bottom / cover no-repeat;
}

/* Clean white band below the photo panel */
.lxc-footer-band{
  background:#ffffff;
  padding:0 0 46px;
}

.lxc-inner{max-width:900px;margin:0 auto;}

/* serif face used for display + labels + footer labels + wordmark */
.lxc-title,.lxc-card-title,.lxc-monogram,.lxc-medallion span,
.lxc-wordmark,.lxc-footlabel,.contact-section .lxc-form label,.lxc-submit{
  font-family:'Playfair Display',Georgia,'Times New Roman',serif;
}

/* ---- brand mark ---- */
.lxc-brand{margin-bottom:26px;}
.lxc-monogram{
  display:inline-flex;align-items:center;justify-content:center;
  width:78px;height:78px;
  border:2px solid var(--lxc-navy);
  border-radius:4px;
  background:rgba(255,255,255,.42);
}
.lxc-monogram img{width:62%;height:auto;display:block;}

/* ---- layout ---- */
.lxc-grid{
  display:grid;grid-template-columns:1fr minmax(0,400px);gap:30px;align-items:start;
}

/* ---- left intro ---- */
.lxc-intro{padding-top:6px;}
.lxc-title{
  color:var(--lxc-navy);
  font-size:clamp(2.4rem,4.6vw,3.6rem);
  line-height:1.05;font-weight:700;margin:0 0 22px;letter-spacing:.005em;
}
.lxc-rule{
  display:block;width:64px;height:3px;border-radius:2px;
  background:var(--lxc-gold);margin:0 0 26px;
}
.lxc-lead{
  font-size:1.06rem;line-height:1.65;margin:0 0 18px;
  color:var(--lxc-navy);opacity:.86;max-width:34ch;
}

.lxc-secure{
  display:flex;align-items:center;gap:14px;
  background:rgba(255,255,255,.58);
  border:1px solid rgba(255,255,255,.75);
  border-radius:14px;padding:16px 18px;margin:28px 0 22px;max-width:400px;
  color:var(--lxc-navy);font-size:.98rem;line-height:1.4;
  backdrop-filter:blur(4px);
}
.lxc-secure-ic{color:var(--lxc-gold);flex:0 0 auto;}
.lxc-secure-ic svg{width:34px;height:34px;display:block;}

.lxc-swiss{display:flex;align-items:center;gap:12px;color:var(--lxc-navy);font-size:1rem;}
.lxc-flag{flex:0 0 auto;}
.lxc-flag svg{width:26px;height:26px;display:block;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.18);}

/* ---- right card ---- */
.lxc-card{
  background:#fff;border-radius:20px;padding:34px 34px 30px;
  box-shadow:0 24px 60px rgba(20,36,63,.16);
}
.lxc-card-head{display:flex;align-items:center;gap:14px;margin-bottom:22px;}
.lxc-card-ic{
  width:44px;height:44px;border-radius:50%;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  background:var(--lxc-gold-soft);color:var(--lxc-gold);
}
.lxc-card-ic svg{width:22px;height:22px;display:block;}
.lxc-card-title{color:var(--lxc-navy);font-size:1.55rem;font-weight:700;margin:0;}

/* message banner */
.lxc-msg{border-radius:10px;padding:12px 14px;margin-bottom:16px;font-weight:600;font-size:.95rem;}

/* form — higher specificity so it beats the global .contact-form rules */
.contact-section .lxc-form{gap:0;}
.lxc-field{margin-bottom:18px;display:flex;flex-direction:column;}
.contact-section .lxc-form label{
  font-weight:700;font-size:.98rem;color:var(--lxc-navy);
  margin-bottom:8px;text-align:left;letter-spacing:.005em;
}
.lxc-opt{color:var(--lxc-gold);font-style:italic;font-weight:600;font-size:.82em;}
.contact-section .lxc-form input,
.contact-section .lxc-form textarea{
  width:100%;padding:13px 15px;
  border:1px solid var(--lxc-line);border-radius:10px;
  font-size:1rem;font-family:'Inter',system-ui,sans-serif;
  color:var(--lxc-navy);background:#fff;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.contact-section .lxc-form input::placeholder,
.contact-section .lxc-form textarea::placeholder{color:#9aa4b5;}
.contact-section .lxc-form input:focus,
.contact-section .lxc-form textarea:focus{
  outline:none;border-color:var(--lxc-gold);
  box-shadow:0 0 0 3px rgba(180,138,82,.18);
}
.contact-section .lxc-form textarea{resize:vertical;min-height:112px;}

.lxc-submit{
  width:100%;border:none;cursor:pointer;
  background:var(--lxc-navy-deep);color:#fff;
  font-size:1.2rem;font-weight:600;letter-spacing:.01em;
  padding:15px 20px;border-radius:12px;margin-top:6px;
  box-shadow:0 12px 28px rgba(20,36,63,.28);
  transition:transform .18s ease, filter .18s ease;
}
.lxc-submit:hover{filter:brightness(1.09);transform:translateY(-1px);}
.lxc-submit:active{transform:translateY(0);}
.lxc-submit:focus-visible{outline:3px solid rgba(180,138,82,.6);outline-offset:2px;}
.lxc-submit:disabled{opacity:.7;cursor:default;transform:none;}

.lxc-subline{text-align:center;color:var(--lxc-navy);opacity:.7;font-size:.95rem;margin:16px 0 0;}

/* ---- footer ---- */
.lxc-foot{text-align:center;}
.lxc-medallion{
  width:64px;height:64px;border-radius:50%;margin:-34px auto 30px;
  position:relative;z-index:1;
  display:inline-flex;align-items:center;justify-content:center;
  background:#fff;border:2px solid var(--lxc-gold);
  box-shadow:0 8px 22px rgba(20,36,63,.14);
}
.lxc-medallion span{color:var(--lxc-navy);font-size:1.7rem;font-weight:700;line-height:1;}
.lxc-medallion img{width:56%;height:auto;display:block;}

.lxc-footgrid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;
  max-width:820px;margin:0 auto;text-align:left;
  border-top:1px solid rgba(27,44,78,.12);padding-top:30px;
}
.lxc-footcol{display:flex;gap:10px;align-items:flex-start;}
.lxc-footic{
  width:36px;height:36px;border-radius:50%;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;
  background:rgba(27,44,78,.06);color:var(--lxc-navy);
}
.lxc-footic svg{width:20px;height:20px;display:block;}
.lxc-foottext{font-size:.92rem;line-height:1.5;color:var(--lxc-navy);opacity:.9;}
.lxc-footlabel{display:block;color:var(--lxc-gold);font-size:1.02rem;font-weight:700;margin-bottom:4px;}
.lxc-foottext a{color:inherit;text-decoration:none;white-space:nowrap;}
.lxc-foottext a:hover{text-decoration:underline;}

.lxc-wordmark{
  margin-top:36px;color:var(--lxc-navy);opacity:.85;
  font-size:1.1rem;letter-spacing:.42em;font-weight:600;
  padding-top:22px;position:relative;
}
.lxc-wordmark::before{
  content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:44px;height:2px;background:var(--lxc-gold);
}

/* ---- responsive ---- */
@media (max-width:900px){
  .lxc-grid{grid-template-columns:1fr;gap:30px;}
  .lxc-lead{max-width:none;}
  .lxc-footgrid{grid-template-columns:repeat(2,1fr);gap:22px 20px;}
}
@media (max-width:560px){
  .lxc-photo{padding:36px 16px 62px;}
  .lxc-footer-band{padding:0 16px 36px;}
  .lxc-card{padding:24px 20px 22px;}
  .lxc-footgrid{grid-template-columns:1fr;}
}

/* quality floor: keyboard focus + reduced motion */
.contact-section a:focus-visible{outline:2px solid var(--lxc-gold);outline-offset:2px;border-radius:3px;}
@media (prefers-reduced-motion:reduce){
  .contact-section,.lxc-submit,
  .contact-section .lxc-form input,.contact-section .lxc-form textarea{transition:none;}
}

/* =======================================================================
   NEWSLETTER BAND (#newsletter) — navy/gold pre-footer strip above #cta.
   Palette borrowed from the contact section (lxc) design tokens.
   ======================================================================= */
.nl-band{
  --nl-navy:#1b2c4e;
  --nl-navy-deep:#14243f;
  --nl-gold:#b48a52;
  background:linear-gradient(135deg, var(--nl-navy-deep), var(--nl-navy));
  border-top:1px solid rgba(180,138,82,.45);   /* thin gold hairline */
  padding:34px 0;
  color:#fff;
}
.nl-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:28px;flex-wrap:wrap;
}
.nl-intro{display:flex;align-items:center;gap:16px;min-width:260px;}
.nl-ic{
  display:inline-flex;align-items:center;justify-content:center;
  width:46px;height:46px;flex:0 0 46px;
  border:1px solid rgba(180,138,82,.6);border-radius:10px;
  color:var(--nl-gold);background:rgba(255,255,255,.05);
}
.nl-ic svg{width:24px;height:24px;}
.nl-title{
  font-family:'Playfair Display',Georgia,serif;
  font-size:1.35rem;font-weight:600;margin:0 0 2px;color:#fff;letter-spacing:.01em;
}
.nl-lead{margin:0;font-size:.92rem;color:rgba(255,255,255,.75);}

.nl-form{flex:1 1 380px;max-width:480px;}
.nl-row{display:flex;gap:10px;}
.nl-row input[type="email"]{
  flex:1;min-width:0;
  padding:13px 15px;font-size:1rem;
  font-family:'Inter',system-ui,sans-serif;
  color:var(--nl-navy);background:#fff;
  border:1px solid transparent;border-radius:10px;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.nl-row input[type="email"]::placeholder{color:#9aa4b5;}
.nl-row input[type="email"]:focus{
  outline:none;border-color:var(--nl-gold);
  box-shadow:0 0 0 3px rgba(180,138,82,.35);
}
.nl-btn{
  border:none;cursor:pointer;white-space:nowrap;
  font-family:'Playfair Display',Georgia,serif;
  font-size:1.05rem;font-weight:600;letter-spacing:.01em;
  color:#14243f;background:linear-gradient(135deg,#c9a06a,#b48a52);
  padding:13px 26px;border-radius:10px;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
  transition:transform .18s ease, filter .18s ease;
}
.nl-btn:hover{filter:brightness(1.08);transform:translateY(-1px);}
.nl-btn:active{transform:translateY(0);}
.nl-btn:focus-visible{outline:3px solid rgba(180,138,82,.6);outline-offset:2px;}
.nl-btn:disabled{opacity:.7;cursor:default;transform:none;}

/* Message shown below the email field */
.nl-msg{margin:10px 2px 0;font-size:.92rem;font-weight:600;}
.nl-msg.is-ok{color:#8fd6a4;}   /* soft green on navy */
.nl-msg.is-err{color:#fca5a5;}  /* soft red on navy */

/* --- Mobile --- */
@media (max-width: 760px){
  .nl-band{padding:30px 0;}
  .nl-inner{flex-direction:column;align-items:stretch;text-align:center;gap:18px;}
  .nl-intro{justify-content:center;min-width:0;text-align:left;}
  .nl-form{
    flex:0 0 auto;
    width:100%;
    max-width:none;
  }
}
@media (max-width: 480px){
  .nl-band{padding:22px 0 12px;}
  .nl-inner{gap:14px;}
  .nl-row{flex-direction:column;}
  .nl-btn{width:100%;}
}

/* =======================================================================
   STATISTICS
   Dedicated monthly-consistency and annual-performance view.
   The selectors stay scoped to the Dark AFM module so the legacy home-page
   charts and tables retain their existing appearance.
   ======================================================================= */

/* Statistics is a sibling one-page route with the same 1120px visual shell as
   Performance. */
.afm-performance.analysis-section {
  --stat-page: #f3eee5;
  --stat-surface: #fbfaf7;
  --stat-raised: #fff;
  --stat-ink: #12213a;
  --stat-muted: #59677b;
  --stat-line: #dcd5c9;
  --stat-card-border: #d7cdbd;
  --stat-gold: #c99e42;
  --stat-gold-text: #805b10;
  --stat-champagne: #f4ead4;
  --stat-positive: #08773d;
  --stat-negative: #b73542;
  width: 100%;
  padding: 0;
  color: var(--stat-ink);
  background: var(--stat-page);
}

.afm-performance.analysis-section .analysis-content-shell {
  width: min(1120px, calc(100% - 40px));
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--stat-line);
  border-radius: 20px;
  background: var(--stat-surface);
  box-shadow: 0 16px 40px rgba(20, 36, 63, .12);
}

.afm-performance.analysis-section .analysis-intro {
  background: linear-gradient(104deg, #14243f 0%, #1b2c4e 100%);
}

.afm-performance.analysis-section #analysis-description {
  font-size: 15px;
}

/* The Statistics shell ends after its own content, unlike Performance where
   the 20px panel gap separates history from the nested Today shell. */
.afm-performance.analysis-section .history-panel,
.afm-performance.analysis-section .analysis-panel {
  min-width: 0;
  margin-bottom: 0;
  padding-bottom: 1px;
  background: var(--stat-page);
}

/* Statistics stays light for scanning, framed by the AFM navy/gold identity. */
.afm-performance.analysis-section .analysis-chart-card {
  min-width: 0;
  margin: 18px;
  overflow: hidden;
  border: 1px solid var(--stat-card-border);
  border-radius: 15px;
  background: var(--stat-surface);
  box-shadow: 0 8px 22px rgba(20, 36, 63, .08);
}

.afm-performance.analysis-section .analysis-monthly-statistics-heading {
  padding: 20px 22px 17px;
  border-bottom: 1px solid var(--stat-gold);
  background: linear-gradient(100deg, #f0e3c5 0%, var(--stat-champagne) 48%, var(--stat-surface) 100%);
}

.afm-performance.analysis-section .analysis-monthly-statistics-heading h2 {
  margin: 0;
  color: var(--stat-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}

.afm-performance.analysis-section .analysis-monthly-statistics-heading p {
  margin: 6px 0 0;
  color: #34445e;
  font-size: 15px;
  line-height: 1.5;
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-bottom: 1px solid var(--stat-line);
  background: var(--stat-raised);
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-card {
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: center;
  justify-items: center;
  padding: 16px 17px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-card + .monthly-consistency-summary-card {
  border-left: 1px solid var(--stat-line);
}

.afm-performance.analysis-section .monthly-consistency-summary-copy {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-card .monthly-consistency-summary-label {
  color: #34445e;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-card .monthly-consistency-summary-value {
  margin-top: 0;
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-primary {
  color: #111b2a;
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-value.is-positive .monthly-consistency-summary-primary {
  color: var(--stat-positive);
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-value.is-negative .monthly-consistency-summary-primary {
  color: var(--stat-negative);
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-denominator,
.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-unit {
  color: var(--stat-muted);
  font-size: 14px;
}

.afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-denominator {
  font-size: 15px;
}

.afm-performance.analysis-section .analysis-monthly-legend {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 22px 3px;
  color: var(--stat-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.afm-performance.analysis-section .analysis-monthly-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.afm-performance.analysis-section .analysis-monthly-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
}

.afm-performance.analysis-section .analysis-monthly-legend-positive {
  color: var(--stat-positive);
}

.afm-performance.analysis-section .analysis-monthly-legend-negative {
  color: var(--stat-negative);
}

.afm-performance.analysis-section .analysis-monthly-legend-separator {
  width: 1px;
  height: 13px;
  background: #b9afa0;
}

.afm-performance.analysis-section .analysis-data-table {
  margin: 0 18px 16px;
  border-top: 1px solid var(--stat-line);
  color: #34445e;
  font-size: 12px;
}

.afm-performance.analysis-section .analysis-data-table summary {
  width: max-content;
  max-width: 100%;
  padding: 11px 0 4px;
  color: var(--stat-gold-text);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.afm-performance.analysis-section .analysis-data-table-scroll {
  max-height: 360px;
  margin-top: 7px;
  overflow: auto;
  border: 1px solid var(--stat-line);
  border-radius: 8px;
  background: var(--stat-raised);
}

.afm-performance.analysis-section .analysis-monthly-data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: #1f2f47;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.afm-performance.analysis-section .analysis-monthly-data-table caption {
  padding: 9px 11px;
  color: var(--stat-muted);
  background: var(--stat-surface);
  font-size: 12px;
  text-align: left;
}

.afm-performance.analysis-section .analysis-monthly-data-table th,
.afm-performance.analysis-section .analysis-monthly-data-table td {
  padding: 8px 11px;
  border-top: 1px solid #dfd8cd;
  text-align: right;
  white-space: nowrap;
}

.afm-performance.analysis-section .analysis-monthly-data-table th:first-child {
  text-align: left;
}

.afm-performance.analysis-section .analysis-monthly-data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #34445e;
  background: #eee9df;
  font-size: 12px;
}

.afm-performance.analysis-section .analysis-monthly-data-table tbody th,
.afm-performance.analysis-section .analysis-monthly-data-table tbody td {
  color: #1f2f47;
}

.afm-performance.analysis-section .analysis-monthly-data-table tbody tr:not(.total-row):hover th,
.afm-performance.analysis-section .analysis-monthly-data-table tbody tr:not(.total-row):hover td {
  color: #1f2f47;
}

.afm-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.afm-performance.analysis-section .analysis-chart-card .monthly-consistency-panel {
  min-width: 0;
  padding: 0 18px 18px;
}

.afm-performance.analysis-section .analysis-chart-card .monthly-consistency-chart-wrap,
.afm-performance.analysis-section .annual-table-scroll {
  max-width: 100%;
}

.afm-performance.analysis-section .analysis-chart-card .monthly-consistency-chart-wrap,
.afm-performance.analysis-section .annual-table-scroll {
  overflow-x: auto;
  scrollbar-color: #b7aa91 #eee9df;
  scrollbar-width: thin;
}

.afm-performance.analysis-section .analysis-chart-card .monthly-consistency-chart-stage {
  height: clamp(320px, 37vw, 400px);
}

.afm-performance.analysis-section .analysis-chart-card > .monthly-consistency-chart-wrap {
  margin: 0 18px 18px;
}

.afm-performance.analysis-section .analysis-chart-card > .monthly-consistency-empty {
  margin: 0 18px 18px;
  border-color: #c8bda9;
  color: var(--stat-muted);
  background: var(--stat-raised);
  font-size: 13px;
}

/* The annual table leads the page and uses the same restrained light treatment. */
.afm-performance.analysis-section .annual-performance-card {
  min-width: 0;
  margin: 18px;
  border-color: var(--stat-card-border);
  background: var(--stat-surface);
  box-shadow: 0 8px 22px rgba(20, 36, 63, .08);
}

.afm-performance.analysis-section .annual-performance-heading,
.afm-performance.analysis-section .analysis-monthly-statistics-heading {
  border-bottom-color: var(--stat-gold);
  background: linear-gradient(100deg, #f0e3c5 0%, var(--stat-champagne) 48%, var(--stat-surface) 100%);
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table {
  font-size: 13px;
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table thead th {
  font-size: 11px;
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table tbody th {
  font-size: 14px;
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table .positive {
  color: var(--stat-positive);
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table .negative {
  color: var(--stat-negative);
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table .benchmark {
  color: #2d6699;
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table .since-inception {
  background: var(--stat-champagne);
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table tr[data-series="afm"] > th {
  color: var(--stat-ink);
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table tr[data-series="spx"] > th,
.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table tr[data-series="benchmark"] > th {
  color: #2d6699;
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-table tr[data-series="contribution"] > th {
  color: var(--stat-gold-text);
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-note {
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.5;
}

.afm-performance.analysis-section .analysis-annual-performance .annual-performance-note span {
  display: block;
}

.afm-performance.analysis-section .annual-performance-heading h2 {
  margin: 0;
  color: var(--stat-ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.afm-performance.analysis-section .chart-stage:focus-visible,
.afm-performance.analysis-section .annual-table-scroll:focus-visible,
.afm-performance.analysis-section .analysis-data-table-scroll:focus-visible,
.afm-performance.analysis-section .analysis-data-table summary:focus-visible {
  outline: 3px solid var(--stat-gold-text);
  outline-offset: 2px;
}

/* Statistics is a first-class quick-navigation destination. Generic quick-nav
   hover and active rules already provide the same interaction states. */
#nav-analysis span {
  font-family: 'Playfair Display', Georgia, serif;
}

@media (min-width: 761px) {
  #nav-analysis {
    width: clamp(94px, 8vw, 104px);
    min-width: clamp(94px, 8vw, 104px);
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 900px) {
  .afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-card + .monthly-consistency-summary-card {
    border-left: 0;
  }

  .afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-card:nth-child(even) {
    border-left: 1px solid var(--stat-line);
  }

  .afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-card:nth-child(n + 3) {
    border-top: 1px solid var(--stat-line);
  }
}

@media (max-width: 760px) {
  .afm-performance.analysis-section .analysis-content-shell {
    width: min(calc(100% - 24px), 620px);
  }

}

@media (max-width: 560px) {
  .afm-performance.analysis-section .analysis-chart-card,
  .afm-performance.analysis-section .annual-performance-card {
    margin: 12px;
  }

  .afm-performance.analysis-section .analysis-monthly-statistics-heading {
    padding: 16px 14px 14px;
  }

  .afm-performance.analysis-section .analysis-monthly-statistics-heading p {
    font-size: 14px;
  }

  .afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-card {
    min-height: 88px;
    padding: 13px 11px;
  }

  .afm-performance.analysis-section .analysis-monthly-statistics-card .monthly-consistency-summary-card .monthly-consistency-summary-label {
    white-space: normal;
  }

  .afm-performance.analysis-section .analysis-monthly-legend {
    align-items: flex-start;
    justify-content: flex-start;
    padding-right: 14px;
    padding-left: 14px;
    flex-wrap: wrap;
  }

  .afm-performance.analysis-section .analysis-chart-card .monthly-consistency-panel {
    padding: 0 10px 12px;
  }

  .afm-performance.analysis-section .analysis-chart-card > .monthly-consistency-chart-wrap {
    margin: 0 10px 12px;
  }

  .afm-performance.analysis-section .analysis-chart-card > .monthly-consistency-empty {
    margin: 0 10px 12px;
  }

  .afm-performance.analysis-section .analysis-data-table {
    margin: 0 10px 12px;
  }

}
