/* ============================================================
   ORHAN ASPAVA — MAIN CSS
   Design System, Global Styles & Utilities
   v2.0 | 2026 | orhanaspava.com
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,400;1,500;1,600;1,700&family=Bodoni+Moda:ital,wght@1,400..700&family=Instrument+Serif:ital@1&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* ---- Brand Colors ---- */
  --color-primary:       hsl(0, 78%, 40%);
  --color-primary-dark:  hsl(0, 78%, 30%);
  --color-primary-light: hsl(0, 78%, 50%);
  --color-primary-glow:  hsl(0, 78%, 40% / 0.12);

  /* ---- Accent ---- */
  --color-accent:        hsl(34, 70%, 42%);
  --color-accent-dark:   hsl(34, 70%, 32%);

  /* ---- Backgrounds (warm light / cream) ---- */
  --color-bg:            hsl(36, 22%, 96%);
  --color-surface:       hsl(36, 18%, 92%);
  --color-surface-2:     hsl(36, 14%, 87%);
  --color-surface-3:     hsl(36, 10%, 80%);
  --color-surface-hover: hsl(36, 10%, 75%);

  /* ---- Text ---- */
  --color-text:          #1c1917;
  --color-text-muted:    #5a5452;
  --color-text-dim:      #78716c;
  --color-text-inverse:  hsl(36, 22%, 96%);

  /* ---- Borders ---- */
  --color-border:        hsl(36, 12%, 82%);
  --color-border-light:  hsl(36, 10%, 72%);

  /* ---- Typography ---- */
  --font-heading: 'Raleway', 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-accent:  'Outfit', 'Raleway', sans-serif;

  /* ---- Fluid Type Scale ---- */
  --text-2xs:   clamp(0.65rem,  0.6vw + 0.45rem, 0.7rem);
  --text-xs:    clamp(0.72rem,  0.7vw + 0.52rem, 0.78rem);
  --text-sm:    clamp(0.8rem,   0.8vw + 0.6rem,  0.875rem);
  --text-base:  clamp(0.9rem,   1vw   + 0.65rem, 1rem);
  --text-md:    clamp(1rem,     1.1vw + 0.75rem, 1.125rem);
  --text-lg:    clamp(1.1rem,   1.4vw + 0.8rem,  1.25rem);
  --text-xl:    clamp(1.25rem,  2vw   + 0.8rem,  1.5rem);
  --text-2xl:   clamp(1.4rem,   2.5vw + 0.8rem,  1.875rem);
  --text-3xl:   clamp(1.6rem,   3vw   + 0.9rem,  2.25rem);
  --text-4xl:   clamp(1.9rem,   4vw   + 0.9rem,  3rem);
  --text-5xl:   clamp(2.2rem,   5vw   + 0.9rem,  3.75rem);
  --text-hero:  clamp(2.6rem,   6.5vw + 0.9rem,  5.25rem);

  /* ---- Spacing ---- */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.25rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;
  --sp-32:  8rem;

  /* ---- Layout ---- */
  --container-max:     1600px;
  --container-pad:     clamp(1.5rem, 5vw, 4rem);
  --section-py:        clamp(4rem, 9vw, 7rem);

  /* ---- Radii ---- */
  --radius-xs:  2px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-xs:   0 1px 2px hsl(20 15% 10% / 0.06);
  --shadow-sm:   0 2px 8px hsl(20 15% 10% / 0.09);
  --shadow-md:   0 4px 20px hsl(20 15% 10% / 0.12);
  --shadow-lg:   0 8px 36px hsl(20 15% 10% / 0.15);
  --shadow-xl:   0 16px 64px hsl(20 15% 10% / 0.18);
  --shadow-glow: 0 0 28px var(--color-primary-glow);

  /* ---- Transitions ---- */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --tr-fast:     150ms var(--ease-out);
  --tr-base:     240ms var(--ease-out);
  --tr-slow:     380ms var(--ease-out);
  --tr-slower:   560ms var(--ease-out);

  /* ---- Z-Index ---- */
  --z-base:        1;
  --z-raised:     10;
  --z-overlay:    50;
  --z-mobile-bar: 80;
  --z-header:    100;
  --z-mobile-menu: 200;
  --z-lightbox:  300;
  --z-cookie:    400;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

textarea {
  resize: vertical;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

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

p {
  color: var(--color-text-muted);
  line-height: 1.72;
}

strong { color: var(--color-text); font-weight: 600; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 840px;
}

.section {
  padding-block: var(--section-py);
}

.section--sm {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.72em 1.75em;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #c81d25 0%, #991217 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(184, 28, 34, 0.35);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: linear-gradient(135deg, #da222b 0%, #b3161c 100%);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 28, 34, 0.55);
  color: #ffffff !important;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--color-text);
  background-color: var(--color-surface-2);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
}
.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.9em 2.25em;
  font-size: var(--text-sm);
}

.btn-sm {
  padding: 0.55em 1.25em;
  font-size: var(--text-2xs);
}

/* Focus styles */
.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ============================================================
   SECTION HEADING
   ============================================================ */
.section-heading {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  font-family: var(--font-body) !important;
  font-size: var(--text-2xs) !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--color-primary) !important;
  margin-bottom: var(--sp-3) !important;
}

.section-label::before {
  content: '' !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  margin-right: 0.75rem !important;
  flex-shrink: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b81c22' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L14.83 7.17L20 4.93L16.83 10.17L22 12L16.83 13.83L20 19.07L14.83 16.83L12 22L9.17 16.83L4 19.07L7.17 13.83L2 12L7.17 10.17L4 4.93L9.17 7.17Z'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='12' cy='12' r='1.2' fill='%23b81c22'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  vertical-align: middle !important;
}

.section-heading h2 {
  margin-bottom: var(--sp-4);
}

.section-heading p {
  max-width: 780px;
  margin-inline: auto;
  font-size: var(--text-md);
  color: var(--color-text-muted);
}

.section-heading--left {
  text-align: left;
}

.section-heading--left p {
  margin-inline: 0;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border: none;
  border-radius: var(--radius-full);
  margin-block: var(--sp-4);
}

.divider--center {
  margin-inline: auto;
}

/* ============================================================
   BADGE / CHIP
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25em 0.75em;
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--color-primary-glow);
  color: var(--color-primary-light);
  border: 1px solid hsl(0, 88%, 43% / 0.2);
}

.badge-accent {
  background: hsl(38, 82%, 56% / 0.12);
  color: var(--color-accent);
  border: 1px solid hsl(38, 82%, 56% / 0.2);
}

.badge-muted {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--sp-4);
  z-index: 9999;
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top var(--tr-fast);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-text-muted); }
.text-dim     { color: var(--color-text-dim); }
.text-accent  { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-white   { color: #fff; }

.fw-400  { font-weight: 400; }
.fw-500  { font-weight: 500; }
.fw-600  { font-weight: 600; }
.fw-700  { font-weight: 700; }

.font-heading { font-family: var(--font-heading); }
.font-accent  { font-family: var(--font-accent); }

.d-flex   { display: flex; }
.d-grid   { display: grid; }
.d-block  { display: block; }
.d-none   { display: none; }

.items-center  { align-items: center; }
.justify-center { justify-content: center; }
.gap-4  { gap: var(--sp-4); }
.gap-6  { gap: var(--sp-6); }
.gap-8  { gap: var(--sp-8); }

.w-full { width: 100%; }

.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;
}

/* ============================================================
   SEPARATOR LINE
   ============================================================ */
.section-separator {
  width: 90%;
  max-width: 1200px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(184, 28, 34, 0) 0%, rgba(184, 28, 34, 0.22) 20%, rgba(184, 28, 34, 0.45) 50%, rgba(184, 28, 34, 0.22) 80%, rgba(184, 28, 34, 0) 100%);
}

/* ============================================================
   IMAGE ASPECT RATIOS
   ============================================================ */
.aspect-hero    { aspect-ratio: 16 / 9; }
.aspect-card    { aspect-ratio: 4 / 3; }
.aspect-square  { aspect-ratio: 1 / 1; }
.aspect-portrait { aspect-ratio: 3 / 4; }

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

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding-block: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--color-text-dim);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--tr-fast);
}

.breadcrumb a:hover {
  color: var(--color-text);
}

.breadcrumb-sep {
  color: var(--color-text-dim);
  font-size: 0.8em;
}

.breadcrumb-current {
  color: var(--color-text-muted);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: calc(100px + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background-color: hsl(20, 18%, 10%);
  background-image: url('../images/page-hero-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14, 9, 7, 0.94) 0%,
    rgba(14, 9, 7, 0.82) 45%,
    rgba(14, 9, 7, 0.65) 100%
  ),
  linear-gradient(
    to bottom,
    rgba(14, 9, 7, 0.85) 0%,
    transparent 40%,
    rgba(14, 9, 7, 0.95) 100%
  );
  pointer-events: none;
}

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

.page-hero .breadcrumb {
  margin-bottom: var(--sp-4);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

.page-hero .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--tr-fast);
}

.page-hero .breadcrumb a:hover {
  color: #ffffff;
}

.page-hero .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.35);
  margin-inline: var(--sp-2);
}

.page-hero .breadcrumb-current {
  color: hsl(34, 85%, 65%);
  font-weight: 500;
}

.page-hero .section-label {
  color: hsl(34, 90%, 65%);
  display: inline-block;
  margin-bottom: var(--sp-2);
  letter-spacing: 0.12em;
}

.page-hero h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--sp-4);
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: var(--text-lg);
  max-width: 540px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie);
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border-light);
  padding: var(--sp-4) var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform var(--tr-slow);
  backdrop-filter: blur(10px);
}

.cookie-consent.visible {
  transform: translateY(0);
}

.cookie-consent p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0;
  flex: 1;
}

.cookie-consent p a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* ============================================================
   SCROLL FADE ANIMATIONS (JS-controlled)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--tr-slower),
    transform var(--tr-slower);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }
[data-reveal-delay="600"] { transition-delay: 0.6s; }

/* ============================================================
   REDUCED 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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
