/* Overtech Studio — homepage v3. Quiet luxury: deep forest green, warm cream, light serif headings,
   a full-screen moving hero, then full-bleed feature panels. Booking pages keep v2.css. */
:root {
  --g-900: #162924;   /* forest ink: footer, dark bands */
  --g-700: #304f48;
  --g-500: #4d7e70;
  --cream: #eee7dc;
  --cream-2: #faf8f4;
  --blush: #f7f3f2;
  --ink3: #111;
  --mute3: #6b6b66;
  --line3: rgba(22, 41, 36, .12);
  --f-body: "Poppins", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-head: "Cormorant Garamond", "Tajawal", Georgia, serif;
  --ease3: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.v3 { margin: 0; font: 400 16px/1.65 var(--f-body); color: var(--ink3); background: #fff; -webkit-font-smoothing: antialiased; }
.v3 img, .v3 video { display: block; max-width: 100%; }
.v3 a { color: inherit; }
.v3 h1, .v3 h2, .v3 h3 { font-family: var(--f-head); font-weight: 400; line-height: 1.15; margin: 0; }
[lang=ar] .v3 h1, [lang=ar] .v3 h2 { font-weight: 300; }
.w3 { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ── buttons: dark pill and cream pill ── */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 99px; padding: 14px 28px; font: 500 15px var(--f-body); text-decoration: none; border: 0; cursor: pointer; transition: transform .2s var(--ease3), background .2s, color .2s; }
.pill:active { transform: scale(.97); }
.v3 .pill-dark { background: var(--g-900); color: #fff; } .pill-dark:hover { background: var(--g-700); }
.v3 .pill-cream { background: var(--cream); color: var(--g-900); } .pill-cream:hover { background: #fff; }
.v3 .pill-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); } .pill-ghost:hover { background: rgba(255,255,255,.12); }

/* ── header: transparent over the hero, solid once scrolled ── */
.top3 { position: fixed; inset: 0 0 auto; z-index: 40; color: #fff; transition: background .3s, color .3s, box-shadow .3s; }
.top3 .w3 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 74px; }
.top3.solid { background: #fff; color: var(--ink3); box-shadow: 0 1px 0 var(--line3); }
.t-left, .t-right { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.t-right { justify-content: flex-end; }
.t-left a, .t-right a { text-decoration: none; opacity: .9; } .t-left a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.logo3 { text-decoration: none; text-align: center; line-height: 1; }
.logo3 b { display: block; font: 500 26px var(--f-head); letter-spacing: .06em; }
.logo3 small { display: block; font-size: 11px; letter-spacing: .42em; margin-top: 4px; opacity: .8; }
.lang3 { background: none; border: 0; color: inherit; font: 500 13px var(--f-body); letter-spacing: .08em; cursor: pointer; padding: 6px; }
.t-book { padding: 9px 18px; font-size: 13.5px; }
.v3 .top3:not(.solid) .t-book { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(8px); }
.menu3 { display: none; background: none; border: 0; color: inherit; width: 40px; height: 40px; cursor: pointer; }
.menu3 span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 5px auto; }

/* ── hero: the moving portrait ── */
.hero3 { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: var(--g-900); }
.hero3 .h-media { position: absolute; inset: 0; }
.hero3 .h-media img, .hero3 .h-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 45%; }
.hero3 .h-media img { animation: drift 22s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.hero3 .h-media video { opacity: 0; transition: opacity 1.2s; }
.hero3.has-video .h-media video { opacity: 1; }
.hero3.has-video .h-media img { animation: none; }
@keyframes drift { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero3::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 22%, rgba(10,20,17,.15) 40%, rgba(10,20,17,.8) 100%); }
.hero3 .h-txt { position: absolute; z-index: 1; inset: auto 0 9vh; text-align: center; }
.hero3 h1 { font-size: clamp(40px, 6.4vw, 84px); max-width: 16ch; margin: 0 auto 16px; }
.hero3 p { font-size: clamp(15px, 1.6vw, 18px); max-width: 52ch; margin: 0 auto 28px; opacity: .9; font-weight: 300; }
.hero3 .h-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.h-scroll { position: absolute; z-index: 1; inset-inline-start: 50%; bottom: 22px; width: 1px; height: 34px; background: rgba(255,255,255,.5); transform: translateX(-50%); overflow: hidden; }
.h-scroll::after { content: ''; position: absolute; inset: 0; background: #fff; animation: tick 2s var(--ease3) infinite; }
@keyframes tick { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ── section headings ── */
.head3 { text-align: center; padding: 84px 16px 40px; }
.head3 h2 { font-size: clamp(32px, 4vw, 48px); }
.head3 p { color: var(--mute3); margin: 10px auto 0; max-width: 50ch; font-weight: 300; }

/* ── most booked: product-style cards ── */
.picks { padding-bottom: 70px; }
.cards3 { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.cards3::-webkit-scrollbar { display: none; }
.card3 { scroll-snap-align: start; text-decoration: none; display: flex; flex-direction: column; }
.card3 .c-img { aspect-ratio: 4 / 5; background: var(--blush); overflow: hidden; margin-bottom: 16px; position: relative; }
.card3 .c-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease3); }
.card3:hover .c-img img { transform: scale(1.05); }
.card3 .c-tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--g-900); color: #fff; font-size: 12px; padding: 6px 12px; border-radius: 99px; }
.card3 h3 { font: 500 18px var(--f-body); margin-bottom: 4px; }
.card3 .c-sub { color: var(--mute3); font-size: 14px; font-weight: 300; min-height: 2.6em; }
.card3 .c-price { margin-top: 10px; font-size: 15.5px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.card3 .c-price s { color: var(--mute3); font-size: 14px; }
.picks .more { text-align: center; margin-top: 30px; }

/* endless row: a slice of the next card always peeks in, the edges fade, arrows sit on the sides */
.loop3 { position: relative; }
.picks .cards3 { grid-auto-columns: calc((100% - 4 * 22px) / 4.4);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
.loop-btn { position: absolute; z-index: 2; top: calc((100% - 120px) * .4); width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: var(--g-900); box-shadow: 0 6px 22px rgba(22, 41, 36, .16); display: grid; place-items: center;
  transition: transform .2s var(--ease3), background .2s, color .2s; }
.loop-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.loop-btn.prev { inset-inline-start: -8px; } .loop-btn.next { inset-inline-end: -8px; }
[dir="rtl"] .loop-btn svg { transform: scaleX(-1); }
.loop-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .loop-btn:hover { background: var(--g-900); color: #fff; } }
.loop-hint { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; color: var(--mute3); font-size: 14px; font-weight: 300; transition: opacity .6s var(--ease3); }
.loop-hint i { position: relative; width: 46px; height: 1px; background: currentColor; opacity: .7; }
.loop-hint i::after { content: ''; position: absolute; top: -3.5px; inset-inline-end: 0; width: 7px; height: 7px; border-top: 1px solid currentColor; border-inline-end: 1px solid currentColor; transform: rotate(45deg); animation: hint3 1.6s var(--ease3) infinite; }
[dir="rtl"] .loop-hint i::after { transform: rotate(-45deg); }
@keyframes hint3 { 0% { inset-inline-end: 14px; opacity: 0; } 40% { opacity: 1; } 100% { inset-inline-end: 0; opacity: 0; } }
.picks.used .loop-hint { opacity: .45; }
.c-ghost .c-img { animation: pulse3 1.4s ease-in-out infinite alternate; }
@keyframes pulse3 { to { opacity: .55; } }

/* ── promise strip ── */
.promise { background: var(--cream); }
.promise .w3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.prom { padding: 34px 26px; text-align: center; border-inline-start: 1px solid var(--line3); }
.prom:first-child { border-inline-start: 0; }
.prom svg { width: 28px; height: 28px; stroke: var(--g-700); fill: none; stroke-width: 1.3; margin: 0 auto 10px; }
.prom b { display: block; font-weight: 500; font-size: 16px; }
.prom span { display: block; color: var(--mute3); font-size: 14px; font-weight: 300; margin-top: 2px; }

/* ── full-bleed feature panels ── */
.feature { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.06); transition: transform 1.6s var(--ease3); }
.feature.in > img { transform: scale(1); }
.feature::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,20,17,.75), rgba(10,20,17,0) 60%); }
.feature .f-txt { padding: 0 0 70px; max-width: 520px; }
.feature.end .w3 { display: flex; justify-content: flex-end; }
.feature .f-kick { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .85; }
.feature h2 { font-size: clamp(44px, 6vw, 76px); margin: 6px 0 4px; }
.feature h3 { font: 300 19px var(--f-body); margin: 0 0 12px; }
.feature p { font-weight: 300; opacity: .9; margin: 0 0 24px; }
.feature .w3 { width: min(1240px, 100% - 48px); }

/* ── CTA band ── */
.band { background: var(--cream-2); text-align: center; padding: 90px 16px; }
.band h2 { font-size: clamp(30px, 3.8vw, 46px); max-width: 20ch; margin: 0 auto 14px; }
.band p { color: var(--mute3); max-width: 48ch; margin: 0 auto 28px; font-weight: 300; }
.band.dark { background: var(--g-700); color: #fff; } .band.dark p { color: rgba(255,255,255,.75); }

/* ── story ── */
.story { position: relative; color: #fff; padding: 110px 0; isolation: isolate; overflow: hidden; }
.story > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.story::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(22, 41, 36, .84); }
.story h2 { font-size: clamp(34px, 4.4vw, 56px); text-align: center; max-width: 18ch; margin: 0 auto 44px; }
.story .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 980px; margin: 0 auto; font-weight: 300; opacity: .92; }
.story .cols p { margin: 0; }
.story .mission { text-align: center; max-width: 700px; margin: 70px auto 0; }
.story .mission h3 { font: 300 clamp(30px, 3.4vw, 42px) var(--f-head); margin-bottom: 12px; }
.story .mission p { font-weight: 300; opacity: .9; margin: 0; }

/* ── reviews ── */
.rev3 { padding-bottom: 80px; }
.rev3-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.rev3-card { scroll-snap-align: start; margin: 0; background: var(--blush); padding: 28px; }
.rev3-card .stars { color: var(--g-500); letter-spacing: 3px; font-size: 14px; }
.rev3-card blockquote { margin: 12px 0 16px; font: 300 17px/1.6 var(--f-body); }
.rev3-card figcaption { color: var(--mute3); font-size: 14px; }

/* ── visit ── */
.visit3 { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); }
.visit3 .v-img { min-height: 420px; position: relative; }
.visit3 .v-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 45%; }
.visit3 .v-txt { padding: 70px clamp(24px, 6vw, 80px); align-self: center; }
.visit3 h2 { font-size: clamp(32px, 3.6vw, 46px); margin-bottom: 22px; }
.visit3 dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 0 0 28px; }
.visit3 dt { color: var(--mute3); font-size: 14px; } .visit3 dd { margin: 0; }
.visit3 .v-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.v3 .visit3 .pill-line { background: transparent; border: 1px solid var(--g-900); color: var(--g-900); }

/* ── footer ── */
.foot3 { background: var(--g-900); color: #fff; padding: 70px 0 28px; font-size: 14.5px; }
.foot3 .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.foot3 .logo3 { text-align: start; display: inline-block; margin-bottom: 16px; }
.foot3 p { color: rgba(255,255,255,.65); font-weight: 300; margin: 0; max-width: 32ch; }
.foot3 h4 { font: 500 13px var(--f-body); letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; color: rgba(255,255,255,.55); }
.foot3 ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot3 a { text-decoration: none; color: rgba(255,255,255,.85); } .foot3 a:hover { color: #fff; }
.foot3 .base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: 13px; }

/* ── reveal ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease3), transform .9s var(--ease3); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero3 .h-media img, .h-scroll::after, .c-ghost .c-img, .loop-hint i::after { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ── tablet / phone ── */
@media (max-width: 980px) {
  .cards3, .picks .cards3 { grid-auto-columns: calc((100% - 2 * 22px) / 2.4); }
  .foot3 .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top3 .w3 { grid-template-columns: auto 1fr auto; }
  .t-left { display: none; } .menu3 { display: block; }
  .logo3 b { font-size: 22px; }
  .t-right { gap: 8px; } .t-book { display: none; }
  .nav3m { display: none; position: fixed; inset: 74px 0 auto; background: #fff; color: var(--ink3); padding: 10px 16px 20px; box-shadow: 0 20px 30px -20px rgba(0,0,0,.3); }
  .nav3m.open { display: grid; } .nav3m a { padding: 14px 4px; border-bottom: 1px solid var(--line3); text-decoration: none; }
  .hero3 .h-txt { bottom: 12vh; padding: 0 16px; }
  .cards3, .picks .cards3 { grid-auto-columns: 72%; gap: 14px; }
  .loop-btn { display: none; }
  .picks .cards3 { -webkit-mask-image: none; mask-image: none; }
  .promise .w3 { grid-template-columns: 1fr; }
  .prom { border-inline-start: 0; border-top: 1px solid var(--line3); padding: 24px 16px; } .prom:first-child { border-top: 0; }
  .feature { min-height: 82svh; } .feature .f-txt { padding-bottom: 48px; }
  .story { padding: 80px 0; } .story .cols { grid-template-columns: 1fr; gap: 18px; }
  .visit3 { grid-template-columns: 1fr; } .visit3 .v-img { min-height: 280px; }
  .foot3 .cols { grid-template-columns: 1fr; gap: 26px; }
}
@media (min-width: 761px) { .nav3m { display: none !important; } }
