/* ==========================================================
   Vitalia — Convenience Store & Juice Bar
   Refined organic minimalism
   ========================================================== */

:root {
  --green: #4B564C;
  --green-deep: #364038;
  --green-soft: #6e7a70;
  --cream: #FAF7F6;
  --cream-warm: #F2EDE9;
  --paper: #FFFFFF;
  --ink: #2A2E2B;
  --muted: #8a8f8a;
  --rule: rgba(75, 86, 76, 0.18);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --script: 'Caveat', cursive;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 160px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* subtle paper texture */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(75,86,76,0.025), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(75,86,76,0.02), transparent 50%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ Typography ============ */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--green-deep);
  letter-spacing: -0.01em;
  margin: 0;
}
h1 em, h2 em { font-style: italic; color: var(--green); }
h2 { font-size: clamp(36px, 5.5vw, 68px); line-height: 1.05; }
h3 { font-size: 22px; }
h4 { font-size: 19px; font-weight: 500; }

p { margin: 0; }

/* ============ Navigation ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(250, 247, 246, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled {
  border-color: var(--rule);
  padding: 12px var(--gutter);
}
.nav__logo img { height: 38px; width: auto; transition: height .3s var(--ease); }
.nav.is-scrolled .nav__logo img { height: 30px; }
.nav__links {
  display: flex; gap: 38px;
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green-deep);
  position: relative; padding: 6px 0;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--green);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--green); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 26px;
  padding: 4px; flex-direction: column; justify-content: space-between;
}
.nav__toggle span {
  display: block; height: 1.5px; width: 100%;
  background: var(--green-deep);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green); color: var(--cream);
  border-color: var(--green);
}
.btn--primary:hover {
  background: var(--green-deep); border-color: var(--green-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(75,86,76,.45);
}
.btn--ghost {
  background: transparent; color: var(--green-deep);
  border-color: var(--rule);
}
.btn--ghost:hover {
  border-color: var(--green); color: var(--green);
  transform: translateY(-2px);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  text-align: center;
}
.hero__leaves {
  position: absolute; inset: 0;
  pointer-events: none;
  color: var(--green);
}
.hero__leaf {
  position: absolute; bottom: 0;
  height: 70%;
  opacity: 0;
  animation: leafIn 1.6s var(--ease) .6s forwards;
}
.hero__leaf--left { left: -20px; }
.hero__leaf--right { right: -20px; transform: scaleX(-1); }

@keyframes leafIn {
  to { opacity: 1; }
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: 820px;
}
.hero__title {
  font-size: clamp(54px, 9vw, 124px);
  line-height: 0.98;
  margin: 22px 0 30px;
  letter-spacing: -0.025em;
}
.hero__lede {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.7;
  color: var(--green-soft);
  max-width: 560px;
  margin: 0 auto 44px;
}
.hero__cta {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--green-soft);
}
.hero__scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--green-soft), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Intro / About ============ */
.intro {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.intro__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 100px;
}
.intro__label {
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  padding-top: 14px;
}
.rule { height: 1px; width: 60px; background: var(--green); display: block; }
.intro__copy { max-width: 720px; }
.intro__copy h2 { margin-bottom: 32px; }
.intro__copy p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 22px;
}

.pillars {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.pillar {
  padding: 50px 36px 50px 0;
  border-right: 1px solid var(--rule);
  position: relative;
}
.pillar:last-child { border-right: none; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 36px; }
.pillar__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--green);
  display: block;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
}
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--green-soft); font-size: 15px; line-height: 1.65; }

/* ============ Menu ============ */
.menu {
  background: var(--paper);
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.menu::before, .menu::after {
  content: ''; position: absolute;
  width: 1px; height: 60px;
  background: var(--green);
  left: 50%;
}
.menu::before { top: -30px; }
.menu::after { bottom: -30px; }

.menu__head {
  max-width: var(--max); margin: 0 auto 70px;
  text-align: center;
}
.menu__head h2 { margin: 22px 0 24px; }
.menu__sub {
  color: var(--green-soft);
  max-width: 540px; margin: 0 auto;
  font-size: 16px;
}

.menu__tabs {
  max-width: var(--max);
  margin: 0 auto 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 24px;
}
.tab {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--green-soft);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.tab:hover { color: var(--green); }
.tab.is-active {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.menu__panels { max-width: var(--max); margin: 0 auto; }
.panel { display: none; animation: panelIn .5s var(--ease); }
.panel.is-active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.panel__note {
  font-style: italic;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--green);
  text-align: center;
  margin-bottom: 50px;
}
.panel__foot {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--green-soft);
  text-align: center;
}
.panel__foot em {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--green);
}

.dishes {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.dishes--two { grid-template-columns: repeat(2, 1fr); }

.dish {
  padding: 28px 36px;
  border-bottom: 1px solid var(--rule);
  transition: background .3s var(--ease);
}
.dish:nth-child(odd) { border-right: 1px solid var(--rule); }
.dish:hover { background: var(--cream); }
.dish h4 {
  margin-bottom: 6px;
  font-style: italic;
}
.dish p {
  font-size: 14px;
  color: var(--green-soft);
  line-height: 1.6;
}

/* ============ Pull quote ============ */
.pullquote {
  padding: var(--section-y) var(--gutter);
  text-align: center;
}
.pullquote__inner {
  max-width: 880px; margin: 0 auto;
  position: relative;
}
.quote-mark {
  font-family: var(--serif);
  font-size: 200px;
  line-height: 0;
  color: var(--green);
  opacity: 0.15;
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.pullquote p {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 38px);
  font-style: italic;
  line-height: 1.4;
  color: var(--green-deep);
  position: relative;
  z-index: 2;
}

/* ============ Visit ============ */
.visit {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--section-y) var(--gutter);
}
.visit__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.visit__copy h2 { margin: 22px 0 24px; }
.visit__copy > p {
  font-size: 17px;
  color: var(--green-soft);
  margin-bottom: 40px;
  max-width: 460px;
}

.info {
  margin: 0 0 40px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 40px;
}
.info > div { display: flex; flex-direction: column; gap: 4px; }
.info dt {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.info dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
.info dd a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .25s; }
.info dd a:hover { border-color: var(--green); }

.visit__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.visit__card { display: flex; justify-content: center; }
.card-frame {
  background: var(--cream-warm);
  border: 1px solid var(--rule);
  padding: 60px 50px;
  border-radius: 4px;
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.card-frame::before {
  content: ''; position: absolute;
  inset: 12px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  pointer-events: none;
}
.card-frame img {
  height: 60px; width: auto;
  margin-bottom: 30px;
  filter: grayscale(0.1);
}
.card-tag {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 32px;
}
.card-script {
  font-family: var(--script);
  font-size: 44px;
  line-height: 1.05;
  color: var(--green);
}
.card-leaf {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 40px;
  color: var(--green);
}

/* ============ Footer ============ */
.foot {
  background: var(--green);
  color: var(--cream);
  padding: 70px var(--gutter) 40px;
}
.foot__inner {
  max-width: var(--max); margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
.foot__brand {
  display: flex; flex-direction: column; gap: 14px;
}
.foot__brand img {
  height: 40px; width: auto;
  filter: brightness(0) invert(1);
}
.foot__brand p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--cream);
  opacity: 0.8;
}
.foot__nav {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 32px;
}
.foot__nav a {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  transition: opacity .3s;
}
.foot__nav a:hover { opacity: 1; }
.foot__credit {
  text-align: right;
  font-size: 12px;
  color: var(--cream);
  opacity: 0.6;
  letter-spacing: 0.05em;
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__links.is-open {
    display: flex;
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    padding: 40px var(--gutter);
    gap: 28px;
    align-items: center;
  }
  .nav__links.is-open a { font-size: 18px; }

  .intro__grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 70px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 36px 0;
  }
  .pillar:not(:first-child) { padding-left: 0; }
  .pillar:last-child { border-bottom: none; }

  .dishes { grid-template-columns: 1fr; }
  .dish:nth-child(odd) { border-right: none; }
  .dish { padding: 24px 0; }

  .visit__grid { grid-template-columns: 1fr; gap: 50px; }
  .info { grid-template-columns: 1fr; gap: 22px; }

  .foot__inner { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .foot__brand { align-items: center; }
  .foot__nav { justify-content: center; }
  .foot__credit { text-align: center; }
}

@media (max-width: 560px) {
  .hero { min-height: 90vh; padding-top: 100px; }
  .hero__title { font-size: 56px; }
  .menu__tabs { gap: 4px; padding-bottom: 16px; }
  .tab { padding: 8px 14px; font-size: 11px; letter-spacing: 0.08em; }
  .quote-mark { font-size: 130px; top: 30px; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
