/* ============================================================
   RESPONSIVE.CSS — Breakpoint Kuralları
   Breakpoints:
   xl  : < 1280px
   lg  : < 1024px
   md  : < 768px
   sm  : < 640px
   xs  : < 480px
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   XL — 1280px
──────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .container {
	padding-inline: var(--space-8);
  }

  .hero__stats-inner {
	grid-template-columns: repeat(4, 1fr);
  }

  .footer__top {
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: var(--space-8);
  }
}

/* ────────────────────────────────────────────────────────────
   LG — 1024px
──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
	--header-height: 70px;
  }

  .container {
	padding-inline: var(--space-6);
  }

  /* Header */
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header__phone { display: none; }

  /* Grid'ler */
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-section {
	grid-template-columns: 1fr;
	gap: var(--space-12);
  }

  .about-section__img-badge {
	left: var(--space-4);
	bottom: var(--space-4);
  }

  .about-section__img-main {
	aspect-ratio: 16/9;
  }

  /* İletişim */
  .contact-grid {
	grid-template-columns: 1fr;
	gap: var(--space-10);
  }

  /* CTA Bant */
  .cta-band__inner {
	flex-direction: column;
	text-align: center;
  }

  .cta-band__subtitle {
	margin-inline: auto;
  }

  .cta-band__actions {
	justify-content: center;
  }

  /* Footer */
  .footer__top {
	grid-template-columns: 1fr 1fr;
	gap: var(--space-8);
  }

  /* Hizmet Detay */
  .service-detail {
	grid-template-columns: 1fr;
  }

  .service-detail__sidebar {
	position: static;
	order: -1;
  }

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

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

  /* Hero arrows */
  .hero__arrow--prev { left: var(--space-4); }
  .hero__arrow--next { right: var(--space-4); }
}

/* ────────────────────────────────────────────────────────────
   MD — 768px
──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
	--header-height: 64px;
	--header-height-scroll: 58px;
  }

  .container {
	padding-inline: var(--space-5);
  }

  /* Sections */
  .section { padding-block: var(--space-16); }
  .section--sm { padding-block: var(--space-12); }
  .section--lg { padding-block: var(--space-20); }

  /* Grid */
  .grid--2,
  .grid--3,
  .grid--4 {
	grid-template-columns: 1fr;
  }

  /* Hero */
  .hero {
	min-height: 100svh;
	max-height: none;
  }

  .hero__title {
	font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .hero__desc { font-size: var(--text-base); }

  .hero__actions {
	flex-direction: column;
	align-items: flex-start;
  }

  .hero__actions .btn {
	width: 100%;
	max-width: 300px;
  }

  .hero__stats {
	display: none;
  }

  .hero__nav { display: none; }

  .hero__arrow {
	display: none;
  }

  /* Page Hero */
  .page-hero {
	padding: 120px 0 60px;
  }

  /* Form */
  .form-row {
	grid-template-columns: 1fr;
  }

  /* Contact form */
  .contact-form {
	padding: var(--space-6);
  }

  /* Footer */
  .footer__top {
	grid-template-columns: 1fr;
	gap: var(--space-8);
  }

  .footer__brand-desc {
	max-width: 100%;
  }

  .footer__bottom {
	flex-direction: column;
	text-align: center;
	gap: var(--space-3);
  }

  /* Stats */
  .stats-grid {
	grid-template-columns: repeat(2, 1fr);
	border-radius: var(--radius-lg);
  }

  .stat-item {
	padding: var(--space-8) var(--space-5);
  }

  /* CTA Band */
  .cta-band {
	padding: var(--space-10) var(--space-6);
	border-radius: var(--radius-xl);
  }

  .cta-band__actions {
	flex-direction: column;
	width: 100%;
  }

  .cta-band__actions .btn {
	width: 100%;
  }

  /* Gallery */
  .gallery-grid {
	grid-template-columns: repeat(2, 1fr);
  }

  /* Referanslar */
  .reference-item { height: 70px; }

  /* Flash */
  .flash-messages {
	left: var(--space-4);
	right: var(--space-4);
	max-width: none;
  }

  /* WhatsApp */
  .whatsapp-btn {
	bottom: 20px;
	right: 20px;
	padding: 13px 16px;
  }

  .whatsapp-btn:hover {
	max-width: 200px;
  }

  /* Scroll top */
  .scroll-top {
	bottom: 80px;
	right: 20px;
  }

  /* Hero stat bar */
  .hero__stat {
	padding: var(--space-4) var(--space-4);
  }
}

/* ────────────────────────────────────────────────────────────
   SM — 640px
──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Section header */
  .section-header {
	margin-bottom: var(--space-10);
  }

  /* Buttons */
  .btn--xl {
	padding: 15px 28px;
	font-size: var(--text-sm);
  }

  .btn--lg {
	padding: 13px 24px;
  }

  /* Cookie bar */
  .cookie-bar__inner {
	flex-direction: column;
	gap: var(--space-4);
	align-items: flex-start;
  }

  .cookie-bar__actions {
	width: 100%;
  }

  .cookie-bar__actions .btn {
	flex: 1;
  }

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

  /* FAQ */
  .faq-item__question {
	font-size: var(--text-sm);
	padding: var(--space-4) var(--space-4);
  }

  .faq-item__answer-inner {
	padding: 0 var(--space-4) var(--space-4);
	padding-top: var(--space-3);
  }

  /* Gallery */
  .gallery-grid {
	grid-template-columns: 1fr 1fr;
	gap: var(--space-2);
  }

  /* Popup */
  .popup-overlay {
	padding: var(--space-4);
	align-items: flex-end;
  }

  .popup-box {
	border-radius: var(--radius-xl) var(--radius-xl) 0 0;
	max-width: 100%;
  }
}

/* ────────────────────────────────────────────────────────────
   XS — 480px
──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root {
	--header-height: 60px;
  }

  .container {
	padding-inline: var(--space-4);
  }

  /* Hero */
  .hero__badge {
	font-size: 0.65rem;
  }

  /* Stats */
  .stats-grid {
	grid-template-columns: 1fr 1fr;
  }

  .stat-item__number {
	font-size: var(--text-3xl);
  }

  /* Gallery */
  .gallery-grid {
	grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__social-link {
	width: 34px;
	height: 34px;
  }

  /* Pagination */
  .pagination__link {
	min-width: 36px;
	height: 36px;
	font-size: var(--text-xs);
  }
}

/* ────────────────────────────────────────────────────────────
   PRINT
──────────────────────────────────────────────────────────── */
@media print {
  .header,
  .footer,
  .whatsapp-btn,
  .scroll-top,
  .cookie-bar,
  .popup-overlay,
  .hero__arrow,
  .hero__nav {
	display: none !important;
  }

  body {
	font-size: 12pt;
	color: black;
	background: white;
  }

  .hero {
	height: auto;
	min-height: unset;
	padding: 40pt 0;
  }

  a {
	color: black;
	text-decoration: underline;
  }
}

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

  [data-animate] {
	opacity: 1 !important;
	transform: none !important;
  }

  .logo-strip__track {
	animation: none;
  }
}
/* WhatsApp ve Scroll Top — Mobil */
@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 16px;
    padding: 12px 16px;
    z-index: 9999;
  }

  .scroll-top {
    bottom: 80px;
    right: 16px;
    z-index: 9998;
  }
}