/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (max-width: 991px) {
  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .navbar-expand-lg .navbar-nav {
    padding-bottom: 20px;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding: 0;
  }

  .scrollspy-example-2 .scrollspy-example-item:first-child {
    padding-top: 0;
  }

  .scrollspy-example-item h5 {
    padding-bottom: 5px;
  }

  .ndis-support-info {
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .ebook-download-form {
    padding: 30px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }

  @media screen and (max-width: 480px) {
    .navbar-brand {
      font-size: var(--p-font-size);
    }

    .navbar-brand-icon {
      width: 30px;
      height: 30px;
      background-image: url("../images/website_assets/images/IntenseCare_logo_edited.png");
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      border-radius: 0;
      background-color: transparent;
    }

    .navbar-brand-icon::after {
      display: none;
    }

    .btn-naira > span,
    .btn-naira .btn-icon {
      font-size: 12px;
      padding: 5px 15px;
    }
  }
  .btn-naira > span,
  .btn-naira .btn-icon {
    font-size: 12px;
    padding: 5px 15px;
  }

  @media screen and (max-width: 768px) {
    .visible-on-mobile {
      display: none !important;
    }

    .sticky-wrapper {
      top: 48px; /* same as height of .top-info-bar */
    }
  }
}

@media (max-width: 991px) and (orientation: landscape) {
  .custom-block {
    margin-top: 2rem;
    padding-top: 10px;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-radius: 16px;
  }

  .custom-block-info {
    padding: 3rem 1rem 3rem;
    margin-bottom: 1rem;
    border-radius: 16px;
  }

  .custom-block-info p {
    font-size: 20px;
    line-height: 1.4;
  }

  .custom-block-info strong {
    font-size: 22px;
  }

  .custom-block-image-wrap {
    width: 120px;
    height: 120px;
    /* margin: 0 auto; */
    background-size: cover;
    border-radius: 50%;
    margin-bottom: 20px;
  }

  section:first-of-type {
    margin-top: 80px; /* match navbar height (or slightly more for spacing) */
  }

  .navbar-brand-icon {
    width: 30px;
    height: 30px;
    background-image: url("../images/website_assets/images/IntenseCare_logo_edited.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    background-color: transparent;
  }

  .navbar-brand-icon::after {
    display: none;
  }

  .btn-naira > span,
  .btn-naira .btn-icon {
    font-size: 12px;
    padding: 5px 15px;
  }

  .navbar {
    min-height: 48px !important;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .navbar-nav .nav-link {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 14px;
  }

  .sticky-wrapper {
    top: 36px !important; /* match top-info-bar height */
  }

  .navbar,
  .navbar.is-scrolled {
    background-color: var(--primary-color);
    height: auto !important;
    min-height: 50px; /* Ensure it's tall enough */
    transition: none;
  }
  .navbar-collapse {
    background-color: var(--primary-color);
    width: 100vw;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    padding: 1rem;
  }

  .navbar .navbar-collapse {
    top: 100%;
    left: 0;
    width: 100vw;
  }

  .navbar .nav-link {
    color: white !important;
    font-weight: 600;
  }

  .navbar-collapse .nav-link {
    color: white !important;
    font-weight: 600;
    text-align: left;
  }

  .navbar-collapse .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
  }

  .navbar-collapse .nav-item:last-child {
    border-bottom: none;
  }

  .navbar {
    width: 100%;
  }

  .navbar-toggler {
    z-index: 1001; /* above menu */
  }
  .navbar-collapse.show .nav-link {
    color: white !important;
    font-weight: 600;
  }

  .navbar-toggler {
    border: none;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
  .sticky-wrapper {
    height: auto !important;
    padding-top: 0;
    padding-bottom: 0;
  }

  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
}

@media screen and (max-width: 991px) {
  .navbar-brand-icon {
    width: 50px;
    height: 50px;
    background-image: url("../images/website_assets/images/IntenseCare_logo_edited.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0;
    background-color: transparent;
  }

  .navbar-brand-icon::after {
    display: none;
  }

  .btn-naira > span,
  .btn-naira .btn-icon {
    font-size: 12px;
    padding: 5px 15px;
  }

  .navbar {
    min-height: 48px !important;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }

  .navbar-nav .nav-link {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 14px;
  }

  .sticky-wrapper {
    top: 36px !important; /* match top-info-bar height */
  }

  .navbar,
  .navbar.is-scrolled {
    background-color: var(--primary-color);
    height: auto !important;
    min-height: 50px; /* Ensure it's tall enough */
    transition: none;
  }
  .navbar-collapse {
    background-color: var(--primary-color);
    width: 100vw;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    padding: 1rem;
  }

  .navbar .navbar-collapse {
    top: 100%;
    left: 0;
    width: 100vw;
  }

  .navbar .nav-link {
    color: white !important;
    font-weight: 600;
  }

  .navbar-collapse .nav-link {
    color: white !important;
    font-weight: 600;
    text-align: left;
  }

  .navbar-collapse .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
  }

  .navbar-collapse .nav-item:last-child {
    border-bottom: none;
  }

  .navbar {
    width: 100%;
  }

  .navbar-toggler {
    z-index: 1001; /* above menu */
  }
  .navbar-collapse.show .nav-link {
    color: white !important;
    font-weight: 600;
  }

  .navbar-toggler {
    border: none;
  }

  .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
  }
  .sticky-wrapper {
    height: auto !important;
    padding-top: 0;
    padding-bottom: 0;
  }

  .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .navbar-collapse {
    background-color: var(--primary-color);
    width: 100vw;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    padding: 1rem;
  }

  .navbar-collapse .nav-link {
    color: white !important;
    font-weight: 600;
    text-align: left;
  }

  .navbar-collapse .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0.5rem;
  }

  .navbar-collapse .nav-item:last-child {
    border-bottom: none;
  }

  .navbar {
    width: 100%;
    background-color: var(
      --primary-color
    ); /* same translucent purple as scrolled */
    transition: background-color 0.3s ease;
  }

  .navbar .navbar-brand,
  .navbar .navbar-toggler-icon {
    color: white;
  }
  .navbar-toggler {
    z-index: 1001; /* above menu */
  }

  .container {
    max-width: 100%;
  }
  .sticky-wrapper {
    top: 48px !important; /* matches top-info-bar height */
    z-index: 1000;
  }

  .is-sticky .navbar {
    top: 0; /* inside wrapper, so this aligns properly */
  }

  .hero-section {
    background-position: center center; /* ensure correct position on tablet */
    min-height: 70vh;
    padding-top: 180px;
    padding-bottom: 40px;
  }

  @media (max-width: 767px) {
    .section-with-navbar-offset {
      padding-top: 120px;
    }

    .custom-block {
      padding-top: 10px;
      padding: 1rem 1rem;
      margin-bottom: 1rem;
      border-radius: 16px;
    }

    .custom-block-info {
      padding: 3rem 1rem 3rem;
      margin-bottom: 1rem;
      border-radius: 16px;
    }

    .custom-block-info p {
      font-size: 20px;
      line-height: 1.4;
    }

    .custom-block-info strong {
      font-size: 22px;
    }

    .custom-block-image-wrap {
      width: 120px;
      height: 120px;
      /* margin: 0 auto; */
      background-size: cover;
      border-radius: 50%;
      margin-bottom: 20px;
    }
  }

  .hero-title {
    font-size: 50px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 24px;
    max-width: 100%;
    text-align: center;
  }

  .hero-section .row {
    padding-left: 5%;
    padding-right: 5%;
    justify-content: center;
    text-align: center;
  }

  .hero-section .container-fluid {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .hero-buttons {
    justify-content: center !important;
  }
}

@media screen and (max-width: 480px) {
  #top-info-bar .d-flex a {
    font-size: 10px;
  }

  .hero-section {
    background-position: center center;
    /* min-height: 90vh; more height for small phones */
    padding-top: 40px;
    padding-bottom: 40px;
    overflow-x: hidden; /* <== prevent horizontal scroll */
  }

  .hero-section .row {
    padding-left: 15px; /* smaller padding */
    padding-right: 15px;
  }

  .hero-title {
    font-size: 36px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 18px;
    text-align: center;
    line-height: 1.4;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 90%;
    min-width: auto;
    padding: 12px 10px;
  }
}

@media screen and (max-width: 400px) {
  .hero-section {
    background-position: center center;
    min-height: 90vh; /* increased for tiny screens */
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 30px;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 18px;
    text-align: center;
    line-height: 1.4;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 90%;
    min-width: auto;
    padding: 12px 10px;
  }
}

@media screen and (max-width: 991px) {
  .contact-us-right-side {
    border-radius: var(--border-radius-medium);
    position: relative;
    z-index: 2;
    padding: 40px;
    background: var(--intense-care-color);
    margin-top: 20px;
  }
  .what-i-get-list li {
    font-size: 1.2rem;
    line-height: 2;
    /* display: flex;
    align-items: flex-start; */
    margin-bottom: 20px;
  }

  .what-i-get-list {
    list-style: none;
    padding-left: 0;
    color: #222;
    font-size: 2rem;
    line-height: 2;
  }

  .what-i-get-list strong {
    color: #14a44d;
  }

  .what-i-get-title {
    font-size: 40px;
    text-align: center;
  }

  .what-i-get-subtitle {
    font-size: 30px;
    text-align: center;
  }

  /* .what-i-get-list {
    font-size: 20px;
    text-align: left;
  } */

  .ndis-support-info > h2 {
    font-size: 36px;
    text-align: center;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .visible-on-mobile {
    display: block !important;
  }

  .ndis-support-info {
    margin-bottom: 30px;
  }

  .only-on-mobile {
    font-size: 18px;
  }
}

.bi-telephone-fill .me-1 {
  display: inline-block;
  margin-right: 0.25rem;
}

/* For iPad Resolutions and similar */
@media (min-width: 768px) {
  .custom-block {
    margin-top: 2rem;
    padding-top: 10px;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border-radius: 16px;
  }

  .visible-on-mobile {
    display: none !important;
  }
}

.care-services-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.care-services-table td {
  padding: 12px;
  vertical-align: top;
}

.care-services-table .service-title {
  font-weight: 600;
  color: #1baa66;
  width: 30%;
}

.care-services-table .service-desc {
  width: 70%;
}

@media (min-width: 768px) and (max-width: 990px) {
  .hide-on-mobile {
    display: block !important;
  }

  .visible-on-mobile {
    display: none !important;
  }
}

li.social-icon-item > a {
  display: inline-block;
  height: 10px;
  width: 10px;
}

li.social-icon-item {
  display: inline-block;
  height: 10px;
  width: 10px;
}