/* Base reset & typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fb;
  color: #111827;
  line-height: 1.6;
}

/* Simple link styling */
a {
  color: inherit;
  text-decoration: none;
}

/* Layout helpers */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* NAVBAR */
.navbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #1d4ed8;
  font-size: 0.9rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-line-1 {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6b7280;
}

.brand-line-2 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
}

.brand-line-2 span {
  color: #1d4ed8;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 1.1rem;
  margin-left: 2rem;
  font-size: 0.9rem;
  align-items: center;
  flex: 1;
}

.nav-links a {
  position: relative;
  color: #4b5563;
  padding-bottom: 0.1rem;
}

.nav-links a.active,
.nav-links a:hover {
  color: #111827;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #1d4ed8;
  transition: width 0.18s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Right side (email + hamburger) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-cta {
  font-size: 0.85rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  white-space: nowrap;
}

/* Hamburger (mobile only visually) */
.hamburger {
  display: none;
  width: 32px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  height: 2px;
  background: #111827;
  border-radius: 999px;
  width: 100%;
}

/* HERO SECTION */
.page-hero {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text {
  max-width: 32rem;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.85rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  color: #111827;
}

.page-hero p {
  margin: 0;
  color: #4b5563;
  font-size: 0.98rem;
}

.hero-label {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Hero image */
.hero-image {
  position: relative;
}

.hero-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.hero-image-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.72);
  color: #f9fafb;
}

/* SECTION GENERIC */
.section {
  margin-top: 3rem;
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.75rem 1.6rem 1.9rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.section-header {
  margin-bottom: 1.4rem;
}

.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #1d4ed8;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.section-title {
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
  max-width: 36rem;
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.card {
  background: #f9fafb;
  border-radius: 1rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
  font-weight: 650;
  color: #111827;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
}

/* FOOTER */
footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 1.1rem 1.25rem 1.4rem;
  font-size: 0.85rem;
  color: #6b7280;
  text-align: center;
}

footer span {
  font-weight: 500;
}

.footer-links {
  margin-top: 0.35rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-links a {
  color: #4b5563;
}

.footer-links a:hover {
  color: #111827;
  text-decoration: underline;
}

/* RESPONSIVE */

/* Medium screens */
@media (max-width: 960px) {
  .navbar {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .nav-links {
    margin-left: 1.5rem;
    flex-wrap: wrap;
  }

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

/* Mobile */
@media (max-width: 720px) {
  .navbar {
    padding-inline: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.25rem 0.9rem;
    flex-direction: column;
    gap: 0.5rem;
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-right {
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  main {
    padding-inline: 1rem;
  }

  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.75rem;
  }

  .hero-image {
    order: -1;
  }

  .section {
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .card-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
