/* ==========================================================================
   BASE.CSS — Reset, Design Tokens, Typography
   Mersin Lağımcı — Premium Kanal & Tesisat Hizmetleri
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: local('Manrope');
  font-display: swap;
}

:root {
  /* ---------- Color tokens ----------
     Grounded in the trade itself: deep water/teal for depth & trust,
     a brass-fitting copper for the call-to-action accent (the literal
     color of the pipe fittings in the field photos), warm graphite ink,
     a cool off-white (not the generic AI cream) for the canvas. */
  --c-abyss-900: #071B1F;
  --c-abyss-800: #0A2A30;
  --c-abyss-700: #0F3A42;
  --c-teal-600: #106A7D;
  --c-teal-500: #158A9E;
  --c-teal-400: #3AABBE;
  --c-brass-600: #B97A2E;
  --c-brass-500: #C99247;
  --c-brass-400: #E0AD6B;
  --c-ink-900: #10181A;
  --c-ink-700: #33403F;
  --c-ink-500: #5B6968;
  --c-mist-100: #F5F6F3;
  --c-mist-200: #ECEEE9;
  --c-mist-300: #DEE2DB;
  --c-line: #DADFDA;
  --c-white: #FFFFFF;

  --c-success: #2F8F5B;
  --c-danger: #C24A3F;

  /* Semantic (light theme default) */
  --bg-canvas: var(--c-mist-100);
  --bg-surface: var(--c-white);
  --bg-surface-2: var(--c-mist-200);
  --bg-inverse: var(--c-abyss-900);
  --text-primary: var(--c-ink-900);
  --text-secondary: var(--c-ink-500);
  --text-inverse: var(--c-mist-100);
  --border-subtle: var(--c-line);
  --accent-primary: var(--c-teal-600);
  --accent-primary-hover: var(--c-abyss-700);
  --accent-cta: var(--c-brass-500);
  --accent-cta-hover: var(--c-brass-600);
  --glass-bg: rgba(245, 246, 243, 0.72);
  --glass-border: rgba(255, 255, 255, 0.35);
  --shadow-color: 210deg 30% 8%;

  /* ---------- Type ---------- */
  --font-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --fs-100: 0.8125rem;
  --fs-200: 0.9375rem;
  --fs-300: 1rem;
  --fs-400: 1.125rem;
  --fs-500: 1.375rem;
  --fs-600: 1.75rem;
  --fs-700: 2.25rem;
  --fs-800: 3rem;
  --fs-900: 3.75rem;

  /* ---------- Spacing (8pt system) ---------- */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;

  /* ---------- Radius / Shadow / Motion ---------- */
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px hsl(var(--shadow-color) / 0.08);
  --shadow-md: 0 8px 24px -8px hsl(var(--shadow-color) / 0.18);
  --shadow-lg: 0 24px 48px -16px hsl(var(--shadow-color) / 0.28);
  --shadow-glow: 0 0 0 1px hsl(var(--shadow-color) / 0.06), 0 20px 40px -20px hsl(var(--shadow-color) / 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-base: 320ms;
  --dur-slow: 600ms;

  --container-max: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-300);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-2);
  font-weight: 800;
}

h1 { font-size: clamp(2.25rem, 4.4vw, var(--fs-900)); }
h2 { font-size: clamp(1.75rem, 3.2vw, var(--fs-700)); }
h3 { font-size: var(--fs-500); font-weight: 700; }
h4 { font-size: var(--fs-400); font-weight: 700; }

p { margin: 0 0 var(--sp-3); color: var(--text-secondary); }

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

ul, ol { padding: 0; margin: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

input, textarea, select {
  font-family: inherit;
  font-size: var(--fs-300);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-100);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent-cta);
  border-radius: var(--radius-pill);
}

::selection { background: var(--accent-cta); color: var(--c-abyss-900); }

/* Focus visibility — accessibility floor */
:focus-visible {
  outline: 2.5px solid var(--accent-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-cta);
  color: var(--c-abyss-900);
  padding: var(--sp-2) var(--sp-3);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}
