/* ===========================
   Main Styles — North Star
   =========================== */

/* ----- CSS Variables ----- */
:root {
  --neutral-100: #f9f9f9;
  --neutral-200: #ececec;
  --neutral-300: #dcdcdc;
  --neutral-700: #4a4a4a;
  --accent-gold: #d4af37;
  --brand-blue-dark: #0B2C55;
  --brand-blue: #1E4C8F;
  --brand-sky: #4FA3D1;
  --grey-900: #0f172a;
  --grey-700: #3E4A5B;
  --grey-500: #6b7280;
  --grey-300: #CBD5E1;
  --grey-200: #E1E4E8;
  --grey-100: #F6F8FA;
  --white: #ffffff;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-soft: 0 6px 24px rgba(30, 76, 143, 0.10);
  --shadow-card: 0 10px 30px rgba(30, 76, 143, 0.12);
  --container: 1200px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
}

/* ----- Base Reset ----- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--grey-700);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1 { color: white};
h2, h3, h4 { color: var(--brand-blue-dark); margin-top: 0; }

/* ----- Containers ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ----- Sections ----- */
.section { padding: var(--space-20) 0; }
.section--tight { padding-top: var(--space-12); padding-bottom: var(--space-24);}
.section--highlight { background: var(--brand-sky); color: var(--white);}
.section--alt { background: var(--grey-100); }
.section h2 {
  margin-bottom: var(--space-6);
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.3px;
}
.section .lead { margin-bottom: var(--space-10); color: var(--grey-500); }

/* ----- Buttons / CTAs ----- */
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 36px;
  border-radius: 999px;
  background: var(--brand-sky);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(79,163,209,0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta:hover { background: #3f8bb6; transform: translateY(-1px); }
.cta--outline {
  background: transparent;
  color: var(--brand-blue);
  box-shadow: none;
}
.cta--ghost {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.6);
}

/* ----- Cards ----- */
.cards { display: grid; gap: var(--space-6); }
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(30,76,143,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(30,76,143,0.16); }
.card-icon {
  inline-size: 48px; block-size: 48px;
  border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, #dceaf6, #eef6fb);
  color: var(--brand-blue);
  box-shadow: inset 0 0 0 6px rgba(79,163,209,0.12);
  margin-bottom: var(--space-6);
  font-size: 22px;
}

/* ----- Hero ----- */
.hero {
  min-height: 60vh;
  display: grid;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero--home {
  min-height: 80vh;
}

.hero-inner { padding: var(--space-20) 0; }
.badge {
  display: inline-flex; gap: 10px;
  background: rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
}
.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.08;
  font-weight: 800;
}
.hero p {
  max-width: 720px;
  margin: 0 0 var(--space-8);
  font-size: clamp(16px, 2vw, 18px);
  opacity: 0.95;
}

/* ----- Priority Band ----- */
.priority {
  margin-top: var(--space-12);
  background: linear-gradient(90deg, rgba(79,163,209,0.18), rgba(30,76,143,0.18));
  border: 1px solid rgba(30,76,143,0.20);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  display: flex; flex-wrap: wrap;
  align-items: center; gap: var(--space-4);
}
.priority strong { color: var(--brand-blue-dark); }
.priority .pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  color: var(--brand-blue);
  font-weight: 600;
}

/* ----- Events ----- */
.events { background: linear-gradient(180deg, #f0f6fb, #f7fbff); }
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 80%;
  gap: var(--space-6);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  scroll-snap-type: x mandatory;
}
@media (min-width: 900px) { .scroller { grid-auto-columns: 33%; } }
.event {
  scroll-snap-align: start;
  background: var(--white);
  border: 1px solid rgba(30,76,143,0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.event-media {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
}
.event-body { padding: var(--space-6); }
.event h3 { margin: 0 0 var(--space-3); color: var(--brand-blue-dark); }
.event .meta { color: var(--grey-500); font-size: 14px; margin-bottom: var(--space-4); }

/* ----- Testimonials ----- */
.testimonials .grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.quote {
  background: var(--white);
  border: 1px solid rgba(30,76,143,0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
}
.quote .q { font-size: 18px; color: var(--brand-blue-dark); margin: 0 0 var(--space-4); }
.quote .author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.avatar {
  inline-size: 40px;
  block-size: 40px;
  border-radius: 50%;
  background: #dbeafe;
  border: 2px solid #bfdbfe;
}

/* ----- About Section ----- */
.about {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}
.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 350px;
  background-size: cover;
  background-position: center;
  background-repeat: none;
  box-shadow: var(--shadow-card);
}

/* ----- Giving Back / Community ----- */
.giving {
  background: var(--grey-100);
  border-top: 1px solid var(--grey-200);
}
.giving .panels {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr 1fr;
}
.panel {
  background: var(--white);
  border: 1px solid rgba(30,76,143,0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
}
.panel h3 {
  margin: 0 0 var(--space-3);
  color: var(--brand-blue-dark);
}
.panel form {
  display: grid;
  gap: var(--space-4);
}
.input, textarea, select {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--grey-200);
  font-family: inherit;
  font-size: 15px;
  background: #fff;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.helper {
  font-size: 13px;
  color: var(--grey-500);
}

/* ----- Contact Section ----- */
.contact .grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr 1.2fr;
  align-items: stretch;
}
.info {
  background: #fff;
  border: 1px solid rgba(30,76,143,0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-soft);
}
.info .row {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-4);
}
.map {
  height: 360px;
  border: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  filter: saturate(0.9) hue-rotate(-10deg) contrast(1.05);
  box-shadow: var(--shadow-card);
}

/* ----- Footer ----- */
footer {
  background: #0a2647;
  color: #d8e6f7;
  padding: var(--space-16) 0 var(--space-10);
}
.footer-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-4);
}
.footer a {
  color: #cfe6ff;
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ----- Responsive Tweaks ----- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .testimonials .grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .giving .panels { grid-template-columns: 1fr; }
  .contact .grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
  .testimonials .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

.hero-inner {
  padding: var(--space-24) 0;
}

.hero-actions {
  display: flex;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.cta--link {
  font-weight: 600;
  color: var(--white);
  background: none;
  border: none;
  padding: 12px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.cta--link:hover {
  opacity: 0.85;
}

.arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.cta--link:hover .arrow {
  transform: translateX(4px);
}

.team-scroller {
  display: flex;
  gap: var(--space-8);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-4);
}

.profile {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 200px;
  text-align: center;
}

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

.profile img {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--space-3);
}

.profile h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-blue-dark);
  text-align: center;
}

.profile h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-blue-dark);
}

.profile p {
  font-size: 14px;
  color: var(--grey-500);
}


.centered {
  text-align: center;
}

.role {
  font-size: 14px;
  color: var(--grey-500);
}

.bio {
  font-size: 15px;
  color: var(--grey-700);
  margin-top: var(--space-3);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  text-align: center;
}

.section--cta {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  background: var(--grey-100);
}

.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
}

.cta-split.container {
  padding: 0;
}

.cta-image {
  background-size: cover;
  background-position: center;
}

.cta-content {
  display: flow-root;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12);
  background: var(--white);
}

.cta-content h2 {
  font-size: 28px;
  margin-bottom: var(--space-4);
  color: var(--brand-blue-dark);
}

.cta-content p {
  font-size: 16px;
  color: var(--grey-700);
  margin-bottom: var(--space-6);
}

.cta-content .cta {
  align-self: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-10);
  margin-top: var(--space-10);
  text-align: center;
}

.product-card {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card img {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
}

.product-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.product-card p {
  font-size: 15px;
  color: var(--grey-500);
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-10);
}

.feature {
  flex: 1 1 320px;
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--accent-gold);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--brand-blue-dark);
}

.feature p {
  font-size: 15px;
  color: var(--grey-600);
  line-height: 1.6;
}

.thrive-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.thrive-text {
  padding-right: var(--space-6);
}

.thrive-image {
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.case {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.case h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.case p {
  font-size: 15px;
  color: var(--grey-500);
}

.product-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-10);
  margin-top: var(--space-10);
}

.category {
  flex: 1 1 320px;
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--brand-sky);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.category h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--brand-blue-dark);
}

.category p {
  font-size: 15px;
  color: var(--grey-600);
  line-height: 1.6;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .category {
    max-width: 100%;
    margin: 0 auto;
  }
}

.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}

.cta-image {
  background-size: cover;
  background-position: center;
}

.cta-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-12);
  background: var(--white);
}

.cta-content h2 {
  font-size: 28px;
  margin-bottom: var(--space-4);
  color: var(--brand-blue-dark);
}

.cta-content p {
  font-size: 16px;
  color: var(--grey-700);
  margin-bottom: var(--space-6);
}

.cta-content .cta {
  align-self: start;
  background: var(--accent-gold);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(212,175,55,0.35);
  transition: transform 0.2s ease;
}

.cta-content .cta:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .thrive-split,
  .cta-split {
    grid-template-columns: 1fr;
  }

  .thrive-image {
    height: 200px;
    margin-top: var(--space-6);
  }

  .cta-content {
    padding: var(--space-8);
  }
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.service-card {
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--brand-sky);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-circle img {
  width: 32px;
  height: 32px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.split.reverse {
  grid-template-columns: 1fr 1fr;
}
.split-image {
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
}
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

.section--cta-alt {
  background: var(--grey-100);
  text-align: center;
  padding: var(--space-16) 0;
}
.cta-alt-inner blockquote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: var(--space-4);
}
.cta-alt-inner cite {
  display: block;
  margin-bottom: var(--space-6);
  color: var(--grey-600);
}


.features-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-8);
}
.feature {
  flex: 1 1 250px;
  background: var(--white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.split-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
}

/* ==== Compact page titles (H1 in hero) ==== */
.hero h1 {
  font-size: clamp(24px, 3.2vw, 40px);  /* was up to 54px */
  font-weight: 700;                     /* was 800 */
  line-height: 1.12;
  letter-spacing: -0.2px;
  text-wrap: balance;                   /* nicer line breaks on long titles */
  margin: 12px 0 8px;
}

/* Slightly tighten the supporting line to keep hierarchy */
.hero p {
  font-size: clamp(15px, 1.9vw, 17px);
  opacity: 0.95;
}

/* Optional: extra small screens */
@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
}

/* Outline CTA hover state on light sections */
.cta--outline:hover {
  background: var(--brand-blue);
  color: var(--white);
}

/* Advantage: homepage-style cards */
.adv-cards{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6, 24px);
}
.adv-card{
  background:#fff;
  border: 1px solid color-mix(in oklab, var(--brand-blue-dark, #1E4C8F) 16%, #fff);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft, 0 8px 24px rgba(0,0,0,.08));
}
.adv-card h3{
  margin: 8px 0 6px;
  color: var(--brand-blue-dark, #1E4C8F);
  font-weight: 700;
  line-height: 1.25;
}
.adv-card p{ margin: 0; line-height: 1.55; }

/* small rounded icon badge, same vibe as home */
.icon-badge{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  border-radius: 12px;
  background: color-mix(in oklab, var(--brand-blue-dark, #1E4C8F) 8%, #fff);
  border: 1px solid color-mix(in oklab, var(--brand-blue-dark, #1E4C8F) 18%, #fff);
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  font-size: 22px;
}
