/* Site refactor: full-screen hero background + responsive hamburger navigation */

:root {
  --cds-brand: #2F4F6F;
  --cds-brand-dark: #27435E;
  --cds-oracle: #C74634;
  --cds-border: #D9E2EC;
  --cds-surface: #F5F8FB;
  --cds-text: #243447;
  --cds-muted: #5F6C7B;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--cds-border);
  box-shadow: 0 1px 3px rgba(15, 37, 62, 0.08);
}

.site-header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  height: 5rem;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.site-nav a,
.site-mobile-nav a {
  color: var(--cds-brand);
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-mobile-nav a:hover,
.site-mobile-nav a:focus {
  color: var(--cds-oracle);
}

.site-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cds-border);
  border-radius: 10px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.site-menu-button span:not(.sr-only) {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--cds-brand);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.site-menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}
.site-menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
  opacity: 0;
}
.site-menu-button[aria-expanded="true"] span:not(.sr-only):nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-mobile-nav {
  display: none;
  border-top: 1px solid var(--cds-border);
  background: #ffffff;
  padding: .75rem 1.5rem 1.25rem;
}

.site-mobile-nav a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(217, 226, 236, .65);
}

.site-mobile-nav.is-open {
  display: block;
}

.hero-section.hero-fullscreen-bg {
  min-height: calc(100vh - 7rem);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--cds-border);
  background:
    radial-gradient(circle at 72% 42%, rgba(233, 243, 250, .78), transparent 38%),
    linear-gradient(rgba(255,255,255,.90), rgba(255,255,255,.90)),
    url("../images/cuisinedb_screenshot500.png");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, right center;
  background-size: cover, cover, cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1.5rem 7rem;
}

.hero-content {
  max-width: 44rem;
  position: relative;
  z-index: 3;
}

.hero-overlay-pattern {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-dot-grid {
  position: absolute;
  right: 3rem;
  top: 3rem;
  display: grid;
  grid-template-columns: repeat(5, 4px);
  gap: 12px;
  opacity: .25;
}

.hero-dot-grid span {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--cds-brand);
}

.hero-circle {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, .75);
}

.hero-circle-large {
  right: -8rem;
  bottom: 0;
  width: 24rem;
  height: 24rem;
}

.hero-circle-small {
  right: -5rem;
  bottom: 2.5rem;
  width: 18rem;
  height: 18rem;
}

@media (max-width: 1023px) {
  .site-header-inner {
    min-height: 5.5rem;
  }

  .site-logo {
    height: 4rem;
  }

  .site-nav {
    display: none;
  }

  .site-menu-button {
    display: inline-flex;
  }

  .hero-section.hero-fullscreen-bg {
    min-height: auto;
    background:
      linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)),
      url("../images/cuisinedb_screenshot500.png");
    background-repeat: no-repeat, no-repeat;
    background-position: center, right center;
    background-size: cover, cover;
  }

  .hero-inner {
    padding-top: 4.5rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 640px) {
  .hero-section.hero-fullscreen-bg {
    background: #ffffff;
  }

  .hero-inner {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }

  .hero-dot-grid,
  .hero-circle {
    display: none;
  }
}
