/* ========== RESET / BASE ========== */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #122033;
  --muted: #5f6f87;
  --muted2: #7b879c;

  --primary: #0f8ad8;
  --primary2: #0f3c73;

  --line: rgba(15, 60, 115, 0.12);
  --shadow: 0 14px 32px rgba(7, 31, 71, 0.08);
  --shadow2: 0 18px 40px rgba(2, 24, 70, 0.12);

  --r-lg: 1.4rem;
  --r-xl: 1.75rem;
  --container: 1100px;
}

html { scroll-behavior: smooth; }
body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a{ text-decoration: none; color: inherit; }
img{ max-width: 100%; display: block; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== TOP BAR ========== */
.top-bar{
  background: var(--primary2);
  color: #e9f3ff;
  font-size: 0.9rem;
  padding: 0.35rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.top-bar a{ color:#e9f3ff; opacity:.95; }
.top-bar a:hover{ opacity:1; text-decoration: underline; }
.top-bar span{ display:flex; align-items:center; gap:.4rem; }

/* ========== HEADER / NAV ========== */
header{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: .75rem 0;
  gap: 1rem;
}
.brand{ display:inline-flex; align-items:center; }
.brand-logo{ height: 44px; width:auto; }

.nav-links{
  display:flex;
  gap: 1.25rem;
  font-size: .95rem;
}
.nav-links a{
  padding-bottom: .15rem;
  border-bottom: 2px solid transparent;
  color: #1b2b43;
}
.nav-links a:hover{ border-color: var(--primary); color: var(--primary); }
.nav-links a.active{ border-color: var(--primary); color: var(--primary); }
.nav-cta{ display:none; }

/* ========== BUTTONS ========== */
.btn{
  border-radius: 999px;
  padding: .6rem 1.4rem;
  font-size: .95rem;
  border:none;
  cursor:pointer;
  font-weight: 650;
  display:inline-flex;
  align-items:center;
  gap: .4rem;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}
.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:#fff;
  box-shadow: 0 10px 25px rgba(15, 84, 155, .28);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 14px 30px rgba(15, 84, 155, .35); }

.btn-outline{
  background: rgba(255,255,255,.6);
  color: var(--primary2);
  border: 1px solid rgba(15, 60, 115, .35);
}
.btn-outline:hover{ border-color: var(--primary); color: var(--primary); }

/* ========== HERO ========== */
.hero{
  background: radial-gradient(circle at top left, #e1f2ff, #ffffff 45%, #f0f4ff);
  padding: 3.6rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before{
  content:"";
  position:absolute;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(15,138,216,.16), transparent);
  top: -180px; right: -140px;
  z-index: 0;
}
.hero-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-title{
  font-size: clamp(2.2rem, 3.3vw, 3rem);
  font-weight: 800;
  color: #0c2744;
  margin-bottom: .8rem;
}
.hero-highlight{ color: var(--primary); }
.hero-text{
  font-size: 1rem;
  color: #4b5a70;
  max-width: 34rem;
  margin-bottom: 1.4rem;
}
.hero-badges{
  display:flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.6rem;
}
.badge{
  font-size: .78rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(15,60,115,.18);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
}
.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items:center;
}
.hero-note{
  font-size: .78rem;
  color: #76849a;
  margin-top: .65rem;
}

/* ========== HERO CARD ========== */
.hero-image-card{
  background: #fff;
  border-radius: var(--r-xl);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow2);
  border: 1px solid rgba(15,60,115,.10);
  position: relative;
}

/* ========== SECTIONS ========== */
.page-section{ padding: 3.4rem 0; }
.section-alt{ background:#fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-header{ text-align:center; margin-bottom: 2.2rem; }
.section-kicker{
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .25em;
  color: var(--primary);
  margin-bottom: .45rem;
}
.section-title{
  font-size: 1.75rem;
  font-weight: 800;
  color: #0c2744;
  margin-bottom: .45rem;
}
.section-subtitle{
  font-size: .95rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto;
}
.lead{ margin-top: .7rem; color: var(--muted); font-size: 1rem; max-width: 38rem; }

.cta-row{
  margin-top: 1.25rem;
  display:flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items:center;
}

/* ========== LEGACY GRID + CARD (shared) ========== */
.cards-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.card{
  background:#fff;
  border-radius: var(--r-lg);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
  gap: .5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15,60,115,.10);
}
.card::before{
  content:"";
  position:absolute;
  width: 130%;
  height: 60px;
  top: -40px;
  left: -20px;
  background: linear-gradient(90deg, rgba(15,138,216,.18), transparent);
  opacity: .45;
}
.card-label{
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color:#7f8da3;
}
.card-title{
  font-size: 1.05rem;
  font-weight: 850;
  color:#0c2744;
}
.card-text{
  font-size: .9rem;
  color: var(--muted);
  flex: 1;
}

.pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin-top:.35rem;
  margin-bottom:.3rem;
}
.pill{
  font-size: .72rem;
  border-radius: 999px;
  padding: .2rem .55rem;
  background: #f2f6ff;
  color:#385077;
}
.card-meta{
  font-size: .8rem;
  color: var(--muted2);
  margin-top: .35rem;
}

/* ========== FOOTER ========== */
footer{
  background:#0c1b32;
  color:#c7d2e7;
  padding: 1.6rem 0 1.2rem;
  font-size: .82rem;
  margin-top: 2rem;
}
.footer-inner{
  display:flex;
  flex-wrap:wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items:center;
}
.footer-links{
  display:flex;
  gap: 1rem;
  flex-wrap:wrap;
}
.footer-links a{ opacity:.85; }
.footer-links a:hover{ opacity:1; text-decoration: underline; }

/* =========================================
   PRODUCTS PAGE
   ========================================= */

/* compact hero for products page */
.hero-compact{ padding: 2.8rem 0 2.2rem; }
.hero-grid-top{ align-items: flex-start; }
.hero-title-compact{ margin-bottom:.65rem; }
.hero-text-compact{ margin-bottom: 1.1rem; }
.hero-badges-compact{ margin-bottom: 1.1rem; }

.products-help-card{ padding: 1.15rem; }
.products-help-title{ margin-bottom:.3rem; }
.products-help-text{ margin: 0 0 .9rem; font-size:.95rem; }
.products-help-actions{ margin-top:0; }

.products-toolbar-section{ padding-top: 1.6rem; }
.products-tip{ text-align:center; margin-top:.9rem; }
.products-list-section{ padding-top: 1.25rem; }
.products-bottom-cta{ padding-bottom: 2.2rem; }

.product-title{ margin-bottom:.25rem; }
.product-subtitle{ margin:0; text-align:left; }

.product-head{
  display:flex;
  gap: 1rem;
  align-items:flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.product-actions{ display:flex; gap:.7rem; flex-wrap:wrap; }

/* Sticky toolbar (ONE LINE) */
.products-toolbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: .9rem;
  padding: 1rem 1rem;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(15,60,115,.12);
  border-radius: 1.25rem;
  box-shadow: 0 14px 32px rgba(7,31,71,.06);
  position: sticky;
  top: 76px;
  z-index: 10;
  backdrop-filter: blur(10px);
  flex-wrap: nowrap;              /* ✅ keep in one line */
}

/* Chips strip (scrollable) */
.filter-pills{
  display:flex;
  align-items:center;
  gap:.5rem;

  flex: 1 1 auto;                 /* ✅ takes remaining width */
  min-width: 0;                   /* ✅ required for scroll in flex container */
  flex-wrap: nowrap;              /* ✅ single row */
  overflow-x: auto;               /* ✅ horizontal scroll */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: .2rem;
}

/* Nicer scrollbar */
.filter-pills::-webkit-scrollbar{ height: 8px; }
.filter-pills::-webkit-scrollbar-thumb{
  background: rgba(15,60,115,.18);
  border-radius: 999px;
}

.filter-pill{
  flex: 0 0 auto;                 /* ✅ no wrapping/shrinking */
  scroll-snap-align: start;
  border: 1px solid rgba(15,60,115,.18);
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  padding: .45rem .75rem;
  font-weight: 800;
  font-size: .85rem;
  cursor:pointer;
  color:#1b2b43;
  transition: transform .12s ease, border-color .12s ease, color .12s ease;
}
.filter-pill:hover{ transform: translateY(-1px); border-color: rgba(15,138,216,.5); color: var(--primary); }
.filter-pill.is-active{
  background: linear-gradient(135deg, rgba(15,138,216,.14), rgba(15,60,115,.08));
  border-color: rgba(15,138,216,.55);
  color: #0c2744;
}

/* Search stays fixed on right */
.search-wrap{
  flex: 0 0 auto;                 /* ✅ fixed column on right */
  margin-left: .25rem;
  display:flex;
  justify-content:flex-end;
}
.search-input{
  width: 360px;
  max-width: 360px;
  border-radius: 999px;
  border: 1px solid rgba(15,60,115,.18);
  padding: .55rem .9rem;
  font-size: .92rem;
  outline:none;
  background: #fff;
}
.search-input:focus{
  border-color: rgba(15,138,216,.8);
  box-shadow: 0 0 0 2px rgba(15,138,216,.16);
}

.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;
}

/* Products page blocks spacing */
.product-block{ margin-top: 2.2rem; }
.product-block:first-child{ margin-top: 0; }

/* No results block */
.no-results{
  display:none;
  text-align: center;
  color: var(--muted);
  padding: 1.5rem 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-image-card{ max-width: 520px; margin: 0 auto; }
}

@media (max-width: 768px){
  .nav-links{ display:none; }
  .nav-cta{ display:inline-flex; }
  .top-bar{ font-size: .82rem; }

  .products-toolbar{ top: 64px; }
  .search-input{
    width: 190px;
    max-width: 190px;
  }
}
/* 6-card grid: 2 columns desktop, 1 column mobile */
.products-grid-6{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 820px){
  .products-grid-6{ grid-template-columns: 1fr; }
}

/* Long cards */
.product-card-lg{
  padding: 1.25rem 1.25rem 1.15rem;
}

/* Single image (no multiplication) using the SAME “range” images */
.product-thumb--photo{
  width: 100%;
  height: 210px;
  border-radius: 1.15rem;
  border: 1px solid rgba(15,60,115,.10);
  overflow: hidden;
  margin-bottom: .85rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,.18), transparent 55%),
    linear-gradient(135deg, rgba(15,60,115,.35), rgba(15,138,216,.15));
}

.product-thumb--lb{ background-image: url("assets/range/lb.jpg"); }
.product-thumb--lr{ background-image: url("assets/range/lr.jpg"); }
.product-thumb--tube{ background-image: url("assets/range/tube.jpg"); }
.product-thumb--tubeless{ background-image: url("assets/range/tubeless.jpg"); }
.product-thumb--plug{ background-image: url("assets/range/plug.jpg"); }
.product-thumb--valve{ background-image: url("assets/range/valve.jpg"); }
/* ==============================
   CTA BAND (fix / normalize)
   ============================== */

.cta-band{
  margin-top: 2rem;
  background: radial-gradient(circle at top left, rgba(15,138,216,.14), rgba(255,255,255,.92));
  border: 1px solid rgba(15, 60, 115, 0.16);
  border-radius: 1.6rem;
  padding: 1.35rem 1.35rem;
  box-shadow: 0 14px 30px rgba(7, 31, 71, 0.08);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cta-band > div:first-child{
  min-width: 240px;
  flex: 1 1 420px;
}

.cta-band h3{
  font-size: 1.15rem;
  font-weight: 900;
  color: #0c2744;
  margin: 0;
  line-height: 1.25;
}

.cta-band p{
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .92rem;
  max-width: 52ch;
}

.cta-band-actions{
  display: flex;
  gap: .75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* keep buttons aligned nicely on small screens */
@media (max-width: 640px){
  .cta-band{
    padding: 1.15rem 1.1rem;
  }
  .cta-band-actions{
    width: 100%;
    justify-content: flex-start;
  }
}
/* ===== Separate hamburger button (Products page) ===== */
.nav-actions{
  display:flex;
  align-items:center;
  gap:.6rem;
}

/* Hidden on desktop */
.nav-toggle{ display:none; }

/* Hamburger button look */
.nav-toggle{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15,60,115,.18);
  background: rgba(255,255,255,.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(7,31,71,.08);
}

.nav-toggle-lines{
  width: 18px;
  height: 2px;
  background: #0c2744;
  border-radius: 999px;
  position: relative;
  display:block;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width: 18px;
  height: 2px;
  background: #0c2744;
  border-radius: 999px;
}
.nav-toggle-lines::before{ top: -6px; }
.nav-toggle-lines::after{ top: 6px; }

/* Animate to X when open */
header.site-header.nav-open .nav-toggle-lines{
  background: transparent;
}
header.site-header.nav-open .nav-toggle-lines::before{
  top: 0;
  transform: rotate(45deg);
}
header.site-header.nav-open .nav-toggle-lines::after{
  top: 0;
  transform: rotate(-45deg);
}
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  transition: transform .16s ease, top .16s ease, background .16s ease;
}

/* Mobile dropdown behavior (same pattern as index) */
@media (max-width: 768px){
  .nav{ position: relative; }

  .nav-toggle{ display:inline-flex; }
  .nav-cta{ display:inline-flex; } /* Enquire stays visible */

  /* hide links by default */
  .nav-links{ display:none; }

  /* dropdown panel when open */
  header.site-header.nav-open .nav-links{
    display: grid;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    border: 1px solid rgba(15, 60, 115, 0.12);
    border-radius: 16px;
    padding: .6rem;
    box-shadow: 0 18px 40px rgba(2, 24, 70, 0.12);
    z-index: 30;
    gap: .15rem;
  }

  header.site-header.nav-open .nav-links a{
    border-bottom: 0;
    padding: .85rem .85rem;
    border-radius: 12px;
    color: #1b2b43;
    background: transparent;
  }
  header.site-header.nav-open .nav-links a:hover{
    background: rgba(15, 138, 216, 0.08);
    color: var(--primary2);
  }
  header.site-header.nav-open .nav-links a.active{
    background: rgba(15, 138, 216, 0.14);
    color: var(--primary2);
  }
}

/* Optional overlay when menu is open */
@media (max-width: 768px){
  header.site-header.nav-open::after{
    content:"";
    position: fixed;
    inset: 0;
    background: rgba(12, 27, 50, 0.22);
    z-index: 10;
  }
  header.site-header{ position: sticky; z-index: 20; }
  header.site-header .nav{ position: relative; z-index: 25; }
}
