/* ==========================================================================
   Mielo — Home page sections
   1. Hero  2. Editorial split (About / Food & Drinks)  3. Locations
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero__media {
  position: absolute;
  /* slack must exceed the maximum parallax shift, or the edge shows through */
  inset: -12% 0;
  will-change: transform;
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transform: scale(1.08);
  animation: hero-zoom 14s var(--ease-out) forwards;
}

/* YouTube hero: iframe object-fit kullanamaz; 16:9 kutuyu alani kaplayacak
   kadar buyutup ortaliyoruz (yanlar tasar, kirpilir). */
.hero__media iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 tersi */
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(16, 24, 19, 0.6) 0%,
      rgba(16, 24, 19, 0.28) 40%,
      rgba(16, 24, 19, 0.55) 100%
    ),
    radial-gradient(
      100% 70% at 50% 50%,
      rgba(16, 24, 19, 0.22) 0%,
      rgba(16, 24, 19, 0.5) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: var(--header-h);
  text-align: center;
}

.hero__title {
  /* Sized to break into two calm lines, as in the approved layout */
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.14;
  color: var(--paper);
  max-width: 26ch;
  margin-inline: auto;
  text-shadow: 0 2px 44px rgba(10, 16, 12, 0.4);
}

/* Panelden gelen alt baslik — basligin altinda kucuk punto */
.hero__lead {
  margin-top: 1rem;
  margin-inline: auto;
  max-width: 46ch;
  color: rgba(244, 242, 234, 0.82);
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  line-height: 1.6;
  text-shadow: 0 2px 30px rgba(10, 16, 12, 0.45);
}

.hero__actions {
  margin-top: clamp(2rem, 4vw, 3rem);
  justify-content: center;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 242, 234, 0.6);
  transition: opacity 0.4s var(--ease);
}

.hero__scroll::after {
  content: "";
  width: 1px;
  height: 48px;
  background: linear-gradient(
    to bottom,
    rgba(244, 242, 234, 0.7),
    rgba(244, 242, 234, 0)
  );
  animation: scroll-cue 2.4s var(--ease) infinite;
  transform-origin: top;
}

.hero__scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes hero-zoom {
  to {
    transform: scale(1);
  }
}

@keyframes scroll-cue {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  40% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   2. Editorial split — image bleeds to the page edge, text sits in the grid
   -------------------------------------------------------------------------- */
.editorial {
  /* how far the image sits in from the page edge, and from top/bottom */
  --editorial-inset-x: clamp(1.25rem, 4vw, 4rem);
  --editorial-inset-y: clamp(1.25rem, 3vw, 3rem);

  display: grid;
  align-items: stretch;
  background: var(--paper);
}

/* The image column is the narrower one in both directions — `order` alone
   would hand the media the wide column when it moves to the right. */
/* Prototipte 0.9fr idi; panelden gelen metin oradakinden uzun olduğu için
   metin sütununa biraz daha pay verildi (görsel sütunu bir miktar daraldı). */
.editorial--media-left {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
}

.editorial--media-right {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
}

.editorial__media {
  position: relative;
  min-height: clamp(320px, 40vw, 560px);
  /* Panel metni prototiptekinden uzun olabiliyor; align-items:stretch yuzunden
     gorsel de metin sutunu kadar uzuyordu. Ust sinir prototiptekiyle ayni. */
  max-height: clamp(320px, 40vw, 560px);
  align-self: center;
  margin-block: var(--editorial-inset-y);
  overflow: hidden;
  background: var(--paper-3);
}

.editorial__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial--media-left .editorial__media {
  margin-left: var(--editorial-inset-x);
}

.editorial--media-right .editorial__media {
  order: 2;
  margin-right: var(--editorial-inset-x);
}

.editorial__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  padding-inline: clamp(1.5rem, 5vw, 5.5rem);
}

/* Align the outer edge of the text column with the site container */
.editorial--media-left .editorial__body {
  padding-right: max(
    clamp(1.5rem, 5vw, 5.5rem),
    calc((100vw - var(--sbw, 0px) - var(--container)) / 2 + var(--gutter))
  );
}

.editorial--media-right .editorial__body {
  padding-left: max(
    clamp(1.5rem, 5vw, 5.5rem),
    calc((100vw - var(--sbw, 0px) - var(--container)) / 2 + var(--gutter))
  );
}

.editorial__body .h2 {
  margin-bottom: 0;
}

/* Prototipte 46ch idi; daha uzun CMS metninde satırlar çok kısa kalıyordu. */
.editorial__body p {
  max-width: 58ch;
}

.editorial__body p + p {
  margin-top: 1.1em;
}

.editorial__body .btn-group {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Locations bloğu sola dayalı: "Opening Soon" notu da solda kalsın */
.editorial__body .soon-note {
  margin-top: 1.4rem;
}

.editorial__body .soon-dal {
  margin-inline: 0;
}

/* --------------------------------------------------------------------------
   3. Locations
   -------------------------------------------------------------------------- */
.locations {
  background: var(--paper);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.locations__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.loc-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.loc-card .frame {
  aspect-ratio: 16 / 10;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
}

.loc-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-indent: 0.16em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

/* Kartta etiket adın hemen altına gelsin (adın 0.9rem alt boşluğu yutulur) */
.loc-card .soon-etiket {
  margin-top: -0.55rem;
}

.loc-card__addr {
  font-size: 0.95rem;
  color: var(--body);
  margin-bottom: 0.65rem;
}

.loc-card__hours {
  display: grid;
  gap: 0.25rem;
  /* Satirlar ayni hizada bassin: blok ortali, icerik sola dayali */
  justify-items: start;
  width: fit-content;
  margin-inline: auto;
  text-align: left;
  font-size: 0.92rem;
  color: var(--body);
}

.loc-card__hours-row {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* Gun adlari farkli genislikte; sabit sutun sayesinde ayrac ve saatler hizalanir */
.loc-card__hours-day {
  min-width: 5.2rem;
}

.loc-card__hours svg {
  color: var(--accent);
  flex: none;
}

.loc-card__hours-sep {
  color: var(--muted);
}

.loc-card__actions {
  margin-top: auto;
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.loc-card__actions .btn {
  flex: 1 1 160px;
  max-width: 220px;
}

/* --------------------------------------------------------------------------
   Dark band (Two Locations / reservations / group dining)
   -------------------------------------------------------------------------- */
.reserve {
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.reserve__media {
  position: absolute;
  inset: 0;
}

.reserve__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.reserve::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 33, 25, 0.82) 0%,
    rgba(20, 33, 25, 0.7) 100%
  );
}

.reserve__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 7vw, 6rem);
  text-align: center;
}

.reserve__inner .h2 {
  color: var(--paper);
  max-width: 22ch;
  margin-inline: auto;
}

.reserve__inner p {
  margin: 1.35rem auto 0;
  max-width: 52ch;
  color: rgba(244, 242, 234, 0.8);
}

.reserve__actions {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .editorial,
  .editorial--media-left,
  .editorial--media-right {
    grid-template-columns: 1fr;
  }

  .editorial--media-right .editorial__media {
    order: 0;
  }

  .editorial__media {
    min-height: clamp(260px, 55vw, 400px);
    max-height: clamp(260px, 55vw, 400px);
  }

  .editorial--media-left .editorial__media,
  .editorial--media-right .editorial__media {
    margin-inline: var(--gutter);
  }

  .editorial--media-left .editorial__body,
  .editorial--media-right .editorial__body {
    padding-inline: var(--gutter);
  }

  .locations__grid {
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 6vw, 3.5rem);
  }
}

@media (max-width: 720px) {
  .hero__scroll {
    display: none;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .loc-card__actions .btn {
    max-width: none;
  }
}
