/* RESET & BASE */
* {
  box-sizing: border-box; /* keep */
  /* CHANGED: remove global margin auto (this breaks mobile layout) */
  /* margin: auto; */
}

html, body { /* CHANGED: make a sane base */
  margin: 0;
  padding: 0;
  background: #242628;
  color: #fff;
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
}

/* LAYOUT */
.container {
  /* CHANGED: use min-height instead of fixed 100vh to avoid overflow with large padding on small screens */
  min-height: 100vh;
  /* CHANGED: responsive padding (top/bottom) with clamp; side padding for small screens */
  padding: clamp(48px, 10vh, 124px) 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  margin: 0 auto; /* CHANGED: center container itself, not every child */
  background-color: #242628;

  /* background image */
  background-image: url(./assets/world.svg);
  background-repeat: no-repeat;
  background-position: center 70px;
  background-size: 900px auto; /* CHANGED: explicit size; overridden on small screens */
}

.header {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}

/* TYPOGRAPHY */
.header h3 {
  text-align: center;
  color: #ff9e40;
  font-size: clamp(16px, 2.6vw, 24px); /* CHANGED: responsive */
  font-weight: 600;
  margin: 0 0 8px 0; /* CHANGED */
  line-height: 1.4;
}

.header > h1 {
  font-weight: 600;
  font-size: clamp(24px, 5.5vw, 48px); /* CHANGED: responsive */
  line-height: 1.25;
  display: block; /* CHANGED: simpler */
  text-align: center;
  color: #ffffff;
  margin: 8px 0 12px 0; /* CHANGED */
}

.header > p {
  font-weight: 400;
  font-size: clamp(14px, 2.9vw, 20px); /* CHANGED: responsive */
  line-height: 1.6;
  text-align: center;
  color: #ffffff;
  margin: 8px 0 0 0; /* CHANGED */
}

/* MENU / OPTIONS */
.options {
  /* CHANGED: turn into a tidy, wrapping row with consistent gaps */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 20px;
  margin-top: 14px; /* CHANGED */
  text-decoration: underline;  
  font-size: clamp(14px, 2.9vw, 20px); /* same as body text */
}

/* CHANGED: group icon+text as one tap target */
.menu-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: #fff;                      /* ensure white text */
  font-size: clamp(14px, 2.8vw, 18px); /* same as body text */
  text-decoration: underline;       /* CHANGED: underline from start */
  text-decoration-color: #fff;      /* CHANGED: make underline white */
  text-decoration-thickness: 1.5px; /* optional: thicker underline */
  text-underline-offset: 4px;       /* optional: spacing below text */
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
}


.menu-item:hover,
.menu-item:focus {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-1px);
}

.menu-item img {
  width: 20px;  /* CHANGED: consistent small icon */
  height: 20px;
  display: block;
}


/* CTA BUTTON */
.learn-more > a > button {
  background: #f6821f;
  border-radius: 10px;             /* CHANGED: softer radius */
  border: none;
  width: auto;                     /* CHANGED: auto width for small screens */
  padding: 14px 18px;              /* CHANGED: use padding instead of fixed height */
  margin-top: 28px;                /* CHANGED: smaller on mobile */
  color: #ffffff;
  text-align: center;
  font-weight: 600;
  font-size: clamp(14px, 3vw, 16px); /* CHANGED: responsive */
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
}

/* LOGO */
.logo {
  margin-top: 36px; /* CHANGED: less space on mobile */
}

.logo > a > img {
  width: 140px;  /* CHANGED: responsive-ish */
  height: auto;  /* CHANGED */
  opacity: 0.9;
}

/* TABLET */
@media screen and (max-width: 1024px) {
  .container {
    background-size: 700px auto; /* CHANGED */
    background-position: center 40px; /* CHANGED */
  }
}

/* MOBILE */
@media screen and (max-width: 600px) {
  .container {
    background-size: 520px auto; /* CHANGED */
    background-position: center 24px; /* CHANGED */
    padding-top: 72px;            /* CHANGED: ensure content not too low */
  }

  .options {
    gap: 10px 12px; /* CHANGED: slightly tighter spacing on very small screens */
  }

  .logo { margin-top: 24px; } /* CHANGED */
}

.options a {
  color: #fff;
  text-decoration: none;
}

.options a:visited {
  color: #fff;
}
