/* Small additions on top of Tooplate Clean Work. Do not replace the template CSS. */

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

[hidden] {
  display: none !important;
}

.logo {
  object-fit: contain;
}

/* Sticky nav after leaving the hero */
.navbar.is-sticky {
  position: fixed;
  top: 0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  padding-bottom: 10px;
}
.navbar.is-sticky .navbar-brand,
.navbar.is-sticky .navbar-nav .nav-link {
  color: #000000;
}
.navbar.is-sticky .navbar-nav .nav-link:hover,
.navbar.is-sticky .navbar-nav .nav-link.active {
  color: var(--secondary-color);
}
.navbar.is-sticky .logo {
  width: 56px;
  height: 56px;
  padding: 8px;
}

.hero-lead {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.hero-section h1 {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

/* All-services list: simple, not a card grid */
.service-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px 32px;
}
@media (min-width: 768px) {
  .service-index {
    grid-template-columns: 1fr 1fr;
  }
}
.service-index li {
  padding-left: 16px;
  border-left: 3px solid var(--primary-color);
}
.service-index strong {
  display: block;
  margin-bottom: 2px;
}
.service-index span {
  color: var(--p-color);
}

/* How it works */
.step-num {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-color);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

/* Neighbourhoods */
.mahalle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mahalle-list li {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.92rem;
}
.mahalle-list li.is-home {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: #ffffff;
}

/* FAQ uses Bootstrap collapse, slightly tightened */
.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item .accordion-button {
  font-weight: 600;
  box-shadow: none;
  background: #ffffff;
}
.faq-item .accordion-button:not(.collapsed) {
  color: var(--secondary-color);
  background: #ffffff;
  box-shadow: none;
}
.faq-item .accordion-button:focus {
  box-shadow: none;
  border-color: var(--secondary-color);
}
.faq-item .accordion-body {
  color: var(--p-color);
}

/* Contact + map */
.map-frame {
  border-radius: 16px;
  overflow: hidden;
  min-height: 320px;
  background: #d9e2ea;
  height: 100%;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mobile call / WhatsApp bar */
.mobile-bar {
  display: none;
}
@media (max-width: 991px) {
  .mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
  }
  .mobile-bar .custom-btn,
  .mobile-bar .btn-wa {
    flex: 1;
    margin: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
  }
  .btn-wa {
    background: #128c7e;
    color: #ffffff;
    border-radius: var(--border-radius-large);
    font-weight: 700;
    text-decoration: none;
    padding: 12px 18px;
  }
  .btn-wa:hover {
    color: #ffffff;
    background: #0c6d62;
  }
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  /* Solid, readable mobile nav (template overlays the hero on desktop only) */
  .navbar,
  .navbar.is-sticky {
    position: relative !important;
    top: 0 !important;
    background: #ffffff;
    box-shadow: none;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .navbar-brand,
  .navbar-brand:hover,
  .navbar.is-sticky .navbar-brand,
  .navbar .navbar-nav .nav-link,
  .navbar.is-sticky .navbar-nav .nav-link {
    color: #000000 !important;
  }
  .navbar .logo,
  .navbar.is-sticky .logo {
    width: 48px;
    height: 48px;
    padding: 8px;
  }
  .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .navbar-toggler .navbar-toggler-icon,
  .navbar-toggler .navbar-toggler-icon:before,
  .navbar-toggler .navbar-toggler-icon:after,
  .navbar.is-sticky .navbar-toggler .navbar-toggler-icon,
  .navbar.is-sticky .navbar-toggler .navbar-toggler-icon:before,
  .navbar.is-sticky .navbar-toggler .navbar-toggler-icon:after {
    background: #000000 !important;
  }
  .navbar .collapse.show,
  .navbar .collapsing {
    background: #ffffff;
    padding: 8px 8px 16px;
    border-radius: 0;
    margin-top: 8px;
  }
}

@media (min-width: 992px) {
  .mobile-bar {
    display: none !important;
  }
  .btn-wa {
    background: #128c7e;
    color: #ffffff;
    border-radius: var(--border-radius-large);
    font-weight: 700;
    text-decoration: none;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-wa:hover {
    color: #ffffff;
    background: #0c6d62;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-section .backstretch { animation: none !important; }
}

/* Hide the sticky contact bar (and its reserved space) when no phone or WhatsApp is set. */
@media (max-width: 991px) {
  .mobile-bar[hidden] {
    display: none !important;
  }
  body:has(.mobile-bar[hidden]) {
    padding-bottom: 0;
  }
}
