/* Cafe Amara — implements the Claude Design "Cafe Amara design system" project.
   Palette, type scale and colour ratios follow the brand guidelines exactly. */

:root {
  /* Brand palette */
  --wine: #7B1E24;          /* brand colour: logo, headlines, one large field per piece */
  --wine-dark: #63181D;     /* hover only */
  --cream: #F2E7D8;         /* default ground */
  --page: #F7EFE4;          /* page ground */
  --sand: #E7D2B5;          /* second ground, dividers */
  --ink: #2A2A2A;           /* body copy + AMARA lettering, never a background field */
  --clay: #D9B59A;          /* accent only */
  --card: #FFFDF9;

  /* Functional — digital states only */
  --success: #3F7A5A;
  --warning: #C8862F;
  --error: #A32B23;

  /* Type */
  --display: 'Baloo 2', 'Trebuchet MS', cursive;
  --body: 'Poppins', Verdana, sans-serif;
  --script: 'Caveat', cursive;

  /* 8px base unit */
  --gap: 8px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--wine); text-decoration: none; }
a:hover { color: var(--ink); }
::selection { background: var(--wine); color: var(--cream); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--wine); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(46px, 7.5vw, 88px); line-height: 0.95; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.02; }
h3 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.label {
  font: 700 11px/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine);
}
.script { font: 400 clamp(24px, 3vw, 30px)/1.2 var(--script); color: var(--wine); }
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-cream { background: var(--cream); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--body);
  min-height: 52px; padding: 16px 26px;
  border: none; border-radius: 10px; cursor: pointer;
  background: var(--wine); color: var(--cream);
  transition: background .15s ease;
}
.btn:hover { background: var(--wine-dark); color: var(--cream); }
.btn-outline { background: transparent; color: var(--wine); border: 1.5px solid var(--wine); }
.btn-outline:hover { background: var(--cream); color: var(--wine); }
.btn-cream { background: var(--cream); color: var(--wine); }
.btn-cream:hover { background: var(--sand); color: var(--wine); }
.btn-sm { min-height: 44px; padding: 12px 20px; font-size: 13.5px; border-radius: 999px; }

/* ---------------- header ---------------- */
.sister {
  background: var(--wine); color: var(--cream);
  font: 500 11.5px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
}
.sister .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 8px; padding-bottom: 8px; }
.sister span { color: var(--clay); }
.sister a { color: var(--cream); }
.sister a:hover { color: var(--sand); }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 239, 228, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; padding-top: 14px; padding-bottom: 14px;
}
.lockup { display: flex; align-items: baseline; gap: 8px; flex: 0 0 auto; }
.lockup .cafe { font: 800 24px/1 var(--body); color: var(--wine); letter-spacing: -0.01em; }
.lockup .amara { font: 700 21px/1 var(--display); color: var(--ink); }
.mainnav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 24px; font: 500 14px/1 var(--body);
  order: 3; flex: 1 1 100%;
}
.mainnav a { color: var(--ink); }
.mainnav a:hover, .mainnav a[aria-current="page"] { color: var(--wine); }
.header .btn { order: 2; flex: 0 0 auto; border-radius: 999px; min-height: 44px; padding: 12px 20px; font-size: 13.5px; }
.pill {
  background: var(--cream); color: var(--wine); border-radius: 999px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 11.5px/1 var(--body);
}

/* ---------------- hero ---------------- */
.hero .wrap {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 48px); align-items: center;
  padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(24px, 4vw, 48px);
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-copy p.lede { font: 400 clamp(15px, 1.5vw, 17px)/1.7 var(--body); max-width: 44ch; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 28px; font: 500 12.5px/1 var(--body); color: var(--wine); padding-top: 6px; }
.trust .dot { color: var(--clay); }
.hero-art { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.hero-art .lockup-img { width: 100%; border-radius: 14px; background: var(--cream); border: 1px solid var(--sand); }
.hero-art .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-art .pair img { width: 100%; height: clamp(120px, 16vw, 170px); object-fit: cover; border-radius: 14px; }

/* ---------------- menu ---------------- */
.menu-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.menu-head h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1; }
.menu-head .aside { font: 400 26px/1.1 var(--script); color: var(--ink); white-space: nowrap; }
.tabs { display: flex; gap: 10px; overflow-x: auto; padding: 28px 0 4px; }
.tab {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--clay); border-radius: 999px;
  padding: 11px 18px; font: 500 13.5px/1 var(--body);
  cursor: pointer; white-space: nowrap; min-height: 44px;
}
.tab[aria-selected="true"] { background: var(--wine); color: var(--cream); border-color: var(--wine); font-weight: 600; }

.menu-group { padding-top: 28px; scroll-margin-top: 130px; }
.menu-group > h3 { font-size: 26px; margin-bottom: 2px; }
.menu-group > .note { font: 400 22px/1.2 var(--script); color: var(--ink); margin-bottom: 16px; }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.item {
  background: var(--card); border: 1px solid var(--sand); border-radius: 14px;
  padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.item .text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.item .name { font: 600 16px/1.3 var(--body); color: var(--ink); }
.item .desc { font: 400 12.5px/1.5 var(--body); color: var(--ink); opacity: .65; }
.item .right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.item .price { font: 600 16px/1 var(--body); color: var(--wine); }
.add {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1.5px solid var(--wine); background: var(--cream); color: var(--wine);
  font: 600 20px/1 var(--body); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.add:hover { background: var(--wine); color: var(--cream); }

.menu-strip {
  margin-top: 28px; background: var(--wine); border-radius: 14px;
  padding: 22px 26px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px;
}
.menu-strip p { font: 500 15px/1.5 var(--body); color: var(--cream); max-width: 52ch; }

/* ---------------- story ---------------- */
.story .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 52px); align-items: center; }
.story img { width: 100%; border-radius: 14px; border: 1px solid var(--sand); min-width: 0; }
.story-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.story-copy p { font: 400 15px/1.75 var(--body); max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding-top: 6px; }
.stat { background: var(--cream); border-radius: 12px; padding: 18px; }
.stat .v { font: 700 30px/1 var(--display); color: var(--wine); }
.stat .k { font: 400 12.5px/1.5 var(--body); padding-top: 4px; }

/* ---------------- gallery ---------------- */
.gallery { padding: clamp(36px, 5vw, 64px) 0; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 20px; }
.gallery-head h2 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1; }
.gallery-head .hint { font: 500 13px/1 var(--body); color: var(--ink); opacity: .7; }
.rail { display: flex; gap: 16px; overflow-x: auto; padding: 22px max(20px, calc((100% - var(--maxw)) / 2 + 20px)); }
.rail img { height: clamp(200px, 26vw, 300px); width: auto; border-radius: 14px; flex: 0 0 auto; }

/* ---------------- visit ---------------- */
.visit .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 44px); }
.visit-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rows { display: flex; flex-direction: column; gap: 14px; }
.row {
  display: flex; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--sand); padding-bottom: 12px;
  font: 400 14.5px/1.5 var(--body);
}
.row:last-child { border-bottom: none; padding-bottom: 0; }
.row .k { font-weight: 600; }
.row .v { text-align: right; }
.map { min-width: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--sand); min-height: clamp(240px, 30vw, 340px); }
.map iframe { width: 100%; height: 100%; min-height: clamp(240px, 30vw, 340px); border: 0; display: block; }

/* ---------------- faq ---------------- */
.faq-list { display: grid; gap: 12px; padding-top: 28px; max-width: 900px; }
.faq-list details { background: var(--card); border: 1px solid var(--sand); border-radius: 14px; padding: 18px 20px; }
.faq-list summary { font: 600 15.5px/1.4 var(--body); color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--wine); font: 600 20px/1 var(--body); }
.faq-list details[open] summary::after { content: '\2013'; }
.faq-list p { font: 400 14px/1.7 var(--body); padding-top: 10px; }

/* ---------------- footer ---------------- */
.footer { background: var(--wine); color: var(--cream); padding: clamp(36px, 5vw, 64px) 0 28px; }
.footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer .col { display: flex; flex-direction: column; gap: 10px; font: 400 14px/1.6 var(--body); }
.footer .lockup .cafe { color: var(--cream); font-size: 26px; }
.footer .lockup .amara { color: var(--sand); font-size: 23px; }
.footer .tag { font: 400 24px/1.2 var(--script); color: var(--clay); }
.footer .col-head { font: 700 10.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--clay); padding-bottom: 4px; }
.footer a { color: var(--cream); }
.footer a:hover { color: var(--sand); }
.footer .fine {
  margin-top: 28px; border-top: 1px solid rgba(242, 231, 216, .28); padding-top: 18px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font: 400 12px/1.5 var(--body); color: var(--sand);
}

/* ---------------- order drawer ---------------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  box-shadow: 0 6px 20px rgba(42, 42, 42, .22);
  border-radius: 999px;
}
.fab[hidden] { display: none; }
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(42, 42, 42, .42); border: none; padding: 0; }
.panel {
  position: relative; width: min(420px, 100%); height: 100%;
  background: var(--page); display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(42, 42, 42, .2);
}
.panel-head { padding: 20px 22px; border-bottom: 1px solid var(--sand); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-head h2 { font-size: 22px; line-height: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--clay); background: transparent; color: var(--ink);
  font: 400 20px/1 var(--body); cursor: pointer;
}
.icon-btn:hover { background: var(--cream); }
.panel-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.empty { display: flex; flex-direction: column; gap: 10px; padding: 30px 0; text-align: center; }
.empty .script { font-size: 30px; }
.empty p { font: 400 13.5px/1.6 var(--body); }
.line { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--sand); padding-bottom: 14px; }
.line .name { font: 600 14.5px/1.3 var(--body); }
.line .each { font: 400 12px/1.4 var(--body); opacity: .6; }
.qty { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.qty button {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--clay);
  background: transparent; color: var(--wine); font: 600 16px/1 var(--body); cursor: pointer;
}
.qty button:hover { background: var(--cream); }
.qty .n { font: 600 14px/1 var(--body); min-width: 18px; text-align: center; }
.qty .sum { font: 600 14.5px/1 var(--body); color: var(--wine); min-width: 46px; text-align: right; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slots .btn[aria-pressed="true"] { background: var(--wine); color: var(--cream); border-color: var(--wine); }
[data-send][aria-disabled="true"] { opacity: .45; pointer-events: none; }
.panel-foot { border-top: 1px solid var(--sand); padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; background: var(--cream); }
.total { display: flex; justify-content: space-between; font: 600 16px/1 var(--body); }
.total .v { color: var(--wine); }

@media (max-width: 640px) {
  .menu-head .aside, .gallery-head .hint { display: none; }
  .row { flex-direction: column; gap: 2px; }
  .row .v { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
