/* ========================================
   Section CSS - T&R Cleaning Service KG
   ======================================== */

/* ========================================
   Header/Navigation Section
   ======================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar {
  padding: 0.5rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  border: 3px solid var(--tr-dark);
}

/* Header brand text (replaces inline h3 to allow responsive scaling) */
.header-brand-text {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* Header logo (allows responsive sizing without inline width/height conflicts) */
.header-logo {
  width: 55px;
  height: 55px;
  object-fit: cover;
}

.costume-nav-div {
  display: flex;
  align-items: center;
}

.costume-nav-div button .flag-icon {
  font-size: 2rem;
  transition: transform var(--tr-transition-normal);
}

.costume-nav-div button:hover .flag-icon {
  transform: scale(1.1);
}

.costume-nav-div button {
  transition: background-color var(--tr-transition-fast);
}

.costume-nav-div button:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========================================
   Main Content Container
   ======================================== */

main {
  container-type: inline-size;
}

main.container {
  background: white;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: var(--tr-radius-xl);
  padding: 2rem;
  margin-top: 5rem;
  margin-bottom: 3rem;
  scroll-margin-top: 5rem;
}

/* ========================================
   Hero Section (About)
   ======================================== */

#about {
  padding: var(--tr-spacing-xl) 0;
}

#about h1 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

#about p.lead {
  font-size: 1.125rem;
  line-height: 1.7;
}

#about hr {
  border-color: var(--tr-pink);
  opacity: 0.3;
  margin: 2rem 0;
}

#about h2 {
  font-weight: 600;
  color: var(--tr-dark);
  margin-bottom: 1rem;
}

#about p.text-muted {
  margin-bottom: 1.5rem;
}

/* ========================================
   Why Us Section
   ======================================== */

#why-us {
  padding: var(--tr-spacing-xl) 0;
  border-top: 1px solid #e9ecef;
}

#why-us .h2 {
  font-weight: 600;
  line-height: 1.4;
}

#why-us ul {
  margin-top: 1.5rem;
}

#why-us li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

/* ========================================
   Reviews Section
   ======================================== */

#reviews {
  padding: var(--tr-spacing-xl) 0;
  border-top: 1px solid #e9ecef;
}

#reviews .h2 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#reviews .h6 {
  color: #6c757d;
  font-style: italic;
}

#reviews .card {
  height: 100%;
  border: 1px solid #dee2e6;
}

#reviews .card-body {
  padding: 1.5rem;
}

#reviews .star-rating {
  margin-bottom: 1rem;
}

#reviews .star-rating i {
  margin-right: 2px;
}

#reviews .card-text {
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

#reviews .card-title {
  font-weight: 600;
  margin-bottom: 0;
}

/* ========================================
   Gallery Section (Before/After Carousel)
   ======================================== */

#gallery {
  padding: var(--tr-spacing-xl) 0;
  border-top: 1px solid #e9ecef;
}

#gallery .h2 {
  font-weight: 600;
  margin-bottom: 1rem;
}

#gallery p.text-muted {
  margin-bottom: 2rem;
}

.gallery-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.before-after-container {
  padding: var(--tr-spacing-lg) 0;
}

.gallery-cta {
  text-align: center;
  margin-top: var(--tr-spacing-lg);
}

#gallery .gallery-carousel {
  margin-top: var(--tr-spacing-lg);
}

/* ========================================
   Contact Section
   ======================================== */

#contact {
  padding: var(--tr-spacing-xl) 0;
  border-top: 1px solid #e9ecef;
}

#contact .h3 {
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

#contact .card {
  border: 4px solid var(--tr-danger);
  border-radius: var(--tr-radius-lg);
  padding: 1.5rem;
}

#contact .card-title {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

#contact .card-text {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

#contact a {
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  main.container {
    padding: 1rem;
    margin-top: 4rem;
    scroll-margin-top: 4rem;
  }

  #about h1 {
    font-size: 1.75rem;
  }

  #about h2,
  #why-us .h2,
  #reviews .h2,
  #gallery .h2 {
    font-size: 1.5rem;
  }

  #contact .card {
    padding: 1rem;
  }

  /* Header: shrink logo + brand text on tablets */
  .header-logo {
    width: 45px;
    height: 45px;
  }

  .header-brand-text {
    font-size: 1.25rem;
  }

  .costume-nav-div button .flag-icon {
    font-size: 1.5rem;
  }

  .costume-nav-div .fa-bars {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  main.container {
    padding: 0.75rem;
  }

  #about h1 {
    font-size: 1.5rem;
  }

  #about p.lead,
  #contact .card-text {
    font-size: 0.9375rem;
  }

  #reviews .col-md-4 {
    margin-bottom: 1rem;
  }

  .btn-custom {
    padding: 12px 24px;
    font-size: 1.125rem;
  }

  /* Header: compact layout on small phones */
  .header-logo {
    width: 38px;
    height: 38px;
  }

  .header-brand-text {
    font-size: 1rem;
  }

  .navbar-brand {
    gap: 0.5rem;
  }

  .costume-nav-div button .flag-icon {
    font-size: 1.25rem;
  }

  .costume-nav-div .fa-bars {
    font-size: 1.25rem;
  }

  .costume-nav-div button {
    padding: 0.25rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  header,
  .offcanvas,
  .gallery-carousel {
    display: none !important;
  }
  
  main.container {
    box-shadow: none;
    padding: 0;
    margin: 0;
  }
  
  .card {
    break-inside: avoid;
  }
}