/* =====================================================
   Esenpınar Tantuni — Ana CSS (Dark Restaurant Teması)
   ===================================================== */

/* ─── Design Tokens ─────────────────────────────── */
:root {
  --bg-900: #0e0d0b;
  --bg-800: #161410;
  --bg-700: #1f1c17;
  --bg-600: #2a261e;
  --accent: #e08c2a;
  --accent-light: #f5aa50;
  --accent-dark: #b86d10;
  --text-primary: #f0ead8;
  --text-muted: #9e9580;
  --border: rgba(224, 140, 42, 0.2);
  --radius: 12px;
  --radius-sm: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.5);
  --transition: 0.3s ease;
  --max-w: 1200px;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-900);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ─── Tipografi ──────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

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

/* ─── Layout ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2rem;
}

/* ─── HEADER ─────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.7); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}
.site-logo-text {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* NAV */
.site-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  background: rgba(224,140,42,0.15);
  color: var(--accent);
}

.site-nav .dropdown { position: relative; }
.site-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  box-shadow: var(--shadow);
}
.site-nav .dropdown:hover .dropdown-menu { display: block; }
.site-nav .dropdown-menu a { font-size: 0.88rem; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO / SLİDER ─────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  height: clamp(400px, 60vh, 680px);
  background: var(--bg-800);
}

.hero-slides { width: 100%; height: 100%; position: relative; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,13,11,0.2) 0%, rgba(14,13,11,0.7) 100%);
}

.hero-content {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  width: 90%;
}
.hero-content h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.hero-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
}
.hero-dot.active { background: var(--accent); }

/* ─── BÖLÜM BAŞLIKLARI ───────────────────────────── */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-800); }
.section-darker { background: var(--bg-700); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); max-width: 560px; margin-inline: auto; }

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem auto;
}

/* ─── KARTLAR ────────────────────────────────────── */
.card {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 1.5rem; }

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ─── BUTONLAR ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #0e0d0b;
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #0e0d0b;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #0e0d0b;
}
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }

/* ─── ROZET/ETİKET ───────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(224,140,42,0.15);
  color: var(--accent);
  border: 1px solid rgba(224,140,42,0.3);
  transition: all var(--transition);
  text-decoration: none;
}
.tag:hover { background: var(--accent); color: #0e0d0b; }

/* ─── HABERLER LİSTESİ ───────────────────────────── */
.news-item {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}
.news-item:hover { border-color: var(--accent); }
.news-item-img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.news-item-body { padding: 1.5rem 1.5rem 1.5rem 0; display: flex; flex-direction: column; justify-content: center; }

/* ─── SAYFALAMA ──────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-700);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active { background: var(--accent); border-color: var(--accent); color: #0e0d0b; }

/* ─── VİZYON MISYON ──────────────────────────────── */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.vm-col {
  padding: 4rem 3rem;
}
.vm-col:first-child { background: var(--bg-700); }
.vm-col:last-child  { background: var(--bg-600); }

/* ─── FORM ───────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.88rem; color: var(--text-muted); font-weight: 500; }
.form-control {
  padding: 0.75rem 1rem;
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 130px; }

.alert {
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.alert-success { background: rgba(52,199,89,0.12); border: 1px solid rgba(52,199,89,0.3); color: #4ade80; }
.alert-danger  { background: rgba(255,69,58,0.12); border: 1px solid rgba(255,69,58,0.3); color: #f87171; }
.alert.show { display: block; }

/* ─── GALERİ ─────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: '⊕';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-size: 2rem;
  color: white;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover::after { opacity: 1; }

/* ─── LİGHTBOX ───────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none; border: none;
  color: white; font-size: 2rem;
  cursor: pointer; line-height: 1;
}

/* ─── VİDEO GRID ─────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.video-card:hover { border-color: var(--accent); }
.video-embed { position: relative; padding-top: 56.25%; }
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.video-title { padding: 1rem; font-size: 0.95rem; font-weight: 600; }

/* ─── REFERANSLAR ────────────────────────────────── */
.refs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.ref-item {
  background: var(--bg-700);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  transition: border-color var(--transition);
}
.ref-item:hover { border-color: var(--accent); }
.ref-item img { max-height: 64px; width: auto; filter: grayscale(1); transition: filter var(--transition); }
.ref-item:hover img { filter: none; }

/* ─── SSS ────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.1rem 1.4rem;
  background: var(--bg-700);
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-600); }
.faq-question .icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  background: var(--bg-800);
}
.faq-answer-inner { padding: 0 1.4rem; color: var(--text-muted); font-size: 0.95rem; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-item.open .faq-answer-inner { padding: 1rem 1.4rem 1.25rem; }

/* ─── ARA SAYFASI ────────────────────────────────── */
.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.search-bar .form-control { flex: 1; }

/* ─── İLETİŞİM BİLGİLERİ ────────────────────────── */
.contact-info-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(224,140,42,0.12);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
}
.contact-info-item strong { display: block; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.contact-info-item span  { font-size: 0.95rem; }

/* ─── HARITA ─────────────────────────────────────── */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-wrapper iframe { display: block; width: 100%; }

/* ─── FOOTER ─────────────────────────────────────── */
#site-footer {
  background: var(--bg-800);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand .site-logo-text { font-size: 1.4rem; margin-bottom: 0.75rem; display: block; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; color: var(--accent); }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }

.social-links { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-700);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--accent); border-color: var(--accent); color: #0e0d0b; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--accent); font-weight: 600; }

/* ─── 404 SAYFASI ────────────────────────────────── */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem;
  min-height: 60vh;
}
.error-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  opacity: 0.3;
}

/* ─── SAYFA BAŞLIĞI ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--bg-800) 0%, var(--bg-700) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.5rem;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { opacity: 0.4; }

/* ─── LAZY LOAD ──────────────────────────────────── */
img[data-src] { opacity: 0; transition: opacity 0.4s ease; }
img.loaded    { opacity: 1; }

/* ─── SCROLL TO TOP ──────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #0e0d0b;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { background: var(--accent-light); transform: translateY(-2px); }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--bg-800);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background: var(--bg-900);
    padding-left: 1rem;
  }
  .site-nav .dropdown.open .dropdown-menu { display: block; }
  .news-item { grid-template-columns: 1fr; }
  .news-item-img { height: 200px; }
  .news-item-body { padding: 1.25rem; }
  .vm-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .vm-col { padding: 2.5rem 1.5rem; }
  .section { padding: 3rem 0; }
}
