/* =========================================================
   Robust-B – main stylesheet
   Brand colours: #0576BF (blue) · #00BBBC (teal)
   ========================================================= */

:root {
  --blue: #0576BF;
  --teal: #00BBBC;
  --brand-cyan: #14b2e6;
  --brand-orange: #f5821f;
  --brand-shadow: #46525e;
  --header-top: #e9fbfe;
  --header-bottom: #d6f2fa;
  --text: #222;
  --muted: #747474;
  --line: #222;
  --container: 1090px;
  --font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

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

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------
   Image placeholders (swap for real <img> tags later)
   --------------------------------------------------------- */
.img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font: 500 12px/1.3 var(--font-body);
  color: #7d8c99;
  border: 1.5px dashed #a9b8c5;
  user-select: none;
}

.img-ph--circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  font-size: 11px;
}

.img-ph--icon {
  width: 72px;
  height: 64px;
  margin: 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, .45);
}

.img-ph--banner {
  width: 100%;
  height: 100%;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #5ee2e7 0%, #3aa6d8 42%, #0047ab 100%);
  outline: 2px dashed rgba(255, 255, 255, .55);
  outline-offset: -24px;
}
.img-ph--banner span { font-size: 24px; font-weight: 500; }
.img-ph--banner small { font-size: 14px; font-weight: 400; opacity: .85; }

.img-ph--oval {
  width: 148px;
  height: 133px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  background: linear-gradient(90deg, #5ee2e7 0%, #2f8fd0 55%, #0047ab 100%);
}

.img-ph--product {
  width: 124px;
  height: 152px;
  background: #f4f6f8;
}

.img-ph--thumb {
  width: 150px;
  height: 100px;
  padding: 8px;
  background: #f6f8fa;
}

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--header-top) 0%, var(--header-bottom) 100%);
}

.header-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.header-shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 236px;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  min-height: 236px;
}

.header-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 52px 0 16px;
}

.logo-circle {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-left: 52px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
  overflow: hidden;
  text-decoration: none;
}
.logo-circle img { width: 100%; height: 100%; object-fit: contain; }

.main-nav ul {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding-bottom: 11px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(5, 118, 191, .18);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transition: transform .25s ease;
}
.main-nav a.active::after,
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a:focus-visible { outline-color: #fff; }

.header-brand {
  padding: 22px 40px 26px 0;
  text-align: center;
}

.brand-icon { width: 72px; margin: 0 auto; }
.brand-icon img { width: 72px; height: auto; margin: 0 auto; }

.brand-name {
  margin: 8px 0 0;
  font-family: "Rubik", "Arial Black", sans-serif;
  font-style: italic;
  font-weight: 900;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -1px;
  text-shadow: 3px 3px 0 var(--brand-shadow);
}
.brand-robust { color: var(--brand-cyan); }
.brand-b { color: var(--brand-orange); }

.brand-tagline {
  margin: 14px 0 0;
  font-family: "Poppins", var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: #111;
}

/* ---------------------------------------------------------
   Hero banner
   --------------------------------------------------------- */
.hero { padding-top: 30px; }

.container--banner { max-width: 1064px; }

.hero-banner {
  aspect-ratio: 1024 / 577;
  overflow: hidden;
}
.hero-banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------
   Dental / Orthopaedic
   --------------------------------------------------------- */
.categories { padding: 32px 0 30px; }

.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.category-media { display: flex; justify-content: center; }
.category-media img { max-height: 152px; width: auto; }
.category-media--product { margin-top: 28px; }

.category-title {
  margin: 26px 0 36px;
  font-size: 30px;
  font-weight: 500;
  color: #000;
}
.category-title--link { margin-top: 56px; }
.category-title--link a {
  color: #1073bd;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.category-title--link a:hover { color: var(--teal); }

.category p {
  max-width: 500px;
  margin: 0 auto;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Our Products
   --------------------------------------------------------- */
.products { padding: 34px 0 100px; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 40px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  color: #555;
  letter-spacing: .3px;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Product carousel (rendered by js/products.js) */
.rb-carousel {
  position: relative;
  padding: 0 40px;
}

.rb-viewport { overflow: hidden; }

.rb-track {
  display: flex;
  transition: transform .55s ease;
}

.rb-slide {
  flex: 0 0 calc(100% / var(--per-view, 3));
  padding: 0 15px;
}

.rb-product {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  color: inherit;
  text-decoration: none;
}
.rb-product img {
  max-width: 100%;
  max-height: 112px;
  width: auto;
  object-fit: contain;
  transition: transform .3s ease;
}
.rb-product:hover img { transform: scale(1.04); }

.rb-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #d5d5d5;
  border-radius: 2px;
  background: #fff;
  color: #b8b8b8;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .2s, border-color .2s;
}
.rb-arrow:hover { color: var(--blue); border-color: var(--blue); }
.rb-arrow--prev { left: 0; }
.rb-arrow--next { right: 0; }
.rb-arrow[hidden] { display: none; }

.rb-status {
  margin: 0;
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* ---------------------------------------------------------
   Product detail page
   --------------------------------------------------------- */
.product-page { padding: 36px 0 90px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.back-link:hover { color: var(--teal); }

.rb-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 50px;
  align-items: start;
}

.rb-detail-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  padding: 30px;
  background: #f5f9fb;
  border-radius: 6px;
}
.rb-detail-media img { max-height: 340px; width: auto; }
.rb-detail-media .img-ph--thumb { width: 220px; height: 200px; }

.rb-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(5, 118, 191, .09);
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
}

.rb-detail h1 {
  margin: 14px 0 12px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  color: #0b2a44;
}

.rb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.rb-meta strong { color: var(--text); font-weight: 500; }

.rb-lead {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.7;
  color: #444;
}

.rb-block { margin-top: 44px; }
.rb-block h2 {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  font-size: 20px;
  font-weight: 500;
  color: #0b2a44;
}
.rb-block p {
  max-width: 75ch;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: #555;
}

.rb-features {
  margin: 0;
  padding-left: 20px;
  line-height: 1.9;
  color: #444;
}
.rb-features li::marker { color: var(--teal); }

.rb-specs {
  width: 100%;
  max-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
}
.rb-specs th,
.rb-specs td {
  padding: 11px 14px;
  border-bottom: 1px solid #e3e8ec;
  text-align: left;
  vertical-align: top;
}
.rb-specs th { width: 40%; font-weight: 500; color: #333; background: #f7fafc; }
.rb-specs td { color: #555; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer {
  padding: 58px 0 54px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--teal) 100%);
}
.site-footer p {
  margin: 0;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

.back-to-top {
  position: fixed;
  right: 4px;
  bottom: 4px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--blue);
  border-radius: 7px;
  background: rgba(255, 255, 255, .12);
  color: var(--blue);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s, background .2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: rgba(255, 255, 255, .6); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 18px 20px 10px;
  }
  .header-shapes { width: 150px; height: 148px; opacity: .55; }
  .header-brand { order: 1; padding: 0; }
  .header-left {
    order: 2;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    padding: 18px 0 4px;
  }
  .logo-circle { margin-left: 0; width: 56px; height: 56px; }
  .main-nav a { padding-bottom: 8px; color: var(--blue); text-shadow: none; }
  .main-nav a::after { background: var(--blue); }
  .brand-name { font-size: 56px; }
  .brand-tagline { font-size: 15px; }

  .categories-grid { grid-template-columns: 1fr; gap: 56px; }
  .category-media--product { margin-top: 0; }
  .category-title--link { margin-top: 26px; }

  .rb-detail { grid-template-columns: 1fr; gap: 30px; }
  .rb-detail-media { min-height: 280px; }
}

@media (max-width: 560px) {
  .header-left { flex-direction: column; gap: 12px; }
  .main-nav ul { gap: 18px; }
  .brand-name { font-size: 42px; }
  .brand-tagline { font-size: 13px; }
  .img-ph--banner { outline-offset: -12px; }
  .img-ph--banner span { font-size: 18px; }
  .img-ph--banner small { font-size: 12px; }
  .category-title { font-size: 26px; margin-bottom: 22px; }
  .category p { font-size: 16px; }
  .rb-carousel { padding: 0 30px; }
  .rb-detail h1 { font-size: 28px; }
  .site-footer { padding: 40px 0; }
  .site-footer p { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rb-track,
  .rb-product img,
  .main-nav a::after { transition: none; }
}
