/* ================= shared section frame ================= */
.section { padding: 72px 0; }
.section--sand { position: relative; background: var(--sand); }
.section--sky { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #e6f3fb 100%); }
.section__head { display: grid; justify-items: start; gap: 14px; max-width: 40rem; }
.section__head h2 { font-size: clamp(2rem, 7.4vw, 3.1rem); }
.section__head > p:not(.eyebrow) { font-size: 1.08rem; color: var(--ink-2); }
.section__head--center { justify-items: center; margin-inline: auto; text-align: center; }
.section__cta { display: grid; justify-items: center; gap: 12px; margin-top: 40px; text-align: center; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

/* ================= features ================= */
.features { position: relative; padding: 8px 0 72px; }
.features__grid { display: grid; gap: 14px; }
.feature {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; align-items: start; align-content: start;
  padding: 20px; border-radius: var(--r-md); background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.feature__icon { grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.feature__icon .icon { width: 26px; height: 26px; }
.feature__icon--terra { color: var(--terra-deep); background: var(--terra-tint); }
.feature__icon--sun { color: #7a5200; background: var(--sun-tint); }
.feature__icon--sky { color: var(--sky-ink); background: var(--sky); }
.feature__icon--green { color: var(--open-ink); background: var(--open-tint); }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-2); font-size: 0.97rem; }
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) {
  .features { padding-bottom: 96px; }
  .features__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .feature { grid-template-columns: 1fr; row-gap: 8px; padding: 26px 24px 28px; }
  .feature__icon { grid-row: auto; margin-bottom: 10px; }
}

/* ================= steps ================= */
.steps { position: relative; display: grid; gap: 16px; margin-top: 44px; counter-reset: none; }
.step {
  position: relative; display: grid; justify-items: start; gap: 10px;
  padding: 28px 24px 26px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--shadow-md);
}
.step__num {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--sun);
  -webkit-text-stroke: 1.5px var(--terra-deep);
}
.step__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: #fff; background: var(--terra); }
.step__icon .icon { width: 26px; height: 26px; }
.step h3 { margin-top: 6px; font-size: 1.4rem; }
.step p { color: var(--ink-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .steps::before { /* dashed route linking the three steps */
    content: ''; position: absolute; z-index: 0; top: 56px; left: 16%; right: 16%; height: 0;
    border-top: 2px dashed rgba(142, 58, 34, 0.35);
  }
  .step { z-index: 1; padding: 32px 28px 30px; }
}

/* ================= store ================= */
.store { display: grid; gap: 40px; }
.store__copy { display: grid; justify-items: start; gap: 16px; }
.store__copy h2 { font-size: clamp(2rem, 7.4vw, 3rem); }
.store__copy > p:not(.eyebrow) { font-size: 1.08rem; color: var(--ink-2); max-width: 34rem; }
.ticks { display: grid; gap: 10px; margin: 4px 0 8px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks .icon { width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%; color: #fff; background: var(--open-ink); }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shot { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--sand); box-shadow: var(--shadow-md); }
.shot img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shot::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(43, 33, 24, 0.08); pointer-events: none; }
.shot--lead { grid-column: 1 / -1; }
.shot figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 11px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 800; background: rgba(255, 253, 248, 0.94); box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .store { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; gap: 64px; }
  .gallery { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px; }
  .shot--lead { grid-column: 1; grid-row: 1 / span 2; }
  .shot--lead img { aspect-ratio: auto; }
  .shot figcaption { left: 12px; bottom: 12px; font-size: 0.86rem; }
}

/* ================= service area ================= */
.area { display: grid; gap: 20px; margin-top: 40px; }
.area__cards { display: grid; gap: 16px; }
.area-card {
  position: relative; display: grid; justify-items: start; gap: 8px;
  padding: 24px; border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-md);
  border: 2px solid transparent; transition: border-color 200ms;
}
.area-card.is-current { border-color: var(--terra); }
.area-card.is-current::before {
  content: 'Senin mahallen'; position: absolute; top: -12px; right: 18px; padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 800; color: #fff; background: var(--terra);
}
.area-card__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky-ink); }
.area-card__tag .icon { width: 16px; height: 16px; }
.area-card h3 { font-family: var(--display); font-weight: 400; font-size: 2rem; line-height: 1.1; }
.area-card p:not(.area-card__tag) { color: var(--ink-2); }

.map {
  position: relative; min-height: 380px; overflow: hidden; border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-lg); border: 6px solid var(--paper);
}
.map__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; border-radius: 20px;
  background:
    /* stylized streets, decorative only */
    linear-gradient(115deg, transparent 47%, rgba(255, 255, 255, 0.9) 47%, rgba(255, 255, 255, 0.9) 51%, transparent 51%),
    linear-gradient(25deg, transparent 62%, rgba(255, 255, 255, 0.75) 62%, rgba(255, 255, 255, 0.75) 64.5%, transparent 64.5%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(31, 93, 134, 0.08) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(31, 93, 134, 0.08) 46px 48px),
    #e9f1e6;
}
.map__card {
  display: grid; justify-items: center; gap: 8px; max-width: 340px; padding: 24px 22px 20px;
  border-radius: var(--r-md); background: var(--paper); box-shadow: var(--shadow-md); text-align: center;
}
.map__pin { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -50px; border-radius: 50%; color: #fff; background: var(--terra); box-shadow: 0 0 0 6px var(--paper), var(--shadow-md); }
.map__pin .icon { width: 26px; height: 26px; }
.map__name { margin-top: 6px; font-weight: 800; font-size: 1.15rem; }
.map__addr { color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.map__card .btn { margin-top: 8px; }
.map__note { font-size: 0.85rem; color: var(--ink-2); }
.map__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 20px; }
@media (min-width: 900px) {
  .area { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; }
  .map { min-height: 460px; }
}

/* ================= FAQ ================= */
.faq { display: grid; gap: 36px; }
.faq__head .btn { margin-top: 6px; }
.faq__list { display: grid; gap: 12px; }
.qa { border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 16px 20px; border-radius: var(--r-md);
  font-weight: 800; font-size: 1.06rem; cursor: pointer; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { /* plus that turns into a minus */
  content: ''; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background:
    linear-gradient(var(--terra-deep), var(--terra-deep)) center / 12px 2px no-repeat,
    linear-gradient(var(--terra-deep), var(--terra-deep)) center / 2px 12px no-repeat,
    var(--terra-tint);
  transition: transform 220ms ease-out;
}
.qa[open] summary::after {
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    var(--terra);
  transform: rotate(180deg);
}
.qa summary:hover { color: var(--terra-deep); }
.qa__a { padding: 0 20px 20px; color: var(--ink-2); }
@media (min-width: 900px) {
  .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ================= CTA band ================= */
.cta-band {
  position: relative; overflow: hidden; padding: 64px 0; color: var(--cream);
  background:
    radial-gradient(260px 260px at 92% 18%, rgba(255, 201, 60, 0.32), transparent 70%),
    radial-gradient(420px 260px at 4% 110%, rgba(43, 33, 24, 0.28), transparent 70%),
    var(--terra);
}
.cta-band__in { position: relative; display: grid; gap: 28px; justify-items: start; }
.cta-band h2 { font-size: clamp(2.1rem, 8vw, 3.4rem); }
.cta-band p { margin-top: 10px; font-size: 1.1rem; font-weight: 600; }
.cta-band :focus-visible { outline-color: var(--cream); }
@media (min-width: 900px) {
  .cta-band { padding: 80px 0; }
  .cta-band__in { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; }
}

/* ================= footer ================= */
.footer { background: var(--ink); color: #d9c9b4; }
.footer :focus-visible { outline-color: var(--sun); }
.footer__grid { display: grid; gap: 40px; padding-block: 48px 48px; }
.footer__brand { display: grid; justify-items: start; gap: 18px; max-width: 22rem; }
.footer__brand p { line-height: 1.6; }
.footer__h { font-family: var(--text); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); line-height: 1.2; }
.footer__col { display: grid; align-content: start; gap: 16px; }
.footer__links { display: grid; gap: 4px; }
.footer__links a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.footer__links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 4px; }
.footer__areas li { display: flex; align-items: center; gap: 10px; min-height: 32px; font-weight: 700; color: var(--paper); }
.footer__areas li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.5; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--sun); }
.footer__tel { font-weight: 800; font-size: 1.1rem; color: var(--paper); text-decoration: none; font-variant-numeric: tabular-nums; }
.footer__tel:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__small { font-size: 0.92rem; }
.footer__map { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 800; color: var(--paper); text-decoration: underline; text-decoration-color: rgba(255, 201, 60, 0.6); text-underline-offset: 4px; }
.footer__map .icon { width: 16px; height: 16px; }
.footer__bottom { border-top: 1px solid rgba(255, 253, 248, 0.12); }
.footer__bottom-in { display: grid; gap: 8px; padding-block: 22px 26px; font-size: 0.85rem; color: #c6b49d; }
.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.footer__brand, .footer__col--contact { grid-column: 1 / -1; }
@media (min-width: 640px) and (max-width: 1023.98px) { .footer__col--contact { grid-column: auto; } }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 56px 56px; }
  .footer__brand, .footer__col--contact { grid-column: auto; }
  .footer__bottom-in { grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: start; }
  .footer__privacy { max-width: 46rem; justify-self: end; text-align: right; }
}

/* ================= section rhythm: awning scallops and a soft wave ================= */
main { overflow-x: clip; } /* the tilted marquee may not widen the page */
.section--sand::before, .cta-band::before { /* shop-awning scallops sitting on the section above */
  content: ''; position: absolute; left: 0; right: 0; top: -13px; height: 14px; pointer-events: none;
  background: radial-gradient(14px at 50% 100%, var(--scallop) 97%, transparent) 0 0 / 28px 14px repeat-x;
}
.section--sand { --scallop: var(--sand); }
.cta-band { --scallop: var(--terra); }
.section--sky::before { /* gentle sea-breeze wave */
  content: ''; position: absolute; left: 0; right: 0; top: -31px; height: 32px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 32' preserveAspectRatio='none'%3E%3Cpath d='M0 32V18C150 2 300 2 450 14s300 18 450 4 220-16 300-6v22z' fill='%23d6ecf8'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* ================= hover micro-interactions (pointer devices only) ================= */
@media (hover: hover) {
  .feature:hover, .step:hover, .area-card:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-md); }
  .step:hover, .area-card:hover { box-shadow: var(--shadow-lg); }
  .feature__icon, .step__icon { transition: transform 200ms ease-out; }
  .feature:hover .feature__icon, .step:hover .step__icon { transform: rotate(-6deg) scale(1.06); }
  .shot img { transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1); }
  .shot:hover img { transform: scale(1.04); }
  .qa { transition: box-shadow 200ms ease-out; }
  .qa:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-md); }
}
.feature:focus-within, .area-card:focus-within { box-shadow: inset 0 0 0 2px var(--terra), var(--shadow-md); }

.store__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ================= marquee (moves with the page scroll, never on its own) ================= */
.marquee {
  overflow: hidden; margin-block: 8px 0; padding: 14px 0; rotate: -1.5deg; width: 104%; margin-inline: -2%;
  background: var(--ink); color: var(--sun); box-shadow: 0 14px 30px -18px rgba(43, 33, 24, 0.6);
}
.marquee__track { display: flex; width: max-content; font-family: var(--display); font-size: clamp(1.25rem, 3.4vw, 1.75rem); line-height: 1.2; white-space: nowrap; }
.marquee__track span { display: inline-flex; align-items: center; }
.marquee__track span:nth-child(3n + 2) { color: var(--paper); }
.marquee__track span::after { content: ''; width: 9px; height: 9px; margin-inline: 22px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 3px rgba(185, 71, 42, 0.35); }
@supports (animation-timeline: view()) {
  .marquee__track { animation: marquee linear both; animation-timeline: view(); }
  @keyframes marquee { from { transform: translateX(-4%); } to { transform: translateX(-36%); } }
}

/* ================= delivery band: the courier between the two neighbourhoods ================= */
.ride { position: relative; padding-top: 80px; background: linear-gradient(180deg, var(--cream) 0%, var(--sky) 34%, #e7f4fc 100%); }
.ride__copy { display: grid; justify-items: center; gap: 14px; max-width: calc(46rem + var(--gutter) * 2); text-align: center; }
.ride h2 { font-size: clamp(2.5rem, 10vw, 4.4rem); }
.ride h2 em { font-style: normal; color: var(--terra); }
.ride__copy > p:not(.eyebrow) { max-width: 36rem; font-size: 1.1rem; color: var(--ink-2); }
.ride__copy .btn { margin-top: 10px; }

.ride__scene {
  --cw: 132px; /* --start / --end (ride endpoints) are measured from the signs in ui.js */
  position: relative; height: 236px; margin-top: 28px; overflow: hidden; container-type: inline-size;
}
.ride__sun { position: absolute; top: 16px; right: 14%; width: 58px; height: 58px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 12px rgba(255, 240, 194, 0.7); }
.ride__city { position: absolute; left: 0; bottom: 60px; width: 100%; height: 118px; }
.ride__road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62px;
  background: linear-gradient(var(--sand) 0 7px, #8a7a68 7px 9px, #3a2e24 9px);
}
.ride__road::after { /* centre line */
  content: ''; position: absolute; left: 0; right: 0; top: 33px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--sun) 0 26px, transparent 26px 50px);
}
.ride__sign { position: absolute; z-index: 1; bottom: 58px; display: grid; justify-items: center; }
.ride__sign span {
  padding: 5px 11px; border-radius: 6px; font-weight: 800; font-size: 0.86rem; line-height: 1.2; color: #fff;
  background: var(--sky-ink); box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--sky-ink), 0 6px 12px -6px rgba(43, 33, 24, 0.5);
}
.ride__sign::after { content: ''; width: 5px; height: 46px; border-radius: 3px; background: #7d7f84; }
.ride__sign--from { left: 3%; }
.ride__sign--to { right: 3%; }

.ride__mover { position: absolute; z-index: 2; left: 0; bottom: 16px; width: var(--cw); translate: calc(50cqw - var(--cw) / 2) 0; }
.ride__courier { display: block; width: 100%; height: auto; overflow: visible; }
.ride__lines, .ride__body { transform-box: fill-box; }
.ride__lines { transform-origin: right center; transform: scaleX(0); }
.ride__scene.is-armed .ride__mover { translate: var(--start) 0; }
.ride__scene.is-riding .ride__mover { animation: ride 4.2s cubic-bezier(0.55, 0, 0.3, 1) forwards; }
.ride__scene.is-riding .ride__body { animation: bob 0.3s ease-in-out 14 alternate; }
.ride__scene.is-riding .ride__lines { animation: lines 4.2s ease-in-out forwards; }
@keyframes ride { from { translate: var(--start) 0; } to { translate: var(--end) 0; } }
@keyframes bob { to { transform: translateY(-2px); } }
@keyframes lines { 12%, 78% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

@media (min-width: 768px) {
  .ride { padding-top: 104px; }
  .ride__scene { --cw: 230px; height: 340px; margin-top: 40px; }
  .ride__sun { width: 76px; height: 76px; }
  .ride__city { height: 170px; bottom: 62px; }
  .ride__sign span { padding: 7px 14px; font-size: 1.02rem; }
  .ride__sign::after { height: 70px; }
  .ride__sign--from { left: 6%; }
  .ride__sign--to { right: 6%; }
}

/* ================= footer: slogan line + back to top ================= */
.footer__top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-block: 64px 40px; border-bottom: 1px solid rgba(255, 253, 248, 0.12);
}
.footer__slogan { max-width: 15ch; font-family: var(--display); font-size: clamp(2.1rem, 7vw, 4.2rem); line-height: 1.05; color: var(--paper); text-wrap: balance; }
.footer__slogan em { font-style: normal; color: var(--sun); }
.totop {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 8px; border-radius: 999px;
  font-weight: 800; text-decoration: none; color: var(--ink); background: var(--sun);
  transition: transform 160ms ease-out;
}
.totop .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(43, 33, 24, 0.12); transition: transform 200ms ease-out; }
.totop:hover .icon { transform: translateY(-3px); }
.totop:active { transform: scale(0.97); }
@media (min-width: 1024px) { .footer__top { padding-block: 80px 48px; } }
