/* ===================================================
   FSM CATERING — DESIGN SYSTEM
   main.css — Reset, Custom Properties, Tipografi, Layout
   =================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  /* --- Renk Paleti --- */
  --primary: #6B1D2A;
  --primary-dark: #4A1420;
  --primary-light: #8B2E3D;
  --primary-rgb: 107, 29, 42;

  --accent: #C8973E;
  --accent-light: #D4A94E;
  --accent-dark: #B0842F;
  --accent-rgb: 200, 151, 62;

  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #7A7A7A;

  --bg-white: #FFFFFF;
  --bg-cream: #FAF7F2;
  --bg-light: #F5F1EB;
  --border: #E5DED4;

  --success: #2D8B4E;
  --whatsapp: #25D366;
  --error: #D32F2F;

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

  /* --- Font Boyutları (Fluid Tipografi) --- */
  --fs-display: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --fs-h1: clamp(2rem, 4vw + 0.5rem, 3.5rem);
  --fs-h2: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  --fs-h3: clamp(1.375rem, 2vw + 0.5rem, 2rem);
  --fs-h4: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem);
  --fs-body-lg: clamp(1.0625rem, 1vw + 0.5rem, 1.25rem);
  --fs-body: 1rem;
  --fs-body-sm: 0.9375rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;

  /* --- Spacing --- */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Section spacing (fluid) */
  --section-py: clamp(4rem, 8vw, 7rem);
  --section-py-sm: clamp(3rem, 6vw, 5rem);

  /* --- Layout --- */
  --container-max: 1280px;
  --container-narrow: 960px;
  --container-text: 780px;
  --container-px: clamp(1rem, 3vw, 2rem);

  /* --- Border & Radius --- */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.16);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-card-hover: 0 8px 32px rgba(0,0,0,0.14);

  /* --- Transitions --- */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* --- Z-Index Katmanları --- */
  --z-back: -1;
  --z-normal: 1;
  --z-tooltip: 10;
  --z-sticky: 100;
  --z-drawer: 200;
  --z-modal: 300;
  --z-overlay: 400;
  --z-max: 9999;

  /* --- Header --- */
  --header-height: 90px;
  --header-height-scrolled: 70px;
}


/* ===========================
   CSS RESET & NORMALIZE
   =========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

ul,
ol {
  list-style: none;
}

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

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}


/* ===========================
   TIPOGRAFI
   =========================== */
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

p:last-child {
  margin-bottom: 0;
}

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

.text-primary {
  color: var(--primary);
}

.text-medium {
  color: var(--text-medium);
}

.text-light {
  color: var(--text-light);
}

strong,
b {
  font-weight: 600;
}


/* ===========================
   LAYOUT SYSTEM
   =========================== */

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

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

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

/* Section */
.section {
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.section--sm {
  padding-top: var(--section-py-sm);
  padding-bottom: var(--section-py-sm);
}

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

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

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

.section--primary h2,
.section--primary h3,
.section--primary h4 {
  color: var(--bg-white);
}

.section--primary .section__subtitle {
  color: rgba(255, 255, 255, 0.8);
}

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

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--bg-white);
}

/* Section Header */
.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section__header h2 {
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section__header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: var(--radius-sm);
}

.section__subtitle {
  font-size: var(--fs-body-lg);
  color: var(--text-medium);
  margin-top: var(--space-lg);
  line-height: 1.6;
}

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

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

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

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

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

/* Flex Utilities */
.flex {
  display: flex;
}

.flex--center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex--between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex--column {
  flex-direction: column;
}

.flex--wrap {
  flex-wrap: wrap;
}

.flex--gap-sm { gap: var(--space-sm); }
.flex--gap-md { gap: var(--space-md); }
.flex--gap-lg { gap: var(--space-lg); }
.flex--gap-xl { gap: var(--space-xl); }


/* ===========================
   SCROLL REVEAL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal--scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible,
.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--scale.is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }

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


/* ===========================
   UTILITY CLASSES
   =========================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===========================
   SELECTION & SCROLLBAR
   =========================== */
::selection {
  background-color: var(--primary);
  color: var(--bg-white);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}
