/* ==========================================================================
   Tahtabaş Kurumsal Çözümler - Responsive Stiller
   ========================================================================== */

/* Genel Taşma Önleme */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

@media (max-width: 1200px) {
  .principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-headline {
    font-size: 2.8rem;
  }
}

@media (max-width: 992px) {
  .top-bar {
    display: none !important;
  }

  .main-nav-wrapper {
    padding: 12px 0;
  }

  .nav-card {
    padding: 10px 18px;
  }

  /* Masaüstü Menülerini Kesin Olarak Gizle (Layout Taşmasını Önle) */
  .nav-menu,
  .nav-action,
  .dropdown-menu,
  .mega-menu,
  .mega-menu-dual,
  .mega-menu-quad {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    min-width: 0 !important;
    width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    left: 0 !important;
    transform: none !important;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .brand-logo {
    max-width: calc(100% - 50px);
  }

  .brand-logo img {
    height: 42px;
    max-width: 100%;
    object-fit: contain;
  }

  .hero-section {
    padding-top: 130px;
    padding-bottom: 90px;
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-headline {
    font-size: 2.3rem;
  }

  .hero-quote-card {
    padding: 32px 24px;
  }

  .featured-grid-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 16px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .service-layout-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .service-main-content {
    padding: 28px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-teaser-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-teaser-card {
    padding: 32px 20px;
  }

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

  .contact-map-detail-card {
    grid-template-columns: 1fr;
  }

  .contact-detail-col {
    padding: 32px 20px;
  }

  .contact-map-col {
    min-height: 320px;
  }

  .home-cta-card,
  .about-cta-card,
  .service-cta-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 22px;
    gap: 20px;
  }

  .home-cta-buttons,
  .about-cta-buttons,
  .cta-banner-buttons {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .home-cta-buttons .btn,
  .about-cta-buttons .btn,
  .cta-banner-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    max-width: 100%;
  }

  .main-nav-wrapper {
    padding: 10px 0;
  }

  .nav-card {
    padding: 8px 14px;
    border-radius: 12px;
  }

  .brand-logo img {
    height: 42px;
    max-width: 100%;
  }

  .hero-section {
    padding-top: 105px;
    padding-bottom: 70px;
  }

  .hero-headline {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .hero-quote-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .hero-quote-text {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .author-signature {
    font-size: 1.8rem;
  }

  .author-title {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .section-lead {
    font-size: 0.95rem;
  }

  .services-section {
    padding: 50px 0;
  }

  /* Hizmetler Sekmeleri Dikey Sıralama */
  .services-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 28px;
  }

  .tab-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 0.88rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card {
    padding: 24px 18px;
  }

  .principles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-wrapper {
    padding: 30px 16px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    text-align: center;
  }

  .page-header-banner {
    padding: 120px 0 55px;
  }

  .page-header-title {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .page-header-desc {
    font-size: 0.92rem;
  }

  .page-header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .page-header-actions .btn {
    width: 100%;
    text-align: center;
  }

  .contact-cards-grid {
    grid-template-columns: 1fr;
  }

  /* Floating Butonlar */
  .floating-whatsapp-btn {
    bottom: 20px;
    left: 16px;
    width: 48px;
    height: 48px;
  }

  .floating-whatsapp-btn svg {
    width: 26px;
    height: 26px;
  }

  .back-to-top {
    bottom: 20px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

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

@media (max-width: 480px) {
  .brand-logo img {
    height: 40px;
  }

  .hero-headline {
    font-size: 1.65rem;
  }

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

/* Mobile Drawer Menu */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 340px;
  height: 100vh;
  background-color: var(--color-bg-white);
  z-index: 2000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  overflow-y: auto;
}

.mobile-drawer.is-active {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.mobile-drawer-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.mobile-nav-item a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  display: block;
}

.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  cursor: pointer;
}

.mobile-submenu-list {
  display: none;
  padding: 8px 0 8px 12px;
  flex-direction: column;
  gap: 8px;
}

.mobile-submenu-list.is-open {
  display: flex;
}

.mobile-submenu-list a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 500;
}