/* Salon Divan · divandugunsalonu.com
   Renkler salonun kendisinden: gece mor ışıkları (mürdüm), altın servis tabakları (pirinç),
   beyaz sandalyeler ve örtüler (fildişi). */

:root {
  --plum-950: oklch(0.17 0.035 325);
  --plum-900: oklch(0.21 0.045 325);
  --plum-800: oklch(0.27 0.06 325);
  --plum-700: oklch(0.36 0.08 325);

  --on-plum: oklch(0.95 0.012 80);
  --on-plum-muted: oklch(0.80 0.025 330);
  --line-on-plum: oklch(0.80 0.105 80 / 0.32);
  --field-line: oklch(0.95 0.012 80 / 0.18);

  --ivory: oklch(0.972 0.011 80);
  --ivory-2: oklch(0.94 0.017 78);
  --ink: oklch(0.23 0.03 325);
  --ink-muted: oklch(0.44 0.025 325);
  --line-on-ivory: oklch(0.50 0.095 65 / 0.4);

  --brass: oklch(0.80 0.105 80);
  --brass-hover: oklch(0.86 0.09 84);
  --brass-ink: oklch(0.50 0.095 65);

  --font-display: "Libre Caslon Text", "Baskerville", Georgia, serif;
  --font-body: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 44px);
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--plum-950);
  color: var(--on-plum);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; text-wrap: balance; }

p { margin: 0; text-wrap: pretty; }
::selection { background: var(--brass); color: var(--plum-950); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brass);
  color: var(--plum-950);
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease-out);
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }

.btn-brass { background: var(--brass); color: var(--plum-950); }
.btn-brass:hover { background: var(--brass-hover); }

.btn-line { border-color: oklch(0.95 0.012 80 / 0.4); color: var(--on-plum); }
.btn-line:hover { border-color: var(--brass); color: var(--brass); }


.text-link {
  color: var(--brass);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.text-link:hover { color: var(--brass-hover); }

/* ---------- Üst bar ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled] {
  background: oklch(0.17 0.035 325 / 0.94);
  border-bottom-color: oklch(0.80 0.105 80 / 0.16);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo: isim */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-sub {
  margin-top: 6px;
  font: 500 0.6rem/1 var(--font-body);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 32px;
}
.nav a {
  color: var(--on-plum-muted);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.3s;
}
.nav a:hover { color: var(--brass); }

.header-call {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-on-plum);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}
@media (max-width: 479px) {
  .header-call { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .header-call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
.header-call svg { width: 16px; height: 16px; fill: var(--brass); }
.header-call:hover { border-color: var(--brass); color: var(--brass); }

@media (min-width: 860px) {
  .nav { display: flex; }
  .header-call { margin-left: 8px; }
}

/* ---------- Karşılama ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(28px, 6vw, 72px));
  background:
    radial-gradient(60% 55% at 78% 30%, oklch(0.36 0.09 325 / 0.6), transparent 70%),
    radial-gradient(40% 40% at 10% 85%, oklch(0.30 0.07 300 / 0.45), transparent 70%),
    var(--plum-950);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: clamp(48px, 8vw, 72px);
  padding-bottom: clamp(56px, 9vw, 112px);
}

.kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero-title {
  font-size: clamp(2.7rem, 1rem + 6.6vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0.32em 0 0.4em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 0.12em 0.14em 0;
  margin-bottom: -0.14em;
}
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: italic; color: var(--brass); }

.hero-lead {
  max-width: 36ch;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--on-plum-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.2rem;
}

.hero-media {
  position: relative;
  padding-bottom: 8%;
}

/* Kemer çerçeve: salonun çiçek kemerlerinden */
.arch { position: relative; }
.arch img {
  width: 100%;
  border-radius: 999px 999px 0 0;
  object-fit: cover;
}
.arch::before {
  content: "";
  position: absolute;
  inset: -12px -12px 0;
  border: 1px solid var(--frame-line, var(--line-on-plum));
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.arch-main {
  width: 78%;
  margin-left: auto;
  margin-right: 4%;
}
.arch-main img { aspect-ratio: 3 / 4; }

.arch-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38%;
}
.arch-small img {
  aspect-ratio: 3 / 4;
  outline: 6px solid var(--plum-950);
}
.arch-small::before { display: none; }

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 4vw;
    min-height: calc(100svh - var(--header-h) - 140px);
  }
  .hero-media { padding-bottom: 6%; }
  .arch-main { width: 80%; max-width: 460px; margin-right: 12px; }
  .arch-small { width: 36%; max-width: 210px; left: -2%; }
}

/* Organizasyon türleri şeridi */
.occasions {
  list-style: none;
  margin: 0;
  padding: clamp(20px, 3vw, 30px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 0;
  border-top: 1px solid var(--line-on-plum);
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 0.85rem + 1.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--on-plum);
}
.occasions li { display: inline-flex; align-items: center; }
.occasions li + li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 clamp(14px, 2vw, 28px);
  background: var(--brass);
  transform: rotate(45deg);
}

/* ---------- Salon ---------- */

.salon {
  background: var(--ivory);
  color: var(--ink);
  --frame-line: var(--line-on-ivory);
  padding-bottom: clamp(72px, 11vw, 160px);
}

.band img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
@media (min-width: 900px) {
  .band img { aspect-ratio: auto; height: clamp(420px, 52vw, 760px); }
}

.salon-intro {
  display: grid;
  gap: 24px;
  padding-block: clamp(56px, 9vw, 128px);
}
.salon-intro h2 {
  font-size: clamp(1.85rem, 1.1rem + 3vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 17ch;
}
.salon-intro p {
  color: var(--ink-muted);
  max-width: 44ch;
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
}
.facts {
  list-style: none;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line-on-ivory);
  display: grid;
  gap: 12px;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.06rem;
  font-weight: 500;
  color: var(--ink);
}
.facts li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--brass-ink);
  transform: rotate(45deg);
}
@media (min-width: 900px) {
  .salon-intro {
    grid-template-columns: 7fr 5fr;
    align-items: end;
    gap: 6vw;
  }
}

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(64px, 10vw, 140px);
}

.feature {
  display: grid;
  gap: 28px;
}
.feature-media { width: 84%; }
.feature:nth-child(even) .feature-media { margin-left: auto; }
.feature-media img { aspect-ratio: 4 / 5; }

.feature-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brass-ink);
  margin-bottom: 10px;
}
.feature h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  line-height: 1.18;
  margin-bottom: 14px;
}
.feature p {
  color: var(--ink-muted);
  max-width: 38ch;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: repeat(12, 1fr);
    align-items: center;
    gap: 0;
  }
  .feature-media { width: auto; grid-column: 1 / span 5; grid-row: 1; }
  .feature-text { grid-column: 7 / span 5; grid-row: 1; }
  .feature:nth-child(even) .feature-media { grid-column: 8 / span 4; margin-left: 0; }
  .feature:nth-child(even) .feature-text { grid-column: 2 / span 5; }
}

.feature-plain {
  border-top: 1px solid var(--line-on-ivory);
  padding-top: clamp(40px, 6vw, 72px);
}
.feature-plain .feature-text { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .feature-plain .feature-text {
    grid-column: 3 / span 8;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 32px;
    align-items: baseline;
  }
  .feature-plain .feature-num { grid-row: 1 / span 2; }
}

/* ---------- Galeri ---------- */

.gallery {
  background: var(--plum-900);
  padding-block: clamp(72px, 11vw, 150px);
}
.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.gallery-head h2 {
  font-size: clamp(2rem, 1.3rem + 3vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.gallery-grid {
  columns: 2;
  column-gap: 10px;
}
@media (min-width: 720px) { .gallery-grid { columns: 3; column-gap: 14px; } }
@media (min-width: 1100px) { .gallery-grid { columns: 4; } }

.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: var(--plum-800);
  border-radius: 6px;
  overflow: hidden;
  cursor: zoom-in;
  break-inside: avoid;
}
@media (min-width: 720px) { .gallery-item { margin-bottom: 14px; } }
.gallery-item img {
  width: 100%;
  transition: transform 0.9s var(--ease-out), opacity 0.4s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:nth-child(3n + 2) img { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-item:nth-child(4n) img { aspect-ratio: 1; object-fit: cover; }

/* ---------- İletişim ---------- */

.contact {
  padding-block: clamp(72px, 11vw, 150px);
  background:
    radial-gradient(50% 50% at 0% 0%, oklch(0.30 0.07 325 / 0.6), transparent 70%),
    var(--plum-950);
}
.contact-grid {
  display: grid;
  gap: clamp(56px, 8vw, 96px);
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 7vw; align-items: start; }
}

.contact h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.contact-lead {
  margin: 18px 0 clamp(28px, 4vw, 40px);
  color: var(--on-plum-muted);
  max-width: 40ch;
}

.ask { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-size: 0.95rem; color: var(--on-plum-muted); }
.opt { opacity: 0.7; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--on-plum);
  background: var(--plum-900);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: oklch(0.80 0.025 330 / 0.55); }
.field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9b87a' stroke-width='1.6'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px oklch(0.80 0.105 80 / 0.22);
}

.ask .btn { margin-top: 6px; }

.info {
  margin: 0 0 28px;
  display: grid;
  gap: 24px;
}
.info div { display: grid; gap: 4px; }
.info dt { font-size: 0.92rem; color: var(--brass); }
.info dd {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  line-height: 1.45;
}
.info dd a { text-decoration: none; }
.info dd a:hover { color: var(--brass); }

.map {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--plum-900);
  border: 1px solid var(--field-line);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Alt bilgi ---------- */

.site-footer {
  border-top: 1px solid var(--line-on-plum);
  padding: 48px 0 calc(48px + 76px);
  color: var(--on-plum-muted);
  font-size: 0.95rem;
}
.footer-inner { display: grid; gap: 24px; }
.brand-footer { color: var(--on-plum); gap: 16px; }
.brand-footer .brand-name { font-size: 1.7rem; }
.footer-slogan {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--on-plum);
}
.footer-meta a,
.footer-copy a { color: var(--on-plum); text-underline-offset: 0.2em; }
@media (min-width: 860px) {
  .site-footer { padding-bottom: 48px; }
  .footer-inner { grid-template-columns: 1fr 1.4fr auto; align-items: end; }
}

/* ---------- Mobil hızlı iletişim çubuğu ---------- */

.action-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: oklch(0.17 0.035 325 / 0.96);
  border-top: 1px solid oklch(0.80 0.105 80 / 0.18);
  transform: translateY(110%);
  transition: transform 0.5s var(--ease-out);
}
.action-bar[data-show] { transform: none; }
.action-bar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 999px;
  border: 1px solid oklch(0.95 0.012 80 / 0.35);
  text-decoration: none;
  font-weight: 500;
}
.action-bar a.is-wa { background: var(--brass); border-color: var(--brass); color: var(--plum-950); }
.action-bar svg { width: 19px; height: 19px; fill: currentColor; }
@media (min-width: 860px) { .action-bar { display: none; } }

/* ---------- Fotoğraf görüntüleyici ---------- */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: oklch(0.12 0.02 325 / 0.97);
  color: var(--on-plum);
  overscroll-behavior: contain;
}
.lightbox[open] {
  display: grid;
  place-items: center;
  grid-template-rows: 1fr auto;
}
.lightbox::backdrop { background: transparent; }
.lightbox img {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  align-self: end;
}
.lightbox-caption {
  padding: 16px 24px 90px;
  text-align: center;
  color: var(--on-plum-muted);
  font-size: 0.95rem;
}
.lb-btn {
  position: absolute;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid oklch(0.95 0.012 80 / 0.3);
  border-radius: 50%;
  background: oklch(0.17 0.035 325 / 0.7);
  color: var(--on-plum);
  font: 300 2rem/1 var(--font-body);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.lb-btn:hover { border-color: var(--brass); color: var(--brass); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { bottom: 24px; left: calc(50% - 64px); }
.lb-next { bottom: 24px; right: calc(50% - 64px); }
@media (min-width: 860px) {
  .lightbox-caption { padding-bottom: 32px; }
  .lightbox img { max-width: calc(100vw - 200px); max-height: calc(100dvh - 110px); }
  .lb-prev { bottom: auto; top: 50%; left: 28px; transform: translateY(-50%); }
  .lb-next { bottom: auto; top: 50%; right: 28px; transform: translateY(-50%); }
}

/* ---------- Hareket ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise 1.2s var(--ease-out) both; }
  .hero-title .line:nth-child(1) > span { animation-delay: 0.1s; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.2s; }
  .hero-title .line:nth-child(3) > span { animation-delay: 0.3s; }
  .kicker { animation: fade-up 0.9s var(--ease-out) both; }
  .hero-lead { animation: fade-up 1s var(--ease-out) 0.5s both; }
  .hero-actions { animation: fade-up 1s var(--ease-out) 0.62s both; }
  .arch-main img { animation: unveil 1.5s var(--ease-out) 0.15s both; }
  .arch-main::before { animation: fade 1.6s ease-out 0.9s both; }
  .arch-small { animation: fade-up 1.2s var(--ease-out) 0.8s both; }
  .occasions { animation: fade 1.4s ease-out 1s both; }

  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes unveil {
  from { clip-path: inset(100% 0 0 0); transform: scale(1.08); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}
