/* ==========================================================================
   responsive.css — Breakpoints
   Desktop: 1920 / 1600 / 1440 / 1366 / 1280
   Tablet: 1024 / 992 / 768
   Mobile: 576 / 480 / 430 / 390 / 375 / 360
   ========================================================================== */

/* Large desktop polish */
@media (min-width: 1600px) {
  :root {
    --container: 1280px;
  }
}

@media (min-width: 1920px) {
  :root {
    --container: 1360px;
  }

  .hero {
    min-height: 900px;
  }
}

/* <= 1440 */
@media (max-width: 1440px) {
  .hero__content {
    max-width: 600px;
  }
}

/* <= 1366 */
@media (max-width: 1366px) {
  .services__grid {
    gap: 1rem;
  }

  .service-card {
    min-height: 260px;
    padding: 1.35rem 1.15rem;
  }
}

/* <= 1280 */
@media (max-width: 1280px) {
  .nav__link {
    padding: 0.5rem 0.7rem;
  }

  .ai-section__grid,
  .yaklasim__grid,
  .why-us__grid,
  .contact-grid {
    gap: 1.5rem;
  }
}

/* Tablet landscape <= 1024 */
@media (max-width: 1024px) {
  .social-float {
    display: none;
  }

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

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

  .numbers__grid,
  .testimonials__grid,
  .kvkk__grid,
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ai-section__grid,
  .yaklasim__grid,
  .why-us__grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .yaklasim__media {
    max-width: 520px;
    margin-inline: auto;
  }

  .cart-panel {
    grid-template-columns: 1fr;
  }

  .cart-panel__left {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .hero__silhouette {
    width: min(42vw, 360px);
    opacity: 0.75;
  }

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

/* Tablet <= 992 */
@media (max-width: 992px) {
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .header__actions .btn--primary {
    display: none;
  }

  .search-trigger__label {
    display: none;
  }

  .search-trigger {
    padding: 0;
    width: 44px;
  }

  .site-search {
    padding: 8vh 0.75rem 1rem;
  }

  .site-search__kbd {
    display: none;
  }

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

  .ai-card {
    grid-template-columns: 1fr;
  }

  .ai-card__robot {
    justify-self: center;
  }
}

/* Tablet portrait <= 768 */
@media (max-width: 768px) {
  :root {
    --header-h: 72px;
    --header-h-scrolled: 62px;
    --section-y: 3.25rem;
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-block: 6.5rem 4rem;
    width: min(100% - 2rem, 100%);
    margin-left: 1rem;
  }

  .hero__layer--cosmos {
    background:
      radial-gradient(circle at 80% 30%, rgba(180, 140, 255, 0.35), transparent 30%),
      linear-gradient(160deg, transparent 35%, rgba(26, 20, 64, 0.75) 70%, #0d0a22 100%);
  }

  .hero__silhouette {
    width: 55vw;
    right: -4%;
    opacity: 0.45;
  }

  .section-title {
    font-size: 1.55rem;
  }

  .numbers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .symbol-box__form,
  .ai-chat__form {
    flex-direction: column;
  }

  .symbol-box__form .btn,
  .ai-chat__form .btn {
    width: 100%;
  }

  .calendar__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .calendar__meta select {
    max-width: none;
  }
}

/* Mobile <= 576 */
@media (max-width: 576px) {
  .services__grid,
  .experts__grid,
  .testimonials__grid,
  .kvkk__grid,
  .footer__grid,
  .form-row,
  .video-grid {
    grid-template-columns: 1fr;
  }

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

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .logo__text {
    font-size: 0.95rem;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .page-hero {
    padding-top: 6.5rem;
  }

  .services-nav {
    top: 64px;
  }

  .service-block {
    scroll-margin-top: 120px;
    padding: 1.35rem;
  }

  .service-block__head {
    gap: 0.75rem;
  }

  .service-block__icon {
    width: 48px;
    height: 48px;
  }

  .service-block__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .ai-section__grid {
    gap: 1.5rem;
  }

  .ai-card__top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ai-chat {
    width: 100%;
    text-align: left;
  }

  .ai-chat__form {
    flex-direction: column;
  }

  .ai-chips {
    justify-content: flex-start;
  }

  .cookie-banner {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .secure-form,
  .cart-panel__left,
  .cart-panel__right {
    padding: 1.25rem;
  }
}

/* Mobile <= 480 */
@media (max-width: 480px) {
  .container,
  .header__inner {
    width: min(100% - 1.25rem, var(--container));
  }

  .service-card {
    min-height: auto;
  }

  .expert-card__avatar {
    width: 96px;
    height: 96px;
  }

  .back-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

/* Mobile <= 430 / 390 / 375 / 360 */
@media (max-width: 430px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__text {
    font-size: 1rem;
  }

  .payment-logos {
    flex-direction: column;
  }

  .payment-logo {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .number-item__value {
    font-size: 1.75rem;
  }

  .section-title {
    letter-spacing: 0.03em;
  }
}

@media (max-width: 375px) {
  .btn {
    min-height: 46px;
    padding-inline: 1.2rem;
  }

  .offcanvas {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .logo__text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero__eyebrow {
    font-size: 0.72rem;
  }
}

/* Prevent horizontal overflow globally on small screens */
@media (max-width: 1024px) {
  body {
    overflow-x: hidden;
  }

  img,
  svg,
  table,
  video,
  iframe {
    max-width: 100%;
    height: auto;
  }

  .hero--slider {
    min-height: min(78vh, 680px);
  }

  .hero-slider__nav {
    width: 42px;
    height: 42px;
  }

  .seo-hero {
    min-height: 260px;
  }

  .seo-hero__content {
    padding-top: 5rem;
    padding-bottom: 1.75rem;
  }

  .seo-il-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

/* Tablet portrait <= 768 — hero slider + layout */
@media (max-width: 768px) {
  .hero--slider {
    min-height: auto;
    align-items: flex-end;
  }

  .hero-slider {
    position: absolute;
    inset: 0;
  }

  .hero--slider .hero__content {
    position: relative;
    z-index: 3;
    padding-block: 6.25rem 4.5rem;
    width: min(100% - 1.5rem, 100%);
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    max-width: none;
  }

  .hero-slider__nav--prev { left: 0.55rem; }
  .hero-slider__nav--next { right: 0.55rem; }

  .hero-slider__dots {
    bottom: 0.85rem;
  }

  .seo-hero__content h1 {
    max-width: none;
    font-size: clamp(1.35rem, 6vw, 1.85rem);
  }

  .seo-district-list,
  .seo-il-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }

  .page-hero {
    padding-inline: 0.25rem;
  }

  .content-prose,
  .secure-form {
    width: 100%;
  }

  .footer__grid {
    gap: 1.75rem;
  }

  .offcanvas {
    width: min(100%, 360px);
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }
}

/* Mobile <= 576 */
@media (max-width: 576px) {
  .hero--slider {
    min-height: 72vh;
  }

  .hero--slider .hero__content {
    padding-block: 5.75rem 4.25rem;
  }

  .hero__title {
    font-size: clamp(1.55rem, 7.2vw, 2rem);
    letter-spacing: 0.01em;
  }

  .hero__title-sub {
    font-size: 0.62em;
    margin-top: 0.45rem;
  }

  .hero__text {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-slider__nav {
    display: none;
  }

  .seo-district-list,
  .seo-il-grid {
    grid-template-columns: 1fr;
  }

  .seo-local-strip ul {
    flex-direction: column;
    gap: 0.45rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .services-nav__inner {
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.35rem;
  }

  .services-nav a {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .accordion__btn {
    text-align: left;
    min-height: 48px;
  }

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

  input,
  textarea,
  select,
  button,
  .btn {
    font-size: 16px; /* iOS zoom önleme */
  }

  .rehber-grid,
  .article-list {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile <= 480 */
@media (max-width: 480px) {
  .hero--slider {
    min-height: 68vh;
  }

  .hero-slider__dots button {
    width: 8px;
    height: 8px;
  }

  .contact-teaser__actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .contact-teaser__actions .btn {
    width: 100%;
  }
}

/* Mobile <= 430 / 390 / 375 / 360 */
@media (max-width: 430px) {
  .hero__title {
    font-size: 1.55rem;
  }

  .hero__text {
    font-size: 0.92rem;
  }

  .payment-logos {
    flex-direction: column;
  }

  .payment-logo {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .number-item__value {
    font-size: 1.75rem;
  }

  .section-title {
    letter-spacing: 0.03em;
  }
}

@media (max-width: 375px) {
  .btn {
    min-height: 46px;
    padding-inline: 1.2rem;
  }

  .offcanvas {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .logo__text {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero__eyebrow {
    font-size: 0.72rem;
  }
}

/* Landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  .hero--slider {
    min-height: 100vh;
  }

  .hero--slider .hero__content {
    padding-block: 4.5rem 2.5rem;
  }

  .hero__text {
    display: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide,
  .hero-slider__slide img {
    transition: none !important;
  }
}
