/* =============================================
   FOTO BAYRAK — Main Stylesheet
   Design System: Dark Premium
   ============================================= */

/* ---------- Custom Properties ---------- */
:root {
  /* 🎨 Renk Paleti */
  --color-primary:         #C9A96E;
  --color-primary-dark:    #A8884A;
  --color-primary-light:   #E8D5A3;
  --color-primary-rgb:     201, 169, 110;

  --color-bg-dark:         #0A0A0A;
  --color-bg-section:      #111111;
  --color-bg-card:         #1A1A1A;
  --color-bg-elevated:     #222222;

  --color-text-primary:    #F5F5F5;
  --color-text-secondary:  #999999;
  --color-text-muted:      #666666;

  --color-whatsapp:        #25D366;
  --color-whatsapp-dark:   #1DA851;
  --color-success:         #10B981;
  --color-error:           #EF4444;

  --color-border:          #2A2A2A;
  --color-border-light:    #333333;

  /* 🖋 Tipografi */
  --font-heading:          'Playfair Display', Georgia, serif;
  --font-body:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:               clamp(0.75rem, 0.7rem + 0.15vw, 0.875rem);
  --text-sm:               clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
  --text-base:             clamp(1rem, 0.9rem + 0.25vw, 1.125rem);
  --text-lg:               clamp(1.125rem, 1rem + 0.35vw, 1.375rem);
  --text-xl:               clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem);
  --text-2xl:              clamp(1.75rem, 1.3rem + 1vw, 2.5rem);
  --text-3xl:              clamp(2rem, 1.5rem + 1.5vw, 3.5rem);
  --text-4xl:              clamp(2.5rem, 1.8rem + 2vw, 4.5rem);

  --leading-tight:         1.15;
  --leading-normal:        1.6;
  --heading-weight:        700;

  /* 📐 Spacing */
  --space-1:               0.25rem;
  --space-2:               0.5rem;
  --space-3:               0.75rem;
  --space-4:               1rem;
  --space-6:               1.5rem;
  --space-8:               2rem;
  --space-12:              3rem;
  --space-16:              4rem;
  --space-20:              5rem;
  --space-24:              6rem;

  /* 📦 Layout */
  --container-max:         1200px;
  --container-narrow:      900px;
  --container-padding:     1.5rem;

  /* 🎭 Border Radius */
  --radius-sm:             4px;
  --radius-md:             8px;
  --radius-lg:             12px;
  --radius-xl:             16px;
  --radius-full:           9999px;

  /* 🌓 Shadows */
  --shadow-sm:             0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:             0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:             0 8px 30px rgba(0,0,0,0.5);
  --shadow-glow:           0 0 20px rgba(var(--color-primary-rgb), 0.15);

  /* ⚡ Transitions */
  --transition-fast:       150ms ease;
  --transition-base:       300ms ease;
  --transition-slow:       500ms ease;

  /* 📚 Z-Index */
  --z-header:              100;
  --z-overlay:             200;
  --z-modal:               300;
  --z-whatsapp:            400;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-dark);
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

ul, ol {
  list-style: none;
}

/* ---------- Tipografi ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: 1rem; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ---------- Grid Sistemi ---------- */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

@media (max-width: 991px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Section ---------- */
.section {
  padding: var(--space-20) 0;
}

.section--dark {
  background-color: var(--color-bg-section);
}

.section__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section__title {
  margin-bottom: var(--space-4);
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: var(--leading-normal);
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
}

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

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

.btn--outline {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

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

.btn--ghost {
  color: var(--color-text-primary);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-primary);
}

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

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

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

/* ---------- Animasyon Yardımcıları ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---------- Lazy Loading ---------- */
.lazy {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* ---------- Placeholder ---------- */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-bg-card) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  min-height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* ---------- Section Divider ---------- */
.divider {
  width: 60px;
  height: 2px;
  background: var(--color-primary);
  margin: var(--space-6) 0;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- Utilites ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mx-auto { margin-left: auto; margin-right: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .section {
    padding: var(--space-12) 0;
  }
  
  :root {
    --container-padding: 1rem;
  }
}
