/* ============================================
   ATA PiLAV - LEZZET ŞÖLENİ
   Mobile-First Responsive Stylesheet
   ============================================ */

/* CSS Custom Properties */
:root {
  --color-primary: #B22222;
  --color-primary-dark: #8B1A1A;
  --color-accent: #D4A017;
  --color-accent-light: #E8C547;
  --color-bg: #FFF8F0;
  --color-bg-dark: #2C2C2C;
  --color-text: #3B2F2F;
  --color-text-light: #FFFFFF;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-phone: #0077B6;
  --color-phone-dark: #005F8A;
  --color-card-bg: #FFFFFF;
  --color-border: #E8DDD0;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(44, 44, 44, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(44, 44, 44, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  height: 50px;
  width: auto;
}

.nav-brand span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 1px;
}

.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  background: rgba(44, 44, 44, 0.98);
  padding: 20px;
  gap: 0;
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  color: var(--color-text-light);
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-links a:last-child {
  border-bottom: none;
}

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

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--color-text-light);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 20px) 20px 40px;
  background: linear-gradient(135deg, #2C2C2C 0%, #4A3728 50%, #2C2C2C 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(212, 160, 23, 0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 150px;
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--color-text-light);
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h2 {
  font-size: 1.2rem;
  color: var(--color-accent);
  font-weight: 400;
  letter-spacing: 5px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-hours {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(212, 160, 23, 0.3);
  padding: 10px 24px;
  border-radius: 50px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-hours .clock-icon {
  font-size: 1.1rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  border: none;
  text-align: center;
  min-width: 220px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: white;
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
}

.btn-phone {
  background: var(--color-phone);
  color: white;
}

.btn-phone:hover {
  background: var(--color-phone-dark);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-light);
  border: 2px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #777;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-section {
  padding: 0;
  background: var(--color-bg-dark);
}

/* Başlık alanı */
.gallery-header {
  text-align: center;
  padding: 48px 20px 32px;
  background: var(--color-bg-dark);
}

.gallery-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: 2px;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.gallery-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 10px auto 0;
  border-radius: 2px;
}

.gallery-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-top: 4px;
}

/* Kolaj */
.gallery-collage {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 280px 280px;
  line-height: 0;
}

/* Her fotoğraf */
.collage-img {
  position: relative;
  overflow: hidden;
}

.collage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.collage-img:hover img {
  transform: scale(1.06);
}

/* Fotoğraf alt gradient */
.collage-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  pointer-events: none;
}

/* Fotoğraf alt etiketi */
.collage-label {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  line-height: 1.4;
}

/* ============================================
   MENU
   ============================================ */
.menu-section {
  background: var(--color-bg);
  padding: 0;
}

/* ---- Menu Poster ---- */
.menu-poster {
  position: relative;
  width: 100%;
  background: linear-gradient(160deg, #FFFDF7 0%, #FFF5E6 50%, #FFFDF7 100%);
  border-top: 4px solid var(--color-accent);
  border-bottom: 4px solid var(--color-accent);
  padding: 48px 24px 40px;
}

/* Kose susler - kaldirildi (tam genislik tasarim) */
.poster-corner { display: none; }

/* Logo ve Baslik */
.poster-header {
  text-align: center;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.poster-logo {
  width: 90px;
  height: auto;
  margin: 0 auto 12px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

.poster-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 6px;
  margin: 0 0 4px;
}

.poster-title::after {
  display: none;
}

/* Ayirici cizgiler */
.poster-divider {
  width: 120px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  margin: 14px auto;
}

.poster-divider-thin {
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  margin: 24px 0;
}

/* Kategori */
.poster-category {
  margin-bottom: 20px;
}

.poster-cat-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
  position: relative;
}

/* Menu item listesi */
.poster-items {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.poster-items span {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
  text-align: center;
  position: relative;
}

/* Pilavlar icin cok sutunlu duzenleme */
.poster-items-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
}

.poster-items-columns span {
  text-align: center;
  padding: 3px 0;
  border-bottom: 1px dotted rgba(212, 160, 23, 0.25);
}

.poster-items-columns span:last-child {
  border-bottom: none;
}

/* Alt kategoriler grid */
.poster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Poster alt bilgi */
.poster-footer {
  text-align: center;
  margin-top: 8px;
}

.poster-footer p {
  font-size: 0.9rem;
  color: var(--color-accent);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .menu-poster {
    padding: 56px 60px 48px;
  }

  .poster-logo {
    width: 110px;
  }

  .poster-title {
    font-size: 2.2rem;
  }

  .poster-items-columns {
    grid-template-columns: 1fr 1fr;
  }

  .poster-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px 32px;
  }

  .poster-items span {
    font-size: 1rem;
  }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .menu-poster {
    padding: 60px 80px 52px;
  }

  .poster-items-columns {
    grid-template-columns: 1fr 1fr 1fr;
    max-width: 900px;
    margin: 0 auto;
  }

  .poster-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 28px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .poster-category-full {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================
   STATS - NEDEN BİZ
   ============================================ */
.stats-section {
  background: var(--color-primary);
  padding: 36px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  color: white;
}

.stat-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.stat-item strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .stat-item {
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
  }

  .stat-item:last-child {
    border-right: none;
  }
}

/* ============================================
   SİPARİŞ ADIMLARI
   ============================================ */
.order-section {
  background: var(--color-bg);
  padding: 70px 0;
}

.order-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.order-step {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 280px;
  position: relative;
  border-bottom: 3px solid var(--color-accent);
  transition: transform 0.3s, box-shadow 0.3s;
}

.order-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.order-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.order-step p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
}

.order-arrow {
  font-size: 2rem;
  color: var(--color-accent);
  font-weight: 700;
  transform: rotate(90deg);
  line-height: 1;
}

@media (min-width: 768px) {
  .order-steps {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0;
  }

  .order-step {
    flex: 1;
    max-width: 280px;
  }

  .order-arrow {
    transform: rotate(0deg);
    align-self: center;
    padding: 0 12px;
  }
}

/* ============================================
   CATERING
   ============================================ */
.catering-section {
  position: relative;
  background: var(--color-bg-dark);
  overflow: hidden;
  padding: 80px 0;
}

.catering-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.catering-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-text-light);
}

.catering-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.catering-content h3 {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.catering-text {
  max-width: 700px;
  margin: 0 auto 16px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.8;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.catering-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 32px;
}

.catering-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.catering-feature .check {
  color: var(--color-whatsapp);
  font-weight: bold;
}

.catering-cta {
  margin-top: 16px;
}

/* ============================================
   LOCATION
   ============================================ */
.location-section {
  background: var(--color-card-bg);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
}

.info-details h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.info-details p {
  font-size: 1rem;
  color: var(--color-text);
}

.info-details a:not(.btn):not(.btn-directions) {
  color: var(--color-primary);
  font-weight: 500;
}

.info-details a:not(.btn):not(.btn-directions):hover {
  text-decoration: underline;
}

.info-details .btn,
.info-details .btn-directions {
  color: white;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.location-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-height: 300px;
}

.location-map iframe {
  width: 100%;
  height: 300px;
  border: none;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: white;
  padding: 10px 24px;
  background: var(--color-primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-directions:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  height: 45px;
}

.footer-brand span {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.footer-hours {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-contact .btn {
  min-width: auto;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: white;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 1.2rem;
  transition: background 0.3s;
}

.footer-social a:hover {
  background: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-seo {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: none;
    padding: 0;
    gap: 28px;
  }

  .nav-links a {
    padding: 0;
    border-bottom: none;
    font-size: 0.95rem;
  }

  .hamburger {
    display: none;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero-logo {
    width: 180px;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .gallery-collage {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 380px;
  }

  .gallery-header h2 {
    font-size: 2.4rem;
  }

  .catering-features {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .location-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .location-map iframe {
    height: 100%;
    min-height: 350px;
  }

  .contact-buttons {
    flex-direction: row;
  }

  .section {
    padding: 80px 0;
  }

  .catering-section {
    padding: 100px 0;
  }
}

/* ============================================
   DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }

  .hero-logo {
    width: 200px;
  }

  .section {
    padding: 100px 0;
  }

  .location-map iframe {
    min-height: 400px;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
