/* ==========================================================================
   Yüksel Apartman Yönetimi — Responsive Stiller
   Breakpoints: 320 · 375 · 425 · 768 · 992 · 1200 · 1400
   Mobil öncelikli yaklaşım — ana stiller masaüstü için,
   burada küçük ekranlara uyarlanır.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1400px+ — Geniş ekran ince ayar
   -------------------------------------------------------------------------- */
@media (min-width: 1400px) {
  :root {
    --container: 1280px;
  }
}

/* --------------------------------------------------------------------------
   1200px ve altı
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__inner {
    gap: var(--space-lg);
  }
}

/* --------------------------------------------------------------------------
   992px ve altı — Tablet yatay / küçük laptop
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --space-2xl: 4.5rem;
    --space-3xl: 5.5rem;
  }

  .nav__menu {
    position: fixed;
    inset: auto 0 0 0;
    top: var(--header-h);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2rem;
    gap: 0.25rem;
    border-top: 1px solid var(--color-gray-border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--duration) var(--ease),
      transform var(--duration) var(--ease),
      visibility var(--duration) var(--ease);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }

  .site-header.is-scrolled .nav__menu {
    top: 64px;
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__link {
    padding: 0.9rem 0.75rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover,
  .nav__link[aria-current="page"] {
    background: var(--color-gray-light);
  }

  .nav__cta {
    margin: 0.75rem 0 0;
    width: 100%;
    justify-content: center;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
    padding-block: var(--space-xl);
  }

  .hero__visual {
    justify-self: center;
    width: min(100%, 380px);
    order: -1;
  }

  .hero__visual-frame {
    aspect-ratio: 16 / 11;
  }

  .hero {
    min-height: auto;
  }

  .hero__scroll {
    display: none;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about__media {
    max-width: 560px;
    margin-inline: auto;
  }

  .about__float {
    right: 0.5rem;
    bottom: -0.75rem;
  }

  .about__content .section-header {
    text-align: center;
  }

  .about__content .section-lead {
    margin-inline: auto;
  }

  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .process__timeline::before {
    display: none;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .footer__brand-col {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   768px ve altı — Tablet dikey
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --topbar-h: auto;
    --nav-h: 70px;
    --space-xl: 2.75rem;
    --space-2xl: 3.75rem;
  }

  .topbar {
    height: auto;
    padding-block: 0.55rem;
    font-size: 0.75rem;
  }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .topbar__left,
  .topbar__right {
    gap: 0.85rem;
  }

  .topbar__item--address {
    display: none;
  }

  .nav__brand {
    font-size: 1rem;
  }

  .nav__logo img {
    width: 46px;
    height: 46px;
  }

  .section-header {
    margin-bottom: var(--space-lg);
  }

  .about__list {
    grid-template-columns: 1fr;
  }

  .testimonial-card__inner {
    padding: 1.5rem;
  }

  .contact__form-wrap {
    padding: 1.5rem;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .fab {
    right: 1rem;
    bottom: 1rem;
  }

  .fab__btn {
    width: 50px;
    height: 50px;
  }
}

/* --------------------------------------------------------------------------
   425px ve altı — Büyük telefon
   -------------------------------------------------------------------------- */
@media (max-width: 425px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .nav__brand span {
    display: none;
  }

  .services__grid,
  .why__grid,
  .process__timeline,
  .stats__grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__visual-badge {
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.85rem 1rem;
  }

  .about__float {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
    max-width: none;
  }

  .service-card {
    padding: 1.4rem 1.25rem;
  }

  .faq-item__trigger {
    font-size: 0.95rem;
    padding: 1rem 1.1rem;
  }

  .faq-item__content p {
    padding: 0 1.1rem 1.1rem;
  }
}

/* --------------------------------------------------------------------------
   375px ve altı
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
  :root {
    --nav-h: 64px;
  }

  .nav__logo img {
    width: 42px;
    height: 42px;
  }

  .btn {
    padding: 0.85rem 1.35rem;
    font-size: 0.9rem;
  }

  .section {
    padding-block: 3.25rem;
  }

  .stat-item__value {
    font-size: 2.2rem;
  }
}

/* --------------------------------------------------------------------------
   320px — En küçük ekran
   -------------------------------------------------------------------------- */
@media (max-width: 320px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .topbar__hours {
    display: none;
  }

  .nav__brand {
    font-size: 0.92rem;
  }

  .hero__eyebrow {
    font-size: 0.7rem;
  }

  .fab {
    right: 0.75rem;
    bottom: 0.75rem;
    gap: 0.55rem;
  }

  .fab__btn {
    width: 46px;
    height: 46px;
  }

  .fab__btn svg {
    width: 20px;
    height: 20px;
  }
}

/* --------------------------------------------------------------------------
   Yazdırma
   -------------------------------------------------------------------------- */
@media print {
  .topbar,
  .nav__toggle,
  .nav__cta,
  .fab,
  .hero__scroll,
  .testimonials__controls {
    display: none !important;
  }

  .site-header {
    position: static;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}
