/* ============================================
   Copper & Clove — Design Tokens
   ============================================ */

:root {
  --charcoal: #1B1611;
  --ivory: #F6EFE4;
  --paprika: #C1440E;
  --marigold: #E8A33D;
  --bay: #3B5233;
  --charcoal-soft: #2A231C;
  --ivory-soft: #EDE3D2;
  --line: rgba(27, 22, 17, 0.12);
  --line-on-dark: rgba(246, 239, 228, 0.16);

  --font-display: "Fraunces", serif;
  --font-body: "Public Sans", sans-serif;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;

  --max-width: 1180px;
  --header-h: 84px;
  --header-h-scrolled: 68px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
  max-width: 62ch;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

:focus-visible {
  outline: 2px solid var(--paprika);
  outline-offset: 3px;
}

/* ============================================
   Reveal-on-scroll utility
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-group.is-visible > * {
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

/* ============================================
   Site header / hamburger trigger
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height 0.3s ease;
}

.site-header.is-scrolled .container {
  height: var(--header-h-scrolled);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -18px rgba(27, 22, 17, 0.4);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--paprika);
}

.nav-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  padding: var(--space-1) var(--space-1);
}

.nav-trigger .bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}

.nav-trigger .bars span {
  display: block;
  height: 2px;
  background: var(--charcoal);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

.nav-trigger .bars span:nth-child(2) {
  width: 70%;
}

.nav-trigger:hover .bars span:nth-child(2) {
  width: 100%;
}

/* ============================================
   Full-screen nav overlay
   ============================================ */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--charcoal);
  color: var(--ivory);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-3);
  transform: translateY(-100%);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1);
  background-image: radial-gradient(circle at 85% 10%, rgba(232, 163, 61, 0.14), transparent 45%);
}

.nav-overlay.is-open {
  transform: translateY(0);
}

.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-overlay .brand {
  color: var(--ivory);
}

.nav-close {
  background: none;
  border: none;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-close .x {
  font-size: 1.4rem;
  line-height: 1;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.nav-links li {
  overflow: hidden;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  text-decoration: none;
  color: var(--ivory);
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  position: relative;
  transition: color 0.25s ease, padding-left 0.25s ease;
  transform: translateY(100%);
  opacity: 0;
  transition: color 0.25s ease, padding-left 0.25s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease;
}

.nav-overlay.is-open .nav-links a {
  transform: translateY(0);
  opacity: 1;
}

.nav-links li:nth-child(1) a { transition-delay: 0.05s; }
.nav-links li:nth-child(2) a { transition-delay: 0.1s; }
.nav-links li:nth-child(3) a { transition-delay: 0.15s; }
.nav-links li:nth-child(4) a { transition-delay: 0.2s; }
.nav-links li:nth-child(5) a { transition-delay: 0.25s; }

.nav-links a .idx {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--marigold);
  opacity: 0.8;
}

.nav-links a::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 50%;
  transform: translateY(-50%);
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--paprika);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-current {
  color: var(--marigold);
  padding-left: 0.15em;
}

.nav-links a:hover::before,
.nav-links a:focus-visible::before,
.nav-links a.is-current::before {
  opacity: 1;
}

.nav-overlay-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: 0.92rem;
  color: var(--ivory-soft);
  border-top: 1px solid var(--line-on-dark);
  padding-top: var(--space-2);
}

.nav-overlay-bottom a {
  text-decoration: none;
  color: var(--ivory-soft);
}

.nav-overlay-bottom a:hover {
  color: var(--marigold);
}

body.nav-is-open {
  overflow: hidden;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--paprika);
  color: var(--ivory);
}

.btn-primary:hover {
  background: #a63a0c;
  box-shadow: 0 10px 24px -12px rgba(193, 68, 14, 0.6);
}

.btn-outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.btn-outline-light {
  background: transparent;
  border-color: var(--line-on-dark);
  color: var(--ivory);
}

.btn-outline-light:hover {
  background: var(--ivory);
  color: var(--charcoal);
}

.btn:active {
  transform: scale(0.98);
}

/* ============================================
   Section utilities
   ============================================ */

section {
  padding: var(--space-6) 0;
}

.section-dark {
  background: var(--charcoal);
  color: var(--ivory);
}

.section-soft {
  background: var(--ivory-soft);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--paprika);
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--paprika);
  display: inline-block;
}

.section-dark .eyebrow {
  color: var(--marigold);
}

.section-dark .eyebrow::before {
  background: var(--marigold);
}

/* Small pill / tag component, used for menu badges etc. */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25em 0.7em;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--charcoal-soft);
  background: var(--ivory);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.pill .dot.veg { background: var(--bay); border: 1px solid var(--bay); }
.pill .dot.non-veg { background: var(--paprika); border: 1px solid var(--paprika); }

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--charcoal);
  color: var(--ivory-soft);
  padding: var(--space-4) 0 var(--space-2);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-on-dark);
}

.footer-top h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--marigold);
  margin-bottom: var(--space-2);
}

.footer-top .brand {
  color: var(--ivory);
  font-size: 1.6rem;
}

.footer-top p {
  color: var(--ivory-soft);
  margin-top: var(--space-2);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.footer-links a {
  text-decoration: none;
  color: var(--ivory-soft);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--marigold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding-top: var(--space-2);
  font-size: 0.85rem;
  color: rgba(246, 239, 228, 0.55);
}

@media (max-width: 720px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}
