/* ============================================================
   SKYLINE SOIRÉE — Rooftop Restaurant
   Palette, typography, layout & motion
   ============================================================ */

:root {
  /* Brand palette (client-provided) */
  --bg:          #062A1F;   /* main background — deep emerald */
  --bg-deep:     #021A14;   /* footer / deepest */
  --surface:     #0A3B2B;   /* raised green surface */
  --surface-2:   #0E4a37;   /* hover green surface */
  --cream:       #F7F3EA;   /* menu cards / light text */
  --gold:        #C8A75B;   /* buttons / accents */
  --gold-bright: #D4AF37;   /* button hover */

  /* Derived text tokens */
  --ink:        #08281D;               /* dark text on cream */
  --ink-soft:   #3a5045;               /* muted dark on cream */
  --on-dark:    #F4EFE4;               /* primary text on green */
  --on-dark-mut:rgba(244,239,228,.66); /* muted text on green */
  --line:       rgba(200,167,91,.28);  /* hairline gold */
  --line-soft:  rgba(244,239,228,.12);

  /* Type */
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, -apple-system, sans-serif;

  /* Spacing / layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 10vw, 140px);
  --radius: 4px;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Images — replace these URLs with your own photography */
  --img-hero:    url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=2000&q=80");
  --img-about: url("assets/about.jpg");
  --img-reserve: url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=2000&q=80");
  --img-contact: url("assets/contact.jpg");
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--on-dark);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;              /* Regular — Playfair Display's lightest weight (no Light/300 exists) */
  text-transform: uppercase;
  letter-spacing: .09em;         /* opened up for a finer, airier feel */
  line-height: 1.12;
}
h1 { font-size: clamp(2.6rem, 8vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: .12em; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.lead { font-size: 1.1rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-sub { color: var(--on-dark-mut); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 2.2em;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease),
              transform .25s var(--ease), box-shadow .25s var(--ease);
  will-change: transform;
}
.btn-gold { background: var(--gold); color: var(--bg-deep); box-shadow: 0 10px 30px -12px rgba(200,167,91,.6); }
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(212,175,55,.7); }
.btn-ghost { border: 1px solid var(--line); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 22px;
}
/* Blur/tint katmanı ::before'da — böylece position:fixed child'lar (mobil drawer)
   backdrop-filter containing-block hatasından etkilenmiyor */
.site-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(6,42,31,.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled {
  box-shadow: 0 1px 0 var(--line-soft);
  padding-block: 12px;
}
.nav-inner {
  max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: baseline; gap: .4ch; line-height: 1; }
.brand-mark { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: 1.15rem; color: var(--on-dark); }
.brand-sub  { font-family: var(--font-head); font-style: italic; text-transform: none; font-size: 1.05rem; color: var(--gold); }

.nav-links { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.nav-links a {
  position: relative; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: var(--on-dark-mut); transition: color .25s var(--ease); padding-block: 4px;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px; }
.lang-switch button {
  font-size: .68rem; letter-spacing: .1em; font-weight: 600; color: var(--on-dark-mut);
  padding: 5px 10px; border-radius: 999px; transition: color .2s, background .2s;
}
.lang-switch button:hover { color: var(--on-dark); }
.lang-switch button.is-active { background: var(--gold); color: var(--bg-deep); }
.nav-cta { padding: .75em 1.5em; font-size: .72rem; }

.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--on-dark); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.parallax-bg { position: absolute; inset: -12% 0; background-size: cover; background-position: center; will-change: transform; }
.hero-bg { inset: -14% 0; background-color: var(--surface); background-image: var(--img-hero); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2,26,20,.55) 0%, rgba(6,42,31,.35) 40%, rgba(6,42,31,.92) 100%),
    radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(2,26,20,.4) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; max-width: 900px; margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.hero-title { margin: .1em 0 .5em; text-shadow: 0 6px 40px rgba(2,26,20,.5); }
.hero-title .word { display: inline-block; }
.hero-sub { max-width: 620px; margin: 0 auto 2.4rem; color: var(--on-dark-mut); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-mut);
}
.scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-media { position: relative; }
.about-img {
  position: relative; inset: auto; aspect-ratio: 4/5; border-radius: var(--radius);
  background-color: var(--surface); background-image: var(--img-about);
  background-size: cover; background-position: center; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
}

.about-text h2 { margin: .3em 0 .6em; }
.about-text p + p { margin-top: 1rem; color: var(--on-dark-mut); }
.stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 2.4rem; padding-top: 2rem; border-top: 1px solid var(--line-soft); }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold); }
.stat-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-mut); margin-top: 4px; }

/* ============================================================
   MENU — COVER CARD
   ============================================================ */
.menu { background: var(--bg-deep); }

/* tüm içeriği yatayda ortala */
.menu .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu .section-head {
  width: 100%;
}

.menu-cover-wrap {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.menu-cover-link {
  position: relative; display: block;
  width: min(440px, 100%);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.menu-cover-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 56px 90px -30px rgba(0,0,0,.9);
}
.menu-cover-img {
  width: 100%; display: block;
  transition: transform .6s var(--ease);
  background: var(--surface);
}
.menu-cover-link:hover .menu-cover-img { transform: scale(1.04); }
.menu-cover-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2,26,20,.6); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.menu-cover-link:hover .menu-cover-overlay { opacity: 1; }
.menu-cover-overlay span {
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase;
  font-weight: 600; color: var(--gold);
  border: 1px solid var(--gold); border-radius: 999px;
  padding: 8px 22px;
}
.menu-cover-label {
  margin-top: 24px;
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
  opacity: .75;
  display: flex; align-items: center; gap: 14px;
  white-space: nowrap;
}
.menu-cover-label::before,
.menu-cover-label::after {
  content: ''; display: block;
  width: 36px; height: 1px;
  background: var(--gold); opacity: .5;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer;
  background: var(--surface);
}
.gallery-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2,26,20,.65));
  opacity: 0; transition: opacity .4s var(--ease);
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 5vw;
  background: rgba(2,26,20,.94); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius); box-shadow: 0 40px 90px -30px #000; }
.lightbox-close, .lightbox-nav { position: absolute; color: var(--on-dark); width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.6rem; border: 1px solid var(--line-soft); border-radius: 50%; transition: border-color .2s, color .2s; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--gold); border-color: var(--gold); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   RESERVATION
   ============================================================ */
.reserve { overflow: hidden; text-align: center; }
.reserve-bg { inset: -12% 0; background-color: var(--surface); background-image: var(--img-reserve); }
.reserve-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,26,20,.86), rgba(6,42,31,.9)); }
.reserve-inner { position: relative; z-index: 2; max-width: 820px; }
.reserve-inner h2 { margin: .3em 0 .4em; }
.reserve-form {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end;
  margin: 2.6rem auto 2rem; text-align: left;
  background: rgba(6,42,31,.55); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; backdrop-filter: blur(6px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--note { grid-column: 1 / -1; }
.field label { font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-mut); font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--bg-deep); color: var(--on-dark); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: .85em 1em; font-size: .9rem; min-height: 48px;
  transition: border-color .2s;
}
.field textarea { min-height: 60px; resize: vertical; font-family: inherit; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.reserve-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.reserve-action {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 20px 24px; cursor: pointer; border: none; font-family: inherit;
  transition: background .2s, opacity .2s;
}
.reserve-action:active { opacity: .8; }
.email-action {
  background: rgba(255,255,255,.06); color: var(--on-dark);
  border-right: 1px solid var(--line-soft);
}
.email-action:hover { background: rgba(255,255,255,.12); }
.wa-action { background: var(--gold); color: var(--bg-deep); }
.wa-action:hover { background: #d4af37; }
.ra-icon { flex-shrink: 0; display: flex; }
.ra-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.ra-method { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; opacity: .65; }
.ra-cta { font-size: .9rem; font-weight: 600; letter-spacing: .04em; }
.reserve-meta { display: flex; flex-wrap: wrap; gap: clamp(20px, 5vw, 56px); justify-content: center; margin-top: .5rem; }
.reserve-meta > div { display: flex; flex-direction: column; gap: 4px; }
.rm-label { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.reserve-meta > div > span:last-child { color: var(--on-dark-mut); font-size: .92rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { position: relative; overflow: hidden; }
.contact-bg { inset: -12% 0; background-color: var(--surface); background-image: var(--img-contact); background-size: cover; background-position: center; }
.contact-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(2,26,20,.88) 0%, rgba(6,42,31,.78) 100%); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-info h2 { margin: .3em 0 1.4em; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.ci-label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ci-value { font-size: 1rem; color: var(--on-dark); transition: color .2s; }
a.ci-value:hover { color: var(--gold); }
.socials { display: flex; gap: 12px; margin-top: 1.8rem; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--on-dark-mut); transition: color .25s, border-color .25s, transform .25s; }
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.contact-map { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.contact-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(120deg) contrast(.9); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-deep); padding-top: clamp(56px, 8vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.brand--footer { margin-bottom: 14px; }
.footer-brand p { color: var(--on-dark-mut); max-width: 320px; font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-mut); transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-hours h3 { color: var(--gold); margin-bottom: 14px; font-size: .8rem; letter-spacing: .18em; }
.footer-hours p { color: var(--on-dark-mut); font-size: .92rem; }
.footer-hours p + p { margin-top: 8px; }
.footer-bar { border-top: 1px solid var(--line-soft); padding-block: 24px; text-align: center; }
.footer-bar p { color: var(--on-dark-mut); font-size: .78rem; letter-spacing: .06em; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--bg-deep);
  box-shadow: 0 14px 30px -8px rgba(200,167,91,.6);
  transition: background .25s, transform .25s;
}
.wa-float:hover { background: var(--gold-bright); transform: scale(1.06) translateY(-2px); }

/* ============================================================
   REVEAL ANIMATIONS (only when JS + motion enabled)
   ============================================================ */
.gsap-ready .reveal,
.gsap-ready .hero-title .word { opacity: 0; }
.gsap-ready .reveal { transform: translateY(34px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ---------- Nav backdrop ---------- */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 298;
  background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none;
  transition: opacity .38s;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Side drawer */
  .nav-links {
    display: flex; flex-direction: column; align-items: flex-start;
    justify-content: flex-start; gap: 0;
    padding: 100px 36px 48px;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(300px, 88vw);
    background: rgba(6,22,15,.97);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(200,167,91,.15);
    transform: translateX(110%);
    transition: transform .38s cubic-bezier(.4,0,.2,1), visibility .38s;
    z-index: 299; visibility: hidden; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); visibility: visible; }
  .nav-links a {
    font-size: 1rem; letter-spacing: .18em; color: var(--on-dark);
    padding: 18px 0; width: 100%;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .nav-links a:last-child { border-bottom: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 100%; width: 100%; margin-inline: auto; min-height: 280px; position: relative; overflow: hidden; border-radius: var(--radius); }
  .contact-grid { grid-template-columns: 1fr; }
  .reserve-form { grid-template-columns: 1fr 1fr; }
  .reserve-submit { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-item.wide { grid-column: span 2; }
  .gallery-item.tall { grid-row: span 1; }
  .reserve-form { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; gap: 20px; }
  .btn { padding: .95em 1.7em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-line { animation: none; }
  .parallax-bg { transform: none !important; }
  * { transition-duration: .01ms !important; }
}
