/* ===================================
   SITE THEME — shared design system
   Apple-style spacing, motion and layout,
   built on the existing brand palette
   (--red-primary / --text-dark / --text-gray
   already defined in homepage-interesting.css)
   =================================== */

:root {
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --border-light: #e8e6e3;
}

/* ============ SCROLL REVEAL ============
   Add class="reveal" to any element; it fades
   and rises into place the first time it enters
   the viewport. Generalizes the pattern already
   used for .category-card / .feature-card. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ DARK HERO ============
   Shared full gradient hero for company/marketing pages (About Us, OEM,
   Become a Distributor, Regulatory Support, country distributor pages).
   Previously each of these pages hand-coded its own copy of this under
   its own class name (hero-about, hero-oem, hero-regulatory...) with
   drifting H1 sizes (56-80px) and fixed-breakpoint resizing instead of
   the smooth clamp() scaling .page-hero and .article-hero already use.
   This is that consolidated into one place.

   Markup:
   <section class="hero-dark">
     <div class="hero-dark-content">
       <span class="hero-dark-eyebrow">Optional label</span>
       <h1>Headline <span>highlighted part</span></h1>
       <p>Supporting copy.</p>
       ...page-specific CTA row/badges here...
     </div>
   </section>

   A page needing a background photo under the gradient (as About Us
   does) can add a ::before with a background-image on its own extra
   class - see aboutus/index.html for the pattern. */
.hero-dark {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 60px;
  overflow: hidden;
  background: linear-gradient(135deg, #312c2a 0%, #3d3733 100%);
}

.hero-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 35%, rgba(235, 23, 0, 0.2) 0%, transparent 55%);
  pointer-events: none;
}

.hero-dark-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-dark-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-dark h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-dark h1 span {
  background: linear-gradient(90deg, #eb1700 0%, #eb1700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-dark p {
  font-size: 19px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .hero-dark {
    min-height: auto;
    padding: 90px 20px 50px;
  }

  .hero-dark p {
    font-size: 17px;
  }
}

/* ============ PAGE HERO ============
   Compact interior-page hero (About, Careers,
   product categories, blog, etc.) so every
   section header page shares one component
   instead of a one-off inline <style> block. */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--text-dark) center center/cover no-repeat;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(49, 44, 42, 0.75) 0%, rgba(49, 44, 42, 0.55) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 40px 70px;
  text-align: center;
}

.page-hero-eyebrow {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .page-hero-content {
    padding: 80px 24px 50px;
  }
}

/* ============ ARTICLE / EDITORIAL LAYOUT ============
   Shared template for blog & knowledge-center content
   (replaces the old boxed / dark-header article template). */
.article-hero {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  padding: 90px 24px 56px;
  text-align: center;
}

.article-eyebrow {
  display: inline-block;
  color: var(--red-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.article-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-dark);
  max-width: 820px;
  margin: 0 auto 18px;
}

.article-meta {
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 500;
}

.article-cover {
  max-width: 980px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.article-cover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  font-size: 18px;
  line-height: 1.85;
  color: #3f3a37;
}

.article-body h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin: 48px 0 18px;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 32px 0 14px;
}

.article-body p {
  margin-bottom: 22px;
}

.article-body img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 12px 0 32px;
  display: block;
}

.article-body a {
  color: var(--red-primary);
  text-decoration: underline;
  text-decoration-color: rgba(235, 23, 0, 0.35);
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration-color: var(--red-primary);
}

/* ============ RELATED POSTS ============ */
.related-section {
  background: var(--bg-light);
  padding: 70px 0 90px;
}

.related-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.related-card {
  display: block;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s var(--ease);
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.related-card-image {
  height: 170px;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

/* Topdrain Plus product shot: the vertical "TOPDRAIN+" wordmark sits close to the
   left edge, so the default 50% center crop clips the leading "T" on hover zoom.
   Shift the crop window left-biased so the full wordmark stays in frame. */
.related-card-image img[src*="Topdrain"] {
  object-position: 35% 50%;
}

.related-card:hover .related-card-image img {
  transform: scale(1.06);
}

.related-card h4 {
  padding: 18px 20px 22px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
}

@media (max-width: 768px) {
  .article-hero {
    padding: 70px 20px 40px;
  }

  .article-body {
    font-size: 17px;
    padding: 48px 20px 20px;
  }
}

/* ============ RELATED PRODUCTS SLIDER ============
   Horizontally-scrolling variant of .related-grid, used
   on product detail pages. Native scroll-snap drives the
   drag/swipe/trackpad interaction; the dots below just
   reflect and control scroll position. */
.related-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.related-slider::-webkit-scrollbar {
  display: none;
}

.related-track {
  display: flex;
  gap: 24px;
  padding-bottom: 4px;
}

.related-track .related-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 240px;
  scroll-snap-align: start;
}

.related-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.related-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: var(--border-light);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.related-dot.active {
  width: 22px;
  background: var(--red-primary);
}

@media (max-width: 900px) {
  .related-track .related-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 600px) {
  .related-track .related-card {
    flex-basis: 88%;
  }
}

/* ============ PRODUCT CARD GRID ============
   Shared catalogue component used on every product
   category page (Laparoscopic, Infusion Therapy,
   Surgery & Wound, Urology, Respiratory & Anesthesia,
   Other Disposables). */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 60px;
}

.product-card {
  flex: 0 1 340px;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  display: block;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  height: 240px;
  object-fit: contain;
  background: var(--bg-light);
  padding: 20px;
  box-sizing: border-box;
}

.product-content {
  padding: 24px 28px 28px;
  border-top: 1px solid var(--border-light);
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--red-primary);
  margin-bottom: 8px;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.product-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-primary);
  font-weight: 600;
  font-size: 15px;
  transition: gap 0.3s var(--ease);
}

.product-card:hover .product-link-arrow {
  gap: 12px;
}

@media (max-width: 768px) {
  .products-grid {
    gap: 20px;
  }

  .product-card {
    flex-basis: 240px;
  }
}

/* ============ PRODUCT RANGE SECTION ============
   Shared wrapper for the product grid on every category
   page, so it sits in the same content column (.container)
   as the rest of the page instead of spanning full width. */
.product-range-section {
  padding: 100px 0;
}

.product-range-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
}

.product-range-header h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.product-range-header p {
  font-size: 18px;
  color: var(--text-gray);
}

@media (max-width: 768px) {
  .product-range-section {
    padding: 60px 0;
  }

  .product-range-header h2 {
    font-size: 32px;
  }
}
