/* Layout: header and navigation, hero, page grids and footer */

/* ---------- Header ---------- */
/* body > header: only the site header, not <header> elements inside page content */
body > header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(246, 248, 251, 0.82);
  border-bottom: 1px solid rgba(15, 108, 189, 0.1);
  z-index: 100;
}

header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--azure);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

.brand-tagline {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"]:not(.cta) {
  color: var(--azure);
  background: rgba(15, 108, 189, 0.08);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.nav-toggle:hover {
  background: rgba(15, 108, 189, 0.08);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animated X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    background: rgba(246, 248, 251, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 108, 189, 0.1);
    z-index: 99;
  }

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

  .nav-links a {
    padding: 10px 14px;
  }

  .nav-links .cta {
    justify-content: center;
    margin-top: 4px;
  }
}

/* ---------- Hero (home page) ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 72px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4vw + 8px, 52px);
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

/* ---------- Grids ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cards-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards-4 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.cards-5 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.offering-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.engagements {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 520px) minmax(200px, 280px);
  gap: 24px;
  align-items: start;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}

@media (max-width: 700px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Footer ---------- */
footer {
  background: #0b1b2d;
  color: #afc7e8;
  padding: 22px 24px;
  text-align: center;
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer p + p {
  margin-top: 4px;
}

footer a {
  color: #d6e6fb;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a {
  text-decoration: none;
}

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

.footer-values {
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  color: #d6e6fb;
}

.footer-values em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
}
