/* Scope to .product-page to avoid conflicts with home.css */

body.product-page {
  font-family: "Funnel Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background-color: #fff;
  color: #222;
}

/* Breadcrumbs */
.product-page .breadcrumbs {
  font-size: .95rem; color: #6b7280; margin: 12px 0 18px;
}
.product-page .breadcrumbs a { color: inherit; text-decoration: none; }
.product-page .breadcrumbs a:hover { text-decoration: underline; }

/* Layout */
.product-page .product-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px; align-items: start;
}

/* Gallery */
.product-page .product-gallery { position: relative; }
.product-page .product-media {
  position: relative; background: #fff; border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
  padding: 18px; text-align: center;
}
.product-page .product-media img { width: 100%; max-width: 560px; object-fit: contain; }
.product-page .zoom-btn {
  position: absolute; right: 14px; bottom: 14px;
  background: #111; color: #fff; border: 0; border-radius: 999px;
  width: 40px; height: 40px; cursor: pointer; opacity: .88;
}
.product-page .product-thumbs {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 10px; margin-top: 12px;
}
.product-page .thumb {
  padding: 8px; border-radius: 10px; border: 1px solid #eee; background: #fff; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.product-page .thumb.is-active, .product-page .thumb:hover {
  border-color: var(--secondary, #16a34a);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.product-page .thumb img { width: 100%; height: 80px; object-fit: contain; }

/* Info */
.product-page .product-title { margin: 0 0 6px; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.product-page .product-subtitle, .product-page .lead { color: #4b5563; }
.product-page .rating-row { display: flex; align-items: center; gap: 8px; }
.product-page .rating-row .rating-count { color: #6b7280; text-decoration: none; }
.product-page .rating-row .rating-count:hover { text-decoration: underline; }

.product-page .price-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; }
.product-page .price-row .current, .product-page .price-row .currency { color: #009578; }
.product-page .price-row .current { font-size: 1.8rem; font-weight: 800; }
.product-page .badge.best-seller {
  background: #fde68a; color: #7c2d12; padding: 4px 10px; border-radius: 999px; font-weight: 700;
}

/* Buy box */
.product-page .buy-box {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  background: #f9fafb; padding: 14px; border-radius: 14px; border: 1px solid #e5e7eb;
}
.product-page .buy-box .variant { display: flex; flex-direction: column; gap: 6px; }
.product-page .buy-box select {
  padding: 10px 12px; border-radius: 8px; border: 1px solid #ddd; background: #fff;
}

.product-page .qty { display: inline-flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 999px; overflow: hidden; background: #fff; }
.product-page .qty input { width: 60px; text-align: center; padding: 8px 0; border: 0; background: transparent; font-weight: 600; }
.product-page .qty-btn { width: 40px; height: 40px; border: 0; cursor: pointer; background: #e0f2f1; color: #16a34a; font-weight: 700; }
.product-page .qty-btn:hover { background: #16a34a; color: #fff; }

.product-page .btn-buy-now.buy-btn {
  justify-self: end;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  grid-column: span 2;
  font-size: 16px;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* ✅ Smooth Heartbeat Animation */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  }
  25% {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.5);
  }
  50% {
    transform: scale(0.95);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }
  75% {
    transform: scale(1.05);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.45);
  }
}

/* Optional hover effect */
.product-page .btn-buy-now.buy-btn:hover {
  background: #22c55e;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.6);
  transform: scale(1.08);
}
 
.product-page .product-footer.card-lite {
  grid-column: 1 / -1; margin-top: 4px;
  padding: 12px 14px; border-radius: 12px; border: 1px solid #eee; background: #fff;
}
.product-page .product-footer .price-lite { color: #333; }
.product-page .total-price strong { color: #16a34a; }

/* Tabs */
.product-page .product-tabs { margin-top: 26px; }
.product-page .tabs-nav {
  display: flex; gap: 6px; border-bottom: 1px solid #e5e7eb; overflow-x: auto;
}
.product-page .tabs-nav button {
  background: transparent; border: 0; padding: 10px 14px; font-weight: 700; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.product-page .tabs-nav button[aria-selected="true"] { border-color: var(--secondary, #16a34a); color: var(--secondary, #16a34a); }
.product-page [role="tabpanel"] { padding: 14px 0; }

/* Reviews + related */
.product-page .reviews .stars { color: #f59e0b; font-size: 1.1rem; }
.product-page .related { margin-top: 24px; }
.product-page .related .cards { margin-top: 10px; }

/* Responsive */
@media (max-width: 992px) {
  .product-page .product-wrap { grid-template-columns: 1fr; }
  .product-page .buy-box { 
        flex-direction: column;
    display: flex;}
  .product-page .btn-buy-now { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
@media (max-width: 480px) {
  .product-page .product-thumbs { grid-template-columns: repeat(3,1fr); }
}

/* ==============================
   🌈 GLOBAL VARIABLES & RESET
============================== */
:root {
  --primary: #012030;
  --secondary: #13678A;
  --accent: #9AEBA3;
  --light: #fefefe;
  --dark: #012030;
   --footer-bg: #ffffff;
      --footer-text: #1a1a1a;
      --footer-muted: #6b7280;      /* subtle gray */
      --footer-border: #e5e7eb;     /* divider */
      --brand: "BIONUVA";
      --year: "2025";
}

body {
  margin: 0;
  font-family: "Funnel Sans", sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

/* ==============================
   🧱 GLOBAL CONTAINER
============================== */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==============================
   🌐 TOP BAR (DESKTOP)
============================== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
  gap: 1rem;
  position: relative;
  z-index: 1000;
    box-shadow: rgba(0, 0, 0, 0.06) 0px 2px 4px 0px inset;
}

.logo img {
  width: 80px;
}

/* ==============================
   🌍 LANGUAGE SWITCHER
============================== */
.lang-switch {
  position: relative;
}
.lang-switch img {
  width: 29px;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  border: none; 
  color: var(--dark);
  font-weight: bold;
  cursor: pointer;
}

.lang-options {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--light);
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  z-index: 1000;
}

.lang-options div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--dark);
  font-weight: bold;
}
.lang-options div:hover {
  background: #f2f2f2;
}

/* ==============================
   🧭 NAVIGATION (DESKTOP)
============================== */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2.3rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: bold;
  transition: color 0.3s;
}
.main-nav a:hover {
  color: var(--secondary);
}

/* Menu toggle (hidden on desktop) */
.menu-toggle {
  display: none; 
  color: var(--dark);
  font-size: 1.5rem;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}
 .cards {
      display: flex;
      flex-wrap: wrap;
      gap: 15px;
      justify-content: center;
  }

  .card {
    width: 270px;
    border-radius: 25px;
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); 
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    cursor: pointer;
  }
  .card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

    .card:hover {
          box-shadow: 0 12px 35px rgb(0 0 0 / 16%);
    }

    .card img {
          width: 179px;
      object-fit: contain;
      transition: transform 0.4s ease;
    }

    .card:hover img {
      transform: scale(1.05);
    }

    .card-content {
      padding: 0px 24px 16px 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      flex-grow: 1;
      color: #000000;
    }

    .card-title {
      font-weight: 600;
      font-size: 1rem;
      margin-bottom: 4px;
    }

    .card-price {
        font-weight: bold;
        color: #009578;
        font-size: 1rem;
    }

    .card-description {
      font-size: 0.85rem;
      color: rgba(0, 0, 0, 0.85);
      line-height: 1.5;
      margin-top: 8px;
    }
    .card-footer{
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .buy-btn {
      background-color: #009578;
      color: #fff;
      padding: 8px 16px;
      border-radius: 20px;
      font-weight: 600;
      font-size: 0.9rem;
      transition: background-color 0.2s ease, transform 0.2s ease;
    }

    .buy-btn:hover {
      background-color: #00b683;
      transform: scale(1.05);
    }

/* ==============================
   🖼️ HERO / BANNER
============================== */
.banner {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(to right, var(--secondary), var(--primary));
  color: var(--light);
  margin-bottom: 15px;
}
.banner h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}
.banner p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin: 1rem 0;
}

/* ==============================
   🎨 BUTTONS
============================== */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}
.btn:hover {
  background: #7fd98b;
}

/* ==============================
   🛒 PRODUCTS GRID (DESKTOP)
============================== */
.products {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
  padding: 2px;
}
#products h2 {
  text-align: center;
  margin-bottom: 10px;
  margin-top: 28px;
}
.product {
  background: var(--light);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 4px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(168, 165, 165, 0.1);
  transition: 0.3s;
}
.product:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.product p {
  margin: 0;
  color: var(--dark);
}

.products .product img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding: 8px 12px;
  background: #f8f8f8;
  border-radius: 10px;
}

.product-footer .price {
  font-size: 18px;
  font-weight: bold;
  color: #f80404;
}

.product-footer .btn {
  background: #f2f2f2;
  color: #000;
  padding: 7px 40px;
  border: 1px solid #000;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.product-footer .btn:hover {
  background: #f3f1f1;
  box-shadow: 0 4px 12px rgba(112, 110, 110, 0.5);
  transform: translateY(-2px);
}

/* ==============================
   💎 WHY CHOOSE US
============================== */
/* WHY US - horizontal moving line */
.why {
  text-align: center;
  overflow: hidden;
  background: #fff;
}

.why h2 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 25px;
}

.why-line {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.why-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: moveLeft 20s linear infinite;
}

.why-box {
  flex: 0 0 auto;
  text-align: center;
  min-width: 180px;
}

.why-box img {
  height: 100px;
  width: auto;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.why-box:hover img {
  transform: scale(1.05);
}

.why-box p {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

@keyframes moveLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==============================
   🦶 FOOTER
============================== */
footer {
  background: var(--primary);
  color: var(--light);
  text-align: center;
  padding: 2rem 1rem;
}

/* ==============================
   🤝 LOGO STRIP (PARTNERS)
============================== */
.logo-strip {
  width: 100%;
  background: #f9f9f9;
  padding: 20px 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.logo-strip-wrapper{
    text-align: center;
}
.logo-track {
  display: flex;
  gap: 60px;
  animation: moveLeftRight 8s linear infinite alternate;
}
.logo-strip img {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}
.logo-strip img:hover {
  transform: scale(1.1);
}

@keyframes moveLeftRight {
  0% { transform: translateX(0); }
  100% { transform: translateX(-40%); }
}
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #00796b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
}

#backToTop:hover {
  background-color: #004d40;
  transform: scale(1.1);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
}


.scrolling-bar {
  background-color: #111;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 16px;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  position: relative;
  width: 100%; /* Ensure it takes up the full width */
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 60s linear infinite; /* Increased the duration to 60 seconds */
}

.scrolling-text span {
  margin-right: 50px; /* Space between each text span */
}

@keyframes scroll {
  0% {
    transform: translateX(5%); /* Start the text off-screen to the right */
  }
  100% {
    transform: translateX(-100%); /* Move the text off-screen to the left */
  }
}
.icon-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  justify-items: center; /* Center items horizontally */
}

.icon-box {
  background-color: #ffffff;
  padding: 20px;
  text-align: center;
  border-radius: 10px; 
      box-shadow: 0 4px 10px rgb(0 0 0 / 49%);
    width: 85%;
    text-align: -webkit-center;
   transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
 
  .icon-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 8px rgba(0, 0, 0, 0.25);
    border-color: #2d5016;
} 

.icon-box img {
     width: calc(100px* 0.7);
    height: calc(100px* 0.7);
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(100%) hue-rotate(120deg) brightness(100%) contrast(100%);
  }

.icon-box p {
  font-family: Arial, sans-serif;
  font-size: 16px;
  color: #4CAF50; /* Adjust the text color */
  font-weight: bold;
}
.icon-box .icon-wrapper{
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f8fdf8;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    overflow: hidden;
}


.calmoris-header {
  text-align: center;
  padding: 40px;
  background-color: #fff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid #4CAF50;
}

.calmoris-header h1 {
  font-size: 32px;
  color: #4CAF50;
  font-weight: bold;
  margin: 0;
}

.calmoris-header p {
  font-size: 18px;
  color: #666;
  margin-top: 10px;
}

.calmoris-faq-container {
  margin: 40px;
}

.calmoris-faq-container h2 {
  text-align: center;
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #4CAF50;
}

.calmoris-faq-item {
  background-color: #fff;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.calmoris-accordion {
  background-color: #f1f1f1;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calmoris-accordion:hover {
  background-color: #dddddd7a; 
}

.calmoris-panel {
  padding: 20px;
  display: none;
  background-color: #f9f9f9;
  border-top: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
}

.calmoris-panel p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.calmoris-panel.open {
  background-color: #fafafa;
  display: block;
}

.arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

/* When the accordion is open, rotate the arrow */
.calmoris-accordion.active .arrow {
  transform: rotate(180deg);
}


.calmoris-review-container {
  margin: 50px auto;
  text-align: center;
}

.calmoris-reviewer  .calmoris-review-container h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 30px;
}

.calmoris-reviewer  .swiper-container {
  width: 100%;
  height: 100%;
}

.calmoris-reviewer  .swiper-wrapper {
  display: flex;
}

.calmoris-reviewer  .swiper-slide {
  min-width: 300px;
  margin: 0 10px;
  padding: 20px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.calmoris-reviewer .calmoris-stars {
  font-size: 24px;
  color: #FFD700;
}

.calmoris-reviewer  .calmoris-review-content p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.calmoris-reviewer {
  font-weight: bold;
  margin-top: 10px;
}

.calmoris-reviewer  .swiper-button-next,
.swiper-button-prev {
  color: #4CAF50;
  font-size: 30px;
}

.calmoris-reviewer  .swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #333;
}

.calmoris-reviewer  .swiper-pagination {
  text-align: center;
  margin-top: 20px;
}

.calmoris-reviewer  .swiper-pagination-bullet {
  background-color: #4CAF50;
}
.calmoris-review-content {
        margin: 2px;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    text-align: center;
    height: 181px;
    padding: 9px;
}
.contact-us > span {
    margin-left: 8px;
  font-size: 25px;
}
.contact-us a i {
    margin-right: 8px;
    color: var(--dark);
} 
/* ==============================
   📱 MOBILE STYLES (≤768px)
============================== */
@media (max-width: 768px) {

  /* Container */
  .container {
    margin: auto; 
  }

  /* Header layout */
  .top-bar {
    height: 73px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 3px;
  }
  .logo img {
    width: 82px;
  }
  /* Mobile header order */
  .menu-toggle {
    display: block;
    order: 1;
  }
  .logo {
    order: 2;
    flex: 1;
    text-align: center;
  }
  .lang-switch {
    order: 3;
  }
  .lang-switch .lang-btn span{
    display: none;
  }
  /* Mobile nav dropdown */
  .main-nav ul {
    flex-direction: column;
    background: var(--light);
    border-top: 1px solid #ddd;
    margin: 0;
    padding: 0;
    width: 100%;
    gap: 0;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  .main-nav ul.show {
    max-height: 400px;
    opacity: 1;
  }

  .main-nav ul li {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
  }

  .main-nav ul li a {
    display: block;
    width: 100%;
    color: var(--dark);
  }

  .main-nav ul li a:hover {
    background: var(--secondary);
    color: var(--light);
  }
  .products {
      margin-top: 4px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 0rem; 
  }
  .product{
    margin: 4px;
  }
  /* Why Section */
   .why-box img {
    height: 60px;
  }
  .why-box p {
    font-size: 14px;
  }
  .why-track {
    animation: moveLeft 15s linear infinite;
      gap: 0px;
  }
  /* Logo strip */
  .logo-strip img {
    height: 70px;
  }

  .logo-track {
    gap: 30px;
    animation: moveLeftRight 6s linear infinite alternate;
  }
  .cards {
    flex-direction: row;
    gap: 6px;
    justify-content: center;
    }
  .card {
    width: 203px;
  }
  .buy-btn {
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 0.8rem;
  }
  .card-title {
    font-size: 0.7rem;
  }
  .card-description {
    font-size: 0.6rem;
    line-height: 1;
    margin-top: 2px;
    margin-bottom: 17px;
}

.icon-container { 
    grid-template-columns: repeat(2, 1fr);
  }
 
  .list-social {
    display: none;
  } 
.product-page .buy-box {
    flex-direction: column;
    display: flex;
}
  .quantity-control , .product-page .btn-buy-now.buy-btn{
   
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .card {
        width: 288px;
  }
}



/* ==============================
   🧭 Safari enhancements & fallbacks
   Paste this at the end of your CSS
============================== */

/* Text rendering & zoom behavior (WebKit) */
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Normalize form controls in Safari */
button, input, select, textarea {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
  font: inherit;
}

/* Image rendering in Safari (crisper downscales) */
img { image-rendering: -webkit-optimize-contrast; }

/* Hardware-accelerate long-running transforms to prevent flicker/jank */
.why-track,
.logo-track,
.scrolling-text {
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* iOS Safari 100vh bugs: prefer modern viewport units when available */
.banner {
  /* fallback already set by your padding */
  min-height: 45svh;   /* small viewport height (iOS safe) */
  min-height: 45dvh;   /* dynamic viewport height */
}

/* Back-to-top button: smoother opacity transition on iOS */
#backToTop {
  -webkit-backdrop-filter: none; /* prevent unexpected blur inheritance */
  backface-visibility: hidden;
}

/* Flexbox GAP fallback for older Safari (< 14.1) */
@supports not (gap: 1rem) {
  /* main nav uses gap: 2.3rem */
  .main-nav ul { margin-left: -2.3rem; }
  .main-nav ul > li { margin-left: 2.3rem; }

  /* cards: gap: 15px */
  .cards { margin: -7.5px; }
  .cards > * { margin: 7.5px; }

  /* icon grid: gap: 20px */
  .icon-container { margin: -10px; }
  .icon-container > * { margin: 10px; }
}

/* Safer sticky-like behavior for mobile menus on iOS overscroll */
.main-nav ul {
  -webkit-overflow-scrolling: touch;
}

/* Smooth scrolling without rubber-band glitches */
html {
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}

/* Prefer reduced motion (Safari honors this) */
@media (prefers-reduced-motion: reduce) {
  .why-track,
  .logo-track,
  .scrolling-text {
    animation: none !important;
    transform: none !important;
  }
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Better touch targets on iOS */
 

/* iOS tap highlight & focus visibility */
a, button {
  -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* Prevent font zooming on landscape iPhone */
@media screen and (max-device-width: 812px) and (orientation: landscape) {
  html { -webkit-text-size-adjust: 100%; }
}


    .site-footer{
      background: var(--footer-bg);
      color: var(--footer-text);
      text-align: center;
      padding: 40px 16px 28px;
      font-family: system-ui, -apple-system, "Inter", "Segoe UI", Roboto, Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
    }

    /* Top text links */
    .footer-links{
      display: inline-flex;
      gap: 28px;
      justify-content: center;
     align-items: flex-start;
      flex-wrap: wrap;
      margin-bottom: 18px;
      font-size: 15px;
      line-height: 1;
    }
    .footer-links a{
      color: var(--footer-text);
      text-decoration: none;
      font-weight: 500;
      letter-spacing: .2px;
    }
    .footer-links a:hover{
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    /* Social icons row */
    .social{
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 22px;
      margin: 8px 0 26px;
    }
    .social a{
      width: 24px;
      height: 24px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--footer-text);
      opacity: .9;
      transition: transform .15s ease, opacity .2s ease;
      text-decoration-line: none;
    }
    .social a:hover{
      opacity: 1;
      transform: translateY(-1px);
    }
    .social i{ font-size: 20px; line-height: 1; }

    /* Divider above copyright */
    .footer-divider{
      border: 0;
      border-top: 1px solid var(--footer-border);
      margin: 18px auto 10px;
      width: 100%;
      max-width: 1400px;
    }

    /* Copyright */
    .copyright{
      font-size: 12px;
      color: var(--footer-muted);
      margin: 10px 0 0;
      letter-spacing: .2px;
      white-space: nowrap;
    }

    /* Small-screen tweaks */
    @media (max-width: 420px){
      .footer-links{ gap: 18px; font-size: 14px; }
      .social{ gap: 18px; }
    }

    /* Optional dark-mode polish */
    @media (prefers-color-scheme: dark){
      :root{
        --footer-bg: #0b0b0b;
        --footer-text: #f1f1f1;
        --footer-muted: #9aa0a6;
        --footer-border: #1f2937;
      }
    }

    .utility-bar {
    background: #0c0c0c;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-family: system-ui, "Funnel Sans", sans-serif;
    padding: 0.4rem 0;
    overflow: hidden;
  }

  .utility-bar__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1184px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 1rem;
  }

  /* --- Social Icons --- */
  .list-social {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .list-social__link {
    color: #fff;
    opacity: 0.8;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    text-decoration-line: none;
  }
  .list-social__link:hover {
    opacity: 1;
    transform: translateY(-2px);
  }
  .icon { width: 18px; height: 18px; }

  /* --- Announcement Text --- */
  .announcement-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
  }

  .announcement-message {
    position: relative;
    overflow: hidden;
    height: 22px;
    display: flex;
    align-items: center;
    text-align: center;
  }

  .announcement-message .text {
    display: inline-block;
    white-space: nowrap;
    color: #f8fafc;
    animation: fadeInUp 0.6s ease forwards;
  }

  /* --- Buttons --- */
  .slider-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  .slider-btn:hover { color: #fff; }

  /* --- Animations --- */
  @keyframes fadeOutUp {
    0% {opacity:1; transform: translateY(0);}
    100% {opacity:0; transform: translateY(-8px);}
  }
  @keyframes fadeInUp {
    0% {opacity:0; transform: translateY(8px);}
    100% {opacity:1; transform: translateY(0);}
  }

  @media (max-width: 600px) {
    .utility-bar__grid { flex-direction: column; gap: .5rem; }
  }
  .contact-us {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-us a {
    margin-top: 15px;
}
