/* Ruby v65 — opposing entrance compositions and cleaner hero readability.
   Only positioning is adjusted: original photographs, translations, audio,
   nature frames, booking links and navigation are retained. */

/* The entrance is an intentional pair: Istanbul faces in from the right,
   Bodrum faces in from the left. Both wordmarks settle a touch lower. */
@media (min-width: 901px) {
  .gateway .gateway-istanbul .card-center {
    align-items: flex-end;
    text-align: right;
    transform: translateY(clamp(14px, 2.8vh, 28px));
  }
  .gateway .gateway-mare .card-center {
    align-items: flex-start;
    text-align: left;
    transform: translateY(clamp(14px, 2.8vh, 28px));
  }
  .gateway .gateway-istanbul .card-center :is(.card-kicker,.card-caption,strong) {
    text-align: right;
  }
  .gateway .gateway-istanbul .card-center .branch-logo {
    object-position: right center;
  }

  /* A single calm copy column on the right of each full-bleed photograph. */
  .istanbul-hero .hero-inner.ruby-hero-copy,
  .mare-main .mare-content.ruby-hero-copy {
    align-items: flex-end;
    justify-content: center;
    padding: clamp(78px,9vh,105px) max(5.2vw,47px) clamp(125px,20vh,195px);
  }
  .istanbul-hero .hero-inner.ruby-hero-copy > :is(.ruby-hero-overline,h1,p,.ruby-hero-actions),
  .mare-main .mare-content.ruby-hero-copy > :is(.ruby-hero-overline,h1,p,.ruby-hero-actions) {
    box-sizing: border-box;
    width: min(46vw,665px);
    max-width: 100%;
    text-align: left;
  }
  .istanbul-hero .ruby-hero-copy h1.ruby-hero-title,
  .mare-main .ruby-hero-copy h1.ruby-hero-title {
    font-size: clamp(68px, min(6.4vw,13.6vh), 131px);
    line-height: 1.025;
  }
  .istanbul-hero .ruby-hero-copy > p,
  .mare-main .ruby-hero-copy > p {
    max-width: 630px;
    text-shadow: 0 2px 13px rgba(0,0,0,.73), 0 1px 3px rgba(0,0,0,.48);
  }
  .ruby-hero-copy .ruby-hero-overline { margin-bottom: clamp(22px,3.3vh,34px); }
  .istanbul-hero .ruby-hero-copy h1.ruby-hero-title,
  .mare-main .ruby-hero-copy h1.ruby-hero-title {
    margin-bottom: clamp(18px,2.7vh,29px);
    text-shadow: 0 3px 18px rgba(0,0,0,.53);
  }
  .istanbul-hero .ruby-hero-actions,
  .mare-main .ruby-hero-actions { margin-top: clamp(20px,2.7vh,30px); }
}

/* A smaller, quietly detailed Michelin card now belongs to the right-hand
   footer signature instead of floating far above it. */
.istanbul-hero .michelin-hero-badge {
  z-index: 6;
  right: var(--ruby-hero-gutter);
  bottom: 63px;
  box-sizing: border-box;
  width: 279px;
  min-height: 81px;
  gap: 12px;
  padding: 11px 15px 11px 11px;
  border: 1px solid rgba(255,255,255,.84);
  border-left: 3px solid #aa3031;
  border-radius: 0;
  background: rgba(249,246,240,.94);
  box-shadow: 0 12px 38px rgba(7,12,15,.22);
}
.istanbul-hero .michelin-hero-mark { width: 56px; height: 56px; }
.istanbul-hero .michelin-hero-mark img { width: 50px; height: 50px; }
.istanbul-hero .michelin-hero-copy { gap: 4px; }
.istanbul-hero .michelin-hero-copy small { font-size: 8px; letter-spacing: .13em; }
.istanbul-hero .michelin-hero-copy strong { font-size: 11px; line-height: 1.3; }
.istanbul-hero .michelin-hero-copy em { font-size: 8px; margin-top: 1px; }
.istanbul-hero .michelin-hero-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 42px rgba(7,12,15,.28);
}

/* The separate moving olive transparency gains a clear safety margin.
   It no longer rotates through a hard crop at the photo's top-left edge. */
.ruby-scene-wrap--mare {
  --ruby-olive-safe-x: 38px;
  --ruby-olive-safe-y: 22px;
}
.ruby-scene-wrap--mare .ruby-olive-wind--canopy {
  animation: rubyOliveContainedBreeze 6.9s cubic-bezier(.44,.08,.56,.96) -2.2s infinite alternate;
}
.ruby-scene-wrap--mare .ruby-olive-wind--canopy img {
  left: calc(var(--ruby-olive-shift,0px) + var(--ruby-olive-safe-x));
  top: var(--ruby-olive-safe-y);
  -webkit-mask-image: linear-gradient(to bottom,transparent 0%,#000 5%,#000 100%);
  mask-image: linear-gradient(to bottom,transparent 0%,#000 5%,#000 100%);
}
@keyframes rubyOliveContainedBreeze {
  0%,100% { transform: translate3d(2px,1px,0) rotate(-.95deg); }
  48% { transform: translate3d(-2px,-2px,0) rotate(1.1deg); }
  76% { transform: translate3d(1px,0,0) rotate(.3deg); }
}

@media (max-width: 900px) {
  /* Maintain the photographic mobile layouts while moving the reading column
     toward the open view on the right, away from trees and the mosque. */
  .istanbul-hero .hero-inner.ruby-hero-copy,
  .mare-main .mare-content.ruby-hero-copy {
    align-items: flex-end;
    justify-content: center;
    padding-top: 112px;
    padding-bottom: 139px;
  }
  .istanbul-hero .hero-inner.ruby-hero-copy > :is(.ruby-hero-overline,h1,p,.ruby-hero-actions),
  .mare-main .mare-content.ruby-hero-copy > :is(.ruby-hero-overline,h1,p,.ruby-hero-actions) {
    box-sizing: border-box;
    width: min(89%,500px);
    max-width: 100%;
  }
  .istanbul-hero .ruby-hero-copy > p,
  .mare-main .ruby-hero-copy > p {
    text-shadow: 0 2px 12px rgba(0,0,0,.78);
  }
  .istanbul-hero .michelin-hero-badge {
    right: var(--ruby-hero-gutter);
    bottom: 82px;
    width: 219px;
    min-height: 66px;
    gap: 8px;
    padding: 8px 9px;
  }
  .istanbul-hero .michelin-hero-mark { width: 44px; height: 44px; }
  .istanbul-hero .michelin-hero-mark img { width: 40px; height: 40px; }
  .istanbul-hero .michelin-hero-copy small { font-size: 7px; }
  .istanbul-hero .michelin-hero-copy strong { font-size: 9px; }
  .istanbul-hero .michelin-hero-copy em { font-size: 7px; }
  .istanbul-hero .ruby-hero-bottom > span:last-child {
    grid-column: 1/-1;
    text-align: right;
  }

  .gateway .gateway-istanbul .card-center,
  .gateway .gateway-card:first-child .card-center {
    align-items: flex-end;
    text-align: right;
    transform: translateY(9px);
  }
  .gateway .gateway-mare .card-center,
  .gateway .gateway-card:nth-child(2) .card-center {
    align-items: flex-start;
    text-align: left;
    transform: translateY(9px);
  }
  .gateway .gateway-istanbul .card-center :is(.card-kicker,.card-caption,strong) { text-align: right; }
  .gateway .gateway-istanbul .card-center .branch-logo { object-position: right center; }

  .ruby-scene-wrap--mare { --ruby-olive-safe-x: 48px; --ruby-olive-safe-y: 32px; }
  .ruby-scene-wrap--mare .ruby-olive-wind--canopy img { width: 96%; height: 96%; }
  /* This line previously appeared to cut straight across the swaying tree. */
  .site-header.mare-shared-header:not(.scrolled) { border-bottom-color: transparent; }
}

@media (max-width: 640px) {
  .istanbul-hero .hero-inner.ruby-hero-copy,
  .mare-main .mare-content.ruby-hero-copy { padding-top: 104px; padding-bottom: 141px; }
  .istanbul-hero .hero-inner.ruby-hero-copy > :is(.ruby-hero-overline,h1,p,.ruby-hero-actions),
  .mare-main .mare-content.ruby-hero-copy > :is(.ruby-hero-overline,h1,p,.ruby-hero-actions) { width: 89%; }
  .istanbul-hero .michelin-hero-badge { bottom: 75px; }
}

@media (max-width: 900px) and (max-height: 650px) {
  .istanbul-hero .hero-inner.ruby-hero-copy,
  .mare-main .mare-content.ruby-hero-copy { padding-top: 86px; padding-bottom: 121px; }
  .istanbul-hero .ruby-hero-copy h1.ruby-hero-title,
  .mare-main .ruby-hero-copy h1.ruby-hero-title { font-size: clamp(37px,7.5vh,62px); margin-bottom: 14px; }
  .ruby-hero-copy .ruby-hero-overline { margin-bottom: 16px; }
  .istanbul-hero .ruby-hero-actions,
  .mare-main .ruby-hero-actions { margin-top: 15px; gap: 7px; }
  .istanbul-hero .ruby-hero-copy > p,
  .mare-main .ruby-hero-copy > p { font-size: 12.5px; line-height: 1.52; }
}

/* Keep the physical right-hand composition when Arabic changes document
   direction, while the translated running text remains naturally RTL. */
html[dir="rtl"] .istanbul-hero .hero-inner.ruby-hero-copy,
html[dir="rtl"] .mare-main .mare-content.ruby-hero-copy { direction: ltr; }
html[dir="rtl"] .istanbul-hero .ruby-hero-copy > p,
html[dir="rtl"] .mare-main .ruby-hero-copy > p { direction: rtl; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .ruby-scene-wrap--mare .ruby-olive-wind--canopy { animation: none!important; transform: none!important; }
}
