/* ============================================
   RSMedsolutions — Base styles (Phase 1)
   Inspired by medileadpharma.com layout/colors
   ============================================ */

:root {
  --rs-lime: #40a000; /* brand green from logo */
  --rs-slate: #005a94; /* deep blue from logo */
  --rs-teal: #0070b8; /* primary logo blue */
  --rs-heading: #222222;
  --rs-body: #555555;
  --rs-muted: #969696;
  --rs-border: #dddddd;
  --rs-light: #eeeeee;
  --rs-white: #ffffff;
  --rs-font-body: "Source Sans Pro", "Segoe UI", sans-serif;
  --rs-font-heading: "Dosis", "Segoe UI", sans-serif;
  --rs-topbar-h: 45px;
  --rs-radius-pill: 25px;
  --rs-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --rs-transition: 0.2s ease;
  --rs-space-section: clamp(2.5rem, 5vw, 4.5rem);
  --rs-container-pad: clamp(0.85rem, 3vw, 1.25rem);
  --rs-hero-h: clamp(360px, 70vh, 560px);
  --rs-float-safe: 5.5rem;
  --rs-product-gap: 1.25rem;
  --rs-product-visible: 4;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--rs-font-body);
  font-size: clamp(0.92rem, 0.3vw + 0.85rem, 0.98rem);
  line-height: 1.6;
  color: var(--rs-body);
  letter-spacing: 0.3px;
  background: var(--rs-white);
  overflow-x: hidden;
  padding-bottom: var(--rs-float-safe);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--rs-transition), background var(--rs-transition), opacity var(--rs-transition);
}

a:hover,
a:focus {
  text-decoration: none;
  outline: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--rs-font-heading);
  color: var(--rs-heading);
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: clamp(1.7rem, 1.2vw + 1.35rem, 2.5rem); }
h2 { font-size: clamp(1.45rem, 1vw + 1.15rem, 2rem); }
h3 { font-size: clamp(1.25rem, 0.7vw + 1.05rem, 1.75rem); }
h4 { font-size: clamp(1.15rem, 0.5vw + 1rem, 1.5rem); }
h5 { font-size: clamp(1.05rem, 0.3vw + 0.95rem, 1.25rem); }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem;
}

.container-rs {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--rs-container-pad);
}

.container {
  padding-left: var(--rs-container-pad);
  padding-right: var(--rs-container-pad);
}

/* ---------- Top bar ---------- */
.top-bar {
  background: var(--rs-slate);
  border-bottom: 1px solid var(--rs-slate);
  min-height: var(--rs-topbar-h);
  color: var(--rs-white);
  font-size: 0.95rem;
}

.top-bar-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 1.25rem;
  min-height: var(--rs-topbar-h);
  padding: 0.45rem 0;
  overflow: hidden;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--rs-white);
}

.top-bar a {
  color: var(--rs-white);
}

.top-bar a:hover {
  text-decoration: underline;
  color: var(--rs-lime);
}

.top-bar .social {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  margin-left: auto;
}

.top-bar .social.is-hidden {
  display: none;
}

.top-bar .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
}

.top-bar .social a:hover {
  color: var(--rs-lime);
  text-decoration: none;
}

.top-bar .enquiry-btn {
  background: var(--rs-lime);
  color: var(--rs-white);
  border: none;
  border-radius: var(--rs-radius-pill);
  padding: 7px 20px;
  font-family: var(--rs-font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--rs-transition);
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: auto;
}

.top-bar .enquiry-btn:hover {
  background: var(--rs-teal);
}

/* ---------- Logo / sticky nav ---------- */
.logo-area {
  background: var(--rs-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.logo-area .navbar {
  padding: 0.85rem 0;
}

.logo-area .navbar-brand {
  margin-right: 1rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.logo-area .navbar-brand img {
  height: 78px;
  width: auto;
  max-width: min(300px, 68vw);
  object-fit: contain;
  display: block;
}

.logo-area .nav-link {
  font-family: var(--rs-font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--rs-heading) !important;
  padding: 0.75rem 0.9rem !important;
  font-size: 0.95rem;
}

.logo-area .nav-link:hover,
.logo-area .nav-link.active {
  color: var(--rs-lime) !important;
}

.logo-area .dropdown-menu {
  border: 1px solid var(--rs-border);
  box-shadow: var(--rs-shadow);
  border-radius: 0;
  padding: 0.5rem 0;
}

.logo-area .dropdown-item {
  font-size: 0.95rem;
  padding: 0.55rem 1.25rem;
  color: var(--rs-body);
}

.logo-area .dropdown-item:hover {
  background: var(--rs-light);
  color: var(--rs-lime);
}

.navbar-toggler {
  border-color: var(--rs-border);
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--rs-slate);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3.5rem;
}

.site-footer h4 {
  color: var(--rs-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: var(--rs-lime);
}

.site-footer .footer-logo {
  margin-bottom: 1rem;
  height: 88px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  background: #fff;
  padding: 0.4rem 0.6rem;
}

.site-footer .contact-list li {
  margin-bottom: 0.65rem;
}

.site-footer .contact-list i {
  color: var(--rs-lime);
  width: 20px;
  margin-right: 8px;
}

.site-footer .quick-links li {
  margin-bottom: 0.45rem;
}

.site-footer .newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.site-footer .newsletter-form input[type="email"],
.site-footer .newsletter-form input[type="text"] {
  flex: 1 1 160px;
  border: none;
  padding: 0.65rem 0.85rem;
  font-family: var(--rs-font-body);
}

.site-footer .newsletter-form button {
  background: var(--rs-lime);
  color: var(--rs-white);
  border: none;
  padding: 0.65rem 1.25rem;
  font-family: var(--rs-font-heading);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.site-footer .newsletter-form button:hover {
  background: var(--rs-teal);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* ---------- Floating actions ---------- */
.float-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 80px;
  z-index: 1040;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1040;
  width: 40px;
  height: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--rs-transition);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Enquiry modal tweaks ---------- */
.enquiry-modal .modal-content {
  border-radius: 0;
  border: none;
  padding: 1.5rem 1.75rem 2rem;
}

.enquiry-modal .modal-title {
  text-transform: uppercase;
  font-weight: 700;
}

.enquiry-modal .form-control,
.enquiry-modal textarea {
  border-radius: 0;
  border: 1px solid var(--rs-border);
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.85rem;
}

.enquiry-modal .btn-submit {
  background: var(--rs-lime);
  color: var(--rs-white);
  border: none;
  border-radius: var(--rs-radius-pill);
  padding: 0.65rem 1.75rem;
  font-family: var(--rs-font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.enquiry-modal .btn-submit:hover {
  background: var(--rs-teal);
  color: var(--rs-white);
}

/* ---------- Inner page breadcrumb ---------- */
.breadcrumb-area {
  position: relative;
  padding: 7.5rem 0 5rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--rs-white);
}

.breadcrumb-area::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 45, 0.45);
}

.breadcrumb-area .container {
  position: relative;
  z-index: 1;
}

.breadcrumb-area.about-bg {
  background-image: linear-gradient(120deg, rgba(0, 58, 102, 0.55), rgba(0, 112, 184, 0.35)),
    url("../images/banners/about-us.jpg");
}


.breadcrumb-area.products-bg {
  background-image: linear-gradient(120deg, rgba(0, 58, 102, 0.55), rgba(0, 112, 184, 0.35)),
    url("../images/banners/orthopedics.jpg");
}

.breadcrumb-area.products-ortho {
  background-image: linear-gradient(120deg, rgba(0, 58, 102, 0.55), rgba(0, 112, 184, 0.35)),
    url("../images/banners/orthopedics.jpg");
}


.breadcrumb-area.products-neuro {
  background-image: linear-gradient(120deg, rgba(0, 58, 102, 0.55), rgba(0, 112, 184, 0.35)),
    url("../images/banners/neurology.jpg");
}


.breadcrumb-area.products-gen {
  background-image: linear-gradient(120deg, rgba(0, 58, 102, 0.55), rgba(0, 112, 184, 0.35)),
    url("../images/banners/general-medicine.jpg");
}

.logo-area .dropdown-item.active {
  background: rgba(64, 160, 0, 0.12);
  color: var(--rs-lime);
}

.product-grid-card {
  height: 100%;
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  text-align: center;
  padding: 1rem 0.85rem 1.25rem;
  transition: transform var(--rs-transition), box-shadow var(--rs-transition);
}

.product-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rs-shadow);
}

.product-grid-card .product-thumb {
  display: block;
  margin-bottom: 0.85rem;
}

.product-grid-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
}

.product-grid-card h3 {
  font-family: var(--rs-font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--rs-heading);
}

.product-grid-card p {
  margin: 0;
  color: var(--rs-muted);
  font-size: 0.9rem;
}

.breadcrumb-area.gallery-bg {
  background-image: linear-gradient(120deg, rgba(0, 58, 102, 0.55), rgba(0, 112, 184, 0.35)),
    url("../images/banners/gallery.jpg");
}

.breadcrumb-area.contact-bg {
  background-image: linear-gradient(120deg, rgba(0, 58, 102, 0.55), rgba(0, 112, 184, 0.35)),
    url("../images/banners/contact-us.jpg");
}

.breadcrumb-area h1 {
  color: var(--rs-white);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.breadcrumb-area .breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-area .breadcrumb-item,
.breadcrumb-area .breadcrumb-item a {
  color: #dddddd;
  font-size: 0.95rem;
}

.breadcrumb-area .breadcrumb-item.active {
  color: var(--rs-lime);
}

.breadcrumb-area .breadcrumb-item + .breadcrumb-item::before {
  color: #969696;
}

.about-aspire {
  background: var(--rs-light);
  padding: 1.75rem 1.5rem;
  border-left: 4px solid var(--rs-lime);
}

.value-card {
  height: 100%;
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  padding: 1.75rem 1.5rem;
  transition: transform var(--rs-transition), box-shadow var(--rs-transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rs-shadow);
}

.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(64, 160, 0, 0.15);
  color: var(--rs-slate);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  margin-bottom: 0;
}

/* ---------- Shared section helpers ---------- */
.section-pad {
  padding: var(--rs-space-section) 0;
}

.section-tone {
  background: linear-gradient(180deg, #f3f8fc 0%, #ffffff 100%);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title .heartbeat {
  height: 20px;
  margin-bottom: 0.5rem;
}

.section-title h2 {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.section-title p {
  color: var(--rs-body);
  margin-bottom: 0;
}

.btn-rs {
  display: inline-block;
  background: var(--rs-lime);
  color: var(--rs-white);
  padding: 0.7rem 1.6rem;
  border-radius: var(--rs-radius-pill);
  font-family: var(--rs-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.btn-rs:hover {
  background: var(--rs-teal);
  color: var(--rs-white);
}

.btn-rs-outline {
  background: transparent;
  border: 2px solid var(--rs-white);
  color: var(--rs-white);
}

.btn-rs-outline:hover {
  background: var(--rs-white);
  color: var(--rs-slate);
}

.check-list li,
.about-list li {
  margin-bottom: 0.55rem;
  color: var(--rs-body);
}

.check-list i,
.about-list i {
  color: var(--rs-lime);
  margin-right: 8px;
}

/* ---------- Hero slider ---------- */
.home-slider .slider-item {
  position: relative;
  min-height: var(--rs-hero-h);
  overflow: hidden;
  background-color: #003a66;
}

.home-slider .slider-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.home-slider .slider-overlay {
  position: relative;
  z-index: 1;
  min-height: var(--rs-hero-h);
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  background: linear-gradient(120deg, rgba(0, 58, 102, 0.72), rgba(0, 112, 184, 0.4));
}

.home-slider .slider-content {
  max-width: 640px;
  color: var(--rs-white);
  animation: rsFadeUp 0.9s ease both;
}

.home-slider .slider-content h1 {
  color: var(--rs-white);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.home-slider .slider-content h1 span {
  color: #7ed321;
}

.home-slider .slider-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.home-slider .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--rs-white);
}

.home-slider .carousel-control-prev,
.home-slider .carousel-control-next {
  width: 8%;
  opacity: 0.85;
}

@keyframes rsFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- About ---------- */
.about-area .about-image {
  position: relative;
  overflow: hidden;
}

.about-area .about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-shadow: var(--rs-shadow);
  background: #e8f6fb;
}

.about-area .wel-title {
  font-family: var(--rs-font-heading);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rs-teal);
  font-weight: 700;
  font-size: 0.95rem;
}

.about-area h2 {
  margin-bottom: 1rem;
}

.about-area .heartbeat {
  display: block;
}

.about-area .about-box--centered .heartbeat {
  margin-left: auto;
  margin-right: auto;
}

.about-area .about-box--centered > p {
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.about-list--centered {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem 1.75rem;
  text-align: center;
}

.about-list--centered li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  white-space: nowrap;
}

.about-list--centered .fa-check {
  color: var(--rs-lime);
  margin-right: 0;
}

.about-box--centered .about-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.about-box--centered .btn-rs {
  display: inline-flex;
}

@media (max-width: 575.98px) {
  .about-list--centered {
    flex-direction: column;
    gap: 0.65rem;
  }

  .about-list--centered li {
    white-space: normal;
  }
}

/* ---------- Departments ---------- */
.department-nav {
  gap: 0.65rem;
}

.department-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  color: var(--rs-heading);
  font-family: var(--rs-font-heading);
  font-weight: 600;
  text-align: left;
  border-radius: 0;
  padding: 0.75rem 1rem;
  width: 100%;
}

.department-nav .nav-link img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.department-nav .nav-link:hover,
.department-nav .nav-link.active {
  background: var(--rs-slate);
  border-color: var(--rs-slate);
  color: var(--rs-white);
}

.department-panels {
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  padding: 1.75rem;
  min-height: 100%;
  box-shadow: var(--rs-shadow);
}

.department-panels h3 {
  margin-bottom: 0.85rem;
}

.dept-panel-img {
  width: 100%;
  max-width: 320px;
  display: block;
  margin: 0 auto;
  background: #fff;
  padding: 1rem;
  object-fit: contain;
  aspect-ratio: 1 / 1;
}

/* Tablet & phone: tabs as a clean chip row above the panel */
@media (max-width: 991.98px) {
  .department-nav {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .department-nav .nav-link {
    flex: 0 1 auto;
    width: auto;
    min-height: 44px;
    white-space: nowrap;
    padding: 0.55rem 0.95rem;
  }

  .department-nav .nav-link img {
    width: 28px;
    height: 28px;
  }

  .department-panels {
    padding: clamp(1.1rem, 3vw, 1.5rem);
  }

  .department-panels .dept-media {
    display: block;
  }

  .department-panels .dept-media .dept-panel-img {
    max-width: 220px;
    padding: 0.75rem;
  }
}

/* ---------- Products carousel ---------- */
.products-area {
  background:
    linear-gradient(180deg, rgba(0, 90, 148, 0.04), rgba(64, 160, 0, 0.06)),
    var(--rs-white);
}

.product-carousel {
  position: relative;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

.product-track-wrap {
  overflow: hidden;
  width: 100%;
}

.product-track {
  display: flex;
  gap: var(--rs-product-gap);
  transition: transform 0.45s ease;
  will-change: transform;
}

.product-card {
  flex: 0 0 calc((100% - (var(--rs-product-gap) * (var(--rs-product-visible) - 1))) / var(--rs-product-visible));
  max-width: calc((100% - (var(--rs-product-gap) * (var(--rs-product-visible) - 1))) / var(--rs-product-visible));
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  text-align: center;
  padding: 1rem 1rem 1.25rem;
  transition: transform var(--rs-transition), box-shadow var(--rs-transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rs-shadow);
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.product-card h5 {
  font-family: var(--rs-font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  color: var(--rs-heading);
}

.product-card p {
  margin: 0;
  color: var(--rs-muted);
  font-size: 0.9rem;
}

.product-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--rs-slate);
  color: var(--rs-white);
  z-index: 2;
  cursor: pointer;
  transition: background var(--rs-transition);
}

.product-nav:hover {
  background: var(--rs-lime);
}

.product-nav.prev {
  left: 0;
}

.product-nav.next {
  right: 0;
}

.product-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.product-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #cfcfcf;
  padding: 0;
  cursor: pointer;
}

.product-dots button.is-active {
  background: var(--rs-lime);
}

/* ---------- Responsive system ---------- */
@media (max-width: 1199.98px) {
  :root {
    --rs-product-visible: 3;
  }
}

@media (max-width: 991.98px) {
  :root {
    --rs-product-visible: 2;
    --rs-hero-h: clamp(340px, 58vh, 460px);
  }

  .logo-area .navbar-collapse {
    background: var(--rs-white);
    padding: 0.5rem 0 1rem;
  }

  .logo-area .nav-link {
    padding: 0.65rem 0.4rem !important;
  }

  .footer-bottom,
  .site-footer {
    text-align: left;
  }

  .site-footer .newsletter-form {
    flex-direction: column;
  }

  .site-footer .newsletter-form input,
  .site-footer .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  :root {
    --rs-float-safe: 6.25rem;
  }

  .top-bar-inner {
    gap: 0.5rem 0.75rem;
    justify-content: flex-start;
  }

  .top-bar .social {
    margin-left: auto;
  }

  .top-bar .enquiry-btn {
    margin-left: 0;
    min-height: 40px;
    padding: 6px 14px;
  }

  .top-bar-item {
    font-size: 0.85rem;
  }

  .breadcrumb-area {
    padding: clamp(3.5rem, 14vw, 5rem) 0 clamp(2.5rem, 8vw, 3.5rem);
  }

  .gallery-filter {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    scrollbar-width: thin;
  }

  .gallery-filter button {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 40px;
  }

  .float-whatsapp {
    right: 14px;
    bottom: 72px;
    width: 48px;
    height: 48px;
  }

  .float-whatsapp img {
    width: 48px;
    height: 48px;
  }

  .back-to-top {
    right: 18px;
    bottom: 16px;
  }

  .contact-box {
    flex-direction: row;
  }

  .map-placeholder {
    min-height: 280px;
  }

  .product-card img,
  .gallery-card .gallery-thumb img,
  .product-grid-card img {
    height: clamp(160px, 40vw, 210px);
  }
}

@media (max-width: 575.98px) {
  .department-panels .dept-media {
    display: none;
  }

  :root {
    --rs-product-visible: 1;
    --rs-hero-h: clamp(320px, 68vh, 420px);
    --rs-product-gap: 0.85rem;
  }

  .top-bar-inner {
    justify-content: flex-start;
  }

  .top-bar .enquiry-btn {
    order: 4;
    width: 100%;
    margin-top: 0.15rem;
  }

  .logo-area .navbar-brand img {
    height: 64px;
    max-width: min(240px, 70vw);
  }

  .home-slider .slider-content {
    max-width: 100%;
    text-align: left;
  }

  .home-slider .slider-content p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .home-slider .carousel-control-prev,
  .home-slider .carousel-control-next {
    width: 12%;
  }

  .department-nav .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }

  .product-carousel {
    padding: 0 2.25rem;
  }

  .product-nav {
    width: 34px;
    height: 34px;
  }

  .value-card,
  .product-grid-card,
  .gallery-card,
  .contact-form-wrap {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title {
    margin-bottom: 1.75rem;
  }
}

/* Tablet landscape / medium desktops */
@media (min-width: 576px) and (max-width: 991.98px) {
  .top-bar .enquiry-btn {
    margin-left: auto;
  }
}

/* ---------- Gallery ---------- */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.gallery-filter button {
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  color: var(--rs-heading);
  font-family: var(--rs-font-heading);
  font-weight: 600;
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: background var(--rs-transition), color var(--rs-transition), border-color var(--rs-transition);
}

.gallery-filter button:hover,
.gallery-filter button.is-active {
  background: var(--rs-slate);
  border-color: var(--rs-slate);
  color: var(--rs-white);
}

.gallery-item.is-hidden {
  display: none !important;
}

.gallery-card {
  height: 100%;
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  text-align: center;
  padding: 0.85rem 0.85rem 1.1rem;
  transition: transform var(--rs-transition), box-shadow var(--rs-transition);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rs-shadow);
}

.gallery-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.gallery-thumb img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.04);
}

.gallery-zoom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 90, 148, 0.45);
  color: var(--rs-white);
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity var(--rs-transition);
}

.gallery-thumb:hover .gallery-zoom {
  opacity: 1;
}

.gallery-card h3 {
  font-family: var(--rs-font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
  color: var(--rs-heading);
}

.gallery-card p {
  margin: 0;
  color: var(--rs-muted);
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox img {
  max-width: min(90vw, 720px);
  max-height: 85vh;
  background: var(--rs-white);
  padding: 0.75rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--rs-white);
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Contact ---------- */
.contact-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  height: 100%;
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  padding: 1.5rem 1.25rem;
  overflow: hidden;
  transition: box-shadow var(--rs-transition);
}

.contact-box:hover {
  box-shadow: var(--rs-shadow);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(64, 160, 0, 0.15);
  color: var(--rs-slate);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-box-body {
  min-width: 0;
  flex: 1;
}

.contact-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.contact-box p,
.contact-box a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-box a:hover {
  color: var(--rs-lime);
}

.contact-form-wrap {
  height: 100%;
  background: var(--rs-white);
  border: 1px solid var(--rs-border);
  padding: 1.75rem 1.5rem;
}

.contact-form-wrap .form-control {
  border-radius: 0;
  border: 1px solid var(--rs-border);
  padding: 0.75rem 0.9rem;
}

.map-placeholder {
  height: 100%;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(0, 90, 148, 0.92), rgba(0, 112, 184, 0.75)),
    url("../images/bread-contact.svg");
  background-size: cover;
  background-position: center;
  color: var(--rs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.map-placeholder-inner i {
  font-size: 2.5rem;
  color: var(--rs-lime);
  margin-bottom: 0.75rem;
}

.map-placeholder h4 {
  color: var(--rs-white);
  margin-bottom: 0.5rem;
}

/* ---------- Accessibility & polish ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 3000;
  background: var(--rs-lime);
  color: var(--rs-white);
  padding: 0.6rem 1rem;
  font-family: var(--rs-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  transition: top var(--rs-transition);
}

.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--rs-white);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.form-control:focus-visible {
  outline: 2px solid var(--rs-teal);
  outline-offset: 2px;
}

.enquiry-btn:focus-visible,
.btn-rs:focus-visible,
.btn-submit:focus-visible {
  outline: 2px solid var(--rs-white);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .home-slider .slider-content {
    animation: none;
  }

  .product-track {
    transition: none;
  }
}

/* Sticky logo area shadow when scrolled */
.logo-area.is-scrolled {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}


/* Chip scroll rows */
.department-nav,
.gallery-filter {
  scrollbar-color: var(--rs-lime) transparent;
}

.department-nav::-webkit-scrollbar,
.gallery-filter::-webkit-scrollbar {
  height: 4px;
}

.department-nav::-webkit-scrollbar-thumb,
.gallery-filter::-webkit-scrollbar-thumb {
  background: var(--rs-lime);
  border-radius: 4px;
}

/* Prevent media overflow */
iframe,
video,
svg,
embed,
object {
  max-width: 100%;
}

.row {
  --bs-gutter-x: clamp(1rem, 2.5vw, 1.5rem);
}

/* ---------- Contact page ---------- */
.contact-info-row .contact-box:hover {
  border-color: rgba(0, 112, 184, 0.35);
}

.contact-map-title {
  text-align: center;
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.contact-map-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--rs-border);
  background: #eef5fa;
  /* Desktop: wide, large map — matches prior ~360px+ feel and scales with width */
  aspect-ratio: 16 / 9;
  min-height: 360px;
}

.contact-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 991.98px) {
  .contact-map-frame {
    aspect-ratio: 4 / 3;
    min-height: 320px;
  }
}

@media (max-width: 575.98px) {
  .contact-map-frame {
    aspect-ratio: 1 / 1;
    min-height: 280px;
  }
}

