/* ============================================================
   ATELIER LUNA — layout.css
   Floating navigation, hero collage, page shells, footer.
   ============================================================ */

/* ============================================================
   1. FLOATING NAVIGATION
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  padding-top: var(--nav-top);
  padding-bottom: 4px;
}

.nav-card {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  min-height: var(--nav-h);
  padding-inline: clamp(1rem, 1.6vw, 1.5rem);
  background: rgba(251, 246, 238, .72);
  border: 1px solid rgba(233, 218, 196, .6);
  border-radius: var(--r);
  box-shadow: 0 12px 40px -14px rgba(42, 32, 26, .18);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  transition: background var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.nav-wrap.is-scrolled .nav-card {
  background: rgba(251, 246, 238, .92);
  box-shadow: 0 14px 44px -14px rgba(42, 32, 26, .26);
}

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__spark { color: var(--gold); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* Links */
.nav-links-wrap { margin-inline: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.5rem, 1.2vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  display: block;
  padding: .45rem .3rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--body);
  white-space: nowrap;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: .3rem; right: .3rem; bottom: .15rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--fast) var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: .6rem; flex: none; }

/* Mobile bits */
.nav-mobile { display: none; align-items: center; gap: .5rem; margin-left: auto; }
.nav-toggle {
  width: 46px; height: 46px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r-pill);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; width: 17px; height: 1.6px; border-radius: 2px; background: var(--ink); }
.nav-toggle:hover { border-color: var(--gold); }

/* Decorative sparkle outside the nav card */
.nav-spark {
  position: absolute;
  right: clamp(1rem, 3vw, 3rem);
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  opacity: .55;
  pointer-events: none;
  display: none;
}

/* ============================================================
   2. MOBILE MENU PANEL
   ============================================================ */
.menu-panel {
  background: var(--bg);
  width: min(420px, 92vw);
  border: 0;
}
.menu-panel .offcanvas-header {
  padding: 1.15rem var(--gutter);
  border-bottom: 1px solid var(--line);
}
.menu-panel .offcanvas-body { padding: 0; display: flex; flex-direction: column; }
.menu-close {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--r-pill);
  display: grid; place-items: center;
  color: var(--ink);
  cursor: pointer;
}
.menu-close:hover { border-color: var(--gold); }

.menu-list { list-style: none; margin: 0; padding: .75rem 0; flex: 1 1 auto; }
.menu-list li { margin: 0; }
.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--gutter);
  min-height: 54px;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink);
}
.menu-list a .chev { color: var(--muted); transition: transform var(--fast) var(--ease); }
.menu-list a:hover { background: var(--blush-soft); color: var(--gold-dark); }
.menu-list a:hover .chev { transform: translateX(4px); }
.menu-list a[aria-current="page"] { color: var(--gold-dark); }

.menu-foot {
  padding: 1.35rem var(--gutter) calc(1.75rem + env(safe-area-inset-bottom, 0));
  background: var(--blush-soft);
  border-top: 1px solid var(--line);
  display: grid;
  gap: .65rem;
}
.menu-foot__meta { text-align: center; font-size: var(--fs-xs); color: var(--muted); margin: .35rem 0 0; }

/* ============================================================
   3. HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(2rem, 3.5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
/* warm glow */
.hero::before {
  content: "";
  position: absolute;
  top: -34%;
  right: -14%;
  width: min(1000px, 86vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
              rgba(178, 145, 96, .20) 0%,
              rgba(243, 221, 209, .30) 38%,
              rgba(251, 246, 238, 0) 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: -18%;
  bottom: -30%;
  width: min(700px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(227, 234, 225, .38) 0%, rgba(251, 246, 238, 0) 65%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(2.5rem, 4vw, 4.5rem);
  align-items: center;
}
.hero__copy { max-width: 620px; }
.hero__title { margin-bottom: 1.35rem; }
.hero__text { margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero__proof-item { display: flex; align-items: center; gap: .7rem; }
.hero__proof-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.hero__proof-label { font-size: var(--fs-xs); color: var(--muted); line-height: 1.4; }

/* ---- Collage ---- */
.collage { position: relative; padding: 6% 0 8% 6%; }
.collage__main {
  position: relative;
  width: 84%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-float);
  background: var(--sand);
}
.collage__main img { width: 100%; height: 100%; object-fit: cover; }

.collage__card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--r);
  border: 5px solid var(--card);
  box-shadow: var(--sh-float);
  background: var(--sand);
}
.collage__card img { width: 100%; height: 100%; object-fit: cover; }
.collage__card--a { left: 0; top: 4%; width: 42%; aspect-ratio: 1 / 1; }
.collage__card--b { left: 2%; bottom: 2%; width: 46%; aspect-ratio: 4 / 3; }

.collage__badge {
  position: absolute;
  right: -2%;
  top: 44%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: .8rem 1.15rem;
  box-shadow: var(--sh-lift);
  text-align: left;
  max-width: 190px;
}
.collage__badge-k {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}
.collage__badge-v { font-family: var(--serif); font-size: 1.125rem; font-weight: 500; color: var(--ink); font-style: italic; }

.collage__spark { position: absolute; color: var(--gold); opacity: .8; }
.collage__spark--1 { right: 6%; top: -2%; }
.collage__spark--2 { left: 46%; bottom: 6%; }

/* ============================================================
   4. PAGE HEAD (inner pages)
   ============================================================ */
.page-head { position: relative; padding-block: clamp(2.5rem, 4vw, 4rem) clamp(2rem, 3.5vw, 3.5rem); overflow: hidden; }
.page-head::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: min(760px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(243,221,209,.42) 0%, rgba(251,246,238,0) 66%);
  pointer-events: none;
}
.page-head__inner { position: relative; z-index: 1; max-width: 760px; }
.page-head--center .page-head__inner { margin-inline: auto; text-align: center; }
.page-head h1 { margin-bottom: .8rem; }
.page-head p { margin-bottom: 0; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  list-style: none; margin: 0 0 1.15rem; padding: 0;
  font-size: var(--fs-xs); color: var(--muted);
}
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "·"; color: var(--line); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-dark); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }
.page-head--center .crumbs { justify-content: center; }

/* ============================================================
   5. SPLIT SECTIONS
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}
.split--flip .split__media { order: 2; }
.split--60 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }

/* Stacked media pair with an offset second image */
.media-stack { position: relative; }
.media-stack__b {
  position: absolute;
  right: -8%;
  bottom: -12%;
  width: 46%;
  border-radius: var(--r);
  overflow: hidden;
  border: 6px solid var(--bg);
  box-shadow: var(--sh-lift);
  aspect-ratio: 4 / 3;
  background: var(--sand);
}
.media-stack__b img { width: 100%; height: 100%; object-fit: cover; }

/* Sticky aside */
.sticky-col { position: sticky; top: calc(var(--nav-h) + var(--nav-top) + 24px); }

/* ============================================================
   6. CTA PANEL THAT OVERLAPS THE FOOTER
   ============================================================ */
.cta-lift { position: relative; z-index: 3; padding-top: clamp(3rem, 5vw, 5rem); margin-bottom: clamp(-7rem, -9vw, -9rem); }

.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--sh-float);
  background:
    radial-gradient(120% 140% at 82% 10%, rgba(243, 221, 209, .85) 0%, rgba(251, 246, 238, 0) 60%),
    radial-gradient(90% 120% at 6% 90%, rgba(227, 234, 225, .75) 0%, rgba(251, 246, 238, 0) 62%),
    var(--card);
}
.cta-panel__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 3.6vw, 3.5rem);
}
.cta-panel h2 { margin-bottom: .75rem; }
.cta-panel__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.cta-panel__spark { position: absolute; right: 8%; top: 14%; color: var(--gold); opacity: .5; }

/* ============================================================
   7. FOOTER
   ============================================================ */
.site-foot {
  background: var(--ink);
  color: #B0A196;
  padding-top: clamp(9rem, 13vw, 12rem);
  font-size: var(--fs-sm);
}
.site-foot--plain { padding-top: clamp(3.5rem, 6vw, 5.5rem); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr) 1.1fr;
  gap: clamp(1.75rem, 3vw, 3rem);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}
.foot-brand .brand { color: var(--bg); margin-bottom: 1.1rem; }
.foot-brand .brand:hover { color: var(--bg); }
.foot-brand .brand__sub { color: #8C7F74; }
.foot-about { color: #A0938A; max-width: 34ch; margin-bottom: 1.35rem; }

.foot-col h3 {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bg);
  margin-bottom: 1.15rem;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0 0 .7rem; }
.foot-col a, .foot-col p { color: #A0938A; }
.foot-col a:hover { color: var(--bg); }
.foot-col p { margin-bottom: .7rem; }

.foot-contact { list-style: none; margin: 0 0 1.35rem; padding: 0; }
.foot-contact li { display: grid; grid-template-columns: 18px 1fr; gap: .75rem; align-items: start; margin-bottom: .7rem; }
.foot-contact .ic { color: var(--gold); margin-top: 4px; }
.foot-contact a { color: #C9BCB0; }
.foot-contact a:hover { color: var(--bg); }

.foot-social { display: flex; gap: .5rem; }
.foot-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(251, 246, 238, .16);
  border-radius: var(--r-pill);
  color: #B0A196;
  transition: all var(--fast) var(--ease);
}
.foot-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid rgba(251, 246, 238, .1);
  font-size: var(--fs-xs);
  color: #857A70;
}
.foot-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.foot-legal li { margin: 0; }
.foot-bottom a { color: #857A70; }
.foot-bottom a:hover { color: var(--bg); }

/* ============================================================
   8. FLOATING ACTIONS
   ============================================================ */
.wa-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 880;
  width: 56px; height: 56px;
  border-radius: var(--r-pill);
  background: #1FA855;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -10px rgba(31, 168, 85, .5);
  transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}
.wa-fab:hover { background: #178A45; color: #fff; transform: translateY(-3px); }

.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 890;
  display: none;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: .5rem;
  padding: .55rem var(--gutter) calc(.55rem + env(safe-area-inset-bottom, 0));
  background: rgba(251, 246, 238, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 46px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
}
.mobile-bar a.is-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mobile-bar a.is-wa { color: #178A45; }

/* Yüklenen logo görseli — üst ve alt bilgide aynı davranır */
.brand__img { display: block; height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.foot-brand .brand__img { margin-bottom: 1.1rem; }

@media (max-width: 575px) {
  .brand__img { height: 34px; max-width: 170px; }
}
