:root {
  --sf-amber: #E8961A;
  --sf-dark: #1a1a1a;
  --sf-gray: #f5f4f0;
}

/* ── Colour utilities ───────────────────────────────────── */
.text-amber { color: var(--sf-amber) !important; }
.bg-sf-gray  { background-color: var(--sf-gray)  !important; }
.bg-sf-navy  { background-color: #0f172a          !important; }
.bg-sf-black { background-color: #111             !important; }

/* ── Navigation ─────────────────────────────────────────── */
.sf-nav {
  background-color: var(--sf-gray);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: background 0.3s ease, padding 0.3s ease;
  z-index: 200;
}
.sf-nav--transparent {
  background-color: transparent;
  border-bottom: none;
}
/* Always solid on mobile regardless of transparent prop */
@media (max-width: 991.98px) {
  .sf-nav--transparent {
    background-color: var(--sf-gray);
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }
  .sf-nav .navbar-brand svg { color: #1a1a1a !important; }
}

/* Mobile hamburger — animated collapse via max-height.
   Bootstrap's .collapse:not(.show){display:none} has no !important,
   so display:block overrides it cleanly at mobile widths only.
   max-height: 0 + overflow: hidden hides content; max-height: 500px reveals it.
   Different cubic-bezier on open vs close for a natural feel.              */
@media (max-width: 991.98px) {
  .sf-nav .navbar-collapse {
    display: block !important;
    max-height: 0;
    overflow: hidden;
    /* closing: snappy ease-in so it feels intentional */
    transition: max-height 0.32s cubic-bezier(0.4, 0, 1, 1);
  }
  .sf-nav .navbar-collapse.show {
    max-height: 520px; /* larger than any mobile menu will ever be */
    /* opening: smooth ease-out deceleration */
    transition: max-height 0.45s cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Pill buttons used in the nav */
.sf-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 16px 28px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  background: rgba(228,228,222,0.50);
  color: #2a2a2a;
  transition: opacity 0.18s;
  white-space: nowrap;
  line-height: 1;
}
.sf-pill:hover { opacity: 0.75; color: #2a2a2a; text-decoration: none; }

.sf-pill--contact { background: var(--sf-amber); color: white; }
.sf-pill--contact:hover { opacity: 0.85; color: white; }

/* Full-width on mobile, auto on desktop */
@media (max-width: 991.98px) {
  .sf-pill { width: 100%; justify-content: flex-start; }
}

/* Mega-menu product cards */
.sf-nav-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #edece8;
  height: 200px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  text-decoration: none;
  display: block;
  cursor: pointer;
}
.sf-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

/* Nav card inner elements (name, image, decorative icon) */
.sf-nav-card-name {
  position: absolute;
  top: 14px; left: 16px; z-index: 2;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a3a3a;
  transition: color 0.2s;
}
.sf-nav-card:hover .sf-nav-card-name { color: var(--sf-amber); }

.sf-nav-card-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 36px 20px 20px;
}
.sf-nav-card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.sf-nav-card-icon {
  position: absolute; bottom: 10px; right: 12px; z-index: 1;
  opacity: 0.11; color: var(--sf-dark);
  transition: color 0.2s, opacity 0.2s; pointer-events: none;
}
.sf-nav-card:hover .sf-nav-card-icon { opacity: 0.55; color: var(--sf-amber); }

/* ── Amber CTA button ────────────────────────────────────── */
.btn-amber {
  display: inline-block;
  background: var(--sf-amber);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 16px 40px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}
.btn-amber:hover { opacity: 0.85; color: white; text-decoration: none; }

/* ── Overline label ─────────────────────────────────────── */
.sf-overline {
  color: var(--sf-amber);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
}

/* ── Solution cards ─────────────────────────────────────── */
.sf-solution-card {
  border-radius: 14px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  height: 100%;
  width: 100%;
}
.sf-solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.sf-solution-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}
.sf-solution-card:hover .sf-solution-card-img {
  filter: grayscale(0%);
}
.sf-card-underline {
  height: 2px;
  background: var(--sf-amber);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sf-solution-card:hover .sf-card-underline {
  transform: scaleX(1);
}
.sf-solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Solutions page filter bar ───────────────────────────── */
.sf-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  border: 1.5px solid rgba(0,0,0,0.2);
  background: transparent;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--sf-dark);
  transition: border-color 0.15s;
  font-family: inherit;
}
.sf-filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  min-width: 220px;
  z-index: 201;
}
.sf-filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--sf-dark);
  transition: background 0.1s;
}
.sf-filter-option:hover {
  background: var(--sf-gray);
}
.sf-filter-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 2px solid #ccc;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sf-filter-checkbox--checked {
  border-color: var(--sf-amber);
  background: var(--sf-amber);
}

/* ── Tag badge ───────────────────────────────────────────── */
.sf-tag {
  display: inline-block;
  background: #fff3e0;
  color: var(--sf-amber);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 4px;
}

/* ── Feature bar ─────────────────────────────────────────── */
.sf-feature-expand-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid #ccc;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sf-dark);
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s;
}
.sf-feature-expand-btn:hover {
  border-color: var(--sf-amber);
  color: var(--sf-amber);
}

/* Shared grid: keeps header titles and expanded descriptions in identical columns */
.sf-feature-bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 36px;
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
}
@media (min-width: 992px) {
  .sf-feature-bar-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr 36px;
    row-gap: 0;
  }
}

/* ── Cookie modal ────────────────────────────────────────── */
.sf-cookie-modal {
  padding: 44px 48px;
}
.sf-cookie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 575.98px) {
  .sf-cookie-modal {
    padding: 32px 24px;
  }
  .sf-cookie-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── Value cards (About page) ────────────────────────────── */
.sf-value-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  height: 100%;
}

/* ── Product category cards (Home) ──────────────────────── */
.sf-category-card {
  border-radius: 12px;
  overflow: hidden;
  background: #c5c2ba;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  display: block;
  transition: box-shadow 0.25s ease;
}
.sf-category-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.14); }
.sf-category-card:hover .sf-category-name { color: var(--sf-amber); }
.sf-category-card:hover img { transform: scale(1.07); }
.sf-category-name {
  position: absolute;
  top: 20px; left: 20px; z-index: 1;
  font-weight: 700; font-size: 1.1rem;
  color: var(--sf-dark);
  transition: color 0.2s ease;
}
.sf-category-card img { transition: transform 0.35s ease; }

/* ── FAQ ─────────────────────────────────────────────────── */
.sf-faq-item { border-bottom: 1px solid #e5e5e5; }
.sf-faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

/* ── Sticky transmitter tabs ─────────────────────────────── */
.sf-sticky-tabs {
  position: sticky;
  top: 62px;
  z-index: 100;
  background: var(--sf-gray);
  border-bottom: 1px solid #eee;
}
.sf-tab-link {
  padding: 16px 24px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.sf-tab-link:hover { color: var(--sf-amber); border-bottom-color: var(--sf-amber); }

/* ── Image carousel ──────────────────────────────────────── */
.sf-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 360px;
}
@media (max-width: 767.98px) {
  .sf-carousel { height: 260px; }
}

/* ── Sticky device sidebar nav ───────────────────────────── */
.sf-side-nav {
  position: sticky;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 20px;
}

/* ── Hero ────────────────────────────────────────────────── */
.sf-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}
.sf-hero-content {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding-top: 80px;
}

/* ── Solution detail — back link ────────────────────────── */
.sf-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #888;
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 32px;
  font-weight: 500;
  transition: color 0.2s;
}
.sf-back-link:hover { color: var(--sf-amber); }

/* ── Solution detail — similar solution cards ────────────── */
.sf-similar-card {
  background: var(--sf-gray);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: block;
}
.sf-similar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ── Device page image carousel ─────────────────────────── */
.sf-carousel-arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.sf-carousel-arrow--left  { left: 0;  justify-content: flex-start; }
.sf-carousel-arrow--right { right: 0; justify-content: flex-end; }
.sf-carousel-arrow-btn {
  background: rgba(255,255,255,0.82);
  border-radius: 50%;
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.sf-carousel-arrow:hover .sf-carousel-arrow-btn { opacity: 1; }
