/* Châm Châm's eatclean house — meal prep delivery
   Design tokens from /docs/knowledge/web-templates/ */

:root {
  /* Brand palette */
  --green: #2d5e3a;
  --green-deep: #1f4429;
  --green-soft: #3d7e4e;
  --cream: #f8f5ed;
  --cream-2: #efe9d9;
  --ochre: #c97b3a;
  --ochre-bright: #e08a40;
  --terra: #8b3a3a;
  --ink: #1a2018;
  --ink-soft: #4a4f47;
  --muted: #8a8e85;
  --line: rgba(45, 94, 58, 0.12);

  /* Type scale */
  --font-head: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(45, 94, 58, .08);
  --shadow-md: 0 8px 24px rgba(45, 94, 58, .12);
  --shadow-lg: 0 18px 50px rgba(45, 94, 58, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'tnum' 1, 'cv11' 1;
}
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select {
  font: inherit; color: inherit;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  outline: none;
  transition: border-color .2s var(--ease);
}
input:focus, textarea:focus, select:focus { border-color: var(--green); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }

/* === Header === */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(248, 245, 237, 0.85);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--green);
}
.logo .mark {
  width: 38px; height: 38px;
  background: var(--green); color: var(--cream);
  border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 20px; font-weight: 700;
}
.logo .name {
  font-family: var(--font-head); font-size: 22px; font-weight: 600; letter-spacing: .02em;
}
.logo .name small { display: block; font-family: var(--font-body); font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; line-height: 1; margin-top: 2px; font-weight: 500; }
.lang {
  display: flex; gap: 4px; align-items: center;
  background: rgba(45, 94, 58, .06);
  border-radius: 999px; padding: 3px;
}
.lang button {
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .2s var(--ease);
}
.lang button.active { background: var(--green); color: var(--cream); }

/* === Hero === */
.hero {
  padding: 50px 18px 32px;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
}
.hero-text > * { animation: floatUp .7s var(--ease-out) backwards; }
.hero-text > *:nth-child(1) { animation-delay: .05s; }
.hero-text > *:nth-child(2) { animation-delay: .15s; }
.hero-text > *:nth-child(3) { animation-delay: .25s; }
.hero-text > *:nth-child(4) { animation-delay: .35s; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(45, 94, 58, .08);
  color: var(--green); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ochre); animation: pulseDot 2s var(--ease) infinite; }

.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  color: var(--green-deep);
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: italic; color: var(--ochre);
  background: linear-gradient(90deg, var(--ochre), var(--terra), var(--ochre));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
.hero p {
  font-size: 18px; color: var(--ink-soft);
  max-width: 460px; margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 36px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-stat .num { font-family: var(--font-head); font-size: 32px; font-weight: 600; color: var(--green); line-height: 1; }
.hero-stat .label { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }

.hero-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: floatUp .9s var(--ease-out) .2s backwards;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 12s var(--ease); }
.hero-photo:hover img { transform: scale(1.05); }
.hero-photo .tag {
  position: absolute; top: 18px; left: 18px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(248, 245, 237, .9);
  backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--green-deep); text-transform: uppercase;
}
.hero-photo .badge-today {
  position: absolute; bottom: 18px; left: 18px; right: 18px;
  background: rgba(45, 94, 58, .92); color: var(--cream);
  backdrop-filter: blur(8px);
  padding: 14px 18px; border-radius: var(--radius);
}
.hero-photo .badge-today .day { font-size: 11px; letter-spacing: .12em; opacity: .75; text-transform: uppercase; }
.hero-photo .badge-today .name { font-family: var(--font-head); font-size: 22px; line-height: 1.2; margin-top: 2px; }
.hero-photo .badge-today .price { margin-top: 8px; font-size: 14px; opacity: .85; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s var(--ease);
  white-space: nowrap;
  font-size: 15px;
  user-select: none;
}
.btn-primary {
  background: var(--green); color: var(--cream);
  box-shadow: 0 6px 16px rgba(45, 94, 58, .25);
  animation: pulseSoft 2.4s var(--ease) infinite;
}
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(45, 94, 58, .35); animation: none; }
.btn-secondary {
  background: transparent; color: var(--green);
  border: 1.5px solid var(--green);
}
.btn-secondary:hover { background: var(--green); color: var(--cream); }
.btn-ochre {
  background: var(--ochre); color: #fff;
  box-shadow: 0 6px 16px rgba(201, 123, 58, .3);
}
.btn-ochre:hover { background: var(--ochre-bright); transform: translateY(-2px); }
.btn-ghost {
  color: var(--ink-soft);
}
.btn-ghost:hover { color: var(--green); }
.btn:active { transform: translateY(0) !important; }

/* === Day tabs === */
.day-tabs-wrap { background: var(--cream); position: sticky; top: 67px; z-index: 40; padding: 10px 0; border-bottom: 1px solid var(--line); }
.day-tabs {
  max-width: 1180px; margin: 0 auto;
  display: flex; gap: 8px; padding: 0 18px;
  overflow-x: auto; scrollbar-width: none;
}
.day-tabs::-webkit-scrollbar { display: none; }
.day-tab {
  flex-shrink: 0;
  padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--muted);
  border: 1.5px solid transparent;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.day-tab:hover { color: var(--green); border-color: var(--line); }
.day-tab.active {
  background: var(--green); color: var(--cream);
  border-color: var(--green);
}
.day-tab.today::after {
  content: '·'; color: var(--ochre);
  margin-left: 4px; font-size: 22px; line-height: 0;
}

/* === Menu === */
.menu-section {
  max-width: 1180px; margin: 0 auto;
  padding: 36px 18px 60px;
}
.menu-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 26px; gap: 16px; flex-wrap: wrap;
}
.menu-head h2 {
  font-size: clamp(30px, 4vw, 44px); color: var(--green-deep);
}
.menu-head .meta { color: var(--muted); font-size: 14px; }

.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.dish {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: floatUp .6s var(--ease-out) backwards;
}
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.dish-photo {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--cream-2);
  overflow: hidden;
}
.dish-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dish:hover .dish-photo img { transform: scale(1.04); }

.dish-tag {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.dish-tag.bestSeller { background: rgba(201, 123, 58, .92); color: #fff; }
.dish-tag.mustTry { background: rgba(139, 58, 58, .92); color: #fff; }

.dish-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.dish-name { font-family: var(--font-head); font-size: 21px; font-weight: 600; color: var(--green-deep); line-height: 1.2; }
.dish-desc { color: var(--ink-soft); font-size: 14px; flex: 1; }
.dish-prices {
  display: flex; gap: 8px;
  border-top: 1px dashed var(--line);
  padding-top: 14px; margin-top: 8px;
}
.size-btn {
  flex: 1;
  padding: 10px 8px; border-radius: var(--radius-sm);
  background: var(--cream);
  border: 1.5px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: all .15s var(--ease);
  font-feature-settings: 'tnum' 1;
}
.size-btn:hover { border-color: var(--green); background: #fff; }
.size-btn .size { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.size-btn .price { font-size: 15px; font-weight: 700; color: var(--green-deep); }
.size-btn:hover .price { color: var(--green); }

/* === Sticky cart bar === */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--green); color: var(--cream);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -10px 30px rgba(45, 94, 58, .25);
  transform: translateY(110%);
  transition: transform .35s var(--ease-out);
}
.cart-bar.show { transform: translateY(0); }
.cart-bar .cart-count {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
}
.cart-bar .cart-count .dot {
  background: var(--ochre); color: #fff;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800;
}
.cart-bar .total { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.cart-bar .btn-cart {
  background: var(--cream); color: var(--green-deep);
  padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14px;
}
.cart-bar .btn-cart:hover { background: #fff; }

/* === Cart drawer === */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(26, 32, 24, .55);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.drawer-overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100%);
  background: var(--cream);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s var(--ease-out);
  box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
}
.drawer.show { transform: translateX(0); }
.drawer-head {
  padding: 20px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-head h3 { font-size: 24px; color: var(--green-deep); }
.drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(45, 94, 58, .08);
  display: grid; place-items: center;
  color: var(--green-deep); font-size: 18px;
  transition: all .2s var(--ease);
}
.drawer-close:hover { background: var(--green); color: var(--cream); }

.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; }

.cart-empty {
  text-align: center; padding: 60px 20px;
  color: var(--muted);
}
.cart-empty .ic { font-size: 60px; opacity: .3; margin-bottom: 18px; }

.cart-item {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  align-items: center;
  animation: floatUp .35s var(--ease-out);
}
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item .info { min-width: 0; }
.cart-item .name { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--green-deep); line-height: 1.2; }
.cart-item .size-line { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item .qty { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item .qty button {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--cream-2); color: var(--green-deep);
  font-size: 16px; font-weight: 700;
  transition: all .2s var(--ease);
}
.cart-item .qty button:hover { background: var(--green); color: var(--cream); }
.cart-item .qty .count { font-weight: 700; min-width: 22px; text-align: center; }
.cart-item .price { font-weight: 700; color: var(--green-deep); white-space: nowrap; }

.drawer-foot {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .5);
}
.drawer-foot .totals {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
  font-family: var(--font-head);
}
.drawer-foot .totals .lbl { font-size: 16px; color: var(--ink-soft); }
.drawer-foot .totals .val { font-size: 30px; font-weight: 600; color: var(--green-deep); }
.drawer-foot .free-ship {
  font-size: 12px; color: var(--green); font-weight: 600;
  background: rgba(45, 94, 58, .08); padding: 8px 12px; border-radius: var(--radius-sm);
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}

/* === Checkout form === */
.checkout-form { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.checkout-form label { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 6px; }
.checkout-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-form .group { margin-bottom: 4px; }
.choice {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.choice button {
  flex: 1; min-width: 100px;
  padding: 12px; border-radius: var(--radius-sm);
  background: #fff;
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  transition: all .2s var(--ease);
}
.choice button.active {
  border-color: var(--green); background: rgba(45, 94, 58, .06);
  color: var(--green-deep);
}
.choice button:hover:not(.active) { border-color: var(--green-soft); }

.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: rgba(45, 94, 58, .05);
  font-size: 13px; color: var(--ink-soft);
}
.contact-row .ic { font-size: 18px; }

/* === Floating dish-to-cart animation === */
.fly-clone {
  position: fixed; z-index: 80;
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  pointer-events: none;
  transition: all .8s cubic-bezier(.6, -.28, .735, .045);
}

/* === Brand band === */
.brand-band {
  background: var(--green-deep);
  color: var(--cream);
  padding: 60px 18px;
  text-align: center;
}
.brand-band .quote {
  font-family: var(--font-head); font-size: clamp(22px, 3vw, 32px); font-weight: 400;
  font-style: italic; max-width: 720px; margin: 0 auto 16px;
  line-height: 1.4;
}
.brand-band .quote::before { content: '“'; color: var(--ochre); font-size: 1.8em; line-height: 0; vertical-align: -0.3em; margin-right: .1em; }
.brand-band .quote::after  { content: '”'; color: var(--ochre); font-size: 1.8em; line-height: 0; vertical-align: -0.3em; margin-left: .1em; }
.brand-band .author { font-size: 13px; color: rgba(248, 245, 237, .65); letter-spacing: .12em; text-transform: uppercase; }

/* === Footer === */
.foot {
  background: var(--cream-2);
  padding: 40px 18px 100px;
  font-size: 14px;
  color: var(--ink-soft);
}
.foot-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.foot h4 { font-family: var(--font-head); font-size: 22px; color: var(--green-deep); margin-bottom: 14px; }
.foot a { color: var(--green); text-decoration: none; transition: color .2s var(--ease); }
.foot a:hover { color: var(--ochre); }
.foot ul { list-style: none; }
.foot ul li { margin-bottom: 8px; }
.copyright {
  max-width: 1180px; margin: 32px auto 0;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* === Animations === */
@keyframes floatUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: .6; }
}
@keyframes shimmer {
  0%   { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

/* === Mobile === */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 28px 18px 24px; gap: 24px; }
  .hero-photo { aspect-ratio: 4/3; max-height: 380px; }
  .hero-stats { gap: 18px; padding-top: 18px; margin-top: 22px; }
  .hero-stat .num { font-size: 26px; }
  .foot-inner { grid-template-columns: 1fr; gap: 20px; }
  .day-tabs-wrap { top: 65px; }
  body { padding-bottom: 90px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 16px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .dishes { grid-template-columns: 1fr; }
  .dish-name { font-size: 19px; }
  .header-inner { padding: 12px 14px; }
  .logo .name { font-size: 19px; }
  .logo .name small { font-size: 10px; }
  .menu-section { padding: 24px 14px 50px; }
  .day-tabs { padding: 0 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
