/* Qaymoq Coffee: a made-up coffee shop, a G Development portfolio demo */
:root {
  --bg: #f3ece1;
  --panel: #faf6ef;
  --ink: #2b2019;
  --dim: #75665a;
  --faint: #a4968a;
  --line: rgba(43, 32, 25, 0.12);
  --terra: #b9603a;
  --sage: #7f9272;
  --radius: 24px;
  --display: 'Playfair Display', Georgia, serif;
  --body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --pad: clamp(18px, 4vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* one fixed environment layer: warm morning light from the window side */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(55vw 60vh at 0% 0%, rgba(255, 236, 200, 0.75), transparent 70%),
    radial-gradient(50vw 50vh at 100% 100%, rgba(127, 146, 114, 0.12), transparent 70%),
    var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }

.header { position: sticky; top: 0; z-index: 40; background: rgba(243, 236, 225, 0.94); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 26px; height: 70px; }
.logo { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 26px; text-decoration: none; letter-spacing: -0.01em; }
.logo small { font-family: var(--body); font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-left: 8px; }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a { text-decoration: none; color: var(--dim); font-weight: 700; font-size: 14.5px; }
.nav a:hover { color: var(--ink); }
.langs { display: flex; }
.langs button { background: none; border: 0; padding: 8px 7px; font-weight: 800; font-size: 12.5px; color: var(--faint); letter-spacing: 0.06em; }
.langs button[aria-pressed='true'] { color: var(--ink); }
.order-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--panel); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 14px; }
.order-btn b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 12px; }

.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; min-height: calc(100svh - 70px); padding-top: 20px; padding-bottom: 40px; }
.hero .where { font-weight: 800; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin: 0 0 18px; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(44px, 5.6vw, 92px); line-height: 1.0; letter-spacing: -0.02em; margin: 0 0 24px; }
.hero h1 em { font-style: italic; color: var(--terra); }
.hero .lead { color: var(--dim); font-size: clamp(16.5px, 1.3vw, 19px); max-width: 38ch; margin: 0 0 32px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 16px 26px; font-weight: 800; font-size: 15.5px; text-decoration: none; border: 0; transition: transform .2s ease, background .25s ease, color .25s ease; }
.btn:active { transform: scale(0.97); }
.btn-ink { background: var(--ink); color: var(--panel); }
.btn-ink:hover { background: #45332a; }
.btn-line { background: transparent; color: var(--ink); border: 1.5px solid rgba(43, 32, 25, 0.3); }
.btn-line:hover { border-color: var(--ink); }
.hours { margin-top: 38px; display: flex; gap: 12px; align-items: center; color: var(--dim); font-weight: 700; font-size: 14.5px; }
.hours i { width: 9px; height: 9px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 5px rgba(127, 146, 114, 0.18); }

.stage { position: relative; height: min(74svh, 660px); }
.stage canvas { position: absolute; inset: 0; pointer-events: none; }
.steam { position: absolute; left: 50%; bottom: 57%; height: 30%; aspect-ratio: 180 / 220; transform: translateX(-50%); pointer-events: none; z-index: 1; -webkit-mask-image: linear-gradient(to top, transparent, #000 40%); mask-image: linear-gradient(to top, transparent, #000 40%); }
.steam path { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)); opacity: 0; animation: steam 5.5s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.8s; }
.steam path:nth-child(3) { animation-delay: 3.6s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(40px) scaleY(0.8); }
  30% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(-30px) scaleY(1.1); }
}
model-viewer { width: 100%; height: 100%; --poster-color: transparent; --progress-bar-color: var(--terra); --progress-bar-height: 3px; background: transparent; }
.drag-hint { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); font-weight: 700; font-size: 12.5px; color: var(--dim); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(250, 246, 239, 0.8); white-space: nowrap; transition: opacity .4s; pointer-events: none; }
.stage.touched .drag-hint { opacity: 0; }

/* the signature: a curl of steam that draws itself between the hero and the story */
.curl { display: block; width: 100%; height: 140px; }
.curl path { fill: none; stroke: var(--terra); stroke-width: 1.6; stroke-linecap: round; opacity: 0.55; }

.story { position: relative; height: 300vh; }
.story-sticky { position: sticky; top: 70px; height: calc(100svh - 70px); display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.story-model { height: 100%; }
.story-steps { position: relative; height: 60%; padding: 0 var(--pad) 0 clamp(20px, 3vw, 56px); }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.step.on { opacity: 1; transform: none; }
.step .num { font-family: var(--display); font-style: italic; color: var(--terra); font-size: 22px; margin-bottom: 10px; }
.step h3 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.4vw, 54px); line-height: 1.05; margin: 0 0 16px; }
.step p { color: var(--dim); max-width: 38ch; font-size: 17px; margin: 0; }
.progress { display: flex; gap: 8px; margin-top: 30px; }
.progress i { width: 36px; height: 3px; border-radius: 3px; background: var(--line); transition: background .3s; }
.progress i.on { background: var(--terra); }

.section { padding: clamp(80px, 10vw, 140px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.sec-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4vw, 62px); line-height: 1; margin: 0; }
.tabs { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px; }
.tab { border: 0; background: none; border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 14.5px; color: var(--dim); transition: background .25s, color .25s; }
.tab[aria-selected='true'] { background: var(--ink); color: var(--panel); }
.menu { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.feature { position: sticky; top: 100px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .35s ease; }
.feature .cap { padding: 18px 22px 22px; }
.feature .cap b { font-family: var(--display); font-weight: 500; font-size: 24px; display: block; }
.feature .cap span { color: var(--dim); }
.items { display: grid; }
.item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); cursor: default; }
.item:first-child { border-top: 1px solid var(--line); }
.item h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 21px; }
.item p { margin: 3px 0 0; color: var(--dim); font-size: 14.5px; }
.item .price { font-weight: 800; white-space: nowrap; }
.add { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(43, 32, 25, 0.25); background: none; font-size: 20px; line-height: 1; transition: background .2s, color .2s, border-color .2s; }
.add:hover { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.add.done { background: var(--sage); color: #fff; border-color: var(--sage); }

.visit { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.visit img { border-radius: var(--radius); aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.visit h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.05; margin: 0 0 18px; }
.visit dl { display: grid; gap: 14px; margin: 26px 0 0; }
.visit dt { font-weight: 800; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.visit dd { margin: 2px 0 0; font-size: 17px; }
.note { font-size: 13.5px; color: var(--faint); }

.overlay { position: fixed; inset: 0; background: rgba(43, 32, 25, 0.35); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 70; top: 0; right: 0; height: 100%; width: min(440px, 100vw); background: var(--panel); border-left: 1px solid var(--line); transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer h3 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 26px; }
.close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; font-size: 20px; }
.lines { flex: 1; overflow: auto; padding: 6px 24px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .t { font-weight: 800; }
.line .s { color: var(--faint); font-size: 14px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; }
.drawer footer { padding: 20px 24px 26px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.times { display: flex; gap: 8px; flex-wrap: wrap; }
.time { border: 1.5px solid var(--line); background: none; border-radius: 999px; padding: 9px 14px; font-weight: 800; font-size: 14px; }
.time[aria-pressed='true'] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; }
.field { width: 100%; background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 13px 15px; color: var(--ink); font: inherit; }
.field:focus { outline: none; border-color: var(--terra); }
.empty { color: var(--faint); padding: 40px 0; text-align: center; }
.ok { text-align: center; padding: 36px 6px; }
.ok b { display: block; font-family: var(--display); font-weight: 500; font-size: 28px; margin-bottom: 10px; }

.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer .wrap { display: grid; gap: 22px; }
.made { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.made p { margin: 0; font-weight: 700; }
.demo { color: var(--dim); font-size: 14px; max-width: 72ch; margin: 0; }

/* entrances: each block has its own way in */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.rise.in { opacity: 1; transform: none; }
.fade-left { opacity: 0; transform: translateX(-28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1); }
.fade-left.in { opacity: 1; transform: none; }
.unfold { clip-path: inset(0 0 100% 0 round 24px); transition: clip-path 1.2s cubic-bezier(.2,.8,.2,1); }
.unfold.in { clip-path: inset(0 0 0 0 round 24px); }

@media (max-width: 960px) {
  .nav { display: none; }
  .header .wrap { justify-content: space-between; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .stage { height: 50svh; order: -1; }
  .story { height: auto; }
  .story-sticky { position: relative; top: 0; height: auto; grid-template-columns: 1fr; }
  .story-model { height: 44svh; }
  .story-steps { height: auto; padding: 0 var(--pad) 30px; display: grid; gap: 34px; }
  .step { position: relative; opacity: 1; transform: none; }
  .progress { display: none; }
  .menu { grid-template-columns: 1fr; }
  .feature { position: relative; top: 0; }
  .feature img { aspect-ratio: 16/10; }
  .visit { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header .wrap { gap: 10px; }
  .langs button { padding: 8px 5px; }
  .order-btn { padding: 9px 12px; }
  .order-btn span { display: none; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab { padding: 10px 12px; font-size: 13.5px; }
  .item h3 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rise, .fade-left { opacity: 1; transform: none; }
  .unfold { clip-path: none; }
  .steam { display: none; }
}
