@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

/* Navbar */

a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:root {
  --ink: #0f172a;
  --muted: #344054;
  --brand: #404fe0;
  --hover: #eef4ff;
  --line: #e5e7eb;
}

/* ========== Header / Nav ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(8px);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);
}
.nav-wrap {
  width: 90%;
  margin: 0 auto;
  padding: 14px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
}
.brand svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Center menu */
.nav-main {
  justify-self: center;
}
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.4;
  padding: 0.7rem 2rem;
  border-radius: 8px;
}
.nav-link:hover,
.nav-link:focus-visible {
  background: var(--hover);
  color: var(--brand);
  outline: none;
}

/* Right actions */
.actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cta {
  color: #fff;
  background: var(--brand);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}
.cta:hover {
  filter: brightness(0.96);
  color: #fff;
}

/* ========== Mega menu (desktop) ========== */
.has-mega {
  position: relative;
}
.mega {
  position: fixed;
  left: 50%;
  transform: translateX(-50%); /* top set via JS */
  width: min(980px, 90vw);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.1);
  display: none;
  z-index: 45;
}
.has-mega.open .mega {
  display: block;
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
}
.mega-col {
  padding: 18px 20px;
  position: relative;
}
.mega-col:not(:last-child) {
  border-right: 1px dashed var(--line);
}

.mega-title {
  font-weight: 500;
  font-size: 16px;
  padding: 10px 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  width: 100%;
  text-align: left;
}
.mega-title:hover,
.mega-title:focus-visible {
  background: var(--hover);
  color: var(--brand);
  outline: none;
}
.mega-title.active {
  background: var(--hover);
  color: var(--brand);
}

.mega-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-item {
  margin: 0;
  padding: 0;
}
.mega-item a {
  font-weight: 500;
  font-size: 14px;
  padding: 10px 12px;
  margin-bottom: 24px;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  text-decoration: none;
}
.mega-item a:hover,
.mega-item a:focus-visible {
  background: var(--hover);
  color: var(--brand);
  outline: none;
  border-radius: 4px;
}
.nearrow {
  opacity: 0.55;
}

.submenu {
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.submenu.is-switching {
  opacity: 0;
  transform: translateY(6px);
}

/* Right promo */
.promo {
  background: #e2f9ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  min-height: 260px;
  margin: 20px 30px;
  border-radius: 8px;
}
.promo h4 {
  color: #101828;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.badge-row {
  display: flex;
  gap: 12px;
}
.inc {
  font-weight: 800;
  border: 1px dashed #cbd5e1;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.05);
  font-size: 12px;
}

/* ========== Hamburger (hidden by default; shown only on <=1024px) ========== */
.hamburger {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.hamburger img {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.hamburger:active img {
  transform: scale(0.96);
}

/* ========== Mobile drawer ========== */
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 380px);
  background: #fff;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.1);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-body {
  padding: 10px 8px 24px;
  overflow: auto;
}

.m-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-item > a,
.m-item > button {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}
.m-item > a:hover,
.m-item > button:hover {
  background: #f1f5f9;
}

.m-accordion {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}
.m-accordion:hover {
  background: #f1f5f9;
}

.m-subgroup {
  margin: 6px 0 2px 8px;
}
.m-subtoggle {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}
.m-subtoggle:hover {
  background: #f8fafc;
}
.caret {
  transition: transform 0.2s ease;
}
.m-subtoggle[aria-expanded="true"] .caret,
.m-accordion[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.m-sub {
  margin: 6px 0 10px 14px;
  padding-left: 10px;
  border-left: 1px dashed var(--line);
  display: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.m-sub.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.m-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #64748b;
}
.m-sub a:hover {
  color: var(--ink);
  background: #f1f5f9;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 50;
}
.overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ========== Responsive (<=1024px) ========== */
@media (max-width: 1024px) {
  .nav-list,
  .cta {
    display: none;
  } /* hide desktop menu + CTA */
  .hamburger {
    display: flex;
  } /* show hamburger only on mobile/tablet */
  .mega {
    display: none !important;
  } /* disable desktop mega */
  .drawer .m-cta {
    font-weight: 700; /* bold text */
    background: none !important; /* remove background color */
    color: black; /* or any color you want */
    padding: 12px 14px;
  }
}
/* Nav bar end */

/* footer */
/* ---- Footer base ---- */
.footer-container {
  margin: 0 auto;
  background: url("../images/Footer.png") center / 100% 100% no-repeat;
  color: #ffffff;
  padding: 100px;
  position: relative;
  overflow: hidden;
}

.footer-content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}

.newsletter-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.newsletter-title {
  font-family: "Arial", sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 49px;
  margin: 0;
  text-align: center;
}

.newsletter-form {
  position: relative;
  width: 600px;
  max-width: 100%;
}

.newsletter-input {
  width: 100%;
  height: 58px;
  border-radius: 10px;
  border: none;
  padding: 0 165px 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, #999999 270.69%);
  font-size: 16px;
  color: #333;
}

.newsletter-submit {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 146px;
  height: 48px;
  background-color: #2637d9;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-family: "Arial", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 49px;
  cursor: pointer;
  box-shadow: 0px 6px 7.3px 0px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sitemap-section {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.sitemap-category {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sitemap-title-main {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 31.2px;
  margin: 0;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.sitemap-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sitemap-title-sub {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 31.2px;
  margin: 0;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sitemap-list a {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 31.2px;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

.sitemap-other-links {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sub-footer-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.sub-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo img {
  width: 111.23px;
  height: 36px;
  display: block;
}

.social-icons {
  display: flex;
  gap: 32px;
  align-items: center;
}

.social-icons img {
  height: 24px;
  width: auto;
}

.social-icons a:nth-child(2) img,
.social-icons a:nth-child(3) img,
.social-icons a:nth-child(4) img {
  height: 32px;
}

.footer-divider {
  border: none;
  height: 1px;
  background-color: #d0d5dd;
  width: 100%;
  margin: 0;
}

.sub-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright-section {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 24.2px;
}

.copyright-section img {
  width: 20px;
  height: 20px;
}

.legal-links {
  display: flex;
  gap: 32px;
}

.legal-links a {
  color: #98a2b3;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 24.2px;
}

.legal-links a:hover {
  color: #ffffff;
}

@media (max-width: 1200px) {
  .footer-container {
    padding: 80px 60px;
  }
}

@media (max-width: 992px) {
  .sitemap-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .footer-container {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    padding: 40px 20px;
  }
  .footer-content-wrapper {
    gap: 60px;
  }
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
  .sub-footer-top,
  .sub-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .newsletter-title,
  .copyright-section,
  .legal-links a {
    font-size: 16px;
  }
  .sitemap-title-main {
    font-size: 20px;
  }
  .sitemap-title-sub {
    font-size: 18px;
  }
}
