/* AIM GB Ltd — modern layout, original brand palette */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --navy: #323d81;
  --navy-deep: #242c5c;
  --navy-midnight: #1d234a;
  --accent: #3fb618;
  --accent-hover: #2f8912;
  --text: #333333;
  --muted: #666666;
  --line: #e8e8e8;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --hero-glow: rgba(50, 61, 129, 0.45);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 30px rgba(29, 35, 74, 0.08);
  --shadow-hover: 0 16px 40px rgba(29, 35, 74, 0.12);
  --header-h: 72px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* Set by cookie-consent.js while the banner is visible; clears when dismissed */
  --cookie-consent-reserve: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-alt);
}

/* Pages that also load Bootstrap for legacy ingested markup: keep site chrome from shrinking.
   (Bootstrap used to load after main.css and forced body 14px + .container rules.) */
/* Bootstrap 3 sets html { font-size: 62.5% } so rem-based rules resolve to ~10px — restore a normal root on inner pages */
html:has(body.page-inner) {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.page-inner {
  font-size: 1rem;
  line-height: 1.6;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
}

.site-header,
.site-header .container.header-inner,
.top-bar {
  font-size: inherit;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-deep);
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* ——— Top bar ——— */
.top-bar {
  background: var(--navy-deep);
  color: #e8eaf4;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem 1rem;
  line-height: 1.35;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar__sep {
  opacity: 0.5;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
  position: relative;
  z-index: 0;
  isolation: isolate;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo-link img {
  width: min(200px, 42vw);
  height: auto;
}

@media (max-width: 480px) {
  .logo-link img {
    width: min(150px, 46vw);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: var(--surface-alt);
  cursor: pointer;
  position: relative;
  z-index: 3;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.15rem;
  min-width: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-item > button {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 0.65rem 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-item > a:hover,
.nav-item > button:hover {
  background: var(--surface-alt);
  color: var(--navy-deep);
}

.nav-chevron {
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}

.nav-panel {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 220px;
  max-width: min(320px, 85vw);
  padding: 0.5rem;
  margin-top: 0.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}

.nav-item:hover .nav-panel,
.nav-item:focus-within .nav-panel,
.nav-item.is-open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-panel a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.nav-panel a:hover {
  background: var(--surface-alt);
  color: var(--navy);
}

/* Spacer on small screens: pushes menu control and CTA toward the right while the logo stays left */
.header-mobile-fill {
  display: none;
}

@media (max-width: 1023px) {
  .header-mobile-fill {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }
}

.header-cta {
  flex-shrink: 0;
  text-decoration: none;
  font-size: 0.8125rem;
  padding: 0.55rem 1.15rem;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s var(--ease), box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(50, 61, 129, 0.35);
}

.btn-primary:hover {
  background: var(--navy-deep);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(63, 182, 24, 0.35);
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-outline {
  background: var(--surface);
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  background: linear-gradient(135deg, var(--navy-midnight) 0%, var(--navy) 45%, #3d4a9e 100%);
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(63, 182, 24, 0.15), transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 100%, var(--hero-glow), transparent 45%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-card strong {
  color: #fff;
}

.hero-card--highlight {
  background: rgba(63, 182, 24, 0.16);
  border-color: rgba(63, 182, 24, 0.45);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.hero-card--highlight strong {
  color: #d8f5c8;
}

.hero-wave {
  display: block;
  margin-top: -1px;
  width: 100%;
  height: clamp(48px, 8vw, 72px);
  color: var(--surface-alt);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

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

.section--dark {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-midnight) 100%);
  color: #e8eaf4;
}

.section--dark a:not(.btn) {
  color: #c5d4ff;
}

.section--dark .section-title {
  color: #fff;
}

.section--dark .section-intro {
  color: rgba(255, 255, 255, 0.82);
}

.section--dark .section-eyebrow {
  color: var(--accent);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy-deep);
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ——— Intro band ——— */
.intro-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .intro-layout {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.intro-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--navy);
}

.intro-copy h2 small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.intro-copy .lead {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.intro-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
}

/* ——— Quote strip ——— */
.quote-strip {
  text-align: center;
  padding: 2.5rem 1rem;
}

.quote-strip .lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-style: italic;
  max-width: 52ch;
  margin-inline: auto;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ——— Pillars ——— */
.pillars {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.pillar h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
}

.pillar p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ——— MTD ——— */
.mtd-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .mtd-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    text-align: left;
    align-items: start;
  }
}

.mtd-feature-img {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.mtd-feature-img img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: cover;
}

.mtd-copy h2.mtd-heading-accent {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--accent);
}

.mtd-brand-line {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
}

.mtd-copy .lead {
  margin: 0 0 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.mtd-copy p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.975rem;
}

/* ——— Split feature ——— */
.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.split-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--line);
}

.split-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--navy);
}

.split-copy .lead {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.split-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

/* ——— Portal ——— */
.portal-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .portal-grid {
    grid-template-columns: 1.15fr 1fr;
    align-items: start;
  }
}

.video-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.portal-side h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.portal-side p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.engager-logo {
  max-width: 180px;
  margin-bottom: 1rem;
}

.engager-logo--marketing {
  max-width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.app-badges a img {
  height: 44px;
  width: auto;
}

.portal-side h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/* ——— Newsletter row ——— */
.news-row {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .news-row {
    grid-template-columns: 1.4fr 1fr;
  }
}

.news-row--blog-only {
  grid-template-columns: 1fr;
  max-width: 36rem;
  margin-inline: auto;
}

.news-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-hover);
}

.news-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.news-box .lead {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

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

.blog-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--navy);
}

.blog-card p {
  margin: 0;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--muted);
}

.blog-card .link-arrow {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
}

.blog-card--accent {
  border: 2px solid rgba(63, 182, 24, 0.45);
  background: linear-gradient(180deg, rgba(63, 182, 24, 0.08) 0%, var(--surface) 55%);
}

.blog-card--accent h3 {
  color: var(--accent-hover);
}

/* ——— Homepage: Blog & updates ——— */
.home-insights .section-header {
  margin-bottom: 2rem;
}

.home-insights-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 880px) {
  .home-insights-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 1.5rem;
  }
}

.home-insight-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.home-insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.home-insight-card__visual {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  overflow: hidden;
}

.home-insight-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-insight-card__visual--muted {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eef2ff 0%, #f5f8ff 100%);
  padding: 1.25rem;
}

.home-insight-card__portal-logo {
  width: min(200px, 70%);
  height: auto;
}

.home-insight-card__portal-hero {
  width: 100%;
  max-height: min(200px, 22vw);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

.home-insight-card__body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-insight-card__body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--navy-deep);
}

.home-insight-card__body p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-insight-card .link-arrow {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
}

.home-insight-card--accent {
  border: 2px solid rgba(63, 182, 24, 0.35);
  background: linear-gradient(180deg, rgba(63, 182, 24, 0.06) 0%, var(--surface) 45%);
}

.home-insight-card--accent .home-insight-card__body h3 {
  color: var(--accent-hover);
}

/* ——— Homepage: Services band ——— */
.home-services-section .section-header {
  margin-bottom: 2rem;
}

.home-services-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .home-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .home-services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.home-service-tile {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.home-service-tile:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
}

.home-service-tile__eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.45rem;
}

.home-service-tile__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.home-service-tile__desc {
  margin: 0;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

.home-service-tile__more {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--accent);
}

.home-services-footer {
  margin-top: 2rem;
  text-align: center;
}

.home-services-footer__note {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 42rem;
  margin-inline: auto;
}

/* ——— Triptych ——— */
.triptych {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .triptych {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tri-card {
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  color: #fff;
  text-align: center;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tri-card:nth-child(1) {
  background: linear-gradient(160deg, #3a4894 0%, var(--navy-deep) 100%);
}

.tri-card:nth-child(2) {
  background: linear-gradient(160deg, var(--navy) 0%, #2a3570 100%);
}

.tri-card:nth-child(3) {
  background: linear-gradient(160deg, #454f9e 0%, var(--navy-midnight) 100%);
}

.tri-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
}

.tri-card p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
}

.tri-card .btn {
  margin-top: auto;
}

/* ——— Partners ——— */
.partners {
  padding: 2rem 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.partner-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}

.partner-strip a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.partner-strip a:hover {
  opacity: 1;
}

.partner-strip img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.partner-strip img.height {
  max-height: 56px;
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: 1rem;
  font-size: 0.975rem;
  color: var(--muted);
}

.contact-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.contact-list a {
  font-weight: 600;
  text-decoration: none;
}

address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-row a {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  transition: background 0.2s, transform 0.15s;
}

.social-row a:hover {
  background: var(--surface);
  transform: translateY(-2px);
}

.social-row img {
  width: 22px;
  height: 22px;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-midnight);
  color: #b8c0e8;
  padding: 2.5rem 0 2rem;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
  }
}

.site-footer h5 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer a {
  color: #c5d4ff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
}

.footer-links span {
  opacity: 0.4;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8125rem;
}

@media (max-width: 767px) {
  .site-footer {
    padding: 1.75rem 0 1.5rem;
  }

  .site-footer .container {
    overflow-x: hidden;
  }

  .footer-grid {
    gap: 1.35rem;
  }

  .site-footer p {
    margin: 0 0 0.6rem;
  }

  .site-footer address {
    margin: 0;
    font-style: normal;
  }

  .footer-links {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.25rem;
  }

  .footer-links span {
    display: none;
  }

  .footer-links a {
    display: block;
    padding: 0.3rem 0;
    line-height: 1.35;
  }

  .footer-bottom {
    margin-top: 1.25rem;
    padding-top: 1rem;
  }
}

/* ——— Mobile nav ——— */
@media (max-width: 1023px) {
  .site-header {
    background: var(--surface);
    backdrop-filter: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* Top bar + sticky header (measured in main.js as --nav-drawer-offset) */
    top: var(--nav-drawer-offset, 7.5rem);
    background: var(--surface);
    flex: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1rem;
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.3s var(--ease);
    /* Closed drawer must sit *under* the bar (logo / CTA / hamburger), not paint on top of them */
    z-index: -1;
  }

  /* Off-canvas: when closed, do not intercept taps; when open, sit below cookie consent */
  .site-header:not(.is-open) .primary-nav {
    pointer-events: none;
  }

  .site-header.is-open .primary-nav {
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1100;
  }

  .nav-item > a,
  .nav-item > button {
    width: 100%;
    justify-content: space-between;
    padding: 1rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
  }

  .nav-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    max-width: none;
    min-width: 0;
    padding: 0 0 0.5rem 1rem;
    display: none;
    margin: 0;
  }

  /* Do not use :hover here — it can override .is-open on touch devices and hide submenus */
  .nav-item.is-open .nav-panel,
  .nav-item.is-open > .nav-panel {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

}

@media (min-width: 1024px) {
  .nav-item > button .nav-chevron {
    display: inline-block;
  }
}

body.nav-open {
  overflow: hidden;
}

.footer-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: #9aa8e8;
}

.footer-note a {
  color: #c5d4ff;
}

/* ——— Legacy CMS pages (ingested HTML + Bootstrap 3 grid) ——— */
.page-legacy #page-main {
  background: var(--surface);
  padding-bottom: 3rem;
}

.page-legacy .legacy-bootstrap {
  padding-top: 1.5rem;
}

.page-legacy .legacy-bootstrap .container {
  width: auto;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.page-legacy .legacy-bootstrap a {
  color: var(--navy);
}

.page-legacy .legacy-bootstrap .btn-primary {
  background-color: var(--navy);
  border-color: var(--navy-deep);
}

.page-legacy .legacy-bootstrap .btn-success {
  background-color: var(--accent);
  border-color: var(--accent-hover);
}

/* ——— Inner pages (rebuilt content, no legacy CMS chrome) ——— */
.page-inner .inner-main {
  background: var(--surface-alt);
}

.inner-hero {
  background: linear-gradient(135deg, var(--navy-midnight) 0%, var(--navy) 100%);
  color: #fff;
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}

.inner-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.inner-hero p {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.prose {
  max-width: 70ch;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  color: var(--navy-deep);
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.prose p,
.prose li {
  color: var(--muted);
  margin: 0 0 1rem;
}

.prose ul {
  margin: 0 0 1.25rem 1.1rem;
  padding: 0;
}

.prose a {
  font-weight: 600;
}

/* ——— Services pages layout ——— */
.services-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 980px) {
  .services-layout {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 2rem;
  }
}

.services-sidebar {
  position: relative;
}

.services-sidebar__inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1rem;
}

@media (min-width: 980px) {
  .services-sidebar__inner {
    position: sticky;
    top: calc(var(--header-h) + 1.75rem);
  }
}

.services-sidebar__label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  font-weight: 700;
}

.services-side-nav {
  display: grid;
  gap: 0.35rem;
}

.services-side-nav a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.services-side-nav a:hover {
  background: #f0f3fc;
  border-color: #d7dff4;
  transform: translateX(3px);
}

.services-side-nav a.is-active {
  background: linear-gradient(135deg, var(--navy-midnight) 0%, var(--navy) 100%);
  color: #fff;
  border-color: transparent;
}

.services-main {
  min-width: 0;
}

.services-tagline {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
}

.services-article {
  max-width: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.4vw, 2rem);
}

.services-article .lead {
  font-size: 1.07rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.services-panel {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
}

.services-panel p:last-child {
  margin-bottom: 0;
}

.services-media {
  margin: 0 0 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.services-media img {
  width: 100%;
  height: auto;
  display: block;
}

.services-media--wide {
  margin: 1.4rem 0;
}

.services-media--wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 420px;
}

.services-media--contain {
  background: #f8faff;
  padding: 1rem;
}

.services-media--contain img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  max-height: 420px;
  background: #fff;
}

.services-feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 680px) {
  .services-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.services-feature-list li {
  margin: 0;
  padding: 0.8rem 0.9rem;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.services-cta-card {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #edf3ff 0%, #e8f8df 100%);
  border: 1px solid #d8e5f7;
}

.services-cta-card h2,
.services-cta-card h3 {
  margin-top: 0;
}

.services-cta-card .split-actions {
  margin-top: 1rem;
}

.services-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.services-risk-note {
  margin-top: 0.8rem;
  border-left: 4px solid var(--navy);
  padding-left: 0.85rem;
}

.professional-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0 1.5rem;
}

.professional-logo-row img {
  max-height: 70px;
  width: auto;
}

.partner-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin: 0 0 1rem;
}

.partner-badge-row img:first-child {
  max-height: 40px;
  width: auto;
}

.partner-badge-row img:last-child {
  max-height: 86px;
  width: auto;
}

.partner-logo-box {
  margin: 0.75rem 0 1.25rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.partner-logo-box img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.partner-logo-box--tide img {
  max-height: 88px;
}

.partner-logo-box--fp img {
  max-height: 72px;
}

.institute-block {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
}

.institute-block:first-of-type {
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .institute-block {
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 1.5rem 2rem;
  }
}

.institute-block__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 88px;
}

.institute-block__copy h2 {
  margin-top: 0;
}

.home-freeagent__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 800px) {
  .home-freeagent__inner {
    grid-template-columns: 1fr auto;
    gap: 2rem;
  }
}

.home-freeagent__copy h2 {
  margin-top: 0;
}

.home-freeagent__badges {
  margin: 0;
  justify-content: center;
}

@media (min-width: 800px) {
  .home-freeagent__badges {
    justify-content: flex-end;
  }
}

.contact-form__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .contact-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form__field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form-panel .contact-form {
  margin: 0;
}

.testimonial-feature {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

@media (min-width: 800px) {
  .testimonial-feature {
    grid-template-columns: 1.1fr 1fr;
  }
}

.testimonial-feature img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact-form-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form-panel h2 {
  margin-top: 0;
}

.fp-brand-row {
  margin-bottom: 0.9rem;
}

.fp-brand-logo {
  max-width: min(360px, 100%);
  height: auto;
}

.fp-profile-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 760px) {
  .fp-profile-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
  }
}

.fp-profile-card {
  margin: 0;
  justify-self: start;
}

.fp-profile-card img {
  width: 190px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.split-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.quote-block {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

.quote-block cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
}

/* ——— Rich content pages (ingested About / Services copy) ——— */
.page-rich .content-rich-section {
  padding-inline: 0;
}

.content-rich-bleed {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left, 0px)) max(0px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
}

.imported-prose {
  font-size: 1rem;
  line-height: 1.65;
}

.imported-prose--readable {
  max-width: min(50rem, 100%);
  margin-inline: auto;
  padding-inline: clamp(0.25rem, 2vw, 0.5rem);
}

.imported-prose h1,
.imported-prose h2,
.imported-prose h3,
.imported-prose h4 {
  color: var(--navy-deep);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.imported-prose .opening-wrap h2:first-of-type {
  margin-top: 0;
}

.imported-prose p,
.imported-prose li {
  color: var(--text);
}

.imported-prose p {
  margin: 0 0 1rem;
}

.imported-prose ul,
.imported-prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.imported-prose .lead {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.imported-prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.imported-prose .cta {
  text-decoration: none;
  color: inherit;
}

/* Bootstrap 3 wrappers inside ingested HTML */
.imported-prose .container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}

.imported-prose .row {
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 767px) {
  .imported-prose [class*="col-"] {
    width: 100% !important;
    float: none !important;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 1.5rem;
  }
}

.imported-prose .opening-wrap,
.imported-prose .highlighted-wrap,
.imported-prose .standard-wrap {
  margin-bottom: 2.5rem;
  padding: 1.75rem 0;
  border-radius: var(--radius-lg);
}

.imported-prose .opening-wrap {
  background: linear-gradient(180deg, #f0f3fc 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  padding: 1.75rem 1.25rem;
  margin-top: 0;
}

.imported-prose .highlighted-wrap {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  padding: 1.75rem 1.25rem;
}

.imported-prose .standard-wrap {
  padding-bottom: 0.5rem;
}

.imported-prose .content-divider {
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--navy);
  opacity: 0.35;
  font-size: 1.35rem;
}

.imported-prose .profile {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.imported-prose .profile.highlight {
  background: #fafbff;
  border-color: #dce3f5;
}

.imported-prose .profile.white-bg {
  background: var(--surface);
}

.imported-prose .profile h3,
.imported-prose .profile h4 {
  margin-top: 0;
}

.imported-prose a.cta,
.imported-prose .cta {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s var(--ease), border-color 0.2s;
}

.imported-prose a.cta:hover,
.imported-prose .cta:hover {
  border-color: #c5cee8;
  box-shadow: var(--shadow-hover);
}

.imported-prose .cta .cta-heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--navy-deep);
}

.imported-prose .cta .cta-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.imported-prose .text-center {
  text-align: center;
}

/* Contact page map */
.contact-map-wrap {
  margin: 1.25rem 0 0.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface-alt);
}

.contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: min(42vh, 400px);
  min-height: 260px;
  border: 0;
}

.contact-map-actions {
  margin: 0 0 1rem;
}

.dual-promo {
  display: grid;
  gap: 1.25rem;
}

.dual-promo--single {
  max-width: 42rem;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .dual-promo {
    grid-template-columns: 1fr 1fr;
  }

  .dual-promo--single {
    grid-template-columns: 1fr;
  }
}

.promo-panel {
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.promo-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  color: var(--navy-deep);
}

.promo-panel p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.975rem;
}

/* First-visit cookie / storage notice: avoid a tall strip of body background below the
   footer on mobile; reserve space on the footer (same navy) sized to the bar in JS. */
body.cookie-consent-visible {
  padding-bottom: 0;
}

body.cookie-consent-visible .site-footer {
  padding-bottom: calc(2rem + var(--cookie-consent-reserve));
}

.cookie-consent {
  position: fixed;
  z-index: 2147483000;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1rem 0 max(1rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  background: rgba(15, 23, 42, 0.98);
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.cookie-consent__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  width: min(1120px, 100%);
  margin-inline: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .cookie-consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.cookie-consent__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 52rem;
}

.cookie-consent__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__text a:hover {
  color: #cbd5e1;
}

.cookie-consent__actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.cookie-consent .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #f8fafc;
  background: transparent;
}

.cookie-consent .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.cookie-consent__accept,
.cookie-consent__reject {
  min-width: min(100%, 7.5rem);
  min-height: 44px;
  touch-action: manipulation;
}

@media (max-width: 420px) {
  .cookie-consent__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__accept,
  .cookie-consent__reject {
    width: 100%;
    justify-content: center;
  }
}

/* Very narrow header: allow wrap so logo + menu do not collide */
@media (max-width: 380px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .header-mobile-fill {
    display: none;
  }

  .nav-toggle {
    order: 4;
    margin-left: auto;
  }
}

.social-links-inline {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.social-links-inline__sep {
  display: inline-block;
  margin: 0 0.35rem;
  color: var(--muted);
}
