/* ============================================================
   GLOBAL STYLES — Blue Rose Financial
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colours */
  --color-bg-dark: #081E41;
  --color-bg-black: #000B1A;
  --color-accent-red: #FF6B6B;
  --color-accent-blue: #60A9FF;
  --color-white: #FFFFFF;
  --color-text-muted: #CDD2D9;
  --color-text-grey: #838F9F;
  --color-divider: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', sans-serif;
  --font-nav: 'Inter', sans-serif;

  /* Spacing */
  --section-pad-y: 96px;
  --section-pad-x: 96px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-bg-dark);
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p{
  text-wrap: pretty;
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  padding-inline: 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1218px;
  }
}

/* ── Section base ───────────────────────────────────────────── */
.main-sect {
  padding-block: var(--section-pad-y);
}

@media (max-width: 991px) {
  .main-sect {
    padding-block: 90px;
  }
}

@media (max-width: 575px) {
  .main-sect {
    padding-block: 98px;
  }
}

/* Utility modifiers */
.pad-bot-none {
  padding-bottom: 0;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pad-top-none {
  padding-top: 0;
}

.pad-y-sm {
  padding-block: 64px;
}

@media (max-width: 991px) {
  .pad-y-sm {
    padding-block: 48px;
  }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.88;
}

.btn--primary {
  background: linear-gradient(to right, #FF6B6B 49%, var(--color-accent-blue) 50%);
  background-size: 210% 100%;
  background-position: right center;
  color: var(--color-bg-black);
  transition: background-position 0.4s ease;
}

.btn-interaction {
  background: linear-gradient(to right, #FF6B6B 49%, var(--color-accent-blue) 50%);
  background-size: 210% 100%;
  background-position: right center;
  color: var(--color-bg-black);
  transition: background-position 0.4s ease;
}

.btn--primary:hover, .btn-interaction:hover {
  background-position: left center;
  opacity: 1;
}


.btn--sm {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 16px;
}

/* ── Animations ─────────────────────────────────────────────── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-30px);
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(30px);
}

.anim-fade-up.is-visible,
.anim-fade-left.is-visible,
.anim-fade-right.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Arrow icon inside buttons */
.btn__arrow {
  width: 11.67px;
  height: 11.67px;
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ── Section Heading ─────────────────────────────────────────── */
.sect-heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sect-heading::before {
  content: '';
  display: block;
  width: 50px;
  height: 6px;
  background-color: var(--color-accent-red);
  border-radius: 2px;
}

.sect-heading__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
}

.sect-heading__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
}

/* Centred heading variant */
.sect-heading--center {
  align-items: center;
  text-align: center;
}

@media (max-width: 991px) {
  .sect-heading__title {
    font-size: 32px;
    line-height: 36px;
  }
}

@media (max-width: 575px) {
  .sect-heading__title {
    font-size: 28px;
    line-height: 36px;
  }

  .sect-heading__sub {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ── Hero (shared across pages) ─────────────────────────────── */
.sect-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 745px;
  overflow: hidden;
  background-color: var(--color-bg-dark);
}

.sect-hero__bg {
  position: absolute;
  inset: 0;
}

.sect-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% center;
  display: block;
}

.sect-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 65, 0.55);
}

/* Vimeo background video — the iframe is scaled to cover the hero, the
   background image on the wrapper acts as the poster until it loads. */
.sect-hero__video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-image: var(--hero-poster);
  background-position: 85% center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  container-type: size;
  /* 16:9 until the player reports the real ratio — the mobile cut is usually
     vertical, so the cover maths below can't assume a fixed shape. */
  --hero-video-ar: 1.7778;
}

/* Phone-sized poster when one is set; same 767px breakpoint as the mobile video. */
@media (max-width: 767px) {
  .sect-hero__video {
    background-image: var(--hero-poster-mobile, var(--hero-poster));
  }
}

.sect-hero__video iframe {
  position: absolute;
  /* Pinned to the top edge, centred horizontally: when the iframe overflows the
     hero, this crops off the bottom instead of slicing the subject's head off
     the top. */
  top: 0;
  left: 50%;
  /* Both axes come out of the same ratio, so the iframe is always exactly the
     shape of the video. That matters more than it looks: when the iframe is a
     different shape, Vimeo's background player runs its own centred cover-crop
     *inside* the frame, and nothing out here can steer it — that crop is what
     was cutting heads off on phones. Fallback covers the viewport; the
     container-query block below covers the hero box itself. */
  width: max(100vw, calc(100vh * var(--hero-video-ar)));
  height: max(100vh, calc(100vw / var(--hero-video-ar)));
  transform: translateX(-50%);
  border: 0;
}

/* Exact cover against the hero box rather than the viewport. */
@supports (width: 100cqw) {
  .sect-hero__video iframe {
    width: max(100cqw, calc(100cqh * var(--hero-video-ar)));
    height: max(100cqh, calc(100cqw / var(--hero-video-ar)));
  }
}

.sect-hero__video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 30, 65, 0.55);
}

/* Overlay off (CMS toggle) — no blue tint, no BR logo graphic. */
.sect-hero--no-overlay .sect-hero__bg::after,
.sect-hero--no-overlay .sect-hero__video::after {
  content: none;
}

.sect-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.sect-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 686px;
  position: relative;
  z-index: 5;
  padding-top: 60px;
}

.sect-hero__decoration {
  position: absolute;
 /* top: calc(50% - 373px);*/
  bottom: 0;
	width: auto;
  height: 100%;
  right: 0;
  z-index: 1;
  max-width: none;
}
@media (min-width: 1440px){
  .sect-hero{
    /*aspect-ratio: 1440 / 700;*/
    height: min(48.6vw, 85svh);
    min-height: 700px;
  }
}
@media(max-width: 1325px) {
 .sect-hero__decoration {
    right: -300px;
 } 
}

@media(max-width: 991px) {
 .sect-hero__decoration {
    right: -400px;
 } 
}

@media(max-width: 767px) {
 .sect-hero__decoration {
   right: -450px;
 } 
}

.sect-hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.125;
  color: var(--color-white);
}

.sect-hero__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-text-muted);
  max-width: 604px;
}

/* Accent size (larger headline — used on homepage and inner pages where design calls for 64px) */
.sect-hero__headline--accent {
  font-size: 64px;
  line-height: 66px;
}
div.wp-gr .grw-review-inner>svg {
  top: 32px !important;
  right: 31px !important;

}
@media (max-width: 991px) {
  .sect-hero__headline {
    font-size: 40px;
    line-height: 1.2;
  }

  .sect-hero__headline--accent {
    font-size: 40px;
    line-height: 1.2;
  }
}

@media (max-width: 575px) {
  .sect-hero {
    min-height: 600px;
  }

  .sect-hero__headline {
    font-size: 32px;
    line-height: 1.125;
  }

  .sect-hero__desc {
    font-size: 16px;
    line-height: 24px;
  }

  .sect-hero__headline--accent {
    font-size: 32px;
    line-height: 1.125;
  }
}

/* ── CTA (shared across pages) ──────────────────────────────── */
.sect-cta {
  background-color: var(--color-bg-dark);
  padding-block: 0 64px;
}

.cta__card {
  background: linear-gradient(135.32deg, rgba(239, 246, 255, 0.65) -6.98%, rgba(203, 227, 255, 0.65) 34%, rgba(131, 188, 255, 0.65) 100%), #FFFFFF;
  border-radius: 16px;
  padding: 48px;
  display: flex;
  justify-content: center;
}

@media(max-width: 575px) {
 .sect-cta {
   background: linear-gradient(135deg, rgba(239, 246, 255, 0.65) -6.98%, rgba(203, 227, 255, 0.65) 34%, rgba(131, 188, 255, 0.65) 100%), var(--Semantic-Colours-White, #FFF);
 } 

 .cta__card {
   background: none;
 }
}

.cta__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  max-width: 800px;
}

.cta__card .sect-heading__title {
  color: var(--color-bg-dark);
}

.cta__card .sect-heading__sub {
  color: #51617A;
}

@media (max-width: 991px) {
  .sect-cta {
    padding-bottom: 48px;
  }

  .cta__card {
    padding: 40px 32px;
  }

  .cta__content {
    gap: 36px;
  }
}

@media (max-width: 575px) {
  .sect-cta {
    padding-block: 48px;
  }

  .cta__card {
    padding: 0;
  }

  .cta__card .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: transparent;
  transition: background-color 0.4s ease;
}

body.scrolling .navbar {
  position: fixed;
  background-color: var(--color-bg-dark);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.navbar__logo img {
  width: 132px;
  height: 40px;
  object-fit: contain;
}

.navbar__logo .dark-logo {
  display: none;
}

.navbar__logo .logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.navbar__menu-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 12px 16px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-bg-dark);
  transition: opacity 0.2s;
}

.navbar__links a:hover {
  opacity: 0.7;
}

.navbar__links .chevron {
  width: 10px;
  height: 6px;
}

/* ── Desktop dropdown (sub-menu) ──────────────────────────────── */
.navbar__links li {
  position: relative;
}

.navbar__links .submenu-toggle {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin-left: -8px;
  border: 0;
  background: none;
  color: var(--color-bg-dark);
  cursor: pointer;
  pointer-events: none; /* desktop: hover on the <li> drives the dropdown */
}

.navbar__links .submenu-toggle .chevron {
  transition: transform 0.2s;
}

.navbar__links li:hover > .submenu-toggle .chevron,
.navbar__links li:focus-within > .submenu-toggle .chevron {
  transform: rotate(180deg);
}

.navbar__links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 12px 8px;
  list-style: none;
  background-color: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 11, 26, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.3s;
  z-index: 10;
  gap: 12px;
    display: flex;
    flex-direction: column;
}

.navbar__links li:hover > .sub-menu,
.navbar__links li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.navbar__links .sub-menu li {
  width: 100%;
}

.navbar__links .sub-menu a {
  width: 100%;
  white-space: nowrap;
  border-radius: 8px;
}

.navbar__links .sub-menu a:hover {
  opacity: 1;
  background-color: var(--color-bg-light, #f4f6f9);
}

.navbar__cta {
  padding: 8px 12px;
  font-size: 12px;
  line-height: 16px;
}

@media(max-width: 1199px) {
  .navbar__menu-wrap {
    display: none;
  }
}

@media (max-width: 991px) {
  .navbar {
    padding-inline: 0;
  }

}

@media (max-width: 575px) {
  .navbar {
    padding-inline: 0;
  }
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-bg-black);
  padding-block: 80px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 458px;
}

.footer__logo img {
  width: 132px;
  height: 40px;
  object-fit: contain;
}

.footer__logo .logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-white);
}

.footer__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-muted);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--color-bg-dark);
  border-radius: 10px;
  transition: opacity 0.2s;
}

.social-link img {
  width: 20px;
  height: auto;
}

.social-link:hover {
  opacity: 0.75;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  list-style: none;
}

.footer__nav-links li {
  height: 19px;
  display: flex;
  align-items: center;
}

.footer__nav-links a {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.0195em;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer__nav-links a:hover {
  color: var(--color-white);
}

.footer__bottom {
  margin-top: 33px;
  padding-top: 33px;
  border-top: 1px solid var(--color-text-grey);
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__legal,
.footer__byline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-text-muted);
}

.footer__byline a:hover{
  text-decoration: underline;
}

/* ── Section: Newsletter Signup ─────────────────────────────── */
.sect-newsletter {
  background-color: var(--color-bg-dark);
}

.newsletter__card {
  background: linear-gradient(135.32deg, rgba(239, 246, 255, 0.65) -6.98%, rgba(203, 227, 255, 0.65) 34%, rgba(131, 188, 255, 0.65) 100%), #FFFFFF;
  border-radius: 16px;
  padding: 48px;
  display: flex;

  gap: 36px;
}
.newsletter__card  .wpcf7{
  flex: 1 1 auto;
}
.newsletter__card .wpcf7 label{
  color: #081E41;

  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
}
.newsletter__card .wpcf7 label + span input{
  margin-top: 4px;
}
.newsletter__card .newsletter__input-wrap{
  width: 100%;
  flex: 0 0 100%
}
@media(max-width: 575px) {
 .sect-newsletter {
   background: linear-gradient(135deg, rgba(239, 246, 255, 0.65) -6.98%, rgba(203, 227, 255, 0.65) 34%, rgba(131, 188, 255, 0.65) 100%), var(--Semantic-Colours-White, #FFF);
 } 

 .newsletter__card {
   background: none;
 }
}

.newsletter__heading {
  width: 411px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter__heading::before {
  content: '';
  display: block;
  width: 50px;
  height: 6px;
  background-color: var(--color-accent-red);
  border-radius: 2px;
}

.newsletter__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  color: var(--color-bg-dark);
}


.newsletter__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #51617A;
}

.newsletter__form {
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}
.newsletter__form .row{
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
}
.newsletter__form .col-sm-6 {
  flex: 0 0 100%;
}
.newsletter__input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
}

.newsletter__input-wrap .wpcf7-not-valid-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  text-wrap: nowrap;
}

.newsletter__form .wpcf7-response-output {
  position: static;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0 !important;
}
@media (min-width: 768px) {

  .newsletter__form .col-sm-6{
    flex: calc(50% - 12px);
  }
}
@media(max-width: 1199px) {

  .newsletter__input-wrap .wpcf7-not-valid-tip,
  .newsletter__form .wpcf7-response-output {
    position: static;
  }

  .newsletter__form .wpcf7-response-output {
    margin-top: 0px !important;
  }
}

.newsletter__input-wrap .wpcf7-form-control-wrap {
  position: static;
}

.newsletter__input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  color: var(--color-bg-dark);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.newsletter__input::placeholder {
  color: #51617A;
}

.newsletter__input:focus {
  border-color: var(--color-accent-blue);
}

/* Category pills */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-bg-black);
  align-self: flex-start;
}

.pill--insights {
  background-color: var(--color-accent-blue);
}

.pill--case-studies {
  background-color: var(--color-accent-red);
}

.pill--finance-strategies {
  background-color: #D9C6A5;
}

.pill--home-lending {
  background-color: #95C6FF;
}

.pill--property-investment {
  background-color: #FF9C9C;
}

.pill--self-employed {
  background-color: #FFF0B3;
}

.insight-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  color: var(--color-white);
}

.insight-card__title--h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  color: var(--color-white);
}

.insight-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-muted);
}

/* ── Cards grid ─────────────────────────────────────────────── */
.insights-grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 64px 32px;
  align-self: stretch;
}

.insights-grid.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

/* 3 per row; subtract 2 column-gaps of 32px */
.insight-card {
  flex: 0 0 calc((100% - 64px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.insight-card__image {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #162d56;
  flex-shrink: 0;
}

.insight-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.insight-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-card__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


@media(max-width: 1199px) {
  .newsletter__card {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    padding: 32px;
  }

  .newsletter__heading {
    width: 100%;
  }

  /* .newsletter__form { */
  /*   flex-direction: column; */
  /*   align-items: stretch; */
  /* } */
}

@media (max-width: 991px) {
  .site-footer {
    padding-inline: 32px;
  }

  .footer__top {
    flex-direction: column;
  }

  .footer__brand {
    max-width: 100%;
  }

  .insight-card {
    flex: 0 0 calc((100% - 32px) / 2);
  }
}

@media (max-width: 991px) and (min-width: 576px) {
  .insight-card__title {
    font-size: 28px;
    line-height: 36px;
  }
}

@media (max-width: 575px) {
  .site-footer {
    padding-block: 48px;
    padding-inline: 0;
  }

  .footer__nav-links {
    gap: 8px 32px;
  }

  .newsletter__card {
    padding: 0;
  }

  .newsletter__form {
    flex-direction: column;
    align-items: stretch;
  }

  .newsletter__title {
    font-size: 24px;
    line-height: 28px;
  }

  .insight-card {
    flex: 0 0 100%;
  }

  .insight-card__title {
    font-size: 24px;
    line-height: 28px;
  }
}

/* ── Section: Hero Compact ──────────────────────────────────── */
.sect-hero-compact {
  background-color: var(--color-bg-dark);
  padding-top: 164px;
  padding-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.sect-hero-compact__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sect-hero-compact__inner::before {
  content: '';
  display: block;
  width: 50px;
  height: 6px;
  background-color: var(--color-accent-red);
  border-radius: 2px;
}

.sect-hero-compact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 66px;
  color: var(--color-white);
}

.sect-hero-compact__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-text-muted);
}


/* ── Section: Insights Grid ─────────────────────────────────── */
.sect-insights-grid {
  background-color: var(--color-bg-dark);
}

.sect-insights-grid__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

/* ── Tabs ───────────────────────────────────────────────────── */
.insights-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.insights-tab {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.resources-tabs .insights-tab {
  color: var(--color-bg-dark);
}

.insights-tab:hover {
  opacity: 0.75;
}

.insights-tab--active {
  background-color: var(--color-accent-red);
  color: var(--color-bg-dark);
}

.insights-tab-divider {
  width: 1px;
  height: 16px;
  background-color: #7E8794;
  flex-shrink: 0;
}

/* Load more wrapper */
.insights-load-more {
  display: flex;
  justify-content: center;
}

/* ── Resource cards ─────────────────────────────────────────── */
.resource-card {
  position: relative;
  flex: 0 0 calc((100% - 64px) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 35px;
  padding: 30px;
  border-radius: 12px;
  background: linear-gradient(137.76deg, rgba(239, 246, 255, 0.65) 6.98%, rgba(203, 227, 255, 0.65) 34%, rgba(131, 188, 255, 0.65) 100%), #FFFFFF;
}

.resource-card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-card__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resource-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  color: var(--color-bg-dark);
}

.resource-card__title a {
  color: inherit;
  text-decoration: none;
}

/* Stretch the title link over the whole card so any part of it is clickable,
   while the link itself stays the single keyboard target. */
.resource-card__title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Keep the Read button above the stretched link so it keeps its own
   hover state and stays clickable. */
.resource-card__footer .btn {
  position: relative;
  z-index: 2;
}

.resource-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #51617A;
}

.resource-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.resource-card__read-time {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-bg-dark);
  white-space: nowrap;
}

@media (max-width: 991px) {
  .resource-card {
    flex: 0 0 calc((100% - 32px) / 2);
  }
}

@media (max-width: 575px) {
  .resource-card {
    flex: 0 0 100%;
  }
}

/* ── Section: Resource Hero (single resource) ────────────────── */
.sect-resource-hero {
  background-color: var(--color-bg-dark);
  padding-top: 164px;
  padding-bottom: 64px;
}

.sect-resource-hero__inner {
  max-width: 704px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.sect-resource-hero__inner .pill {
  align-self: center;
}

.sect-resource-hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
  color: var(--color-white);
}

.sect-resource-hero__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-text-muted);
}

.sect-resource-hero__meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-muted);
}

@media (max-width: 991px) {
  .sect-resource-hero {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .sect-resource-hero__title {
    font-size: 28px;
    line-height: 32px;
  }
}

@media (max-width: 575px) {
  .sect-resource-hero__title {
    font-size: 24px;
    line-height: 28px;
  }

  .sect-resource-hero__desc {
    font-size: 16px;
    line-height: 24px;
  }
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 991px) and (min-width: 576px) {
  .newsletter__title {
    font-size: 28px;
    line-height: 36px;
  }
}

@media(max-width: 767px) {
  .newsletter__sub {
    font-size: 16px;
    line-height: 1.5;
  }

  .newsletter__card {
    gap: 24px;
  }
}


@media (max-width: 991px) {
  .sect-hero-compact {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .sect-hero-compact__title {
    font-size: 48px;
    line-height: 54px;
  }

  .sect-hero-compact__sub {
    font-size: 18px;
  }
}

@media (max-width: 575px) {
  .sect-hero-compact__title {
    font-size: 32px;
    line-height: 36px;
  }

  .sect-hero-compact__sub {
    font-size: 16px;
  }

  .insights-tab-divider {
    display: none;
  }

  .newsletter__card .btn {
    justify-content: center;
  }

}

.wpcf7-not-valid-tip {
  font-size: 14px;
}

/* ============================================================
   MOBILE NAV — Hamburger + Slide-down Menu
   ============================================================ */

/* Hamburger button (hidden on desktop) */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 210;
  background: transparent;
}

.navbar__burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #FF6B6B;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate into an "X" when active */
.navbar__burger.is-active .navbar__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__burger.is-active .navbar__burger-line:nth-child(2) {
  opacity: 0;
}

.navbar__burger.is-active .navbar__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel — full-screen dark overlay */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 200;
  padding: 0 0 56px;
  background-color: var(--color-bg-dark);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Inner uses .container so the menu's side offset matches the page content
   (padding-inline + max-width margin-auto) instead of a flat 15px. Full
   height so the CTA can still pin to the bottom via margin-top: auto. */
.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu.is-open .mobile-menu__cta{
  padding-top: 16px;
}

/* Side offset comes from .mobile-menu__inner.container; padding-top matches
   .navbar__inner's 20px so the logo/burger don't jump when the panel opens. */
.mobile-menu__header {
  display: flex;
  align-items: center;
  padding: 20px 0 0;
  margin-bottom: 40px;
}

.mobile-menu__logo img {
  width: 132px;
  height: 40px;
  object-fit: contain;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 32px;
  list-style: none;
}

.mobile-menu__links a {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 20px;
  color: var(--color-white);
}

/* ── Mobile sub-menu (accordion) ──────────────────────────────── */
.mobile-menu__links li.menu-item-has-children {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.mobile-menu__links .submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  /*height: 44px;*/
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent-red);
  cursor: pointer;
}

.mobile-menu__links .submenu-toggle .chevron {
  width: 14px;
  height: 8px;
  transition: transform 0.2s;
}

.mobile-menu__links .submenu-toggle[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.mobile-menu__links .sub-menu {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding-top: 0;
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.65, 0, 0.35, 1), padding-top 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-menu__links .sub-menu a {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-text-muted);
}

.mobile-menu__cta {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  padding-top: 56px;
}

/* Lock body scroll while mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .navbar__burger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }
}


.is-open > .sub-menu{
  padding-top: 24px;
}
