/* ==========================================================================
   BESAFE LAB v2 — Design System (assets/style.css)
   --------------------------------------------------------------------------
   Saf statik HTML/CSS/JS — framework yok, build tool yok.
   Mobile-first. Üç katmanlı token yapısı: primitive → semantic → component.

   KURAL: TÜM hex (#) renk değerleri yalnızca aşağıdaki :root token
   bloğundadır. Bileşenlerde yalnızca var(--token) kullanılır.

   Bölüm sırası:
     1.  Design tokens (:root)
     2.  Reset & base
     3.  Utilities
     4.  Layout (header/nav/footer)
     5.  Components
     6.  Media queries (sadece 3 breakpoint: 640 / 920 / 1180)
     7.  prefers-reduced-motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* ---- PRIMITIVE — blue (marka: logo koyu lacivert #0b2447) ---- */
  --blue-950: #081a33;
  --blue-900: #0b1f3a;
  --blue-800: #0b2447;
  --blue-700: #16345c;
  --blue-600: #1f4472;
  --blue-500: #2a5588;

  /* ---- PRIMITIVE — safety green (marka: logo yeşil #16a34a) ---- */
  --green-900: #0d6b32;
  --green-800: #11833d;
  --green-700: #16a34a;
  --green-600: #2cb85d;
  --green-500: #3fca70;
  --green-400: #5ee68c;
  --green-100: #e7f6ed;

  /* ---- PRIMITIVE — amber (marka: logo amber #d68d11) ---- */
  --amber-900: #8a5b06;
  --amber-800: #a86f0a;
  --amber-700: #bd7c0e;
  --amber-600: #d68d11;
  --amber-500: #e5a62a;
  --amber-100: #fdf3e0;
  --amber-950: #6f4704;

  /* ---- PRIMITIVE — nötrler ---- */
  --ink-900: #0f172a;
  --ink-800: #1e293b;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #5b6b7f;
  --ink-400: #64748b;
  --blue-300: #81b5e0;
  --ink-200: #e2e8f0;
  --ink-100: #f1f5f9;
  --bg: #f8fafc;
  --muted: #ebf0f5;
  --line: #e2e8f0;
  --white: #ffffff;

  /* ---- PRIMITIVE — destructive ---- */
  --red-600: #dc2626;

  /* ---- PRIMITIVE — ölçü & tipografi ---- */
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Tipografi skalası (1.25 major-third oranı, mobile-first) */
  --text-xs: 0.78rem;    /* 12.5px — yardımcı etiket */
  --text-sm: 0.88rem;    /* 14px — küçük metin */
  --text-base: 1rem;     /* 16px — gövde */
  --text-md: 1.05rem;    /* 17px — lead */
  --text-lg: 1.2rem;     /* 19px — h3 */
  --text-xl: 1.4rem;     /* 22px — h2 alt */
  --text-2xl: clamp(1.5rem, 3vw, 2.1rem);
  --text-3xl: clamp(1.9rem, 4vw, 2.9rem);

  /* Spacing skalası (4px taban) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 40px;
  --space-10: 48px;
  --space-11: 64px;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container-max: 1180px;
  --header-h: 72px;
  --section-pad: clamp(64px, 8vw, 96px);

  /* ---- PRIMITIVE — derinlik (mavi-tinted gölge) ---- */
  --shadow-sm: 0 1px 3px rgba(15, 42, 69, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 42, 69, 0.1);
  --shadow-lg: 0 20px 44px rgba(15, 42, 69, 0.16);
  --focus-ring: rgba(214, 141, 17, 0.35);

  /* ---- PRIMITIVE — yarı saydam yüzeyler (hero/footer) ---- */
  --hero-chip-bg: rgba(255, 255, 255, 0.1);
  --hero-chip-border: rgba(255, 255, 255, 0.22);
  --hero-chip-fg: #e8eef7;
  --footer-fg: #c7d2e0;

  /* ---- SEMANTIC — marka renkleri (DESIGN-GUIDE.md §2) ---- */
  --color-primary: var(--blue-800);          /* #1E3A5F ana marka */
  --color-primary-2: var(--blue-900);        /* #0F2A45 footer/koyu */
  --color-primary-dark: var(--blue-900);
  --color-primary-darker: var(--blue-950);
  --color-primary-light: var(--blue-600);
  --color-secondary: var(--green-700);       /* #2E7D5B güvenlik yeşili */
  --color-secondary-dark: var(--green-800);
  --color-secondary-light: var(--green-500);
  --color-secondary-muted: var(--green-100);
  --color-accent: var(--amber-600);          /* #EA580C İSG amberi */
  --color-accent-dark: var(--amber-700);
  --color-accent-darker: var(--amber-800);
  --color-accent-muted: var(--amber-100);
  --color-destructive: var(--red-600);

  /* ---- SEMANTIC — yüzey & metin ---- */
  --color-background: var(--bg);             /* #F8FAFC sayfa zemini */
  --color-muted: var(--muted);               /* #EBF0F5 bölüm alt zemini */
  --color-border: var(--line);               /* #E2E8F0 kenarlık */
  --color-foreground: var(--ink-700);        /* #334155 metin */
  --color-heading: var(--blue-800);
  --color-text-muted: var(--ink-600);
  --color-on-primary: var(--white);
  --color-on-accent: var(--white);

  /* ---- COMPONENT — butonlar ---- */
  /* WCAG AA: beyaz metin üzerinde 4.5:1 kontrast için amber-900 (#8a5b06, 5.87:1) kullanılır. */
  --btn-primary-bg: var(--amber-900);
  --btn-primary-bg-hover: var(--amber-950);
  --btn-primary-fg: var(--color-on-accent);
  --btn-blue-bg: var(--color-primary);
  --btn-blue-bg-hover: var(--color-primary-dark);
  --btn-blue-fg: var(--color-on-primary);
  --btn-outline-fg: var(--color-on-primary);
  --btn-outline-border: rgba(255, 255, 255, 0.45);
  --btn-outline-hover-bg: rgba(255, 255, 255, 0.12);
  --btn-radius: 999px;

  /* ---- COMPONENT — kartlar ---- */
  --card-bg: var(--color-background);
  --card-border: var(--color-border);
  --card-shadow: var(--shadow-sm);
  --card-shadow-hover: var(--shadow-md);
  --card-radius: var(--radius);

  /* ---- COMPONENT — header/footer ---- */
  --header-bg: var(--white);
  --header-fg: var(--color-primary);
  --nav-link-fg: var(--ink-700);
  --footer-bg: var(--color-primary-2);
  --footer-heading-fg: var(--white);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-foreground);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.6em;
}

h1 { font-size: var(--text-3xl); letter-spacing: -0.015em; }
h2 { font-size: var(--text-2xl); letter-spacing: -0.01em; }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

p {
  margin: 0 0 1em;
}

ul {
  padding-left: 1.25rem;
}

svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--color-accent-muted);
  color: var(--color-accent-darker);
}

body.no-scroll {
  overflow: hidden;
}

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

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

.section.tight {
  padding: 48px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  max-width: 100%;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  margin-bottom: 10px;
}

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

.section--dark h2 {
  color: var(--color-on-primary);
}

.section--dark .eyebrow {
  color: var(--color-secondary-light);
}

.section--dark .section-head p {
  color: var(--ink-200);
}

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

.hl-green {
  color: var(--green-400);
}

.hl-amber {
  color: var(--color-accent);
}

.hl-navy {
  color: var(--blue-300);
}

.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 300;
  padding: 12px 20px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  transform: translateY(-100%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Reveal-on-scroll (yalnızca JS etkinken) */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Blog kategori filtresi */
.blog-filter-bar {
  margin-top: var(--space-5);
}

.is-hidden {
  display: none !important;
}

.hazard-stripes {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber-500) 0 14px,
    var(--ink-900) 14px 28px
  );
}

/* --------------------------------------------------------------------------
   4. Layout — header / nav / footer
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease;
}

/* Alt aksan çizgisi: lacivert zemin üzerinde yeşil→amber gradyan (marka imzası) */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-secondary-light) 45%, var(--amber-500) 100%);
  opacity: 0.85;
  pointer-events: none;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

/* Dar mobil başlıkta CTA ve 44 px menü düğmesini korumak için alt slogan gizlenir. */
.brand-text small {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-primary);
  transition: transform 0.15s ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.site-header .brand {
  padding: 0;
  background: transparent;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(11, 36, 71, 0.18);
  flex: none;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-950);
  letter-spacing: -0.01em;
}

.brand-text strong .accent {
  color: var(--green-700);
  font-weight: 800;
}

.brand-text small {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand .brand-mark {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.footer-brand .brand-text strong {
  color: var(--white);
}

.footer-brand .brand-text strong .accent {
  color: var(--green-400);
}

.footer-brand .brand-text small {
  color: var(--footer-fg);
}

.main-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  width: min(320px, 85vw);
  padding: calc(var(--header-h) + 24px) 24px 24px;
  background: var(--color-background);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.main-nav.open {
  transform: translateX(0);
  visibility: visible;
}

/* Çekmece üst aksanı: marka gradyanı çizgi */
.main-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-secondary) 0%, var(--amber-500) 100%);
  opacity: 0.9;
}

.main-nav .nav-link {
  margin: 2px 0;
}

.main-nav .nav-link[aria-current="page"] {
  background: var(--color-secondary-muted);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--nav-link-fg);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
}

/* Alt çizgi animasyonu: hover ve aktif sayfada soldan sağa açılır */
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-secondary);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
}

.nav-link:hover {
  color: var(--color-primary);
  background: var(--color-muted);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-secondary-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.header-cta {
  display: inline-flex;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  color: var(--color-primary);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 48px;
}

.footer-col h3 {
  color: var(--footer-heading-fg);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--footer-fg);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-on-primary);
}

.footer-col li svg {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  flex: none;
  color: var(--green-400);
}

.footer-brand .brand {
  color: var(--color-on-primary);
  margin-bottom: 16px;
}

.footer-brand .brand:hover {
  color: var(--color-on-primary);
}

.footer-brand .brand-mark {
  background: var(--color-secondary);
}

.footer-brand p {
  color: var(--ink-200);
  font-size: 0.95rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--ink-200);
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Components
   -------------------------------------------------------------------------- */
/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 13px 26px;
  border-radius: var(--btn-radius);
  border: 2px solid transparent;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  color: var(--color-foreground);
  background: transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn .icon {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-sm {
  padding: 9px 18px;
  min-height: 40px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  box-shadow: 0 8px 20px rgba(168, 111, 10, 0.3);
}

.btn-primary:hover {
  background: var(--btn-primary-bg-hover);
  color: var(--btn-primary-fg);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(168, 111, 10, 0.38);
}

.btn-blue {
  background: var(--btn-blue-bg);
  color: var(--btn-blue-fg);
}

.btn-blue:hover {
  background: var(--btn-blue-bg-hover);
  color: var(--btn-blue-fg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--btn-outline-fg);
  border-color: var(--btn-outline-border);
}

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

/* ---- Chips / badges ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--hero-chip-bg);
  border: 1px solid var(--hero-chip-border);
  color: var(--hero-chip-fg);
  font-size: 0.88rem;
  font-weight: 500;
}

.chip svg {
  width: 15px;
  height: 15px;
  color: var(--color-accent);
}

.chip-solid {
  background: var(--color-secondary-muted);
  border-color: transparent;
  color: var(--color-secondary-dark);
  font-weight: 600;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(165deg, var(--color-primary-2), var(--color-primary));
  color: var(--color-on-primary);
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}

/* Hero zemininde grid deseni kaldırıldı (tasarım denetimi — AI-slop görünümünü önler) */

/* Sağ üstte yumuşak marka ışıması */
.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -12%;
  width: min(640px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.15), transparent 65%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  color: var(--color-on-primary);
}

.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary-light);
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary-light);
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-200);
  max-width: 560px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  font-weight: 600;
  color: var(--color-secondary-light);
  max-width: 560px;
  margin: 0 0 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-contacts a.chip {
  color: var(--color-on-primary);
}

.hero-contacts a.chip:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-panel {
  position: relative;
  z-index: 1;
  background: var(--color-background);
  color: var(--color-foreground);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hero-panel:hover {
  box-shadow: 0 24px 52px rgba(15, 42, 69, 0.22);
  transform: translateY(-3px);
}

.hero-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-heading);
  margin-bottom: 20px;
}

.hero-panel h2 svg {
  width: 22px;
  height: 22px;
  color: var(--color-accent);
}

.panel-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.panel-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.panel-list .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-secondary-muted);
  color: var(--color-secondary-dark);
  flex: none;
}

.panel-list .ico svg {
  width: 20px;
  height: 20px;
}

.panel-list strong {
  display: block;
  color: var(--color-heading);
  font-size: 0.95rem;
}

.panel-list small {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.panel-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card,
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--color-secondary-muted);
  color: var(--color-secondary-dark);
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3,
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p,
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-4);
}

.card-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* ---- Cert cards ---- */
.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cert-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-muted);
  color: var(--color-accent-darker);
  flex: none;
}

.cert-ico svg {
  width: 24px;
  height: 24px;
}

.cert-card h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.cert-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---- Team (ekip) ---- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.team-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-muted);
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.team-avatar svg {
  width: 32px;
  height: 32px;
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.team-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.team-placeholder {
  font-style: italic;
}

/* ---- Process ---- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.process-step {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px;
  overflow: hidden;
}

.process-step::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
}

.step-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ink-200);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-on-primary);
  margin-bottom: 16px;
}

.step-icon svg {
  width: 26px;
  height: 26px;
}

.process-step h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.process-step p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
}

.stats--single {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin-inline: auto;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-accent);
}

.stat strong em {
  font-style: normal;
  color: var(--color-secondary-light);
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--ink-200);
  font-size: 0.92rem;
  font-weight: 500;
}

.stats-note {
  text-align: center;
  margin-top: 24px;
  color: var(--ink-200);
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
  color: var(--color-on-primary);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-band h2 {
  color: var(--color-on-primary);
}

.cta-band p {
  color: var(--green-100);
  max-width: 640px;
  margin: 0 auto 26px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* ---- Contact section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: var(--color-on-primary);
  flex: none;
}

.contact-ico svg {
  width: 24px;
  height: 24px;
}

.contact-item h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.contact-item p,
.contact-item a {
  color: var(--color-foreground);
  font-size: 0.95rem;
  margin: 0;
}

.contact-item a:hover {
  color: var(--color-primary);
}

.contact-form-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 28px;
  margin-top: 32px;
}

.contact-form-block h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

.contact-cta {
  margin-top: 32px;
  text-align: center;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

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

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--ink-400);
}

/* ---- FAQ ---- */
.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-heading);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-secondary);
  flex: none;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-a {
  padding: 0 20px 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.faq-item .faq-a p:last-child {
  margin-bottom: 0;
}

/* ---- Form ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
  color: var(--color-foreground);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
}

.form-note.success {
  background: var(--color-secondary-muted);
  color: var(--color-secondary-dark);
}

.form-note.warning {
  background: var(--color-accent-muted);
  color: var(--color-accent-darker);
}

/* ---- Teklif formu: satır bazlı hizmet kalemleri ---- */
.form-intro {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.form-section {
  grid-column: 1 / -1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  min-width: 0;
}

.form-section legend {
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-heading);
}

.optional {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.quote-lines {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.quote-line {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) 2fr minmax(70px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-background);
}

.quote-line .form-field {
  margin: 0;
}

.quote-line.is-scope .line-qty {
  display: none;
}

/* Ekipman dropdown / serbest giriş geçişi (hidden ile) */
.line-equipment[hidden],
.line-description[hidden] {
  display: none;
}

.quote-line.is-scope {
  grid-template-columns: minmax(160px, 1.1fr) 3fr auto;
}

.line-remove {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  align-self: end;
  margin-bottom: 2px;
}

.line-remove:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.08);
}

/* "+ Satır Ekle" — form beyaz zeminde görünür kontrast (btn-outline koyu zemin için tasarlı) */
#addLine {
  background: var(--color-background);
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
#addLine:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  #addLine {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .quote-line,
  .quote-line.is-scope {
    grid-template-columns: 1fr;
  }
  .line-remove {
    justify-self: end;
  }
}

/* ---- Floating & utility widgets ---- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-on-primary);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top svg {
  width: 22px;
  height: 22px;
}

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--color-secondary);
  color: var(--color-on-primary);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease, transform 0.2s ease;
}

.wa-float:hover {
  background: var(--color-secondary-dark);
  color: var(--color-on-primary);
  transform: translateY(-2px);
}

.wa-float svg {
  width: 22px;
  height: 22px;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: var(--color-primary-2);
}

.mcta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
}

.mcta svg {
  width: 18px;
  height: 18px;
}

.mcta-call {
  background: var(--color-secondary);
  color: var(--color-on-primary);
}

.mcta-wa {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

/* Mobil CTA yalnızca dar ekranlarda görünür (masaüstünde gizli) */
@media (min-width: 920px) {
  .mobile-cta {
    display: none;
  }
}

/* Çok dar ekranlarda üst CTA yerine alttaki sabit mobil CTA kullanılır. */
@media (max-width: 359px) {
  .header-cta {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   6. Media queries (SADECE 3 breakpoint: 640 / 920 / 1180)
   -------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .header-inner {
    gap: 24px;
  }

  .brand-text small {
    display: block;
  }

  .section.tight {
    padding: 64px 0;
  }

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

  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 0;
  }

  .stat:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

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

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

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .full {
    grid-column: 1 / -1;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-cta {
    display: none;
  }
}

@media (min-width: 920px) {
  .main-nav {
    position: static;
    width: auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    visibility: visible;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .main-nav::before {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
  }

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }
}

/* Tablet/yatay tablet: CTA görünür tutulur (denetim düzeltmesi — dönüşüm butonu kaybolmamalı) */
@media (min-width: 920px) and (max-width: 1179px) {
  .header-cta {
    display: inline-flex;
  }
}

@media (min-width: 1180px) {
  .container {
    padding: 0 24px;
  }

  .header-cta {
    display: inline-flex;
  }

  .hero-inner {
    gap: 72px;
  }

  .process-grid {
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   7. Shared components (tüm sayfalarda kullanılan; sayfa-içi <style> YOK)
   -------------------------------------------------------------------------- */

/* Hizmet sayfası giriş paragrafı (service-lead) — muted zemin + yeşil vurgu */
.service-lead {
  max-width: 860px;
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-10);
  padding: var(--space-5) var(--space-6);
  background: var(--color-muted);
  border-left: 4px solid var(--color-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Onay listesi (check-list) — yetkili meslekler, kapsam maddeleri */
.check-list {
  list-style: none;
  display: grid;
  gap: 14px;
  padding: 0;
  margin: var(--space-6) 0 0;
}

.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 0.97rem;
}

.check-list li svg {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 2px;
  color: var(--color-secondary);
}

/* Hizmet detay bölümü */
.detail-section {
  margin-bottom: var(--space-11);
  scroll-margin-top: calc(var(--header-h) + var(--space-6));
}

.detail-section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}

.detail-section .section-leading {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* Yasal bilgilendirme notu */
.disclaimer-note {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--color-muted);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Uzun metin kartı (Hakkımızda, KVKK) */
.prose-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: clamp(24px, 4vw, 40px);
  color: var(--color-foreground);
}

.prose-card--center {
  max-width: 900px;
  margin: 0 auto;
}

.prose-card p {
  line-height: 1.75;
}

.prose-card h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-7);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}

.prose-card h2:first-child {
  margin-top: 0;
}

/* Misyon / Vizyon kartları */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 920px;
  margin: 0 auto;
}

.mv-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: clamp(24px, 4vw, 36px);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mv-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.mv-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
}

.mv-card.vision::before {
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-secondary));
}

.mv-card h3 {
  font-size: var(--text-lg);
  margin: var(--space-3) 0 var(--space-2);
}

.mv-card p {
  color: var(--color-text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0;
}

/* Küçük kategori etiketi (Misyonumuz/Vizyonumuz) */
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--color-secondary-muted);
  color: var(--color-secondary-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mv-card.vision .tag {
  background: var(--color-accent-muted);
  color: var(--color-accent-darker);
}

/* Hizmetler hub — yönlendirme bölümü */
.guidance-section {
  background: var(--color-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-9) var(--space-8);
  margin-top: var(--space-11);
}

.guidance-section h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.guidance-section p {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.guidance-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Hizmet seçim tablosu (services.html — "Hangi hizmet size uygun?") */
.service-chooser {
  background: var(--color-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-9) var(--space-8);
  margin-top: var(--space-11);
}

.service-chooser .section-head {
  margin-bottom: var(--space-7);
}

.service-chooser .section-head p {
  max-width: 720px;
  font-size: 0.97rem;
  line-height: 1.7;
  margin: var(--space-4) auto 0;
}

.chooser-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;
}

.chooser-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.chooser-table thead th {
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-muted);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--card-border);
}

.chooser-table tbody th,
.chooser-table tbody td {
  padding: 0;
  border-bottom: 1px solid var(--card-border);
}

.chooser-table tbody tr:last-child th,
.chooser-table tbody tr:last-child td {
  border-bottom: 0;
}

.chooser-table tbody tr.is-selected {
  background: var(--color-secondary-muted);
}

.chooser-opt {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chooser-opt input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-secondary);
}

.chooser-service {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.chooser-service:hover {
  color: var(--color-secondary-dark);
}

.chooser-clear {
  margin-top: var(--space-4);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chooser-clear:hover,
.chooser-clear:focus-visible {
  border-color: var(--color-secondary);
  color: var(--color-secondary-dark);
  background: var(--color-secondary-muted);
}

/* Sonuç paneli */
.chooser-results {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-6);
}

.chooser-results-title {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border);
}

.chooser-results-list {
  display: grid;
  gap: var(--space-3);
}

.chooser-empty {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
  margin: 0;
}

.chooser-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--color-foreground);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.chooser-result:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--card-shadow);
  color: var(--color-foreground);
}

.chooser-result strong {
  color: var(--color-heading);
  font-size: 1rem;
}

.chooser-result span {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.chooser-result .chooser-result-link {
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 2px;
}

.service-chooser .guidance-cta {
  margin-top: var(--space-6);
}

@media (min-width: 920px) {
  .chooser-layout {
    grid-template-columns: 1.35fr 1fr;
  }
}

/* Hizmet kartı alt bağlantıları */
.card-sub-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.card-sub-links a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: var(--space-2) 14px;
  font-size: var(--text-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-foreground);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.card-sub-links a:hover,
.card-sub-links a:focus-visible {
  border-color: var(--color-secondary);
  background: var(--color-secondary-muted);
  color: var(--color-secondary-dark);
}

/* 404 sayfası */
.error-section {
  min-height: calc(100vh - var(--header-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-11) var(--space-5);
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-code span {
  color: var(--color-accent);
}

.error-section h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: var(--space-3);
}

.error-section p {
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto var(--space-7);
  font-size: 1.02rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Çapa hedefleri için scroll payı (elektriksel-olcumler #paratoner vb.) */
[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-6));
}

/* Bilgi notu — mevzuat/yönlendirme vurgusu (mavi çubuklu) */
.info-note {
  margin-top: var(--space-6);
  padding: 14px var(--space-5);
  background: var(--color-muted);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.93rem;
  line-height: 1.65;
}

/* Form honeypot alanı — ekran okuyucudan da gizle */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hp-field input {
  visibility: hidden;
}

/* KVKK onay satırı (checkbox + metin) */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent-row input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-secondary);
}

/* Merkezli dar liste (yetkili meslekler) */
.check-list--center {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Bölüm altı açıklama notu */
.section-note {
  margin-top: var(--space-5);
  color: var(--color-text-muted);
  font-size: 0.94rem;
  text-align: center;
}

.section-note--left {
  text-align: left;
  margin-top: 0;
  margin-bottom: var(--space-6);
}

/* Hizmet detay bölüm içi alt başlık */
.detail-subheading {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}

/* Section-leading aralıklı varyant */
.section-leading--spaced {
  margin-bottom: var(--space-8);
}

/* CTA bandı üst boşluk varyantı */
.cta-band--spaced {
  margin-top: var(--space-8);
}

/* ---- İlgili yazı kutusu (hizmet sayfaları) ---- */
.related-post {
  margin-top: var(--space-6, 24px);
  padding: 18px 22px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--color-secondary);
  border-radius: 10px;
  background: #f6f8fb;
}

.related-post p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.related-post a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form notu gizleme — [hidden] ile */
.form-note[hidden] {
  display: none;
}

/* Ekran okuyucu için görünmez ama erişilebilir başlık */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot üzerine gelen form alanının katmanı */
.form-field--front {
  position: relative;
  z-index: 1;
}

/* Metin hizalama yardımcısı */
.text-center {
  text-align: center;
}

@media (min-width: 640px) {
  .mv-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Yasal Geçerlilik kutusu (hizmet sayfaları) */
.legal-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--amber-100);
  border-left: 4px solid var(--color-accent);
  background: var(--color-accent-muted);
  border-radius: var(--radius-sm);
}

.legal-note svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--color-accent-dark);
}

.legal-note p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-700);
}

/* Hizmet kartı künyesi (standart/mevzuat rozetleri) */
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.card-meta span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-secondary-muted);
  color: var(--green-900);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Hizmet sayacı rozeti (konservatif istatistik etiketi: 25.000+ / 2.500+ / 1.500+) */
.count-badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--color-secondary-muted);
  border: 1px solid rgba(17, 131, 61, 0.2);
  color: var(--green-900);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
}

.count-badge strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1;
  color: var(--green-800);
  letter-spacing: -0.01em;
}

.count-badge span {
  white-space: normal;
}

/* Koyu (hero) zemin üzerinde */
.count-badge--hero {
  background: var(--hero-chip-bg);
  border-color: var(--hero-chip-border);
  color: var(--hero-chip-fg);
}

.count-badge--hero strong {
  color: var(--color-secondary-light);
}

/* Kart içi kompakt rozet */
.count-badge--card {
  padding: 7px 14px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.count-badge--card strong {
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   Ekipman kataloğu (periyodik-kontroller — #ekipman-listesi)
   -------------------------------------------------------------------------- */
.equip-controls {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.equip-search {
  position: relative;
  max-width: 560px;
}

.equip-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-400);
  pointer-events: none;
}

.equip-search input {
  width: 100%;
  padding: 12px 16px 12px 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--color-foreground);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.equip-search input::placeholder {
  color: var(--ink-400);
}

.equip-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.equip-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.equip-filter {
  padding: 8px 15px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-background);
  color: var(--ink-700);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.equip-filter:hover {
  border-color: var(--color-primary-light);
  color: var(--color-primary);
}

.equip-filter.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--white);
}

.equip-result-count {
  margin: var(--space-4) 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.equip-groups {
  display: grid;
  gap: 14px;
  margin-top: var(--space-5);
}

.equip-group {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

.equip-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-heading);
  list-style: none;
}

.equip-group summary::-webkit-details-marker {
  display: none;
}

.equip-group summary::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-secondary);
  flex: none;
  transition: transform 0.2s ease;
}

.equip-group[open] summary::after {
  content: "−";
}

.equip-group-summary-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.equip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-secondary-muted);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 700;
}

.equip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 20px 20px;
}

.equip-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--color-muted);
  border: 1px solid var(--color-border);
  color: var(--ink-700);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.2;
}

.equip-chip.is-hidden {
  display: none;
}

.equip-empty {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-align: center;
}

.equip-footnote {
  margin-top: var(--space-5);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* --------------------------------------------------------------------------
   8. prefers-reduced-motion
   -------------------------------------------------------------------------- */
@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Blog yazı meta satırı */
.blog-meta {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin: 0 0 22px;
}

/* ==========================================================================
   WIDGET: İnteraktif Ekipman Kontrol & Mevzuat Rehberi
   ========================================================================== */
.compliance-widget-section {
  background: linear-gradient(180deg, var(--color-background) 0%, var(--color-muted) 100%);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.compliance-widget-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.compliance-widget-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
}

.widget-intro {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(24px, 3vw, 36px);
}

.widget-intro h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--color-heading);
  margin: 8px 0 10px;
}

.widget-intro p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0;
}

/* Kategori Butonları (Hızlı Seçim) */
.widget-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.widget-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-700);
  background: var(--bg);
  border: 1px solid var(--color-border);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all 0.2s ease;
}

.widget-cat-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink-500);
  transition: stroke 0.2s ease;
}

.widget-cat-btn:hover {
  background: var(--white);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  transform: translateY(-1px);
}

.widget-cat-btn.active {
  background: var(--color-primary);
  color: var(--white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(11, 36, 71, 0.2);
}

.widget-cat-btn.active svg {
  stroke: var(--white);
}

/* Ekipman Dropdown Alanı */
.widget-select-wrapper {
  max-width: 520px;
  margin: 0 auto 28px;
  text-align: left;
}

.widget-select-wrapper label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-600);
  margin-bottom: 8px;
}

.widget-select {
  width: 100%;
  padding: 14px 18px;
  font-size: var(--text-base);
  font-family: inherit;
  font-weight: 600;
  color: var(--ink-900);
  background-color: var(--white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
}

.widget-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

/* Sonuç Kartı (Grid Dashboard) */
.widget-result-panel {
  background: var(--bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  animation: widgetFadeIn 0.3s ease-out;
}

@keyframes widgetFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.widget-result-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.widget-result-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-result-title h4 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-heading);
  margin: 0;
}

.widget-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-900);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.widget-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-700);
}

.widget-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.widget-info-item {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-info-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.widget-info-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--ink-500);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.widget-info-label svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-primary-light);
}

.widget-info-val {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink-900);
  margin: 0;
  line-height: 1.4;
}

.widget-info-desc {
  font-size: var(--text-xs);
  color: var(--ink-600);
  margin-top: 4px;
}

/* Kritik Güvenlik Notu */
.widget-critical-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--amber-100);
  border-left: 4px solid var(--amber-600);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  color: var(--amber-950);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.widget-critical-note svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  stroke: var(--amber-700);
  margin-top: 1px;
}

/* Aksiyon Butonları */
.widget-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
}

/* Hukuki Feragatname (Disclaimer) */
.widget-disclaimer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
  font-size: 0.78rem;
  color: var(--ink-500);
  line-height: 1.5;
  text-align: left;
}

.widget-disclaimer strong {
  color: var(--ink-700);
}
