/* ============================================================
   KBB Kamera - Design System
   Clean clinical / medical. Sky-blue accent on cool white.
   Display: Schibsted Grotesk · Body: IBM Plex Sans
   ============================================================ */

:root {
  /* Neutrals - cool, lightly toned whites & blue-slate ink */
  --bg:        #ffffff;
  --bg-soft:   #f1f7fb;
  --bg-mint:   #e4f3fd;
  --bg-mint-2: #d2eafb;
  --ink:       #0f1d27;
  --ink-soft:  #475766;
  --ink-faint: #7b8a98;
  --line:      #e0ebf3;
  --line-soft: #eef4f9;

  /* Sky-blue accent (single hue family, anchored on #8addff) */
  --teal-800: #0a3e59;
  --teal-700: #075d86;
  --teal-600: #0a76a8;
  --teal-500: #1ba3d6;
  --teal-400: #8addff;
  --teal-050: #e8f6fd;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16,33,31,.05), 0 1px 3px rgba(16,33,31,.05);
  --shadow-md: 0 6px 16px -6px rgba(16,33,31,.12), 0 2px 6px -2px rgba(16,33,31,.06);
  --shadow-lg: 0 24px 50px -18px rgba(10,91,128,.24), 0 8px 20px -10px rgba(15,29,39,.10);
  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1180px;

  --fs-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --fs-body:    'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fs-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--fs-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--fs-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--teal-500);
  display: inline-block;
}

.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--ink-soft); font-size: 19px; margin-top: 18px; }

.lead { color: var(--ink-soft); font-size: 19px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--fs-body);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--teal-600);
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(10,118,168,.55);
}
.btn-primary:hover { background: var(--teal-700); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(10,118,168,.55); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal-400); color: var(--teal-700); transform: translateY(-2px); }
.btn-light {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.btn-light:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.btn-lg { padding: 17px 28px; font-size: 16.5px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--teal-700);
}
.link-arrow svg { width: 17px; height: 17px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, var(--teal-400), var(--teal-700));
  display: grid; place-items: center;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.brand-mark::after {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--teal-600);
}
.brand-name { font-family: var(--fs-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand-name span { color: var(--teal-600); }
.brand-logo { height: 38px; width: auto; display: block; }
.footer-logo { height: 34px; width: auto; display: block; background: #fff; padding: 11px 15px; border-radius: 12px; box-sizing: content-box; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-weight: 500; font-size: 15.5px; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 9px; transition: color .18s, background .18s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.active { color: var(--teal-700); }

/* nav dropdown */
.nav-dd { position: relative; display: flex; align-items: center; }
.nav-dd-trigger { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { width: 16px; height: 16px; transition: transform .2s ease; }
.nav-dd:hover .nav-caret, .nav-dd.open .nav-caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 9px); left: 0;
  min-width: 216px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-7px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 60;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu, .nav-dd.open .nav-dd-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav .nav-dd-menu a {
  padding: 11px 14px; border-radius: 9px; font-size: 15px; font-weight: 500;
  color: var(--ink-soft); white-space: nowrap; display: flex; align-items: center; gap: 11px;
}
.nav .nav-dd-menu a:hover { background: var(--bg-soft); color: var(--teal-700); }
.nav-dd-menu .mdot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); flex: none; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative;
  background-color: var(--bg-mint);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(12,127,175,.08) 0 11px,
    rgba(12,127,175,0) 11px 22px
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; place-items: center;
  overflow: hidden;
  min-height: 120px;
}
.ph::after {
  content: attr(data-label);
  font-family: var(--fs-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--teal-700);
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  max-width: 80%;
  text-align: center;
}

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c2d2dd;
  padding: 72px 0 34px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  font-family: var(--fs-body);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #6f8090; font-weight: 600; margin-bottom: 18px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: var(--teal-400); }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-links a, .footer-contact div { color: #abbecd; font-size: 15px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; font-size: 15px; }
.footer-contact .ico { display: inline-flex; gap: 9px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; color: var(--teal-400); margin-top: 3px; flex: none; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13.5px; color: #6f8090; gap: 16px; flex-wrap: wrap;
}
.footer-bottom a { color: var(--teal-400); }

/* ---------- Rating ---------- */
.rating { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--ink-soft); }
.stars { display: inline-flex; gap: 1px; color: #f0a531; }
.stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--teal-050); color: var(--teal-700);
  font-size: 13.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px;
}
.pill svg { width: 15px; height: 15px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.grid { display: grid; gap: 24px; }
.cur { font-family: var(--fs-body); font-feature-settings: normal; }

/* ---------- Detail gallery (product pages) ---------- */
.detail-gallery { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.detail-gallery img {
  width: 100%; display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #fff;
}

/* ---------- Product gallery carousel (thumbnails) ---------- */
.gallery-main-wrap { position: relative; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); cursor: pointer; padding: 0;
  display: grid; place-items: center; color: var(--ink); z-index: 3;
  transition: background .15s, color .15s, transform .15s;
}
.gallery-nav:hover { background: #fff; color: var(--teal-700); }
.gallery-nav:active { transform: translateY(-50%) scale(.93); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.gallery-thumb {
  padding: 0; margin: 0; aspect-ratio: 1/1; overflow: hidden; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 7px; display: block; }
.gallery-thumb:hover { border-color: var(--teal-400); }
.gallery-thumb.sel { border-color: var(--teal-500); box-shadow: 0 0 0 2px var(--teal-050); }
@media (max-width: 560px) { .gallery-thumbs { gap: 8px; } .gallery-thumb img { padding: 5px; } }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .brand-logo { height: 32px; }
  .section { padding: 68px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
