/* ==========================================================================
   BT MOBİLYA TASARIM - MOBİL RESPONSIVE STİL DOSYASI (responsive.css)
   360px, 375px, 430px, Tablet & Masaüstü Uyarlamaları (Kurumsal Lacivert & Altın)
   ========================================================================== */

/* Mobil Sabit İletişim Çubuğu (Bottom Sticky Bar) */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(11, 25, 43, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(217, 154, 39, 0.35);
  padding: 8px 12px;
  box-shadow: 0 -4px 20px rgba(11, 25, 43, 0.35);
  max-height: 14vh;
}

.mobile-sticky-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.mobile-sticky-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.15s ease;
}

.mobile-sticky-btn:active {
  transform: scale(0.96);
}

.mobile-sticky-call {
  background: var(--navy-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.mobile-sticky-wa {
  background: #1B5E3A;
  border: 1px solid #2A7D50;
  color: var(--white);
}

.mobile-sticky-quote {
  background: var(--gold-gradient);
  color: var(--navy-dark);
  font-weight: 700;
}

/* Mobil Çekmece Menü (Mobile Drawer) */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(11, 25, 43, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: var(--navy-dark);
  border-left: 1px solid rgba(217, 154, 39, 0.35);
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer.active .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}

.mobile-drawer-header img {
  height: 46px;
  width: auto;
  max-width: 196px;
  object-fit: contain;
}

.mobile-drawer-close {
  font-size: 28px;
  color: var(--light-gray);
}

.mobile-drawer-close:hover {
  color: var(--gold-light);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-item {
  padding: 12px 14px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  background: var(--navy-primary);
  color: var(--gold-light);
}

/* Tablet Uyarlaması (1024px altı) */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }

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

  .services-grid-row-1 {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .about-cnc-wrapper {
    flex-direction: column;
  }

  .about-cnc-visual {
    width: 100%;
    min-height: 300px;
  }

  .about-angle-divider {
    display: none;
  }

  .about-cnc-main {
    width: 100%;
    padding: 40px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .about-pillars-column {
    border-left: none;
    border-top: 1px solid rgba(217, 154, 39, 0.45);
    padding-left: 0;
    padding-top: 24px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

  .footer-desc {
    max-width: 100%;
    margin: 0 0 14px 0;
  }

  .footer-contacts {
    border-left: none;
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    padding: 20px 0;
  }

  .footer-nav {
    align-items: flex-start;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-legal-bar {
    justify-content: flex-start;
    gap: 10px;
  }

  .offer-spacer {
    width: 28%;
  }

  .offer-visual-container {
    min-width: 0;
  }

  .offer-text-area {
    min-width: 0;
  }

  .offer-title {
    font-size: 22px;
  }

  .service-detail-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 900px) {
  .service-detail-hero-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-hero-media {
    height: 260px;
  }
}

/* Mobil Uyarlaması (768px altı - Tam Ekran Uyumlu & Dar Yan Boşluksuz) */
@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }

  body {
    padding-bottom: 64px; /* Alt sabit iletişim çubuğu boşluğu */
  }

  .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .site-header {
    height: 66px;
  }

  .site-header .container {
    gap: 8px;
  }

  .header-brand img {
    height: 44px;
    max-width: 168px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-primary {
    padding: 8px 12px;
    font-size: 11.5px;
  }

  .mobile-menu-toggle {
    padding: 4px;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .header-phone {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 36px;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(11, 25, 43, 0.88) 0%,
      rgba(16, 36, 61, 0.82) 55%,
      rgba(11, 25, 43, 0.92) 100%
    );
  }

  .hero-title {
    font-size: 29px;
  }

  .hero-desc {
    font-size: 13.5px;
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 22px;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .services-section,
  .projects-section,
  .home-faq-section {
    padding: 40px 0 !important;
  }

  .section-header {
    margin-bottom: 24px !important;
  }

  .section-title {
    font-size: 24px;
  }

  .section-title-wrap {
    gap: 10px;
  }

  .section-title-wrap::before,
  .section-title-wrap::after {
    width: 26px;
  }

  .services-grid-row-1,
  .services-grid-row-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
  }

  .service-card,
  .service-card-row-2 {
    height: 146px;
    padding: 0;
  }

  .service-card-content {
    padding: 8px 9px;
    gap: 6px;
  }

  .service-card-title {
    font-size: 11.5px;
  }

  .about-cnc-visual {
    min-height: 220px;
  }

  .about-cnc-main {
    padding: 24px 12px;
    gap: 20px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .offer-banner {
    min-height: auto;
    padding: 26px 0;
  }

  .offer-content-grid {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .offer-spacer {
    display: none;
  }

  .offer-visual-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    opacity: 0.18;
  }

  .offer-angle-cut, .offer-right-laser {
    display: none;
  }

  .offer-text-area {
    min-width: 0;
    width: 100%;
  }

  .offer-title {
    font-size: 21px;
  }

  .offer-btn-area {
    width: 100%;
  }

  .offer-wa-button {
    width: 100%;
    justify-content: center;
  }

  .districts-grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-pillars-column {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 18px;
  }

  .about-center-text .about-heading {
    font-size: 26px;
  }

  .site-footer {
    padding-top: 36px;
    padding-bottom: 20px;
  }

  .footer-main-grid {
    gap: 24px;
    padding-bottom: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .footer-bottom-right {
    justify-content: center;
    gap: 14px;
  }

  .footer-signature-link {
    padding-left: 12px;
  }

  /* İç Sayfalar Tam Ekran Mobil Uyarlaması */
  .page-shell {
    padding-top: calc(var(--header-height) + 18px) !important;
    padding-bottom: 44px !important;
  }

  .page-hero-title {
    font-size: 26px !important;
    line-height: 1.25 !important;
  }

  .surface-box,
  .surface-box-navy {
    padding: 18px 14px !important;
  }

  .service-detail-hero-body {
    padding: 20px 14px !important;
  }

  .service-detail-hero-media {
    height: 220px !important;
  }

  .service-detail-hero-body .btn {
    width: 100%;
  }

  .grid-auto-cards {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .about-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .contact-main-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .contact-form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .contact-badges-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
  }

  .contact-badges-grid > * {
    padding: 14px 12px !important;
  }

  .services-page-layout {
    gap: 20px;
  }

  .services-sidebar-box {
    padding: 16px 14px;
  }

  .faq-accordion-header {
    padding: 14px;
    font-size: 13.5px;
  }

  .faq-accordion-content {
    padding: 12px 14px 14px;
  }

  .quote-modal-box {
    padding: 15px 14px;
  }

  .quote-modal-title {
    font-size: 18.5px;
  }

  .quote-grid-2 {
    gap: 8px;
  }

  .lightbox-modal-box {
    min-width: 0;
    width: 100%;
    padding: 10px;
  }

  #lightboxImg {
    max-height: calc(100vh - 130px);
  }

  .lightbox-footer-bar {
    gap: 8px;
  }

  .lightbox-title {
    font-size: 13px;
  }

  .scroll-top-btn {
    right: 12px;
    bottom: 76px;
    width: 38px;
    height: 38px;
  }

  .wa-float-widget {
    left: 12px;
    bottom: 76px;
  }

  .wa-widget-trigger {
    padding: 9px 15px;
    font-size: 13.5px;
    gap: 7px;
  }

  .wa-widget-card {
    width: min(320px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    bottom: calc(100% + 14px);
  }
}

@media (max-width: 420px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hero-title {
    font-size: 26px;
  }

  .about-pillars-column {
    grid-template-columns: 1fr;
  }

  .contact-badges-grid {
    grid-template-columns: 1fr !important;
  }

  .mobile-sticky-bar {
    padding: 6px 8px;
  }

  .wa-float-widget {
    left: 10px;
    bottom: 72px;
  }

  .wa-widget-card {
    width: min(310px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }

  .wa-widget-body {
    padding: 12px;
    gap: 10px;
  }

  .wa-widget-avatar {
    width: 46px;
    height: 46px;
  }
}

@media (max-height: 560px) {
  .quote-modal-box {
    padding: 14px 18px;
  }

  .quote-modal-header {
    margin-bottom: 8px;
  }

  .quote-modal-desc {
    display: none;
  }

  .quote-modal-box .form-group {
    margin-bottom: 6px;
  }

  .quote-kvkk-row {
    margin-bottom: 8px;
  }
}
