/* Global responsive safeguards */
html,
body {
  overflow-x: hidden;
}

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

/* Header / nav */
.navbar .navbar-brand.w-100 {
  width: auto !important;
  max-width: 210px;
  flex: 0 0 auto;
}

.navbar .navbar-brand img {
  width: 100%;
  height: auto;
  display: block;
}

/* Generic text wrapping for long service titles and links */
.card-title,
.widget a,
.lead,
p {
  overflow-wrap: anywhere;
}

/* Buttons keep comfortable touch targets */
.btn {
  white-space: normal;
}

/* Responsive hooks replacing inline styles */
.about-shape-offset {
  top: 3rem;
  left: 5.5rem;
}

.contact-shape-offset {
  top: 0;
  left: -1.4rem;
  z-index: 0;
}

.contact-message-area {
  min-height: 150px;
  height: 150px;
}

.contact-map-embed {
  width: 100%;
  height: 500px;
  border: 0;
}

/* Tablet and down */
@media (max-width: 991.98px) {
  .display-2,
  .display-3,
  .display-4,
  .display-5,
  .display-6 {
    line-height: 1.2;
    word-break: break-word;
  }

  .display-2 {
    font-size: clamp(2rem, 6.5vw, 2.8rem);
  }

  .display-3 {
    font-size: clamp(1.7rem, 5.3vw, 2.4rem);
  }

  .display-4 {
    font-size: clamp(1.5rem, 4.8vw, 2rem);
  }

  .about-shape-offset,
  .contact-shape-offset {
    left: 0;
    top: 0;
    opacity: 0.45;
  }

  .contact-map-embed {
    height: 380px;
  }
}

/* Mobile */
@media (max-width: 767.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar .navbar-brand.w-100 {
    max-width: 165px;
  }

  .btn.btn-lg {
    padding: 0.75rem 1.15rem;
    font-size: 0.95rem;
  }

  /* Hero buttons stack nicely */
  .content .d-flex.justify-content-center.justify-content-lg-start {
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }

  .content .d-flex.justify-content-center.justify-content-lg-start .btn {
    width: 100%;
    margin-right: 0 !important;
  }

  .pricing .card-body {
    padding: 1.2rem;
  }

  .pricing .price-value {
    font-size: 2rem;
  }

  .contact-message-area {
    min-height: 130px;
    height: 130px;
  }

  .contact-map-embed {
    height: 300px;
  }

  .footer .text-center.mt-6 {
    line-height: 1.9;
  }
}

/* Small mobile */
@media (max-width: 575.98px) {
  .pt-18 {
    padding-top: 5rem !important;
  }

  .pb-16 {
    padding-bottom: 4rem !important;
  }

  .lead {
    font-size: 1rem;
  }

  .contact-map-embed {
    height: 250px;
  }
}
