:root {
  --ce-blue: #00529b;
  --ce-green: #69be28;
  --ce-aqua: #a1ddf1;
  --ce-dark-blue: #003e7c;
  --ce-dark-text: #4d4d4d;
  --ce-light-background: #f0f4f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  color: var(--ce-dark-text);
  line-height: 1.6;
}

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

a:hover,
a:focus {
  color: rgba(255, 255, 255, 0.85);
}

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

.brand-logo {
  display: block;
  height: 3.5rem;
  width: auto;
  max-width: 300px;
  object-fit: contain;
  filter: drop-shadow(20px 40px 25px rgba(244, 243, 243, 0.8));
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.branding {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
}

.primary-nav {
  display: none;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: #fff;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.icon-link:hover,
.icon-link:focus {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease, color 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--ce-blue);
  color: #fff;
  box-shadow: 0 10px 25px rgba(0, 82, 155, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ce-dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 82, 155, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #fff;
  color: var(--ce-blue);
  transform: translateY(-2px);
}

.menu-toggle {
  background: transparent;
  border: none;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.menu-icon {
  width: 1.75rem;
  height: 1.75rem;
}

.mobile-menu {
  display: none;
  margin: 0 1.5rem;
  margin-top: 1rem;
  padding: 1.5rem;
  background: rgba(0, 62, 124, 0.92);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  color: #fff;
}

.mobile-social {
  display: flex;
  gap: 1rem;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, #042042, #010611 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 152, 190, 0.3),
    rgba(0, 0, 0, 0.2)
  );
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .footer-logo {
    transition-duration: 0.01ms !important;
  }

  .hero-video {
    display: none;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin-bottom: 1.75rem;
  line-height: 1.15;
}

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

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.section-dark {
  background: var(--ce-dark-blue);
  color: #d6e4f4;
}

.section-dark p {
  color: #c3d7ef;
}

.section-light {
  background: var(--ce-light-background);
}

.two-column {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

.two-column.reverse {
  direction: rtl;
}

.two-column.reverse > * {
  direction: ltr;
}

.text-block h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.2;
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: inherit;
}

.section-dark h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 1.75rem);
}

.section-dark p {
  margin-bottom: 1.25rem;
}

.section-light .text-block p {
  color: var(--ce-dark-text);
}

.section-light .text-block .btn {
  margin-top: 1.5rem;
}

.section-light .text-block h2 {
  color: var(--ce-blue);
}

/* TEAM SECTION */

#team .container {
  padding-bottom: 6rem;
}

.team-header {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.team-header h2 {
  font-size: clamp(2.25rem, 3.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.team-header p {
  margin: 0;
  color: var(--ce-dark-text);
}

/* 3 / 4 / 3 layout on large screens */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  justify-items: center;
}

/* Let cards place in 3-4-3 pattern */
.team-card:nth-child(1) { grid-column: 1; }
.team-card:nth-child(2) { grid-column: 2; }
.team-card:nth-child(3) { grid-column: 3; }
.team-card:nth-child(4) { grid-column: 4; }

.team-card:nth-child(5) { grid-column: 1; }
.team-card:nth-child(6) { grid-column: 2; }
.team-card:nth-child(7) { grid-column: 3; }
.team-card:nth-child(8)  { grid-column: 4; }

.team-card:nth-child(9)  { grid-column: 1; }
.team-card:nth-child(10) { grid-column: 2; }
.team-card:nth-child(11) { grid-column: 3; }

.team-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem 1rem 1.25rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
  max-width: 230px;
}

.team-card:focus-visible {
  outline: 3px solid var(--ce-blue);
  outline-offset: 3px;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.11);
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.team-name {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ce-blue);
}

.team-affiliation {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ce-dark-text);
}

/* Responsive grid: 2 columns on tablets, 1 on phones */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card:nth-child(n) {
    grid-column: auto; /* let them flow naturally in 2-col layout */
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* team modal */

.team-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.team-modal.is-open {
  display: flex;
}

.team-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.team-modal__dialog {
  position: relative;
  z-index: 1;
  max-width: 540px;
  width: calc(100% - 3rem);
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: left;
}

.team-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #777;
}

.team-modal__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
}

.team-modal__name {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  color: var(--ce-blue);
}

.team-modal__affiliation,
.team-modal__position {
  margin: 0;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ce-dark-text);
}

.team-modal__position {
  margin-bottom: 0.75rem;
}

.team-modal__description {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--ce-dark-text);
}


.highlight {
  color: var(--ce-blue);
}

.partner-logos {
  display: flex;
  justify-content: center;
}

.image-block {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-media {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  background: transparent;
  width: min(100%, 34rem);
}

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

.partner-media {
  max-width: clamp(16rem, 60vw, 28rem);
  margin-inline: auto;
}

#partner-highlights h2 {
  text-align: center;
  font-size: clamp(2.4rem, 4vw, 3rem); /* bigger heading */
  margin-bottom: 2.5rem;              /* more space under it */
}

#partner-highlights .container {
  padding-bottom: 3rem;
}

.partner-carousel {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  /* box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12); */
  background: var(--ce-dark-blue);
  height: 600px;  
}

.partner-slide {
  position: relative;
  display: none;      /* hide by default */
  overflow: hidden;
  height: 100%;
}

.partner-slide.active {
  display: block;
}

.partner-slide__image {
  position: absolute;
  top: 0;
  bottom: 0;
  /* width: 60%;        image takes ~60% of the card width */
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Image anchored to the LEFT side of the card */
.partner-slide--image-left .partner-slide__image {
  left: 0;
  right: auto;
}

/* Image anchored to the RIGHT side of the card */
.partner-slide--image-right .partner-slide__image {
  right: 0;
  left: auto;
}

/* Overlay text box */
.partner-slide__content {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-width: 32rem;
  padding: 2rem 2.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

/* Orientations */
.partner-slide__content--left {
  left: 5%;
}

.partner-slide__content--right {
  right: 5%;
}

/* Color variants */
.partner-slide__content--blue {
  background: var(--ce-blue); /* deep navy */
}

.partner-slide__content--light {
  background: var(--ce-blue);
  color: #FFFFFF; 
}

/* Typography + link styling */
.partner-slide__content h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
}

.partner-slide__content p {
  margin-bottom: 1rem;
}

.partner-slide__link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* Controls */
.partner-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.partner-carousel__btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: none;
  background: rgba(70, 99, 129, 0.858);
  color: #f0f4f8;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.partner-carousel__btn:hover,
.partner-carousel__btn:focus {
  background: rgba(31, 117, 203, 0.25);
  transform: translateY(-1px);
}

.partner-carousel__dots {
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 768px) {

  .partner-carousel {
    height: auto;
    border-radius: 1rem;
  }

  .partner-slide {
    height: auto;
  }

  .partner-slide__image {
    position: static;     /* required for stacking above text */
    width: 100%;
    height: auto;
    display: block;
  }

  .partner-slide__content {
    position: static;
    transform: none;
    max-width: 100%;
    margin: 0.65rem 1rem 1.5rem;
  }
}

.partner-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  border: none;
  background: #f0f4f8;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.partner-dot:hover,
.partner-dot:focus {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.partner-dot.active {
  background: var(--ce-blue);
}

#social {
  background-color: #FDFDFD;
  background-image: url("../assets/image/stay_connected_banner_white.png");
  background-repeat: no-repeat;
  background-position: left center;   /* anchor on left */
  background-size: 50% auto;        /* tweak: try 40% auto, 600px auto, etc. */
}

#social .container {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.social-grid {
  display: grid;
  gap: 1.5rem;
}

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

.social-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.section-dark .social-card {
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(255, 255, 255, 0.08);
}

.social-card__icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 35px;
  height: 35px;
  object-fit: contain;

  /* turn white → colored */
  filter:
    brightness(0)        /* make it black */
    invert(24%)          /* move toward your target color */
    sepia(94%)
    saturate(2300%)
    hue-rotate(195deg)
    brightness(90%)
    contrast(95%);
}

.social-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--ce-blue);
  padding-right: 2.5rem;
}

.social-card p {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.social-cta a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  font-weight: 500;
}

/* Embeds */
.social-embed {
  margin: 0.5rem 0 0.75rem;
}

.social-embed iframe {
  width: 100%;
  border: 0;
  border-radius: 0.75rem;
}

/* Preserve YouTube aspect ratio */
.social-card--youtube .social-embed iframe {
  aspect-ratio: 16 / 9;
}

/* Substack embeds can be taller */
.social-card--substack .social-embed iframe {
  min-height: 220px;
}

#social .text-block {
  position: relative;
  padding-left: 2rem; /* keep a bit of space from the left edge */
  z-index: 2;
}

#social .text-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.65)
  );
  z-index: -1;
  pointer-events: none;
  border-radius: 0.75rem;
  backdrop-filter: blur(2px);
}

@media (min-width: 900px) {
  #social .text-block {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    height: 100%;
  }
}

@media (min-width: 900px) {
  #social .two-column,
  .two-column--social {
    display: grid;
    grid-template-columns: minmax(220px, 0.67fr) 1.33fr; /* tweak 0.32 / 1.68 as desired */
    column-gap: 3rem; /* or whatever your default gap is */
    align-items: flex-start;
  }
}

.testimonials {
  background: linear-gradient(
      135deg,
      rgba(0, 87, 196, 0.8) 0%,
      rgba(84, 188, 0, 0.75) 50%,
      rgba(117, 229, 198, 0.7) 100%
    ),
    url("../assets/image/testimonials.jpg");

  color: #fff;
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

.testimonial-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
}

@media (min-width: 900px) {
  .testimonial-stage {
    height: 26rem;
  }
}

@media (max-width: 899px) {
  .testimonial-stage {
    height: 22rem;
  }
}

.testimonials-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.testimonials-container h2 {
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  margin: 0;
}

.testimonial {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0s linear;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
}

.testimonial blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.75rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  position: relative;
}

.quote-mark {
  position: absolute;
  left: -0.75rem;
  top: -0.75rem;
  font-size: clamp(4rem, 8vw, 6rem);
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.testimonial figcaption {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.testimonial.active {
  opacity: 1;
  z-index: 1;
  transition: opacity 0.25s ease;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.control-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.control-btn:hover,
.control-btn:focus {
  background: rgba(255, 255, 255, 0.35);
}

.control-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.control-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.testimonial-dot:hover,
.testimonial-dot:focus {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.1);
}

.testimonial-dot.active {
  background: #fff;
}

.site-footer {
  background: var(--ce-dark-blue);
  color: #c3d7ef;
  padding: 4rem 0;
}

.site-footer h3 {
  color: #fff;
  font-size: 1.25rem;
  margin-top: 0;
}

.site-footer a {
  color: #c3d7ef;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.footer-contact h3 {
  margin-bottom: 0.6rem;
}

.footer-contact p {
  margin: 0;
  line-height: 1.35;
}

.footer-contact p + p {
  margin-top: 0.2rem;
}

.footer-contact__links {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.footer-contact__links a {
  display: inline-block;
}

.footer-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 0.5fr));
  gap: 0.2rem;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 0.85rem;
  /* background: rgba(255, 255, 255, 0.1); */
  /* border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff; */
  text-decoration: none;
  min-height: 110px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-logo:hover,
.footer-logo:focus {
  transform: translateY(-4px);
  /* box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2); */
}

.footer-logo img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.footer-logo.footer-logo--text {
  flex-direction: column;
  gap: 0.1rem;
}

.footer-logo.footer-logo--text span {
  display: block;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.footer-logo.footer-logo--text small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
}

.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;
}

.scroll-animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.65, 0.05, 0.36, 1),
    transform 0.6s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.is-visible .scroll-animate-item {
  opacity: 1;
  transform: translateY(0);
}

.is-visible .scroll-animate-item:nth-child(2) {
  transition-delay: 0.15s;
}

.is-visible .scroll-animate-item:nth-child(3) {
  transition-delay: 0.3s;
}

@media (max-width: 991px) {
  .two-column.reverse {
    direction: ltr;
  }

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

@media (min-width: 768px) {
  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
  }

  .footer-grid {
    display: grid;
    grid-template-columns:
      minmax(0, 1.5fr) /* left */
      minmax(0, 1fr)
      minmax(0, 2fr); /* right = twice as wide */
    gap: 1rem;
  }
}

@media (min-width: 992px) {
  .primary-nav {
    display: flex;
  }

  .header-actions {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  .footer-grid {
    display: grid;
    grid-template-columns:
      minmax(0, 1.5fr) /* left */
      minmax(0, 1fr)
      minmax(0, 2fr); /* right = twice as wide */
    gap: 1rem;
  }
}

@media (max-width: 800px) {
  .hero-content h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

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

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

  .footer-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-animate-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .testimonial {
    transition: none;
  }
}
