/* ========== Renkler ve temel ayarlar ========== */
:root {
  --bg: #1b1410;        /* koyu kahve */
  --bg-alt: #241a14;
  --card: #2e221a;
  --line: #45342a;
  --text: #f6ecdf;      /* krem */
  --muted: #c2b09b;
  --gold: #e3a857;      /* kehribar */
  --copper: #c8743a;    /* bakır */
  --wa: #25d366;
  --wa-dark: #1ebe5a;
  --beam-color: #00b140; /* dönen ışık: koyu ama parlak yeşil */
  --radius: 16px;
  --head: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
main { min-height: 60vh; } /* kısa sayfalarda alt bilgi ekranın ortasına çıkmasın */

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--gold); }
img { max-width: 100%; display: block; }

/* ========== Butonlar + dönen ışık hüzmesi ========== */
/* Işığın açısı: tarayıcı bu değeri yumuşakça döndürebilsin diye tanımlı */
@property --beam {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes beam { to { --beam: 360deg; } }

.btn, .wa-float {
  --btn-bg: var(--wa);
  --base-shadow: 0 0 0 0 transparent;  /* butonun kendi gölgesi (alevle birlikte korunur) */
  position: relative;
  isolation: isolate;            /* ışık ve dolgu butonun arkasında kalsın */
  background: transparent;
  border: 0;
  box-shadow: var(--base-shadow);
}

/* İçeride yanan alev (span.fire, script ile eklenir). Dolgunun üstünde, yıldırımın
   ve yazının altında durur. 5 saniyelik döngünün son ~1,2 saniyesinde buton
   alttan alev alır, alevler titreyerek yükselir, sonra söner. */
.fire {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  /* sürekli yanar */
}
.fire { /* yanarken buton koyulaşır, alevler koyu zeminde parlar */
  background: radial-gradient(ellipse at 50% 130%, #6a1800 0%, #260900 55%, #140500 100%);
}
/* Alev çizimi script.js'te üretilir: çok sayıda ince, sivri, kıvrık alev dili.
   Dış diller turuncu-kırmızı, iç diller sarı-beyaz; dipte parlak bir kor şeridi var.
   SVG içindeki "dalgalanma" filtresi dillere gerçek alevdeki gibi kıvrım verir. */
.fire svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 3px rgba(255, 150, 30, .75));
}
.fire path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: tongue .6s ease-in-out infinite alternate;  /* süre/gecikme her dile ayrı verilir */
}
@keyframes tongue { /* alev dilinin titreyip uzayıp kısalması, sağa sola yalpalaması */
  0%   { transform: scale(.92, .7) skewX(6deg); }
  50%  { transform: scale(1.04, 1) skewX(-5deg); }
  100% { transform: scale(.96, 1.12) skewX(3deg); }
}

/* Buton hep yandığı için yazı beyaz ve koyu gölgeli: alevin üstünde okunur kalsın */
.btn, .wa-float { text-shadow: 0 0 3px #000, 0 1px 4px #000; }
.btn.btn-wa, .btn.btn-outline, .wa-float { color: #fff; }
/* 1. katman: dönen tek renkli ışık halkası */
.btn::before, .wa-float::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: -3;
  background: conic-gradient(from var(--beam),
    transparent 0deg,
    transparent 200deg,
    var(--beam-color) 300deg,
    transparent 360deg);
  filter: drop-shadow(0 0 6px rgba(0, 177, 64, .9));
  animation: beam 3.2s linear infinite;
}
/* 2. katman: butonun kendi rengi */
.btn::after, .wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -2;
  background: var(--btn-bg);
  transition: background .2s;
}
/* 3. katman: butonun içinde çakan yıldırım (span.zap, script ile eklenir).
   Dolgunun üstünde, yazının altında durur. Döngünün ~2. saniyesinde çakar,
   böylece alevle (~4. saniye) sırayla gelir. */
.zap {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: zap 5s linear infinite;
}
.zap::before { /* çakma anında butonun içini saran sarı parlama */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 248, 200, .7), rgba(255, 232, 140, .2) 55%, transparent 80%);
  opacity: 0;
  animation: zap-flash 5s linear infinite;
}
@keyframes zap-flash { /* parlama, yıldırım ucu sona varınca patlar */
  0%, 39% { opacity: 0; }
  40%     { opacity: 1; }
  100%    { opacity: 1; }
}
.zap svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 3px rgba(255, 244, 170, .95)) drop-shadow(0 0 10px rgba(255, 226, 110, .8));
  clip-path: inset(0 100% 0 0);      /* başta tamamen gizli */
  animation: zap-grow 5s linear infinite;
}
/* Yıldırım üç katman: soluk sarı dış, beyaza yakın sarı orta, beyaz çekirdek */
.zap path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}
.zap .outer { stroke: #ffe680; stroke-width: 7.5; }
.zap .mid   { stroke: #fff2a8; stroke-width: 4.5; }
.zap .core  { stroke: #fffdf2; stroke-width: 1.75; }
.zap .branch.outer { stroke-width: 4; }
.zap .branch.mid   { stroke-width: 2.5; }
.zap .branch.core  { stroke-width: 1; }

/* Yıldırım soldan sağa ~0,15 sn'de ileri doğru uzar; dallar uç onlara varınca belirir */
@keyframes zap-grow {
  0%, 37% { clip-path: inset(0 100% 0 0); }
  40%     { clip-path: inset(0 0 0 0); }
  100%    { clip-path: inset(0 0 0 0); }
}
/* Görünürlük: uzarken tam parlak, sonra gerçek yıldırım gibi titreyip söner */
@keyframes zap {
  0%, 36.9% { opacity: 0; }
  37%     { opacity: 1; }
  41%     { opacity: 1; }
  42%     { opacity: .25; }
  43.5%   { opacity: 1; }
  45%     { opacity: .4; }
  46.5%   { opacity: 1; }
  50%     { opacity: .6; }
  54%, 100% { opacity: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-wa { color: #0b2b17; }
.btn-wa:hover { --btn-bg: var(--wa-dark); }
.btn-sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .9rem; }
.btn-lg { width: 100%; max-width: 360px; font-size: 1.05rem; padding: 1rem 1.5rem; }
.btn-outline { --btn-bg: var(--card); color: var(--gold); }
.btn-outline:hover { --btn-bg: #3a2b20; }

.wa-icon { width: 22px; height: 22px; flex-shrink: 0; }

/* Hareket istemeyen kullanıcılar için ışık sabit dursun */
@media (prefers-reduced-motion: reduce) {
  .btn, .wa-float, .btn::before, .wa-float::before { animation: none; }
  .zap, .fire { display: none; }
}

/* ========== Üst bar ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: .65rem 16px;
  background: rgba(27, 20, 16, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: var(--head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo span { color: var(--gold); font-style: italic; }
.topbar-row { display: flex; align-items: center; gap: .6rem; }
.topbar-row .logo { margin-right: auto; } /* logo solda, Randevu + menü butonu sağda */

/* ========== Üç çizgili menü butonu (telefonda) ========== */
.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s, opacity .2s;
}
/* açıkken üç çizgi X'e dönüşür */
.topbar.open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar.open .menu-toggle span:nth-child(2) { opacity: 0; }
.topbar.open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ========== Menü (telefonda açılır liste) ========== */
.nav {
  display: none;
  flex-direction: column;
  margin: .65rem -16px -.65rem;
  border-top: 1px solid var(--line);
}
.topbar.open .nav { display: flex; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: .9rem 16px;
  border-bottom: 1px solid var(--line);
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--gold); background: rgba(227, 168, 87, .08); }

/* ========== Giriş (hero) ========== */
/* Fotoğraf gelince: background: linear-gradient(...), url("img/hero.webp") center/cover; */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 16px;
  background:
    radial-gradient(ellipse at 50% 25%, rgba(200, 116, 58, .45), transparent 65%),
    linear-gradient(180deg, rgba(27, 20, 16, .3) 0%, var(--bg) 100%),
    repeating-linear-gradient(135deg, #2c1f17 0 18px, #261a13 18px 36px);
  overflow: hidden;
}
.hero::after { /* berber direği şeridi */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, #b8322f 0 24px, #f6ecdf 24px 48px, #2b4a8b 48px 72px, #f6ecdf 72px 96px);
}
.hero-inner { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; font-weight: 600; }
.hero h1 { font-size: clamp(3.2rem, 15vw, 6rem); }
.hero-sub { color: var(--muted); font-size: 1.15rem; font-family: var(--head); font-style: italic; margin-bottom: .9rem; }
.status { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; margin-top: .25rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.open { background: var(--wa); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); }
.dot.closed { background: #e2574c; }

/* ========== Genel bölüm ========== */
.section { padding: 3.5rem 16px; max-width: 960px; margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg-alt); }
.section-alt > * { max-width: 928px; margin-left: auto; margin-right: auto; }
.section h1, .section h2 { font-size: 2.1rem; margin-bottom: .5rem; }
.section h1::after, .section h2::after { content: ""; display: block; width: 48px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--copper)); margin-top: .6rem; }
.section-lead { color: var(--muted); margin-bottom: 1.75rem; font-size: .95rem; }
.link-more { display: inline-block; margin-top: 1.25rem; font-weight: 600; text-decoration: none; padding: .5rem 0; }

/* ========== Hizmetler ========== */
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.service h3 { font-family: var(--body); font-size: 1rem; font-weight: 600; }
.dur { color: var(--muted); font-size: .85rem; }
.service-right { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex-shrink: 0; }
.price { color: var(--gold); font-size: 1.1rem; }
.chip { /* hizmet kartındaki küçük yuvarlak "Randevu" butonu */
  font-size: .8rem;
  font-weight: 600;
  color: var(--wa);
  text-decoration: none;
  padding: .3rem .8rem;
  border: 1.5px solid rgba(37, 211, 102, .6);
  border-radius: 999px;
}
.chip:hover { background: rgba(37, 211, 102, .12); }

/* ========== Galeri ========== */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.art {
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 40%, #3a2a1f, var(--card) 75%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}
.art svg {
  width: 52%;
  height: auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.art .fill { fill: var(--gold); stroke: none; }
.art .thin { stroke-width: 1.2; opacity: .6; }
.art .thick { stroke-width: 6; stroke: var(--copper); }
.art .pole-stripes path { stroke-width: 3.5; }
.art .red { stroke: #d8483f; }
.art .blue { stroke: #4f7fd6; }
.art figcaption { font-family: var(--head); font-style: italic; color: var(--muted); font-size: .95rem; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); width: 100%; }

/* Yer tutucu (usta fotoğrafı için) */
.ph {
  border-radius: var(--radius);
  border: 1.5px dashed #5a4536;
  background: repeating-linear-gradient(135deg, #2e221a 0 12px, #291e17 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8c7a68;
  font-size: .85rem;
  text-align: center;
  padding: .5rem;
}

/* ========== Hakkımızda ========== */
.about { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.25rem; }
.ph-round { width: 160px; height: 160px; border-radius: 50%; flex-shrink: 0; }
.about h3 { font-size: 1.6rem; margin-bottom: .5rem; color: var(--gold); }
.about p { color: var(--muted); }

/* ========== Yorumlar ========== */
.reviews { display: grid; gap: .75rem; }
.review {
  margin: 0;
  padding: 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.stars { color: var(--gold); letter-spacing: .1em; margin-bottom: .4rem; }
.review p { font-family: var(--head); font-style: italic; font-size: 1.05rem; }
.review cite { display: block; margin-top: .6rem; color: var(--muted); font-style: normal; font-size: .9rem; }

/* ========== Saatler ve konum ========== */
.info-grid { display: grid; gap: 1.5rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: .7rem .5rem; border-bottom: 1px solid var(--line); }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; color: var(--muted); }
.hours tr.today th, .hours tr.today td { color: var(--gold); font-weight: 600; }
.hours tr.today { background: rgba(227, 168, 87, .1); }
.contact { display: flex; flex-direction: column; gap: 1rem; }
.contact .btn { width: 100%; } /* iletişim butonları tam genişlik */
.address { margin-bottom: .25rem; }

/* ========== Son çağrı ========== */
.cta {
  padding: 3.5rem 16px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200, 116, 58, .4), transparent 70%),
    linear-gradient(160deg, #3b2416, var(--bg));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta h2 { font-size: 1.9rem; max-width: 480px; }

/* ========== Alt bilgi ========== */
.footer {
  padding: 2.5rem 16px 6rem; /* altta yüzen buton için boşluk */
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.footer a { color: var(--muted); }
.copy { margin-top: .75rem; font-size: .8rem; }

/* ========== Yüzen WhatsApp butonu ========== */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  --base-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}
.wa-float .wa-icon { width: 32px; height: 32px; }

/* ========== Geniş ekranlar ========== */
/* 1024px: yan çevrilmiş telefonlar da (700–950px) telefon düzeninde kalsın */
@media (min-width: 1024px) {
  .services { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .about { flex-direction: row; text-align: left; align-items: center; gap: 2rem; }
  .info-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .section h1, .section h2 { font-size: 2.5rem; }
  /* Geniş ekranda menü butonu gizli, menü yatay ve hep açık */
  .menu-toggle { display: none; }
  .nav, .topbar.open .nav { display: flex; flex-direction: row; justify-content: center; gap: 2rem; margin: .5rem 0 -.65rem; border-top: 0; }
  .nav a { font-size: .9rem; padding: .55rem .15rem; border-bottom: 2px solid transparent; }
  .nav a[aria-current="page"] { background: none; border-bottom-color: var(--gold); }
}
