.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Logo */
.logo {
  display: inline-block;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-transform: uppercase;
  color: #0f172a;
  text-decoration: none;
  transform: scaleX(0.8);
  transform-origin: left center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: nowrap;
  position: relative;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.08em;
  flex-wrap: nowrap;
}

.main-nav a {
  position: relative;
  padding: 8px 10px 6px;
  color: #0f172a;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 2px;
  background: #f7b71e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #1c4b8f;
  background: #f3f6fb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hamburger button base: hidden on desktop */
.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #111827;
  border-radius: 999px;
  margin: 0;
  position: absolute;
  left: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    top 0.2s ease;
}

.nav-toggle span:nth-child(1) {
  top: 0;
}

.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
  bottom: 0;
}

.section {
  padding: 48px 20px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #1f1f1f;
  color: #6f6f6f;
  font-size: 14px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.footer-contact {
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}

.footer-contact .footer-line {
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.footer-contact .footer-line:not(:last-child)::after {
  content: '|';
  color: #777;
  margin-left: 10px;
}

.footer-links a {
  color: #c7c7c7;
  font-size: 13.5px;
  font-weight: 600;
}

.footer-copy {
  font-size: 13px;
  color: #8a8a8a;
}

.footer-contact a {
  color: #c7c7c7;
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  /* Show hamburger and stack bars vertically */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }

  /* Hide nav by default on mobile; open via body.nav-open */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    padding: 26px 22px 24px;
    background: rgba(17, 24, 39, 0.94);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    color: #f9fafb;
    padding: 6px 0;
    font-weight: 700;
  }

  .main-nav a::after {
    background: #facc15;
  }

  /* Toggle to X when open */
  body.nav-open .nav-toggle span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
  }

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .nav-toggle span:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    bottom: auto;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .footer-links,
  .footer-copy {
    text-align: center;
    font-size: 11px;
    line-height: 1.1;
  }

  .footer-links a {
    font-size: 11px;
    letter-spacing: 0;
    word-break: keep-all;
  }

  .footer-contact {
    justify-content: center;
    align-items: center;
    flex-direction: row;
    text-align: center;
    gap: 6px 10px;
  }

  .footer-contact .footer-line:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 32px 16px;
  }

  .main-nav {
    font-size: 11px;
    gap: 4px;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 1200px) {
  .logo {
    font-size: 32px;
    transform: scaleX(0.92);
  }
}

@media (max-width: 900px) {
  .logo {
    font-size: 26px;
    transform: scaleX(0.95);
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 22px;
    transform: scaleX(1);
  }
}
