@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap");

:root {
  --brand-blue: #1b2a82;
  --brand-indigo: #000080;
  --brand-green: #2ea44f;
  --text-900: #0f172a;
  --text-700: #334155;
  --bg-50: #f8fafc;
  --bg-900: #000080;
  --card: #ffffff;
  --muted: #94a3b8;
}

/* Reset */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-900);
  background: var(--bg-50);
  line-height: 1.6;
  overflow-x: hidden; /* avoid horizontal scrollbar */
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}

.container {
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-indigo);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #fff;
  min-width: 140px;
}
.brand img {
  width: 140px;
  height: auto;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  align-items: center;
}
.brand-line1 {
  font-size: 33px;
  font-weight: 800;
  color: #fff;
}
.brand-line2 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  opacity: 0.9;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: #e2e8f0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-links a:hover {
  color: #fff;
}
.nav-cta {
  background: var(--brand-green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  z-index: 120;
}
.mobile-menu.open {
  display: block;
}
.mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88%, 420px);
  background: #fff;
  color: var(--text-900);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  padding: 18px;
  overflow-y: auto;
}
.mobile-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-close {
  background: transparent;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}
.m-group {
  margin: 14px 0;
}
.m-group h4 {
  margin: 10px 0;
  color: var(--brand-indigo);
}
.m-group a {
  display: block;
  padding: 8px 0;
  color: var(--text-700);
}
.m-group a:hover {
  color: var(--brand-indigo);
}

/* Hero Slider */
.hero {
  /* background: radial-gradient(
      1000px 400px at 75% 20%,
      rgba(46, 164, 79, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%); */
    background: transparent;
}

/* Hero slides with updated backgrounds + text colors + Learn More button */

.hero .container {
  width: 100%;
  max-width: 100%;
  /* padding: 53px 0; */
}
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 80vh;
}
.slides {
  position: relative;
  width: 100%;
}
.slide {
  position: absolute;
  /* inset: 0; */
  opacity: 0;
  transition: opacity 0.8s ease;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  padding: 12px 6vw 44px; /* tighten top spacing */
}
.slide.active {
  opacity: 1;
}
/* Common text color for all slides */
.slide h1,
.slide h2,
.slide p,
.slide .eyebrow,
.slide .subhead {
  color: #ffffff;
}

/* --- Slide 1 --- */
.slide:nth-child(1) {
  background: linear-gradient(101deg, #0f0f9f 20.5%, #198638 75.7%);
}
.slide:nth-child(1) .btn.primary {
  background-color: #2EA44F;
  color:white;
}

/* --- Slide 2 --- */
.slide:nth-child(2) {
  background: #188537;

}
.slide:nth-child(2) .btn.primary {
  background-color: #ffffff;
  color: #188537;
}


/* --- Slide 3 --- */
.slide:nth-child(3) {
background: #0F0F9F;

}
.slide:nth-child(3) .btn.primary {
  background-color: #2EA44F;
  color: white;
}


/* --- Slide 4 --- */
.slide:nth-child(4) {
background: #188537;

}
.slide:nth-child(4) .btn.primary {
  background-color: #ECFFF1;
  color: #188537;
}

.slide .copy {
  padding: 32px 0;
}
.eyebrow {
  color: var(--brand-green);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}
.headline {
  font-size: clamp(32px, 6vw, 55px);
  line-height: 1.05;
  font-weight: 800;
  color: var(--brand-indigo);
  margin: 0 0 14px;
}
.subhead {
  color: var(--text-700);
  font-size: clamp(16px, 2.2vw, 18px);
  max-width: 60ch;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.btn {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
}
.btn.primary {
  background: var(--brand-green);
  color: #fff;
}
.btn.secondary {
  background: var(--brand-indigo);
  color: #fff;
}
.btn.ghost {
  color: var(--brand-indigo);
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.artwork {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.artwork .frame {
  width: min(520px, 88%);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  /* background: linear-gradient(160deg, #ffffff 0%, #eef2ff 100%);
  box-shadow: 0 10px 30px rgba(13, 27, 102, 0.15); */
  padding: 24px;
}
.artwork img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Slider Controls */
.controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.prev,
.next {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  pointer-events: auto;
  background: #ffffffc7;
  border: 1px solid #e5e7eb;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.prev {
  left: 8px;
}
.next {
  right: 8px;
}
.prev:hover,
.next:hover {
  background: #fff;
}
.dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
}
.dot.active {
  background: var(--brand-indigo);
  width: 22px;
  transition: width 0.25s ease;
}

/* Sections */
.section {
  padding: 40px 0;
}
.section h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  color: var(--brand-indigo);
  margin: 0 0 12px;
}
.section p.lead {
  color: var(--text-700);
  margin: 0 0 22px;
}

/* Full-bleed helper */
.full-bleed > .container {
  width: 100%;
  max-width: 100%;
}

/* Shared page gutters to align with hero/brand */
.align-gutters {
  padding-left: 6vw;
  padding-right: 6vw;
}

/* Tiles */
.tile-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.tile {
  grid-column: span 3;
  background: var(--card);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  max-height: 320px;
  display: flex;
  flex-direction: column;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(13, 27, 102, 0.08);
}
.tile h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--brand-indigo);
}
.tile p {
  margin: 0;
  color: var(--text-700);
  font-size: 14px;
}
.tile .tile-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}
.tile .tile-media {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.tile .read-more {
  margin-top: auto;
  font-weight: 700;
  font-size: 12px;
  color: var(--brand-indigo);
  display: inline-block;
  padding-top: 10px;
}

@media (max-width: 1100px) {
  .tile {
    grid-column: span 4;
  }
}
@media (max-width: 780px) {
  .tile {
    grid-column: span 6;
  }
}
@media (max-width: 560px) {
  .tile {
    grid-column: span 12;
  }
}

/* Testimonials */
.testimonials {
  overflow: hidden;
}
.t-viewport {
  position: relative;
  overflow: hidden;
}
.t-track {
  display: flex;
  gap: 16px;
  will-change: transform;
}
.t-card {
  min-width: calc(33.333% - 10.7px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
}
.t-quote {
  font-style: italic;
  color: var(--text-700);
}
.t-author {
  margin-top: 10px;
  font-weight: 700;
  color: var(--brand-indigo);
}
.t-prev,
.t-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffffc7;
  border: 1px solid #e5e7eb;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.t-prev {
  left: 8px;
}
.t-next {
  right: 8px;
}

/* Logos marquee */
.logos {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px 0;
}
.logos .row {
  display: flex;
  gap: 48px;
  align-items: center;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.logos img {
  height: 34px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(100%);
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Footer */
.site-footer {
  background: var(--bg-900);
  color: #cbd5e1;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 16px;
  padding: 36px 0;
}
.footer-grid {
  margin-left: 5%;
  margin-right: 5%;
}
.site-footer {
  font-size: 14px;
}
.site-footer a {
  color: #cbd5e1;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer h4 {
  color: #ffffff;
  margin: 0 0 8px;
  font-size: 16px;
}
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  font-size: 14px;
  color: #94a3b8;
  margin-left: 5%;
  margin-right: 5%;
}

/* Mega menu */
.has-mega {
  position: relative;
}
.has-mega > a {
  padding: 8px 0;
}
.mega-panel {
  position: absolute;
  left: 0;
  transform: none;
  width: max-content;
  min-width: 420px;
  max-width: 640px;
  top: 100%;
  background: #fff;
  color: var(--text-900);
  border: 1px solid #e5e7eb;
  display: none;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.has-mega:hover .mega-panel,
.has-mega:focus-within .mega-panel {
  display: block;
}
.mega-inner {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}
.mega-inner h5 {
  margin: 0 0 8px;
  color: var(--brand-indigo);
}
.mega-inner a {
  color: var(--text-700);
  display: block;
  padding: 4px 0;
}
.mega-inner a:hover {
  color: var(--brand-indigo);
}

/* Nav icons */
.nav-icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  width: min(680px, 92%);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}
.modal header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal header h3 {
  margin: 0;
  color: var(--brand-indigo);
}
.modal .body {
  padding: 18px 20px;
}
.modal .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.modal label {
  display: block;
  font-weight: 600;
  color: var(--text-700);
  font-size: 14px;
  margin-bottom: 4px;
}
.modal input,
.modal textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
}
.modal textarea {
  min-height: 100px;
  resize: vertical;
}
.modal .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.close-btn {
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .mega-inner {
    grid-template-columns: 1fr 1fr;
  }
  .modal .grid {
    grid-template-columns: 1fr;
  }
}

/* Utilities */
.muted {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 980px) {
  .slide {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .artwork .frame {
    width: 40%;
    margin: 0 auto;
  }
  .prev,
  .next {
    display: none;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .nav {
    padding: 12px 26px;
  }
  .hero-slider {
    min-height: 72vh;
  }
  .brand-line1 {
    font-size: 26px;
  }
  .brand-line2 {
    font-size: 12px;
  }
  .t-card {
    min-width: 80%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .artwork .frame {
    width: 88%;
    margin: 0 auto;
    display: none;
  }
}

/* Simple page hero (for inner pages) */
.page-hero {
  background: radial-gradient(
      1000px 400px at 75% 20%,
      rgba(46, 164, 79, 0.08),
      transparent 60%
    ),
    linear-gradient(180deg, #eef2ff 0%, #e2e8f0 100%);
  padding: 40px 0 20px;
}
.page-hero .hero-grid {
  display: grid;
  /* grid-template-columns: 1.15fr 0.85fr;  */
  gap: 32px;
  align-items: center;
}
.page-hero .hero-grid2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  margin: 0 0 10px;
  color: var(--brand-indigo);
  font-weight: 800;
}
.page-hero p.lead {
  max-width: 100%;
}

/* CTA band (pre-footer) */
.cta-band {
  background: #eef2ff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.cta-band h3 {
  margin: 0 0 8px;
  color: var(--brand-indigo);
  font-size: clamp(20px, 3vw, 28px);
}
.cta-band p {
  margin: 0;
  color: var(--text-700);
}
.cta-band .btn {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .page-hero .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .page-hero .artwork .frame {
    width: 88%;
    margin: 0 auto;
  }
}

/* Feature split (zigzag) */
.feature-split {
  display: flex;
  align-items: center;
  gap: 32px;
}
.feature-split .copy {
  flex: 1;
}
.feature-split .media {
  flex: 1;
}
.feature-split .media .frame {
  width: min(400px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  /* background: linear-gradient(160deg, #ffffff 0%, #eef2ff 100%);
  box-shadow: 0 10px 30px rgba(13, 27, 102, 0.15); */
  /* padding: 24px; */
  margin: 0 auto;
}
.feature-split.reverse {
  flex-direction: row-reverse;
}
.feature-split h3 {
  margin: 0 0 8px;
  color: var(--brand-indigo);
  font-size: clamp(18px, 2.8vw, 24px);
}
.feature-split p.lead {
  margin: 0 0 10px;
  color: var(--text-700);
}
.feature-split ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-700);
}
.feature-split li {
  margin: 6px 0;
}

@media (max-width: 980px) {
  .feature-split {
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-split.reverse {
    flex-direction: column;
  }
}

/* only for i-mac */
@media (min-width: 2000px) {
  .hero-slider {
    min-height: 60vh;
  }
}
