:root {
  --bg: #fbf7f4;
  --tint: #f4ebe7;
  --ink: #2b2326;
  --muted: #7a6d71;
  --accent: #c9787f;
  --accent-dark: #a95c64;
  --card: #ffffff;
  --line: #eee3df;
  --whatsapp: #25d366;
  --header-height: 72px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

html.is-locked {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  max-width: 680px;
  text-align: center;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

/* Beyaz yazı --accent üzerinde 3,2:1 kalıyor; koyu yazı AA kontrastını sağlıyor. */
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

/* Dokunmatik ekranda hover dokunuştan sonra takılı kalıyor; bu yüzden hover etkileri fareye özel. */
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
  }
}

/* --accent-dark krem zeminde 4,47:1 kalıyor (AA için 4,5:1 gerekli); küçük yazılarda kullanılmaz. */
.btn-ghost {
  border-color: var(--accent-dark);
  background: transparent;
  color: var(--ink);
}

@media (hover: hover) {
  .btn-ghost:hover {
    background: var(--accent-dark);
    color: #fff;
  }
}

/* Kartlar */
.card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

/* Üst menü */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 244, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid #a98f76;
  border-radius: 50%;
}

.logo-secondary {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888);
  color: #fff;
  transition: transform 0.2s;
}

@media (hover: hover) {
  .instagram-btn:hover {
    transform: scale(1.07);
  }
}

.header-instagram {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.site-nav a {
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

.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 {
  padding: 4.5rem 0 5rem;
}

.hero-inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

.hero-inner.has-photo {
  grid-template-columns: 1.15fr 0.85fr;
  text-align: left;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.hero-intro {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-inner:not(.has-photo) .hero-intro {
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-inner:not(.has-photo) .hero-actions {
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  max-height: 560px;
  border-radius: 240px 240px 16px 16px;
  object-fit: cover;
}

/* Bölümler */
.section {
  padding: 5rem 0;
}

.section-tint {
  background: var(--tint);
}

.section-head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-head p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* --muted, --tint üzerinde AA kontrastının altında kalıyor. */
.section-tint .section-head p {
  color: var(--ink);
}

.about-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Hizmetler */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .service-card:has(.service-link):hover {
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(43, 35, 38, 0.07);
  }
}

.service-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

/* Tüm kart tıklanabilir olsun. */
.service-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
}

.service-icon {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
  line-height: 1;
}

.service-card p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.service-card .service-price {
  margin-top: 0.9rem;
  color: var(--accent-dark);
  font-weight: 500;
}

/* Galeri */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pill {
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 400 0.92rem/1.2 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

@media (hover: hover) {
  .pill:hover {
    border-color: var(--accent-dark);
  }
}

.pill[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: var(--tint);
}

.gallery-item[hidden] {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.35s;
}

@media (hover: hover) {
  .gallery-item:hover img {
    transform: scale(1.04);
  }
}

.gallery-more {
  margin-top: 2rem;
  text-align: center;
}

.gallery-more .btn[hidden] {
  display: none;
}

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 15, 17, 0.94);
  color: #fff;
}

.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox::backdrop {
  background: rgba(20, 15, 17, 0.94);
}

.lightbox-img {
  width: auto;
  max-width: min(100vw - 8rem, 1100px);
  max-height: calc(100dvh - 6rem);
  border-radius: 8px;
  object-fit: contain;
  touch-action: pan-y;
}

.lightbox-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 400 1.9rem/1 var(--sans);
  cursor: pointer;
  transition: background-color 0.2s;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-btn:focus-visible {
  outline-color: #fff;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev {
  left: 1rem;
  top: calc(50% - 24px);
}

.lightbox-next {
  right: 1rem;
  top: calc(50% - 24px);
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  font-size: 0.9rem;
  text-align: center;
}

/* İletişim */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.contact-card {
  padding: 2rem;
}

.contact-card h3 {
  margin-top: 1.75rem;
}

.contact-directions {
  width: 100%;
  margin-top: 1.5rem;
}

.map-card {
  overflow: hidden;
  min-height: 380px;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
}

.contact-list dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-list dd {
  margin: 0.1rem 0 0;
}

.contact-list a {
  color: var(--accent-dark);
}

.contact-list .instagram-btn {
  width: 48px;
  height: 48px;
  margin-top: 0.3rem;
  border-radius: 14px;
  color: #fff;
}

.hours {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours th,
.hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}

.hours tr:last-child th,
.hours tr:last-child td {
  border-bottom: 0;
}

.hours th {
  font-weight: 400;
  text-align: left;
}

.hours td {
  color: var(--muted);
  text-align: right;
}

/* Footer */
.site-footer {
  padding: 2rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

/* Sabit Instagram ve WhatsApp butonları */
.float-actions {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: flex;
  gap: 0.75rem;
}

.float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(43, 35, 38, 0.25);
  color: #fff;
  transition: transform 0.2s;
}

@media (hover: hover) {
  .float-btn:hover {
    transform: scale(1.07);
  }
}

.whatsapp-float {
  background: var(--whatsapp);
}

/* Tablet */
@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobil */
@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .header-instagram {
    width: 44px;
    height: 44px;
  }

  .nav-toggle {
    display: flex;
    order: 1;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.8rem 0;
    font-size: 1rem;
  }

  .hero {
    padding: 2.75rem 0 3.5rem;
  }

  .hero-inner.has-photo {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-inner.has-photo .hero-intro {
    margin-inline: auto;
  }

  .hero-inner.has-photo .hero-actions {
    justify-content: center;
  }

  /* Dar ekranda alt alta düşen butonlar eşit genişlikte olsun. */
  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-photo img {
    max-height: 420px;
    border-radius: 160px 160px 16px 16px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .pill {
    min-height: 44px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-list dd > a:not(.instagram-btn) {
    display: inline-block;
    padding-block: 0.4rem;
  }

  .float-actions {
    right: 1rem;
    bottom: 1rem;
    gap: 0.6rem;
  }

  .float-btn {
    width: 52px;
    height: 52px;
  }

  /* Sabit WhatsApp butonu footer yazısının üzerine binmesin. */
  .site-footer {
    padding-bottom: 5.5rem;
  }

  .lightbox-img {
    max-width: 100vw;
    border-radius: 0;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

/* Küçük telefonlarda logo ile sağdaki butonlar birbirine yapışmasın. */
@media (max-width: 360px) {
  .logo {
    gap: 0.4rem;
    font-size: 1.2rem;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
