:root {
  --cream-50: #f7f3ec;
  --cream-100: #ece2d5;
  --coffee-700: #3a2a1f;
  --coffee-900: #1f150f;
  --sage-500: #49624a;
  --sage-700: #334734;
  --clay-300: #c9a88a;
  --line: rgba(31, 21, 15, 0.16);
  --shadow: 0 18px 40px rgba(23, 15, 10, 0.14);
  --radius: 18px;
  --container: min(1120px, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--coffee-900);
  background:
    radial-gradient(circle at 8% 14%, rgba(73, 98, 74, 0.12), transparent 40%),
    radial-gradient(circle at 92% 86%, rgba(201, 168, 138, 0.2), transparent 36%),
    var(--cream-50);
  line-height: 1.65;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  padding: 0.65rem 0.9rem;
  background: var(--coffee-900);
  color: #fff;
  z-index: 2000;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.section h2,
.section h3,
.hero h1,
.brand {
  font-family: "Fraunces", Georgia, serif;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 0.65rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: env(safe-area-inset-top);
  backdrop-filter: blur(10px);
  background: rgba(247, 243, 236, 0.84);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  text-decoration: none;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.primary-nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(73, 98, 74, 0.12);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.45rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--coffee-900);
  margin: 5px 0;
}

.hero {
  position: relative;
  overflow: clip;
  min-height: min(82vh, 720px);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(29, 20, 13, 0.78), rgba(29, 20, 13, 0.43)),
    url("assets/backgrouds/ny-togo-cup.jpg") center/cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 660px;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.8rem;
  opacity: 0.94;
}

.hero h1 {
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  margin: 0.25rem 0 1rem;
  line-height: 1.03;
}

.hero p {
  margin: 0;
  max-width: 60ch;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.72rem 1.05rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-solid {
  background: var(--sage-500);
  color: #fff;
}

.btn-solid:hover,
.btn-solid:focus-visible {
  background: var(--sage-700);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.text-link {
  display: inline-block;
  margin-top: 0.5rem;
  text-underline-offset: 3px;
  font-weight: 700;
}

.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.split-card article,
.contact-form {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow);
}

.textured {
  background:
    linear-gradient(to bottom, rgba(236, 226, 213, 0.55), rgba(247, 243, 236, 0.65)),
    url("assets/backgrouds/coffee-beans.jpg") center/cover no-repeat;
}

.prose {
  background: rgba(247, 243, 236, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.prose p {
  margin-top: 0;
}

.section-head {
  margin-bottom: 1rem;
}

.slideshow {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

.slide {
  margin: 0;
  display: none;
  aspect-ratio: 4 / 3;
}

.slide.is-active {
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.slide-btn {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

.slide-btn:hover,
.slide-btn:focus-visible {
  background: rgba(0, 0, 0, 0.62);
  outline: none;
}

.slide-btn.prev {
  left: 0.8rem;
}

.slide-btn.next {
  right: 0.8rem;
}

.slide-dots {
  position: absolute;
  display: flex;
  gap: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.8rem;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.56);
  cursor: pointer;
}

.slide-dot[aria-current="true"] {
  background: #fff;
}

.menu-bg {
  background:
    linear-gradient(to bottom, rgba(247, 243, 236, 0.78), rgba(247, 243, 236, 0.74)),
    url("assets/backgrouds/drink-coffee.jpg") center/cover no-repeat;
}

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

.menu-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.menu-group-card h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.menu-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item + .menu-item {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
}

.menu-item-name {
  font-weight: 700;
}

.menu-item-price {
  font-weight: 700;
  color: var(--sage-700);
  white-space: nowrap;
}

.menu-item-description {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.menu-status {
  margin: 1rem 0 0;
  font-weight: 600;
}

.order-page .section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.order-title {
  margin: 0.2rem 0 0.7rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.order-subtitle {
  margin: 0;
  max-width: 68ch;
}

.order-form-card {
  margin-top: 1.1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.8vw, 1.6rem);
}

.order-section + .order-section {
  margin-top: 1rem;
}

.order-section h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.order-grid,
.order-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.order-grid label,
.order-item-grid label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}

.order-form-card input,
.order-form-card select,
.order-form-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 16px;
  background: #fff;
}

.order-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.add-item-btn {
  min-height: 40px;
}

.order-items {
  display: grid;
  gap: 0.7rem;
}

.order-item-row {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  background: rgba(247, 243, 236, 0.8);
}

.remove-item-btn {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.remove-item-btn:hover,
.remove-item-btn:focus-visible {
  background: var(--cream-100);
  outline: none;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.order-back {
  color: var(--coffee-900);
  background: rgba(31, 21, 15, 0.08);
}

.order-status {
  margin: 0.95rem 0 0;
  font-weight: 700;
}

.order-status.is-neutral {
  color: var(--coffee-700);
}

.order-status.is-success {
  color: #1e6b3b;
}

.order-status.is-error {
  color: #8f1f1f;
}

.hidden-bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.captcha-wrap {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.25rem;
}

.contact-wrap {
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li + li {
  margin-top: 0.5rem;
}

.contact-list a {
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  display: grid;
  gap: 0.25rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 16px;
  background: #fff;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--cream-100);
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 700;
  margin-right: 0.4rem;
}

.footer-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.fineprint-link {
  opacity: 0.72;
  font-size: 0.94rem;
  text-underline-offset: 3px;
}

.fineprint-link:hover,
.fineprint-link:focus-visible {
  opacity: 1;
}

.footer-grid p {
  margin: 0;
}

.legal-page .section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.legal-prose {
  max-width: 880px;
}

.legal-prose h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3rem);
  margin: 0.25rem 0 1.4rem;
  line-height: 1.1;
}

.legal-prose h2 {
  margin-top: 1.25rem;
}

.legal-eyebrow {
  color: var(--sage-700);
  margin: 0;
}

.legal-prose ul {
  margin: 0.45rem 0 0.95rem;
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .split-card,
  .menu-grid {
    grid-template-columns: 1fr;
  }

  .order-grid,
  .order-item-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .primary-nav {
    position: absolute;
    top: calc(72px + env(safe-area-inset-top));
    right: 4vw;
    left: 4vw;
    background: rgba(247, 243, 236, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 0.75rem;
  }

  .hero {
    min-height: 70vh;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
