/* ==========================================================================
   Dessert City USA — one-page site
   Palette from assets/ASSETS.md:
   raspberry #7a2e4d, cream #fff6ea, pinks #ff5f9e / #e84a8a / #ff9ec7,
   purple #9b5de5, teal #2ec4b6, yellow #ffb703, dark plum #241225
   System font stack only — no external fonts, frameworks, or CDNs.
   ========================================================================== */

:root {
  --raspberry: #7a2e4d;
  --raspberry-deep: #5c1f3a;
  --cream: #fff6ea;
  --cream-light: #fffaf2;
  --pink: #ff5f9e;
  --pink-deep: #e84a8a;
  --pink-soft: #ff9ec7;
  --purple: #9b5de5;
  --teal: #2ec4b6;
  --yellow: #ffb703;
  --plum: #241225;
  --shadow-soft: 0 6px 24px rgba(122, 46, 77, 0.14);
  --radius-card: 1.4rem;
  --header-height: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui,
    -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--raspberry);
  background-color: var(--cream-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--pink-deep);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--raspberry);
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--raspberry);
  color: var(--cream);
  border-radius: 0 0 0.6rem 0;
}

.skip-link:focus {
  left: 0;
  color: var(--cream);
}

/* ----- Sticky header / nav ---------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(122, 46, 77, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-height);
  position: relative;
}

.brand img {
  height: 2.9rem;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  background: var(--cream);
  border: 2px solid var(--pink-soft);
  border-radius: 0.8rem;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--raspberry);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0.75rem 1.25rem 1.1rem;
  list-style: none;
  background: var(--cream-light);
  border-bottom: 3px solid var(--pink-soft);
  box-shadow: 0 14px 24px rgba(122, 46, 77, 0.12);
}

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

.nav-links a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 0.8rem;
  font-weight: 700;
  color: var(--raspberry);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--pink-soft);
  color: var(--raspberry-deep);
}

.nav-links .nav-social {
  color: var(--pink-deep);
}

/* ----- Hero -------------------------------------------------------------- */

.hero {
  background: url("assets/hero-bg.svg") center / cover no-repeat;
  /* Tall enough that the text block lands in the calm sky zone (y 60–420 of 900). */
  min-height: max(34rem, 88svh);
  display: flex;
  align-items: flex-start;
}

.hero-inner {
  padding-top: clamp(3.5rem, 10vh, 7rem);
  text-align: center;
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 14ch;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.08;
  color: var(--raspberry);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.65);
}

.hero-sub {
  margin: 0 auto 1.8rem;
  max-width: 40rem;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 600;
  color: var(--raspberry-deep);
  background: rgba(255, 246, 234, 0.72);
  border-radius: 1rem;
  padding: 0.55rem 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  border: 3px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink-deep);
}

.btn-primary:hover {
  color: #fff;
  background: var(--pink-deep);
}

.btn-outline {
  background: rgba(255, 250, 242, 0.85);
  color: var(--raspberry);
  border-color: var(--raspberry);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--raspberry-deep);
}

/* ----- Sections ---------------------------------------------------------- */

.section {
  padding-block: clamp(3rem, 8vw, 5.5rem);
  scroll-margin-top: var(--header-height);
}

.section-title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.15;
  text-align: center;
  color: var(--raspberry);
  text-decoration: underline wavy var(--pink-soft);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.28em;
}

.section-note {
  max-width: 38rem;
  margin: 0.4rem auto 2rem;
  text-align: center;
  font-weight: 600;
  color: var(--raspberry-deep);
}

/* ----- Menu grid ---------------------------------------------------------- */

.menu {
  background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 100%);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.menu-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--pink-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.menu-card:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  box-shadow: 0 12px 32px rgba(122, 46, 77, 0.2);
}

.menu-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.menu-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  padding: 1.1rem 1.25rem 1.3rem;
}

.menu-card h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--pink-deep);
}

.menu-card p {
  margin: 0;
  flex: 1;
}

.menu-card-special {
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--purple) 0%, var(--pink) 100%);
  border-color: var(--purple);
}

.menu-card-special h3,
.menu-card-special p {
  color: #fff;
}

.menu-card-special .todo-badge {
  align-self: center;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.todo-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--raspberry);
  background: rgba(255, 183, 3, 0.18);
  border: 2px dashed var(--yellow);
  border-radius: 999px;
}

/* ----- About -------------------------------------------------------------- */

.about {
  background: var(--cream-light);
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-logo {
  width: min(22rem, 80%);
  flex-shrink: 0;
}

.about-text {
  max-width: 44rem;
  text-align: center;
}

.about-text p {
  font-size: 1.08rem;
}

/* ----- Visit --------------------------------------------------------------- */

.visit {
  background: linear-gradient(180deg, var(--cream) 0%, #ffe9f2 100%);
}

.visit-blurb {
  max-width: 40rem;
  margin: 0.6rem auto 2rem;
  text-align: center;
  font-size: 1.08rem;
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.visit-info {
  font-style: normal;
  background: #fff;
  border: 3px solid var(--pink-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 1.4rem 1.5rem;
}

.visit-info dl {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
}

.visit-row dt {
  font-weight: 800;
  color: var(--pink-deep);
}

.visit-row dd {
  margin: 0.1rem 0 0;
}

.visit-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 20rem;
  border: 3px solid var(--pink-soft);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

/* ----- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--plum);
  color: var(--cream);
  text-align: center;
  padding-block: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.footer-logo {
  width: min(17rem, 70%);
  margin-bottom: 0.4rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--pink-soft);
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-tagline {
  font-weight: 700;
  color: var(--pink-soft);
}

/* ----- Breakpoints ---------------------------------------------------------- */

@media (min-width: 40rem) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-card-special {
    grid-column: 1 / -1;
  }
}

@media (min-width: 56rem) {
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-links .nav-social {
    margin-left: 0.4rem;
    padding: 0.45rem 1.1rem;
    background: var(--pink);
    color: #fff;
    border-radius: 999px;
  }

  .nav-links .nav-social:hover,
  .nav-links .nav-social:focus-visible {
    background: var(--pink-deep);
    color: #fff;
  }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-card-special {
    grid-column: auto;
  }

  .about-inner {
    flex-direction: row;
    text-align: left;
  }

  .about-text {
    text-align: left;
  }

  .about .section-title {
    text-align: left;
  }

  .visit-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .menu-card,
  .nav-toggle-bar {
    transition: none;
  }
}
