/* ==========================================================================
   Anyday Twist Cafe: home page
   1 Hero  2 Section scaffolding  3 Signature  4 Cones  5 Savoury  6 Combos
   7 Live counter  8 Loyalty  9 Visit  10 Responsive  11 Reduced motion
   ========================================================================== */

/* 1. Hero ---------------------------------------------------------------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: 6.5rem; background: var(--roast-deep); }
.hero__bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; transform: scale(1.04); animation: settle 2.4s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(27, 15, 10, 0.94) 0%, rgba(27, 15, 10, 0.74) 40%, rgba(27, 15, 10, 0.18) 78%),
  linear-gradient(180deg, rgba(27, 15, 10, 0.6) 0%, transparent 32%, rgba(27, 15, 10, 0.9) 100%); }
.hero__glow { position: absolute; z-index: -1; right: -12%; bottom: -30%; width: min(70vw, 900px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242, 154, 61, 0.38), transparent 62%); filter: blur(20px); pointer-events: none; }

.hero__inner { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-block: 2rem 2.5rem; }

.live-tag { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.5rem 1rem 0.5rem 0.85rem; border-radius: 999px; font-size: 0.95rem; font-weight: 550; }
.live-dot { width: 0.7rem; height: 0.7rem; flex: none; border-radius: 50%; background: #FFB45A; box-shadow: 0 0 0 0 rgba(255, 180, 90, 0.7); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255, 180, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 180, 90, 0); } }

.hero__title { margin-top: 1.5rem; font-weight: 800; font-stretch: 75%; font-size: clamp(4.2rem, 12.5vw, 10.5rem); line-height: 0.84; letter-spacing: -0.012em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(108%); animation: rise 1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero__lede { margin-top: 1.75rem; max-width: 36rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--on-dark-muted); opacity: 0; animation: fade 0.8s 0.55s var(--ease) forwards; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1rem; opacity: 0; animation: fade 0.8s 0.7s var(--ease) forwards; }
@keyframes fade { to { opacity: 1; } }

.hero__cards { position: relative; justify-self: end; width: min(100%, 22rem); opacity: 0; animation: fade 1s 0.4s var(--ease) forwards; }
.pick { padding: 0.7rem; border-radius: 34px; }
.pick__photo { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-radius: 26px; }
.pick__body { padding: 0.9rem 0.6rem 0.4rem; display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: center; }
.pick__tag { grid-column: 1 / -1; font-size: 0.9rem; color: var(--on-dark-muted); }
.pick__name { font-size: 1.6rem; font-weight: 740; font-stretch: 85%; line-height: 1.1; letter-spacing: -0.01em; }
.pick__price { font-size: 1.5rem; font-weight: 700; font-stretch: 85%; }
.pick .btn { grid-column: 1 / -1; margin-top: 0.7rem; }
.chip { position: absolute; left: -3.25rem; top: 2.25rem; display: flex; align-items: center; gap: 0.7rem; padding: 0.8rem 1.1rem; border-radius: 22px 22px 22px 6px; line-height: 1.3; }
.chip strong { display: block; font-weight: 650; }
.chip span { display: block; font-size: 0.85rem; color: var(--on-dark-muted); }
.chip .icon { color: var(--caramel); width: 1.5rem; height: 1.5rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem 1.5rem; margin-bottom: 1.75rem; padding: 1.1rem 1.75rem; border-radius: 28px; }
.stats li { line-height: 1.35; color: var(--on-dark-muted); }
.stats strong { display: block; font-size: 1.4rem; font-weight: 720; font-stretch: 85%; color: var(--on-dark); letter-spacing: -0.01em; }

/* 2. Section scaffolding ------------------------------------------------- */
.section { position: relative; isolation: isolate; overflow: hidden; padding-block: var(--section-pad); }
.section__bg { position: absolute; z-index: -2; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(34px) saturate(1.35) brightness(0.6); }
.section__tint { position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(27, 15, 10, 0.9), rgba(56, 35, 28, 0.8) 55%, rgba(27, 15, 10, 0.92)); }
.section--light { background: var(--crumb); color: var(--on-light); }
.section--plain { background: linear-gradient(180deg, #1B0F0A, #38231C 50%, #1B0F0A); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head__text { max-width: 44rem; }
.section-head h2, .counter h2, .loyalty h2, .visit h2 { font-weight: 780; font-stretch: 78%; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.018em; text-wrap: balance; }
.section-head p { margin-top: 0.9rem; max-width: 46ch; font-size: 1.15rem; color: var(--on-dark-muted); }
.section--light .section-head p { color: var(--on-light-muted); }

.mini-btn { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.35rem 0.95rem; border-radius: 999px; background: var(--caramel); color: var(--roast-deep); font-size: 0.9rem; font-weight: 650; text-decoration: none; transition: background-color 0.2s, transform 0.2s var(--ease); }
.mini-btn:hover { background: #E0BA80; transform: translateY(-1px); }
.star-tag { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--caramel); }
.star-tag svg { width: 0.95rem; height: 0.95rem; }

/* 3. Signature: a big card and four small ones --------------------------- */
.sig__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(18.5rem, 1fr)); gap: 1.1rem; }
.card { position: relative; isolation: isolate; overflow: hidden; border-radius: 30px; min-height: 18.5rem; }
.card--xl { grid-column: span 2; grid-row: span 2; border-radius: 44px 44px 44px 14px; }
.card > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover > img { transform: scale(1.06); }
.card__glass { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; align-items: center; padding: 0.95rem 1.1rem; border-radius: 22px; background: linear-gradient(145deg, rgba(27, 15, 10, 0.55), rgba(27, 15, 10, 0.3)); }
.card__name { font-size: 1.4rem; font-weight: 720; font-stretch: 85%; line-height: 1.1; letter-spacing: -0.01em; }
.card--xl .card__name { font-size: clamp(1.8rem, 3vw, 2.5rem); font-stretch: 80%; }
.card__price { font-size: 1.35rem; font-weight: 700; font-stretch: 85%; }
.card__desc { grid-column: 1 / -1; font-size: 0.95rem; line-height: 1.4; color: var(--on-dark-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.45rem; }
.card__more { font-size: 0.9rem; font-weight: 600; color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-color: rgba(255, 255, 255, 0.4); }
.card__more:hover { color: var(--on-dark); }
.card:not(.card--xl) .card__more { display: none; }

/* 4. Cones: arched photos on a scroll rail ------------------------------- */
.rail-controls { display: flex; gap: 0.6rem; }
.round { width: 3.25rem; height: 3.25rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.12); color: var(--on-dark); font-size: 1.4rem; line-height: 1; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color 0.2s, transform 0.15s, opacity 0.2s; }
.round:hover:not(:disabled) { background: rgba(255, 255, 255, 0.24); }
.round:active:not(:disabled) { transform: scale(0.94); }
.round:disabled { opacity: 0.35; cursor: not-allowed; }

.rail { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0.5rem var(--gutter) 1.75rem; margin-inline: calc(var(--gutter) * -1); scroll-padding-inline: var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.cone { flex: 0 0 min(76vw, 18.5rem); scroll-snap-align: start; display: flex; flex-direction: column; padding: 0.65rem; border-radius: 170px 170px 32px 32px; }
.cone__photo { aspect-ratio: 3 / 3.6; width: 100%; object-fit: cover; border-radius: 160px 160px 22px 22px; }
.cone__body { display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 0.75rem; align-items: baseline; padding: 1rem 0.65rem 0.5rem; }
.cone__name { font-size: 1.35rem; font-weight: 720; font-stretch: 85%; line-height: 1.1; }
.cone__price { font-size: 1.3rem; font-weight: 700; font-stretch: 85%; }
.cone__desc { grid-column: 1 / -1; margin-top: 0.3rem; font-size: 0.95rem; line-height: 1.4; color: var(--on-dark-muted); }
.cone__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.8rem; }

/* 5. Savoury (cream section, staggered) ---------------------------------- */
.sav__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
.sav__item:nth-child(2) { margin-top: 3rem; }
.sav__photo { position: relative; border-radius: 34px 34px 34px 10px; overflow: hidden; }
.sav__photo img { aspect-ratio: 5 / 4.4; width: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.sav__item:hover .sav__photo img { transform: scale(1.05); }
.sav__badge { position: absolute; top: 0.85rem; left: 0.85rem; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 700; font-stretch: 88%; }
.sav__badge .star-tag { color: #8A5F1E; }
.sav__text { padding: 1.1rem 0.4rem 0; }
.sav__text h3 { font-size: 1.7rem; font-weight: 740; font-stretch: 85%; line-height: 1.1; letter-spacing: -0.01em; }
.sav__text p { margin-top: 0.4rem; max-width: 34ch; color: var(--on-light-muted); }
.sav__text .btn { margin-top: 1rem; }

/* 6. Combos -------------------------------------------------------------- */
.combos { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.25rem; }
.combo { position: relative; isolation: isolate; overflow: hidden; min-height: 27rem; display: flex; align-items: flex-end; padding: 0.85rem; border-radius: 40px; }
.combo:nth-child(2) { border-radius: 40px 40px 14px 40px; }
.combo > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.combo__glass { width: 100%; padding: 1.5rem 1.6rem; border-radius: 28px; background: linear-gradient(145deg, rgba(27, 15, 10, 0.6), rgba(27, 15, 10, 0.35)); }
.combo__deal { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 800; font-stretch: 76%; line-height: 0.95; letter-spacing: -0.015em; color: var(--caramel); }
.combo__text { margin-top: 0.5rem; font-size: 1.2rem; line-height: 1.35; max-width: 26ch; }
.combo__text strong { font-weight: 650; }
.combo .btn { margin-top: 1.1rem; }

/* 7. Live counter: photo collage ----------------------------------------- */
.counter__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.counter__copy p { margin-top: 1.25rem; max-width: 38ch; font-size: 1.15rem; color: var(--on-dark-muted); }
.counter__copy .btn { margin-top: 2rem; }
.collage { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(12, 2.4rem); gap: 0.9rem; }
.collage figure { position: relative; isolation: isolate; overflow: hidden; }
.collage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.collage figcaption { position: absolute; left: 0.65rem; bottom: 0.65rem; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.9rem; font-weight: 550; }
.collage__a { grid-column: 1 / 8; grid-row: 1 / 9; border-radius: 40px 40px 40px 12px; }
.collage__b { grid-column: 8 / 13; grid-row: 3 / 9; border-radius: 28px; }
.collage__c { grid-column: 4 / 11; grid-row: 9 / 13; border-radius: 12px 36px 36px 36px; }

/* 8. Loyalty ------------------------------------------------------------- */
.loyalty { background: linear-gradient(160deg, #1B0F0A, #38231C 70%); }
.loyalty__glow { position: absolute; z-index: -1; right: -8%; top: 8%; width: min(54vw, 740px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242, 154, 61, 0.3), transparent 66%); filter: blur(22px); pointer-events: none; }
.loyalty__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.loyalty__copy p { margin-top: 1.25rem; max-width: 40ch; font-size: 1.15rem; color: var(--on-dark-muted); }
.loyalty__copy .loyalty__hint { margin-top: 2rem; font-size: 1rem; color: var(--caramel); font-weight: 600; }

.dial { justify-self: center; width: min(100%, 24rem); padding: 2rem 1.75rem 1.75rem; border-radius: 48px; }
.dial__ring { position: relative; width: min(100%, 16.5rem); margin-inline: auto; aspect-ratio: 1; }
.dial__ring svg { width: 100%; height: 100%; overflow: visible; }
.dial__track, .dial__fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.dial__track { stroke: rgba(255, 255, 255, 0.16); }
.dial__fill { stroke: var(--caramel); stroke-dasharray: 100; stroke-dashoffset: var(--off, 60); transition: stroke-dashoffset 0.5s var(--ease); filter: drop-shadow(0 0 8px rgba(201, 160, 97, 0.5)); }
.dial__knob { fill: #fff; stroke: var(--ember); stroke-width: 3; transition: cx 0.5s var(--ease), cy 0.5s var(--ease); filter: drop-shadow(0 0 8px rgba(242, 154, 61, 0.8)); }
.dial__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 0.4rem; }
.dial__count { display: block; font-size: 5rem; font-weight: 750; font-stretch: 78%; line-height: 1; letter-spacing: -0.03em; }
.dial__of { font-size: 0.95rem; color: var(--on-dark-muted); }
.dial__controls { margin-top: 0.5rem; display: grid; grid-template-columns: 3.25rem 1fr 3.25rem; align-items: center; gap: 0.75rem; }
.dial__msg { text-align: center; font-weight: 600; line-height: 1.3; }
.dots { margin-top: 1.4rem; display: flex; justify-content: center; gap: 0.5rem; }
.dots li { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255, 255, 255, 0.22); transition: background-color 0.3s, transform 0.3s var(--ease); }
.dots li.is-on { background: var(--caramel); }
.dots li:last-child { outline: 2px solid rgba(201, 160, 97, 0.7); outline-offset: 2px; }
.dots li:last-child.is-on { background: #FFD58A; transform: scale(1.25); }

/* 9. Visit --------------------------------------------------------------- */
.visit__panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.5rem, 4vw, 3rem); border-radius: 48px 48px 48px 14px; }
.visit__copy > p { margin-top: 1.1rem; max-width: 42ch; font-size: 1.1rem; color: var(--on-dark-muted); }
.facts { margin-top: 1.75rem; }
.facts > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 0.85rem 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.facts > div:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.facts dt { font-weight: 600; color: var(--on-dark-muted); }
.facts dd { font-weight: 550; overflow-wrap: anywhere; }
.facts a { text-decoration-color: var(--caramel); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.visit__actions { display: grid; align-content: center; gap: 0.85rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 32px; background: rgba(27, 15, 10, 0.4); border: 1px solid rgba(255, 255, 255, 0.14); }
.visit__actions h3 { margin-bottom: 0.4rem; font-size: 1.7rem; font-weight: 750; font-stretch: 82%; line-height: 1.1; }

/* 10. Responsive --------------------------------------------------------- */
@media (max-width: 1050px) {
  .sig__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; }
  .card--xl { grid-column: span 2; grid-row: auto; min-height: 30rem; }
  .combos { grid-template-columns: 1fr; }
  .counter__grid, .loyalty__grid, .visit__panel { grid-template-columns: 1fr; }
  .collage { grid-template-rows: repeat(12, 2rem); }
}
@media (max-width: 920px) {
  .hero { padding-top: 6rem; }
  .hero__inner { grid-template-columns: 1fr; padding-block: 1rem 2rem; }
  .hero__cards { justify-self: start; width: min(100%, 21rem); margin-top: 0.5rem; }
  .chip { left: auto; right: -0.5rem; top: 1.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sav__grid { grid-template-columns: 1fr; }
  .sav__item:nth-child(2) { margin-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero__title { font-size: clamp(3.8rem, 21vw, 5.5rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions .textlink { margin-inline: auto; }
  .sig__grid { grid-template-columns: 1fr; }
  .card--xl { grid-column: auto; min-height: 26rem; }
  .card { min-height: 20rem; }
  .facts > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .combo { min-height: 24rem; }
  .rail-controls { display: none; }
  .collage { grid-template-rows: repeat(12, 1.6rem); gap: 0.6rem; }
}

/* 11. Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__bg { animation: none; transform: none; }
  .hero__title .line > span { animation: none; transform: none; }
  .hero__lede, .hero__actions, .hero__cards { animation: none; opacity: 1; }
  .live-dot { animation: none; }
  .card > img, .sav__photo img, .dial__fill, .dial__knob { transition: none; }
}
