/* ==========================================================================
   ProMed Global — main.css
   Custom styles layered on top of Bootstrap 5.
   Rule: Use Bootstrap utilities first. Add custom CSS only when Bootstrap
   cannot achieve the result.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   -------------------------------------------------------------------------- */
:root {
  /* Brand colours */
  --color-navy:        #1A3A6B;
  --color-navy-dark:   #122b52;
  --color-teal:        #00A896;
  --color-teal-dark:   #008a7c;
  --color-green:       #4CAF50;
  --color-green-wa:    #25D366;  /* WhatsApp green */

  /* Neutrals */
  --color-light:       #F4F8FB;
  --color-white:       #FFFFFF;
  --color-text:        #2D3748;
  --color-text-muted:  #6B7A8D;
  --color-border:      #E2E8F0;

  /* Typography */
  --font-base:         'Inter', sans-serif;
  --fs-eyebrow:        0.75rem;
  --fw-semibold:       600;
  --fw-bold:           700;

  /* Spacing */
  --section-py:        5rem;
  --section-py-sm:     3rem;

  /* Transitions */
  --transition-base:   all 0.3s ease;
  --transition-slow:   all 0.6s ease;

  /* Shadows */
  --shadow-sm:         0 2px 8px rgba(26, 58, 107, 0.08);
  --shadow-md:         0 4px 20px rgba(26, 58, 107, 0.12);
  --shadow-lg:         0 8px 40px rgba(26, 58, 107, 0.16);

  /* Border radius */
  --radius-card:       12px;
  --radius-btn:        8px;
}

/* --------------------------------------------------------------------------
   2. Base Resets & Global Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-teal);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-teal-dark);
}

/* --------------------------------------------------------------------------
   3. Typography Utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

/* --------------------------------------------------------------------------
   4. Button Overrides
   -------------------------------------------------------------------------- */
.btn {
  border-radius: var(--radius-btn);
  font-weight: var(--fw-semibold);
  padding: 0.6rem 1.5rem;
  transition: var(--transition-base);
  border-width: 2px;
}

/* Primary — navy */
.btn-primary {
  background-color: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secondary — teal-green */
.btn-secondary {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outline white — used on dark backgrounds */
.btn-outline-white {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline-white:hover,
.btn-outline-white:focus {
  background-color: var(--color-white);
  color: var(--color-navy);
  transform: translateY(-2px);
}

/* CTA green — used in CTA band */
.btn-cta {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: #3d9140;
  border-color: #3d9140;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------------------
   5. Scroll Animation System
   All animatable elements get .animate-on-scroll initially.
   When the Intersection Observer fires, .is-visible is added.
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for card grids */
.animate-stagger:nth-child(1)  { transition-delay: 0ms; }
.animate-stagger:nth-child(2)  { transition-delay: 100ms; }
.animate-stagger:nth-child(3)  { transition-delay: 200ms; }
.animate-stagger:nth-child(4)  { transition-delay: 300ms; }
.animate-stagger:nth-child(5)  { transition-delay: 400ms; }
.animate-stagger:nth-child(6)  { transition-delay: 100ms; }
.animate-stagger:nth-child(7)  { transition-delay: 200ms; }
.animate-stagger:nth-child(8)  { transition-delay: 300ms; }
.animate-stagger:nth-child(9)  { transition-delay: 0ms; }
.animate-stagger:nth-child(10) { transition-delay: 100ms; }
.animate-stagger:nth-child(11) { transition-delay: 200ms; }
.animate-stagger:nth-child(12) { transition-delay: 300ms; }

/* --------------------------------------------------------------------------
   6. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  background-color: var(--color-navy);
  padding: 1rem 0;
  transition: var(--transition-base);
}

.navbar--scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand img {
  height: 48px;
  width: auto;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 6px;
  transition: var(--transition-base);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-white) !important;
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('https://images.unsplash.com/photo-1584308666744-24d5c474f2ae?w=1600&auto=format&fit=crop&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 58, 107, 0.92) 0%,
    rgba(26, 58, 107, 0.75) 50%,
    rgba(0, 168, 150, 0.4) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 6rem 0 4rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__title span {
  color: var(--color-teal);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__ctas .btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   8. Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background-color: var(--color-green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.5);
  transition: var(--transition-base);
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #1ebe57;
  color: var(--color-white);
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* Pulse ring animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--color-green-wa);
  animation: whatsapp-pulse 2s ease-out infinite;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

.whatsapp-float i {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   9. Trust Strip
   -------------------------------------------------------------------------- */
.trust-strip {
  background-color: var(--color-navy);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
}

.trust-strip__icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background-color: rgba(0, 168, 150, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 1.25rem;
}

.trust-strip__label {
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.trust-strip__desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. About Section
   -------------------------------------------------------------------------- */
.about {
  padding: var(--section-py) 0;
  background-color: var(--color-white);
}

.about__image-wrap {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-card);
}

.about__badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-green));
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-weight: var(--fw-bold);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  line-height: 1.4;
}

.about__badge span {
  display: block;
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
}

.about__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.about__stat-number {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   11. Categories Section
   -------------------------------------------------------------------------- */
.categories {
  padding: var(--section-py) 0;
  background-color: var(--color-white);
}

.category-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  height: 100%;
  background-color: var(--color-white);
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-teal);
}

.category-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card__body {
  padding: 1.25rem;
}

.category-card__name {
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.category-card__count {
  display: inline-block;
  background-color: rgba(0, 168, 150, 0.1);
  color: var(--color-teal);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  padding: 0.15rem 0.6rem;
  border-radius: 50px;
  margin-bottom: 0.6rem;
}

.category-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.category-card__link {
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  color: var(--color-teal);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-base);
}

.category-card__link:hover {
  gap: 0.6rem;
  color: var(--color-teal-dark);
}

/* --------------------------------------------------------------------------
   12. Why Choose Us Section
   -------------------------------------------------------------------------- */
.why-us {
  padding: var(--section-py) 0;
  background-color: var(--color-light);
}

.feature-card {
  background-color: var(--color-white);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-teal);
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.12), rgba(76, 175, 80, 0.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.feature-card__title {
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   13. Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials {
  padding: var(--section-py) 0;
  background-color: var(--color-white);
}

.testimonial-card {
  background-color: var(--color-light);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  position: relative;
  border: 1px solid var(--color-border);
}

.testimonial-card__quote-icon {
  font-size: 3rem;
  color: var(--color-teal);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.testimonial-card__text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card__stars {
  color: #F59E0B;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testimonial-card__author {
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  margin-bottom: 0.1rem;
}

.testimonial-card__role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Carousel custom controls */
.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  background-color: var(--color-navy);
  border-radius: 50%;
  opacity: 1;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev { left: -22px; }
.carousel-control-next { right: -22px; }

.carousel-indicators [data-bs-target] {
  background-color: var(--color-teal);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  opacity: 0.4;
}

.carousel-indicators .active {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   14. CTA Band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-band__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-band__subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-navy);
  padding: 4rem 0 2rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer__logo img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 1.25rem;
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  transition: var(--transition-base);
}

.footer__links a:hover {
  color: var(--color-teal);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact-item i {
  color: var(--color-teal);
  margin-top: 3px;
  min-width: 16px;
}

.footer__divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer__legal {
  background-color: var(--color-navy-dark);
  padding: 1.25rem 0;
}

.footer__legal-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  transition: var(--transition-base);
}

.footer__legal-links a:hover {
  color: var(--color-teal);
}

/* --------------------------------------------------------------------------
   16. Section Spacing Utility
   -------------------------------------------------------------------------- */
.section-pad {
  padding: var(--section-py) 0;
}

.section-pad--sm {
  padding: var(--section-py-sm) 0;
}

/* --------------------------------------------------------------------------
   17. Reduced Motion (Accessibility)
   Users who prefer reduced motion get no transitions or animations.
   -------------------------------------------------------------------------- */
@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;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .whatsapp-float::before {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   18. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .hero {
    background-attachment: scroll; /* Fix parallax on mobile */
  }

  .about__image-wrap img {
    height: 350px;
  }

  .about__stats {
    gap: 1.25rem;
  }

  .carousel-control-prev { left: 0; }
  .carousel-control-next { right: 0; }
}

@media (max-width: 767.98px) {
  :root {
    --section-py: 3.5rem;
  }

  .hero__content {
    padding: 7rem 0 3rem;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .about__stats {
    justify-content: space-between;
  }

  .trust-strip__item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   INNER PAGE SHARED STYLES
   Added for products, about, contact, faq and other inner pages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page Hero (inner pages — shorter than homepage hero)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 60%, #0d4a6b 100%);
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  background: rgba(0, 168, 150, 0.12);
  border: 1px solid rgba(0, 168, 150, 0.25);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.page-hero__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  line-height: 1.7;
}

/* Breadcrumb inside page hero */
.page-hero .breadcrumb {
  background: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.page-hero .breadcrumb-item,
.page-hero .breadcrumb-item a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.page-hero .breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   Product Table (category pages)
   -------------------------------------------------------------------------- */
.product-table-wrapper {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-table {
  margin: 0;
  font-size: 0.875rem;
}

.product-table thead th {
  background-color: var(--color-navy);
  color: var(--color-white);
  font-weight: var(--fw-semibold);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  padding: 0.85rem 1rem;
  white-space: nowrap;
}

.product-table tbody tr {
  transition: background-color 0.2s ease;
}

.product-table tbody tr:hover {
  background-color: rgba(0, 168, 150, 0.05);
}

.product-table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  border-color: var(--color-border);
  color: var(--color-text);
}

.product-table .sku-badge {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 0.75rem;
  background-color: rgba(26, 58, 107, 0.08);
  color: var(--color-navy);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}

.product-table .attr-tag {
  display: inline-block;
  font-size: 0.7rem;
  background-color: rgba(0, 168, 150, 0.1);
  color: var(--color-teal-dark);
  padding: 0.15rem 0.5rem;
  border-radius: 50px;
  margin: 1px;
}

/* --------------------------------------------------------------------------
   Product search bar
   -------------------------------------------------------------------------- */
.product-search-wrap {
  position: relative;
  max-width: 420px;
}

.product-search-wrap .fa-magnifying-glass {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.product-search-wrap input {
  padding-left: 2.75rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  height: 44px;
  transition: var(--transition-base);
}

.product-search-wrap input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
  outline: none;
}

/* --------------------------------------------------------------------------
   Product count badge
   -------------------------------------------------------------------------- */
.product-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: var(--color-light);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

/* --------------------------------------------------------------------------
   Forms (quote, contact)
   -------------------------------------------------------------------------- */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.form-label {
  font-weight: var(--fw-semibold);
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  border-radius: 8px;
  border-color: var(--color-border);
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  transition: var(--transition-base);
  color: var(--color-text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545;
}

.invalid-feedback {
  font-size: 0.8rem;
}

.form-check-input:checked {
  background-color: var(--color-teal);
  border-color: var(--color-teal);
}

/* --------------------------------------------------------------------------
   Sidebar info card (used on quote + contact pages)
   -------------------------------------------------------------------------- */
.info-card {
  background: var(--color-light);
  border-radius: var(--radius-card);
  padding: 2rem;
  border: 1px solid var(--color-border);
  height: fit-content;
}

.info-card__heading {
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-teal);
}

.info-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--color-text);
}

.info-card__item i {
  color: var(--color-teal);
  margin-top: 3px;
  min-width: 16px;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-accordion .accordion-button {
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  background-color: var(--color-white);
  font-size: 0.95rem;
  padding: 1.1rem 1.25rem;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--color-teal);
  background-color: rgba(0, 168, 150, 0.04);
  box-shadow: none;
}

.faq-accordion .accordion-button::after {
  filter: none;
}

.faq-accordion .accordion-button:not(.collapsed)::after {
  filter: none;
}

.faq-accordion .accordion-body {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
}

.faq-accordion .accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card) !important;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   About page specific
   -------------------------------------------------------------------------- */
.value-card {
  text-align: center;
  padding: 1.5rem 1rem;
}

.value-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-green));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

.value-card__title {
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.value-card__desc {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Timeline (about "where we're going") */
.timeline-item {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.75rem;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline-dot {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-teal), var(--color-green));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.timeline-content__label {
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.25rem;
}

.timeline-content__title {
  font-weight: var(--fw-bold);
  color: var(--color-navy);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.timeline-content__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Business & Wholesale page
   -------------------------------------------------------------------------- */
.who-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.who-tag {
  background: rgba(0, 168, 150, 0.1);
  color: var(--color-teal-dark);
  font-size: 0.825rem;
  font-weight: var(--fw-semibold);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 168, 150, 0.2);
}

.benefit-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: 10px;
  border: 1px solid var(--color-border);
  transition: var(--transition-base);
  margin-bottom: 0.75rem;
}

.benefit-item:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-sm);
}

.benefit-item__icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  background: linear-gradient(135deg, rgba(0, 168, 150, 0.12), rgba(76, 175, 80, 0.12));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 1rem;
}

.benefit-item__text {
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
  padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Catalogue page
   -------------------------------------------------------------------------- */
.catalogue-card {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-dark));
  border-radius: var(--radius-card);
  padding: 3rem;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.catalogue-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,168,150,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.catalogue-card__icon {
  font-size: 4rem;
  color: var(--color-teal);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Contact map placeholder
   -------------------------------------------------------------------------- */
.map-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--color-light), #dce8f5);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  gap: 0.75rem;
}

.map-placeholder i {
  font-size: 2.5rem;
  color: var(--color-teal);
}

/* --------------------------------------------------------------------------
   Success / alert states (form feedback)
   -------------------------------------------------------------------------- */
.form-success {
  display: none;
  background: rgba(0, 168, 150, 0.08);
  border: 1px solid rgba(0, 168, 150, 0.3);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-teal-dark);
}

.form-success i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

/* --------------------------------------------------------------------------
   Products hub — filter bar
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn {
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Responsive tweaks for inner pages
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .page-hero {
    padding: 6rem 0 3rem;
  }

  .form-card {
    padding: 1.5rem;
  }

  .catalogue-card {
    padding: 2rem 1.5rem;
  }

  .product-table {
    font-size: 0.8rem;
  }

  .product-table thead th,
  .product-table tbody td {
    padding: 0.6rem 0.75rem;
  }
}

/* ==========================================================================
   GLOBAL SEARCH — navbar search bar + search results page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Navbar search form
   The search icon is a standalone button. When clicked, the input expands
   to the LEFT so it never overlaps the "Request a Quote" CTA on the right.
   The autocomplete dropdown anchors below the full expanded bar.
   -------------------------------------------------------------------------- */

/* Wrapper — flex row, icon on right so input expands leftward */
.navbar-search {
  display: flex;
  align-items: center;
  flex-direction: row-reverse; /* icon right, input grows left */
  position: relative;
}

/* The text input — starts at width 0, grows left on open */
.navbar-search__input {
  width: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 0.875rem;
  font-family: var(--font-base);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s ease,
              border-color 0.2s ease;
  outline: none;
  height: 38px;
  overflow: hidden;
  flex-shrink: 0;
}

.navbar-search__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Expanded state */
.navbar-search.is-open .navbar-search__input {
  width: 220px;
  padding: 0 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-search.is-open .navbar-search__input:focus {
  border-color: var(--color-teal);
  background: rgba(255, 255, 255, 0.14);
}

/* The icon / toggle button */
.navbar-search__icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  height: 38px;
  width: 38px;
  min-width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-base);
  flex-shrink: 0;
  margin-left: 0; /* gap handled by parent flex gap */
}

.navbar-search__icon-btn:hover,
.navbar-search.is-open .navbar-search__icon-btn {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Autocomplete dropdown
   -------------------------------------------------------------------------- */
.navbar-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;          /* anchors to the right edge of the search wrapper */
  width: 320px;
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(26, 58, 107, 0.18);
  border: 1px solid var(--color-border);
  overflow: hidden;
  z-index: 9998;
  display: none;     /* shown by JS */
  max-height: 420px;
  overflow-y: auto;
}

.navbar-search__dropdown.is-visible {
  display: block;
}

.navbar-search__dropdown-header {
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-light);
  border-bottom: 1px solid var(--color-border);
}

.navbar-search__suggestion {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  cursor: pointer;
}

.navbar-search__suggestion:last-child {
  border-bottom: none;
}

.navbar-search__suggestion:hover,
.navbar-search__suggestion.is-active {
  background: rgba(0, 168, 150, 0.06);
}

.navbar-search__suggestion-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: rgba(0, 168, 150, 0.1);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 0.8rem;
}

.navbar-search__suggestion-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.3;
}

.navbar-search__suggestion-name mark {
  background: rgba(0, 168, 150, 0.2);
  color: var(--color-teal-dark);
  border-radius: 2px;
  padding: 0 1px;
  font-weight: 700;
}

.navbar-search__suggestion-meta {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 1px;
}

.navbar-search__dropdown-footer {
  padding: 0.6rem 1rem;
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.navbar-search__dropdown-footer a {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--color-teal);
  text-decoration: none;
}

.navbar-search__dropdown-footer a:hover {
  color: var(--color-teal-dark);
}

.navbar-search__dropdown-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

/* Mobile: full-width search row below nav links */
@media (max-width: 991.98px) {
  .navbar-search {
    flex-direction: row; /* icon left on mobile */
    width: 100%;
    margin-top: 0.75rem;
  }

  .navbar-search__input,
  .navbar-search.is-open .navbar-search__input {
    width: 100%;
    flex: 1;
    padding: 0 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .navbar-search__icon-btn {
    margin-right: 0.5rem;
    margin-left: 0;
    order: -1;
  }

  .navbar-search__dropdown {
    width: 100%;
    right: 0;
    left: 0;
  }
}

/* --------------------------------------------------------------------------
   Search results page
   -------------------------------------------------------------------------- */
.search-results-header {
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2.5rem;
}

.search-query-display {
  font-size: 1.4rem;
  font-weight: var(--fw-bold);
  color: var(--color-navy);
}

.search-query-display span {
  color: var(--color-teal);
}

.search-result-count {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* Category group heading */
.search-group__heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(0, 168, 150, 0.2);
}

.search-group {
  margin-bottom: 2.5rem;
}

/* Individual result row */
.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: var(--color-white);
  transition: var(--transition-base);
  gap: 1rem;
}

.search-result-item:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.search-result-item__name {
  font-weight: var(--fw-semibold);
  color: var(--color-navy);
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

.search-result-item__name mark {
  background: rgba(0, 168, 150, 0.2);
  color: var(--color-teal-dark);
  border-radius: 2px;
  padding: 0 1px;
}

.search-result-item__meta {
  font-size: 0.775rem;
  color: var(--color-text-muted);
}

.search-result-item__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Empty state */
.search-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--color-text-muted);
}

.search-empty i {
  font-size: 3rem;
  color: var(--color-border);
  margin-bottom: 1rem;
  display: block;
}

/* Loading state */
.search-loading {
  text-align: center;
  padding: 4rem 0;
  color: var(--color-text-muted);
}

/* Search bar on results page (larger) */
.search-page-bar {
  position: relative;
  max-width: 600px;
}

.search-page-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  font-size: 1rem;
}

.search-page-bar input {
  padding-left: 3rem;
  padding-right: 1rem;
  height: 52px;
  font-size: 1rem;
  border-radius: 10px;
  border: 2px solid var(--color-border);
  transition: var(--transition-base);
}

.search-page-bar input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.15);
  outline: none;
}

.search-page-bar__btn {
  position: absolute;
  right: 6px;
  top: 6px;
  bottom: 6px;
  background: var(--color-navy);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 0 1.25rem;
  font-weight: var(--fw-semibold);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.search-page-bar__btn:hover {
  background: var(--color-navy-dark);
}
