/* 
 * MAIN.CSS - Global stiller, değişkenler ve reset
 */

:root {
  /* Ana Palet — Derin Ege Mavisi */
  --color-primary: #0a2342;
  /* Gece denizi — başlıklar, nav */
  --color-primary-mid: #1a4a7a;
  /* Orta mavi — hover, vurgu */
  --color-accent: #e8a045;
  /* Altın amber — CTA, icon */
  --color-sea: #4a9bbe;
  /* Açık ege mavisi — highlight */
  --color-sand: #f5f0e8;
  /* Kum beyazı — section bg */
  --color-white: #ffffff;
  --color-dark: #1a1a1a;
  /* Body text */
  --color-gray: #6b7280;
  /* İkincil metin */
  --color-gray-light: #f3f4f6;

  /* Tipografi */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-accent: 'Cormorant Garamond', serif;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  --space-2xl: 8rem;

  /* Border Radius - Premium, slight square */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 4px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 35, 66, 0.12);
  --shadow-md: 0 4px 16px rgba(10, 35, 66, 0.16);
  --shadow-lg: 0 8px 32px rgba(10, 35, 66, 0.24);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 600ms ease;
}

/* Reset & Normalize */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-dark);
  background-color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Typography Scale */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 500;
  line-height: 1.2;
}

.text-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  margin-bottom: var(--space-sm);
}

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

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-sea);
}

a {
  color: var(--color-primary-mid);
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}

a:hover,
a:focus {
  color: var(--color-primary);
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

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

.text-center {
  text-align: center;
}

/* Screen readers only */
.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;
}

/* Mobile Minimum Adjustments */
@media (max-width: 768px) {
  body {
    font-size: 16px;
    /* Prevent iOS zoom */
  }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}