.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;
}

/* netlify hidden honey-pot */
.hidden-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* #site {

  min-height: 100dvh;
  min-height: 100svh;
  min-height: 100lvh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
} */

main {
  width: min(95%, 90rem); /* 1440px max */
  margin-inline: auto;
}

.site-header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-header__wrapper a {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-fg);
}

/* Mobile first */
/* Center the logo on mobile */
.logo-block {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.logo-block img {
  width: 120px;
  height: auto;
  user-select: none;
  -webkit-user-select: none; /* For Safari */
}

/* Desktop layout */
@media (min-width: 1024px) {
  .logo-block {
    position: absolute;
    right: 5rem; /* distance from the right edge */
    top: 50%; /* start at vertical midpoint */
    transform: translateY(
      -50%
    ); /* shift up by half its own height to truly center */
  }

  .logo-block img {
    width: 300px;
    height: auto;
  }
}

header h1,
.section h2,
.section ul,
.tagline,
#contactForm {
  color: var(--clr-fg);
}

.menu-wrapper {
  background: var(--clr-bg);
  max-width: 25rem; /* 400px */
  margin-bottom: var(--space-xl);
  border: 2px solid var(--clr-primary100);
  box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  margin-inline: auto;
  user-select: none;
}

.menu-title {
  margin-bottom: -1rem;
}

text {
  font-family: "Georgia", serif;
  font-size: 100px;

  fill: var(--clr-fg);
  filter: url(#ink-bleed);
}

/* media query for text */
@media (max-width: 400px) {
  text {
    font-size: 120px;
  }
}

.tagline {
  font-style: italic;
  text-align: center;
  margin-bottom: 1.125rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  max-width: 30ch;
  margin-inline: auto;
  color: var(
    --clr-light-600
  ); /* or a semi-transparent white: rgba(255,255,255,0.8) */
}

.section h2 {
  font-family: "Special Elite", serif;
  font-size: clamp(1.25rem, 1.6rem + 0.8vw, 2rem); /* Fluid scaling */
  margin-bottom: 7px; /* px */
  border-bottom: 2px solid var(--clr-primary100);
  padding-bottom: 3px; /* px */
  letter-spacing: 0.05em;
}

.section ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* lets long names wrap without breaking layout */
  gap: 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px dashed var(--clr-primary100);
}

.section ul li:last-child {
  border-bottom: none;
}

.item-name {
  flex: 1; /* pushes price to right */
  min-width: 200px; /* prevents squishing */
}

.item-price {
  white-space: nowrap;
  font-weight: 700;
  margin-left: auto;
}

.menu-footer {
  margin-top: var(--space-lg);
  text-align: center;
}

.btn-inset {
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: var(--fs-sm);
  border: 2px solid var(--cta-border);
  padding: 0.6rem 1.6rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-inset-light), var(--shadow-inset-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-inset:hover,
.btn-inset:focus {
  transform: translate(var(--cta-pressed-x), var(--cta-pressed-y));
}

/* Global Footer  */
.site-footer {
  text-align: center;
  color: var(--clr-fg); /* optional subtle color */
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.site-footer li {
  margin-right: 0.5em; /* spacing before slash */
  position: relative;
}

.site-footer li::after {
  content: "/"; /* add slash */
  font-size: 0.75rem;
  vertical-align: middle;
}

.site-footer li:last-child::after {
  content: ""; /* remove slash on last item */
}

.site-footer li a {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dialog Box */
.hidden {
  display: none;
}

.dialog-box {
  position: fixed;
  bottom: 60px; /* px */
  right: 20px; /* px */
  width: 15.625rem; /* 250px rem for sizing */
  background: var(--clr-bg); /* dark background */
  border: 3px solid var(--clr-primary100);
  box-shadow: var(--box-shadow);
  padding: var(--space-md); /* 10px */
  font-size: var(--fs-dialog);
  font-family: "Space Grotesk", sans-serif;
  color: var(--clr-fg); /* light text */
  border-radius: var(--radius-md);
  flex-direction: column;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  position: relative;
  pointer-events: none;
  overflow: hidden;
  max-height: 0;
  margin-top: 0;
}

.pointer-gif {
  position: absolute;
  right: 35%;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  height: 35px;
  pointer-events: none;
  filter: drop-shadow(0 0 2px var(--ui-bg));
}

.dialog-footer.visible {
  pointer-events: auto;
  max-height: none;
  margin-top: 0.5rem;
}

#nextBtn {
  background: var(--ui-bg);
  color: var(--ui-fg);
  border: none;
  padding: 0.3125rem 0.625rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-btn-inset);
  border-radius: var(--radius-sm);
  opacity: 1;
  visibility: visible;
}

#nextBtn,
#contactForm button[type="submit"],
#cancelBtn {
  transition: all 0.2s ease;
}

#nextBtn:hover,
#contactForm button[type="submit"]:hover,
#cancelBtn:hover {
  background: var(--ui-hover-bg);
  color: var(--clr-fg);
  box-shadow: var(--shadow-drop-light);
  transform: scale(1.02); /* gentle lift */
}

/* form */
/* Form wrapper inside dialog */
/* Base Contact Form Styles */

#contactForm div {
  margin-bottom: 0.5rem;
}

#contactForm input[type="text"],
#contactForm input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 8px;
  margin-bottom: 8px;
  border: 1px solid var(--clr-primary100);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  font-family: inherit;
  color: var(--clr-fg);
  background-color: var(--clr-bg);
  outline-offset: 2px;
}

#contactForm button[type="submit"],
#cancelBtn {
  width: 100%;
  font-family: inherit;

  cursor: pointer;
  border-radius: var(--radius-sm);
  border: none;
  padding: 0.3125rem 0.625rem;
  box-shadow: var(--shadow-btn-inset);
  background: var(--ui-bg);
  color: var(--ui-fg);
  transition: background 0.3s ease;
}

#cancelBtn {
  margin-top: 0.5rem;
  background: transparent;
  border: 1px solid var(--clr-primary100);
  color: var(--clr-primary100);
  box-shadow: none;
  padding: 0.25rem 0.5rem;
}

#cancelBtn,
.submit-btn {
  font-size: var(--fs-xs);
}

/* Form validate */
/**************************
 * FORM VALIDATION UI
 **************************/

/* Error state for inputs */
.input-wrapper.input-error {
  position: relative;
}

/* override default behavior */
input:-webkit-autofill {
  background-color: white;
  -webkit-box-shadow: 0 0 0px 1000px white inset;
  box-shadow: 0 0 0px 1000px white inset;
  color: #000;
}

.input-wrapper .error-icon {
  display: none; /* hide by default */
  position: absolute;
  width: 2.5em;
  height: 2.5em;
  right: 0;
  bottom: 4.5px;

  color: rgb(255, 94, 0);
  pointer-events: none;
}

.input-wrapper.input-error .error-icon {
  display: block; /* show only when error class is applied */
}

.input-wrapper.input-error::after {
  content: attr(data-error);
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  color: var(--clr-primary100);
  font-size: 0.75rem;
}

/* Shake animation */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}

.input-wrapper.shake {
  animation: shake 0.4s ease;
}

/* Toast for radio/fieldset errors */
.interest-group {
  position: relative; /* for toast positioning */
}

.toast {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--ui-bg);
  color: var(--ui-fg);
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--box-shadow);
  opacity: 0;
  transform: translateY(10px);
  animation: toast-in 0.3s forwards;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.fade-out {
  animation: toast-out 0.3s forwards;
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(10px);
  }
}

#thankYouMessage {
  display: none;
  font-weight: 600;
  color: green;
  font-size: var(--fs-xs);
  margin-top: 0.5rem;
  text-align: center;
}

.interest-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.interest-question {
  margin-bottom: 0.4rem;
}

.interest-option {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.25rem;
  padding-left: 25px;
  cursor: pointer;
  user-select: none;
  font-size: var(--fs-xs);
  color: var(--clr-fg);
  line-height: 1.2;
}

/* Hide native radio */
.interest-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Custom square box */
.interest-option::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--clr-primary100);
  border-radius: 3px;
  background: transparent;
  box-sizing: border-box;
}

/* Checkmark when checked */
/* Using :has() for modern browsers only */
.interest-option:has(input[type="radio"]:checked)::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ui-fg);
  font-weight: bold;
  font-size: 14px;
  line-height: 1;
}

/* THREE */
#three-container {
  width: 80px;
  height: 80px;
  position: fixed;
  bottom: 30px;
  right: 10px; /* px */
  z-index: 10; /* above dialog box */
}

/* Dialog styles */
dialog {
  padding: var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  max-width: 256px;
  background: var(--clr-bg);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  color: var(--clr-fg);
}

.dialog-content {
  display: flex;
  flex-direction: column;
  width: 100%; /* ensures everything stretches inside dialog */
  gap: var(--space-sm);
}

dialog p {
  font-size: var(--fs-xs);
  text-wrap: balance;
  text-align: center;
}

dialog header {
  font-size: var(--fs-md);
  font-family: "Special Elite", serif;
  margin-bottom: var(--space-md);
  text-align: center;
}

#emailField {
  flex: 1;
  padding: 0.75rem;
  font-size: var(--fs-xs);
  font-family: inherit;
  margin-bottom: var(--space-lg);
  text-align: center;
  border-radius: var(--radius-md);
  border: 2px solid var(--cta-border);
  background: var(--clr-bg);
  color: var(--clr-fg);
}

/* Dialog buttons vertical */
.dialog-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.dialog-buttons button:hover {
  box-shadow: var(--shadow-drop-light);
  transform: scale(1.02); /* gentle lift */
}

.dialog-buttons button {
  padding: 0.5rem 1rem;
  font-size: var(--fs-xs);
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid var(--cta-border);
  background: var(--cta-bg);
  color: var(--cta-fg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

/* Icon sizing */
.icon {
  width: 2.5em;
  height: 2.5em;
  margin-left: 0.4em;
  vertical-align: middle;
  fill: currentColor; /* inherits text color */
}

.copy-feedback {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background-color: #d4edda;
  color: #155724;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  position: absolute; /* or relative depending on layout */
  top: 4rem;
  left: 50%;
  z-index: 1000;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-feedback.show {
  opacity: 1;
}
