/* ==========================================================================
   ÜÇBOYUT ÖZEL EĞİTİM VE REHABİLİTASYON MERKEZİ
   style.css — CSS değişkenleri, reset, tipografi, layout sistemi
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. WEBFONT — Trajan Pro (yalnızca logo adı için, sahip onaylı istisna)
   Subset edilmiş woff2 (~13–18 KB), yalnızca ASCII + Türkçe maj/min glifleri.
   Roboto dışı tek webfont istisnası; başka yerde kullanılmaz.
   Logo Bold (700) kullanır; Regular (400) ileride esneklik için tanımlı.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Trajan Pro';
  src: url('../fonts/trajan-pro-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Trajan Pro';
  src: url('../fonts/trajan-pro-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-orange:       #F5A623;
  --color-orange-dark:  #D4891A;
  --color-orange-light: #FDC96A;
  --color-navy:         #1B3F7A;
  --color-navy-dark:    #122B56;
  --color-navy-light:   #2A5BA8;

  /* Neutrals */
  --color-white:        #FFFFFF;
  --color-off-white:    #F8F9FA;
  --color-gray-100:     #F1F3F5;
  --color-gray-200:     #E9ECEF;
  --color-gray-300:     #DEE2E6;
  --color-gray-400:     #CED4DA;
  --color-gray-500:     #ADB5BD;
  --color-gray-600:     #6C757D;
  --color-gray-700:     #495057;
  --color-gray-800:     #343A40;
  --color-gray-900:     #212529;

  /* Semantic Colors */
  --color-text-primary:   #1B3F7A;
  --color-text-secondary: #4A5568;
  --color-text-muted:     #718096;
  --color-bg-primary:     #FFFFFF;
  --color-bg-secondary:   #F8F9FA;
  --color-bg-accent:      #EEF3FB;
  --color-border:         #E2E8F0;
  --color-success:        #38A169;
  --color-error:          #E53E3E;

  /* Typography — every size is +2 punto (≈0.167rem / ≈2.67px) above the original spec */
  --font-primary: 'Roboto', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-size-xs:   calc(0.75rem  + 0.167rem); /* ~14.67px */
  --font-size-sm:   calc(0.875rem + 0.167rem); /* ~16.67px */
  --font-size-base: calc(1rem     + 0.167rem); /* ~18.67px */
  --font-size-md:   calc(1.125rem + 0.167rem); /* ~20.67px */
  --font-size-lg:   calc(1.25rem  + 0.167rem); /* ~22.67px */
  --font-size-xl:   calc(1.5rem   + 0.167rem); /* ~26.67px */
  --font-size-2xl:  calc(1.875rem + 0.167rem); /* ~32.67px */
  --font-size-3xl:  calc(2.25rem  + 0.167rem); /* ~38.67px */
  --font-size-4xl:  calc(3rem     + 0.167rem); /* ~50.67px */
  --font-size-5xl:  calc(3.75rem  + 0.167rem); /* ~62.67px */
  /* Aliases used by per-page <style> blocks that reference var(--text-*) */
  --text-xs:   var(--font-size-xs);
  --text-sm:   var(--font-size-sm);
  --text-base: var(--font-size-base);
  --text-md:   var(--font-size-md);
  --text-lg:   var(--font-size-lg);
  --text-xl:   var(--font-size-xl);
  --text-2xl:  var(--font-size-2xl);
  --text-3xl:  var(--font-size-3xl);
  --text-4xl:  var(--font-size-4xl);
  --text-5xl:  var(--font-size-5xl);

  --font-weight-normal:    400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  --line-height-tight:  1.18;
  --line-height-snug:   1.3;
  --line-height-normal: 1.4;
  --line-height-relaxed:1.55;
  --line-height-loose:  1.85;

  /* Spacing (8px base grid) */
  --space-1:  0.25rem;  /*  4px */
  --space-2:  0.5rem;   /*  8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.25rem;  /* 20px */
  --space-6:  1.5rem;   /* 24px */
  --space-8:  2rem;     /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Border Radius */
  --radius-sm:   0.25rem;  /* 4px */
  --radius-md:   0.5rem;   /* 8px */
  --radius-lg:   0.75rem;  /* 12px */
  --radius-xl:   1rem;     /* 16px */
  --radius-2xl:  1.5rem;   /* 24px */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg:  0 10px 25px rgba(0,0,0,0.08), 0 5px 10px rgba(0,0,0,0.05);
  --shadow-xl:  0 20px 40px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-orange: 0 8px 25px rgba(245,166,35,0.35);
  --shadow-navy:   0 8px 25px rgba(27,63,122,0.25);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Layout */
  --container-max:    1200px;
  --container-wide:   1400px;
  --container-narrow:  800px;
  --nav-height:         72px;
  --section-padding-y: var(--space-20);
}

/* --------------------------------------------------------------------------
   2. CSS RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Global orphan-fix: balanced wrap for headings, pretty wrap for paragraphs.
   `text-wrap: balance` distributes lines evenly (best for short text like headings).
   `text-wrap: pretty` uses a smart algorithm that avoids leaving a single word
   on the last line (best for body paragraphs). Supported in modern browsers;
   degrades gracefully (no-op in older browsers). */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p, li, blockquote, dd, figcaption {
  text-wrap: pretty;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* <picture> wrapper'lari yerlesimde kutu uretmez; icindeki <img> dogrudan
   ebeveynin cocuguymus gibi davranir. Boylece WebP/PNG fallback eklerken
   mevcut flex/grid/absolute yerlesimler birebir korunur. */
picture {
  display: contents;
}
/* <source>'un varsayilan display:none'i yok; picture display:contents iken
   grid/flex hucresine terfi edip bos bir oge olusturmasin (kaynak secimini
   etkilemez, sadece yerlesimden cikarir). */
picture > source {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
}

p {
  line-height: var(--line-height-relaxed);
}

strong {
  font-weight: var(--font-weight-semibold);
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY SCALE
   -------------------------------------------------------------------------- */
.text-xs   { font-size: var(--font-size-xs); }
.text-sm   { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-md   { font-size: var(--font-size-md); }
.text-lg   { font-size: var(--font-size-lg); }
.text-xl   { font-size: var(--font-size-xl); }
.text-2xl  { font-size: var(--font-size-2xl); }
.text-3xl  { font-size: var(--font-size-3xl); }
.text-4xl  { font-size: var(--font-size-4xl); }

.font-normal   { font-weight: var(--font-weight-normal); }
.font-medium   { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold     { font-weight: var(--font-weight-bold); }
.font-extrabold{ font-weight: var(--font-weight-extrabold); }

.text-primary   { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-orange    { color: var(--color-orange); }
.text-navy      { color: var(--color-navy); }
.text-white     { color: var(--color-white); }

.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* --------------------------------------------------------------------------
   4. LAYOUT — Container & Grid
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--space-8); }
}

.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

/* Grid system */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexbox utilities */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-center{ justify-content: center; }
.justify-between{justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* --------------------------------------------------------------------------
   5. SECTION LAYOUT
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--section-padding-y);
}

.section--sm {
  padding-block: var(--space-12);
}

.section--lg {
  padding-block: var(--space-24);
}

.section--navy {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.section--gray {
  background-color: var(--color-bg-secondary);
}

.section--accent {
  background-color: var(--color-bg-accent);
}

.section--subtle {
  background-color: var(--color-gray-100);
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

/* ──────────────────────────────────────────────
   Asymmetric blog grid: 1 featured card + 2 small
   Mobile: single column
   ≥ 768px: 2 columns (featured spans both)
   ≥ 1024px: 2fr 1fr, featured left spans both rows, small stack right
   ────────────────────────────────────────────── */
.blog-grid--asymmetric {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .blog-grid--asymmetric {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-6);
  }

  .blog-grid--asymmetric .blog-card--featured {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .blog-grid--asymmetric .blog-card--featured .blog-card__img {
    aspect-ratio: 4/3;
    font-size: 5rem;
  }

  .blog-grid--asymmetric .blog-card--featured .blog-card__title {
    font-size: var(--font-size-xl);
    line-height: 1.25;
  }

  .blog-grid--asymmetric .blog-card--featured .blog-card__excerpt {
    font-size: var(--font-size-base);
  }
}

/* ──────────────────────────────────────────────
   Offset testimonial grid — middle card lifted
   for a masonry feel without layout overhead
   ────────────────────────────────────────────── */
/* ──────────────────────────────────────────────
   Testimonials infinite carousel — used on home page
   ────────────────────────────────────────────── */
.testimonials-carousel {
  position: relative;
  margin-bottom: var(--space-10);
}

.testimonials-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto; /* important: instant teleport, no smooth on loop */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  padding-block: var(--space-2);
  /* Mask edges to fade content at sides */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.testimonials-carousel__viewport::-webkit-scrollbar { display: none; }

.testimonials-carousel__viewport:active {
  cursor: grabbing;
}

.testimonials-carousel__viewport:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 4px;
  border-radius: var(--radius-lg);
}

.testimonials-track {
  display: flex;
  gap: var(--space-6);
  width: max-content;
  padding-inline: var(--space-2);
  align-items: stretch;
}

.testimonials-track > .testimonial-card {
  flex: 0 0 360px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  /* Make all cards equal height */
  margin: 0;
}

.testimonials-track > .testimonial-card .testimonial-card__text {
  flex: 1;
}

@media (max-width: 640px) {
  .testimonials-track > .testimonial-card {
    flex: 0 0 280px;
    max-width: 280px;
    scroll-snap-align: center;
  }
  .testimonials-carousel__viewport {
    /* Drop the side fade — interferes with centering */
    -webkit-mask-image: none;
            mask-image: none;
    scroll-snap-type: x mandatory;
  }
  .testimonials-track {
    /* Center the first/last card by padding the track so initial scroll = centered card */
    padding-inline: calc((100% - 280px) / 2);
  }
}

/* ── Carousel nav arrows ── */
.testimonials-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast),
              box-shadow var(--transition-fast);
}

.testimonials-carousel__nav:hover,
.testimonials-carousel__nav:focus-visible {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
  outline: none;
  box-shadow: var(--shadow-lg);
}

.testimonials-carousel__nav:active {
  transform: translateY(-50%) scale(0.94);
}

.testimonials-carousel__nav--prev { left: -8px; }
.testimonials-carousel__nav--next { right: -8px; }

@media (min-width: 1024px) {
  .testimonials-carousel__nav--prev { left: -22px; }
  .testimonials-carousel__nav--next { right: -22px; }
}

@media (max-width: 640px) {
  .testimonials-carousel__nav { width: 40px; height: 40px; }
  .testimonials-carousel__nav--prev { left: 4px; }
  .testimonials-carousel__nav--next { right: 4px; }
}

/* ──────────────────────────────────────────────
   Reduced motion support — global override
   Respects user preference across all animations
   ────────────────────────────────────────────── */
@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;
  }

  /* Pause auto-drift carousel for users with reduced-motion preference */
  .testimonials-carousel__viewport { scroll-behavior: auto; }
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-orange);
  margin-bottom: var(--space-3);
}

.section-label--white {
  color: var(--color-orange-light);
}

.section-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .section-title { font-size: var(--font-size-3xl); }
}

.section-title--white {
  color: var(--color-white);
}

.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: 1.35;
  max-width: 580px;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

.section-subtitle--white {
  color: rgba(255, 255, 255, 0.82);
}

/* Highlight word in title */
.highlight {
  color: var(--color-orange);
}

/* --------------------------------------------------------------------------
   6. SPACING UTILITIES
   -------------------------------------------------------------------------- */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.p-4   { padding: var(--space-4); }
.p-6   { padding: var(--space-6); }
.py-2  { padding-block: var(--space-2); }
.py-4  { padding-block: var(--space-4); }

/* --------------------------------------------------------------------------
   7. VISIBILITY UTILITIES
   -------------------------------------------------------------------------- */
.hidden { display: none !important; }

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* --------------------------------------------------------------------------
   8. NAVIGATION
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 640px) {
  .navbar__inner { padding-inline: var(--space-6); }
}

@media (min-width: 1024px) {
  .navbar__inner { padding-inline: var(--space-8); gap: var(--space-8); }
}

@media (min-width: 1536px) {
  .navbar__inner { max-width: 1600px; }
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 60px;
  width: auto;
  display: block;
}

.navbar__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.navbar__logo-name {
  font-family: 'Trajan Pro', var(--font-primary);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.05;
}

/* Tagline: Trajan regular (small-caps), iki yana yaslı — "Üçboyut"un Ü→T
   genişliğine kilitlenir. İsim en geniş eleman olduğu için flex-column
   stretch tagline'ı tam o genişliğe yayar. <br> ile iki dengeli satır:
   "Özel Eğitim ve" (justify) / "Rehabilitasyon" (isim genişliğini doldurur). */
.navbar__logo-tagline {
  display: block;
  min-width: 0;
  font-family: 'Trajan Pro', var(--font-primary);
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--color-text-muted);
  letter-spacing: 0;
  line-height: 1.2;
  white-space: normal;
  text-align: justify;
  text-align-last: justify;
  margin-top: 1px;
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (min-width: 1024px) {
  .navbar__nav { display: flex; gap: 4px; }
}

@media (min-width: 1280px) {
  .navbar__nav { gap: var(--space-2); }
}

.navbar__nav-link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.navbar__nav-link:hover,
.navbar__nav-link.active {
  color: var(--color-navy);
  background-color: var(--color-bg-accent);
}

/* Dar masaüstü (1024–1199): Trajan büyük-harf logo eski logodan geniş ve
   8 link + CTA yer kaplıyor; link yazısını/boşlukları kısarak "Randevu Al"
   CTA'sının taşmasını önle. ≥1200px'te tam boyuta döner. */
@media (min-width: 1024px) and (max-width: 1199px) {
  .navbar__inner { gap: var(--space-3); padding-inline: var(--space-5); }
  .navbar__nav-link {
    padding-inline: var(--space-2);
    font-size: var(--font-size-xs);
  }
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.lang-switcher {
  display: flex;
  align-items: center;
  background-color: var(--color-gray-100);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
}

.lang-btn.active {
  background-color: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
  /* iOS Safari: native <button> görünümünü ve flex-stretch belirsizliğini sıfırla */
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .navbar__hamburger { display: none; }
}

.navbar__hamburger span {
  display: block;
  width: 24px;            /* açık genişlik — WebKit'te flex-stretch'e bağlı kalma */
  height: 2px;
  background-color: var(--color-navy);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.navbar__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Drawer */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-6) var(--space-4);
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu__link {
  display: block;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border-bottom: 1px solid var(--color-gray-100);
  transition: background-color var(--transition-fast);
}

.mobile-menu__link:hover {
  background-color: var(--color-bg-accent);
}

.mobile-menu__cta {
  margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   9. HERO SECTION — split layout (left content + right visual w/ clip-path)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-accent);
  color: var(--color-navy);
  padding-top: var(--nav-height);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: center;
    min-height: 600px;
    padding-top: var(--nav-height);
    padding-left: 0;
    padding-right: 0;
  }
}

/* ── Left column: content ── */
.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-10) var(--space-6) var(--space-12);
  width: 100%;
  gap: var(--space-10);
}

@media (min-width: 900px) {
  .hero__content {
    padding: var(--space-12) var(--space-16) var(--space-12) var(--space-24);
    width: 52%;
    flex-shrink: 0;
  }
}

@media (min-width: 1280px) {
  .hero__content {
    padding-left: var(--space-24);
    padding-right: var(--space-20);
  }
}

@media (min-width: 1536px) {
  .hero__content { padding-left: 12rem; }
}

/* ── Main block: title + subtitle + CTA ── */
.hero__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: center;
}

.hero__title {
  font-size: clamp(2.25rem, 4.2vw, 5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-6);
  max-width: 18ch;
}

.hero__title .accent {
  color: var(--color-orange);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
  margin: 0 0 var(--space-8);
  max-width: 52ch;
}

/* ── CTA row: link-style primary (per new design) + secondary ── */
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}

.hero__cta-primary {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-bottom: 2px;
  border-bottom: 2px solid var(--color-orange);
  transition: color var(--transition-base), border-color var(--transition-base), gap var(--transition-base);
}

.hero__cta-primary:hover,
.hero__cta-primary:focus-visible {
  color: var(--color-navy);
  border-bottom-color: var(--color-navy);
  gap: var(--space-3);
}

.hero__secondary-link {
  color: var(--color-gray-500);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-bottom: 1px solid var(--color-gray-300);
  padding-bottom: 2px;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.hero__secondary-link:hover,
.hero__secondary-link:focus-visible {
  color: var(--color-navy);
  border-bottom-color: var(--color-orange);
}

/* Mobile-only illustration: appears between title and subtitle in the
   stacked layout (<900px). Same file as the desktop visual → one download. */
.hero__illustration-mobile {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: var(--space-6) auto var(--space-3);
  filter: drop-shadow(0 16px 32px rgba(27,63,122,0.16));
}

/* ── Right column: illustration panel (desktop) ── */
.hero__visual {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: none; /* hidden on mobile; the inline mobile illustration is used */
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6) var(--space-10);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero__illustration-mobile { display: none; }
  .hero__visual {
    display: flex;
    width: 48%;
    min-height: auto;
    flex-shrink: 0;
    padding: var(--space-12);
  }
}

/* Soft warm glow behind the illustration */
.hero__visual-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 50% 48%,
              rgba(245,166,35,0.22) 0%,
              rgba(245,166,35,0.08) 38%,
              transparent 70%);
  pointer-events: none;
}

.hero__visual-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  height: auto;
  filter: drop-shadow(0 22px 44px rgba(27,63,122,0.16));
  animation: heroIllustrationIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes heroIllustrationIn {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__visual-img { animation: none; }
}


/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-navy-dark);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer__grid {
  display: grid;
  gap: var(--space-10);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
}

.footer__brand {
  max-width: 320px;
}

.footer__logo-text .navbar__logo-name {
  color: var(--color-white);
}

.footer__logo-text .navbar__logo-tagline {
  color: rgba(255,255,255,0.6);
}

.footer__description,
.footer__tagline {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: rgba(255,255,255,0.75);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer__social-link:hover {
  background-color: var(--color-orange);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__col-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer__link {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.75);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: rgba(255,255,255,0.55);
}

.footer__whatsapp-cta {
  margin-top: var(--space-4);
  background-color: transparent;
  border: 1px solid #25D366;
  color: #ffffff;
}

.footer__whatsapp-cta:hover {
  background-color: transparent;
  border-color: #1BA855;
  color: #ffffff;
}

.footer__contact-text {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.75);
  line-height: var(--line-height-relaxed);
}

.footer__contact-text a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition-fast);
}

.footer__contact-text a:hover {
  color: var(--color-orange-light);
}

/* ── Contact quick line (iletisim hero alt satır) ── */
.contact-quick-line {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.65);
  margin-top: var(--space-4);
}

.contact-quick-line a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.contact-quick-line a:hover,
.contact-quick-line a:focus-visible {
  color: var(--color-orange-light);
  border-bottom-color: var(--color-orange);
}

/* ── Social box (iletisim page sidebar) ── */
.social-box {
  margin-top: var(--space-6);
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.social-box__title {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-3);
}

.social-box__links {
  display: flex;
  gap: var(--space-3);
}

.social-box__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  transition: background var(--transition-base), color var(--transition-base);
}

.social-box__link:hover,
.social-box__link:focus-visible {
  background: var(--color-bg-accent);
  color: var(--color-navy);
}

/* ── Decorative emoji icon containers (inline style → class) ── */
.faq-cta-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

.team-cta-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-4);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
  font-size: var(--font-size-xs);
  color: rgba(255,255,255,0.50);
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --------------------------------------------------------------------------
   11. WHATSAPP FLOATING BUTTON
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.whatsapp-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all var(--transition-base);
  text-decoration: none;
  border: 3px solid rgba(255,255,255,0.3);
}

.whatsapp-float__btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.55);
}

.whatsapp-float__btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.whatsapp-float__tooltip {
  background-color: var(--color-gray-900);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulse ring animation */
.whatsapp-float__btn::before {
  content: '';
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  opacity: 0;
  animation: whatsapp-pulse 2.5s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(2);   opacity: 0; }
}

/* --------------------------------------------------------------------------
   12. PAGE HERO (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: var(--space-16);
  background: linear-gradient(135deg, var(--color-navy) 0%, #1A3568 100%);
  text-align: center;
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: calc(var(--nav-height) + 1rem);
  }
}

.page-hero__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .page-hero__title { font-size: var(--font-size-4xl); }
}

.page-hero__subtitle,
.page-hero__sub {
  font-size: var(--font-size-md);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.35;
}

/* Hizmet alt sayfaları: hero başlığı, marka turuncusunun bir tık daha açık tonu
   ile dark navy gradient üzerinde belirgin görünsün. */
.service-hero h1 { color: #fff; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-4);
  justify-content: center;
}

.breadcrumb a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-orange-light);
}

.breadcrumb__sep {
  font-size: var(--font-size-xs);
}

/* --------------------------------------------------------------------------
   13. SCROLL REVEAL ANIMATION
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="100"] { transition-delay: 0.10s; }
[data-reveal-delay="200"] { transition-delay: 0.20s; }
[data-reveal-delay="300"] { transition-delay: 0.30s; }
[data-reveal-delay="400"] { transition-delay: 0.40s; }
[data-reveal-delay="500"] { transition-delay: 0.50s; }

/* --------------------------------------------------------------------------
   GRADIENT CARDS (extra services section on home)
   2-col responsive grid; soft gradient fills with brand-aligned palettes;
   decorative emoji art positioned bottom-right with subtle hover motion.
   -------------------------------------------------------------------------- */
.gradient-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .gradient-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: var(--space-8);
  }
}

.gradient-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-6) var(--space-8);
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 300ms ease;
}

.gradient-card:hover,
.gradient-card:focus-within {
  transform: translateY(-6px) scale(1.015);
  box-shadow: var(--shadow-lg);
}

/* Gradient palette variants */
.gradient-card--orange {
  background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%);
}
.gradient-card--purple {
  background: linear-gradient(135deg, #FAF5FF 0%, #DDD6FE 100%);
}
.gradient-card--gray {
  background: linear-gradient(135deg, #EFF6FF 0%, #BFDBFE 100%);
}
.gradient-card--green {
  background: linear-gradient(135deg, #F0FDF4 0%, #D1FAE5 100%);
}

/* Card content */
.gradient-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.gradient-card__title {
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 4px 0 0;
  text-wrap: balance;
}

.gradient-card__desc {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  color: rgba(15, 23, 42, 0.78);
  line-height: 1.7;
  margin: 0;
  max-width: 42ch;
  text-wrap: pretty;
}

.gradient-card__chips {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gradient-card__chips li {
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .gradient-card { transition: none; }
  .gradient-card:hover,
  .gradient-card:focus-within { transform: none; }
}

/* --------------------------------------------------------------------------
   ZZ. MOBILE OVERRIDES — global responsive fixes
   -------------------------------------------------------------------------- */

/* Float buttons + scroll-top — shrink and stack neatly on mobile */
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: var(--space-4);
    right: var(--space-4);
  }
  .whatsapp-float__btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-float__btn::before {
    width: 52px;
    height: 52px;
  }
  .whatsapp-float__btn svg {
    width: 26px;
    height: 26px;
  }
  .scroll-top {
    width: 44px;
    height: 44px;
    bottom: calc(var(--space-4) + 64px);
    right: var(--space-4);
    font-size: 1.25rem;
  }
  /* Footer needs bottom padding so float buttons don't overlap last text */
  .footer__bottom {
    padding-bottom: var(--space-12);
  }
}

/* Hero padding tightening on mobile */
@media (max-width: 640px) {
  .page-hero,
  .service-hero,
  .article-hero {
    padding-bottom: var(--space-8);
  }
}

/* Hero titles — clamp & wrap on ultra-narrow screens to prevent overflow */
@media (max-width: 375px) {
  .page-hero__title,
  .featured-card__title,
  .article-hero h1,
  .article-hero__title,
  .service-hero h1 {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .page-hero__sub,
  .article-hero__excerpt,
  .service-hero__lead {
    font-size: var(--font-size-base);
  }
}

/* Container — slightly tighter padding on ultra-narrow screens */
@media (max-width: 375px) {
  .container {
    padding-inline: 12px;
  }
}

/* Body / main — global word-break safety so long URLs/terms never overflow cards */
@media (max-width: 640px) {
  main {
    overflow-wrap: break-word;
  }
}

/* Table scroll utility for mobile */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem -1rem;
  padding: 0 1rem;
}

/* =========================================================================
   GEÇİCİ — "Ekibimiz" sayfası gizli (sayfa henüz hazırlanıyor)
   Navbar, mobil menü, footer ve CTA butonlarındaki tüm ekibimiz.html
   bağlantılarını gizler. İkinci kural, footer'daki <li> sarmalını da
   kaldırarak boş madde kalmasını önler.
   SAYFA TAMAMLANINCA: bu bloğu sil + ekibimiz.html içindeki robots meta
   etiketini tekrar "index, follow" yap (bkz. ekibimiz.html <head>).
   ========================================================================= */
a[href$="ekibimiz.html"] { display: none !important; }
li:has(> a[href$="ekibimiz.html"]) { display: none !important; }
