/* ===========================
   COLOURS (white + teal)
   =========================== */
:root{
  --accent: #0097A7;
  --accent-light: #33AFC0;
  --accent-soft: #E0F7FA;
  --text-dark: #111827;
  --text-muted: #6B7280;
  --bg-grey: #F3F4F6;
  --bg-white: #FFFFFF;
  --line: #E5E7EB;
}

.colourSwatch.isPattern {
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
}


/* ===========================
   GLOBAL BASE
   =========================== */

*,
*::before,
*::after{
  box-sizing:border-box;
}

html, body{
  margin:0;
  padding:0;
}

body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:var(--bg-grey);
  color:var(--text-dark);
  line-height:1.5;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:var(--accent);
  text-decoration:none;
}

a:hover{
  color:var(--accent-light);
}

/* Layout container */
.container{
  width:100%;
  max-width:1024px;
  margin:0 auto;
  padding:0 16px;
}

/* ===========================
   HEADER / NAV
   =========================== */

.top{
  position:sticky;
  top:0;
  z-index:20;
  background:var(--bg-white);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 0;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.logo{
  width:34px;
  height:34px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
}

.name{
  font-weight:700;
  color:var(--text-dark);
}

.links a{
  margin-left:20px;
  font-size:14px;
  font-weight:500;
  color:var(--text-muted);
}

.links a:hover,
.links a.active{
  color:var(--accent);
}

/* ===========================
   HERO
   =========================== */

.hero{
  background:var(--bg-white);
  border-bottom:1px solid var(--line);
  padding:60px 0 40px;
  position:relative;
}

.heroSlim{
  padding-top:32px;
  padding-bottom:18px;
}

.hero::after{
  content:"";
  position:absolute;
  right:10%;
  bottom:-60px;
  width:180px;
  height:180px;
  border-radius:999px;
  background:radial-gradient(circle at center, rgba(0,151,167,0.12), transparent 60%);
  pointer-events:none;
}

.kicker{
  text-transform:uppercase;
  letter-spacing:.12em;
  font-size:11px;
  font-weight:600;
  color:var(--accent);
  margin-bottom:8px;
}

h1, h2, h3{
  color:var(--text-dark);
  margin:0 0 8px;
}

.hero h1{
  font-size:28px;
  max-width:620px;
}

.sub{
  max-width:620px;
  color:var(--text-muted);
  margin-bottom:20px;
}

/* CTA row */
.ctaRow{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

/* Minimal 3-image Apple-style strip */
.miniImageGrid {
  display: flex;
  gap: 150px; /* was 20px */
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

.miniCard {
  text-align: center;
  max-width: 260px;
}

.miniCard img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.miniLabel {
  margin-top: 10px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 16px;
}

.centerHeading {
  text-align: center;
  margin-bottom: 24px;
}

.overviewRow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.overviewCard {
  background: var(--bg-white);
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 22px 24px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(15,23,42,0.06);
}

.iconCircle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 26px;
  margin-bottom: 10px;
}

.overviewCard h3 {
  margin-bottom: 8px;
}

.overviewCard p {
  color: var(--text-muted);
  font-size: 14px;
}


/* ===========================
   SECTIONS & CARDS
   =========================== */

.section{
  background:var(--bg-white);
  border-radius:16px;
  margin:24px auto;
  padding:32px 0;
  box-shadow:0 2px 10px rgba(0,0,0,0.04);
}

.section.subtle{
  box-shadow:none;
  border:1px solid rgba(229,231,235,0.8);
}

.muted{
  color:var(--text-muted);
}

/* ===========================
   BUTTONS
   =========================== */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 18px;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font-size:14px;
  font-weight:600;
  border:none;
  cursor:pointer;
  transition:background .18s, box-shadow .18s, transform .18s;
}

.btn:hover{
  background:var(--accent-light);
  box-shadow:0 8px 20px rgba(0,151,167,0.25);
  transform:translateY(-1px);
}

.btn.ghost{
  background:transparent;
  color:var(--accent);
  border:2px solid var(--accent);
  box-shadow:none;
}

.btn.ghost:hover{
  background:var(--accent-soft);
}

/* Product detail back button row */
.detailBackRow{
  margin-bottom:14px;
}


/* ===========================
   TEXT LISTS
   =========================== */

.bullets{
  padding-left:18px;
  margin:12px 0 18px;
}

.bullets li{
  margin-bottom:4px;
}

.steps{
  padding-left:18px;
  margin:8px 0 18px;
}

.steps li{
  margin-bottom:4px;
}

.linkArrow{
  display:inline-flex;
  align-items:center;
  gap:4px;
  font-weight:500;
}

/* ===========================
   SEARCH
   =========================== */

.search{
  display:inline-flex;
  align-items:center;
  margin-top:12px;
}

.search input{
  min-width:220px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid var(--line);
  outline:none;
  background:var(--bg-white);
  font-size:14px;
}

.search input:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(0,151,167,0.22);
}

/* ===========================
   CATEGORY CHIPS
   =========================== */

.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0 14px;
}

.chip{
  border-radius:999px;
  border:1px solid var(--line);
  padding:5px 11px;
  background:#fff;
  font-size:12px;
  cursor:pointer;
  color:var(--text-muted);
}

.chip:hover{
  background:var(--accent-soft);
}

.chip.active{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

/* ===========================
   DROPDOWN
   =========================== */

.headRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
}

.headRowWithDropdown{
  align-items:flex-start;
}

.categoryDropdown{
  margin-top:14px;
  position:relative;
  max-width:260px;
}

.categoryToggle{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:100%;
  padding:10px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--bg-white);
  color:var(--text-dark);
  cursor:pointer;
  font-size:14px;
  font-weight:600;
}

.categoryIcon{
  width:26px;
  height:26px;
  border-radius:9px;
  border:1px solid rgba(148,163,184,0.6);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:3px;
}

.categoryIcon span{
  display:block;
  width:14px;
  height:2px;
  border-radius:999px;
  background:var(--accent);
}

.categoryMenu{
  position:absolute;
  top:115%;
  left:0;
  z-index:20;
  min-width:260px;
  border-radius:18px;
  padding:6px 0;
  background:var(--bg-white);
  color:var(--text-dark);
  box-shadow:0 18px 40px rgba(15,23,42,0.18);
  border:1px solid var(--line);
  display:none;
}

.categoryMenu.open{
  display:block;
}

.categoryMenu button{
  width:100%;
  padding:9px 16px;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  font-size:14px;
  cursor:pointer;
}

.categoryMenu button:hover{
  background:var(--accent-soft);
  color:var(--accent);
}

/* ===========================
   PRODUCT GRID / CARDS
   =========================== */

.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:12px;
}

.card{
  background:var(--bg-white);
  border-radius:14px;
  padding:16px 14px;
  border:1px solid var(--line);
  display:flex;
  flex-direction:column;
  gap:5px;
  transition:border-color .18s, box-shadow .18s, transform .18s;
  position: relative;
  overflow: hidden;
}

.card:hover{
  border-color:var(--accent);
  box-shadow:0 8px 20px rgba(0,151,167,0.22);
  transform:translateY(-1px);
}

.cardTitle{
  font-weight:600;
  font-size:15px;
}

.cardDesc{
  font-size:13px;
  color:var(--text-muted);
}

.categoryTag{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--accent);
}

#grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

/* card layout */
.card {
  position: relative;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px 20px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.06);
}

/* ensure overlay doesn't hide text from screen readers */
.cardBody {
  position: relative;
  z-index: 1;
}

.cardOverlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* detail page variants */
.variantTitle {
  margin-top: 20px;
  font-size: 18px;
}

.variantList {
  margin: 10px 0 20px;
  padding-left: 18px;
  color: var(--text-muted);
}

.variantList li {
  padding: 4px 0;
}

.cardIcon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0.85;
  pointer-events: none;
}

/* ===== Option Blocks ===== */
.optionBlock {
  margin-top: 16px;
}

.optionHeading {
  margin: 0 0 10px;
  font-size: 16px;
}

.pillRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  border: 1px solid #ddd;
  background: #fff;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.pill.active {
  border-color: #111;
}


/* ===== COLOUR UI (like your screenshot) ===== */
.colourLabel {
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
  font-size: 18px; /* makes "COLOUR:" pop like screenshot */
}

/* Row of swatches */
.colourThumbRow {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Swatch box */
.colourSwatch {
  width: 80px;
  height: 25px;
  border-radius: 14px;
  border: 1px solid #dcdcdc;
  position: relative;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: flex-start;
  justify-content: flex-start;
}


/* Selected state (thicker border like screenshot) */
.colourSwatch.active {
  border: 3px solid #111;
}

/* Highlights list */
.bulletList {
  margin: 10px 0 0;
  padding-left: 18px;
}

.bulletList li {
  padding: 4px 0;
}

#productMainImage{
  width: 35%;
  height: 35%;
  object-fit: cover;   /* change to 'cover' if you want cropping */
  padding: 12px;
  display: block;
}

/* Optional: responsive fix for small screens */
@media (max-width: 900px) {
  .productDetailGrid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   CONTACT
   =========================== */

.contactRow{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
  margin-top:20px;
}

.contactCard{
  background:var(--bg-white);
  border-radius:14px;
  border:1px solid var(--line);
  padding:16px 18px;
}

.contactCard .line{
  display:flex;
  flex-direction:column;
  margin-bottom:10px;
}

.label{
  font-size:15px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--text-muted);
  margin-bottom:2px;
}

.note{
  margin-top:16px;
  font-size:13px;
  color:var(--text-muted);
}

/* ===========================
   FOOTER
   =========================== */

.footer{
  border-top:1px solid var(--line);
  margin-top:24px;
  padding-top:14px;
  font-size:12px;
  color:var(--text-muted);
}

/* ===========================
   A11Y
   =========================== */

.srOnly{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width:950px){
  .grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:650px){
  .nav{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .links a{
    margin-left:0;
    margin-right:14px;
  }

  .grid{
    grid-template-columns:1fr;
  }

  .contactRow{
    grid-template-columns:1fr;
  }

  .headRow{
    flex-direction:column;
    align-items:stretch;
  }

  .categoryDropdown{
    max-width:none;
  }

  .hero{
    padding-top:40px;
  }

  .hero::after{
    display:none;
  }
}
/* ===========================
   Logo
   =========================== */

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

/* ===========================
   MACHINES / CONSUMABLES DROPDOWNS
   =========================== */

.groupDropdowns{
  max-width:640px;
}

.groupToggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--bg-white);
  color:var(--text-dark);
  cursor:pointer;
  font-size:14px;
  font-weight:700;
}

.groupToggle:hover{
  background:var(--accent-soft);
}

.groupToggle .chev{
  display:inline-block;
  transition:transform .18s ease;
  opacity:.85;
}

.groupToggle[aria-expanded="true"] .chev{
  transform:rotate(180deg);
}

.groupPanel{
  max-height:0;
  overflow:hidden;
  transition:max-height .28s ease;
}

.groupPanel.open{
  margin-top:10px;
  margin-bottom:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--bg-white);
}

.groupPanel .grid{
  padding:14px;
}

/* FIX: icon overlaps text in product cards */
.productCard:has(.cardIcon) .cat,
.productCard:has(.cardIcon) h3{
  padding-right: 30px; /* reserves space so text can't go under the icon */
}

/* optional: make icons a bit smaller so they look cleaner */
.productCard .cardIcon{
  width: 34px;
  height: 34px;
  top: 12px;
  right: 12px;
}

.miniCard{
  display:block;          /* so <a> behaves like your old <div> */
  color:inherit;
  text-decoration:none;
}

.miniCard:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:4px;
  border-radius:16px;
}

/* =========================
   MOBILE: stop footer/logo getting clipped
   ========================= */

/* Prevent weird horizontal clipping */
html, body { width: 100%; overflow-x: hidden; }

/* Make footer sit naturally at bottom (no cut-off) */
body{
  min-height: 100svh;          /* better than 100vh on mobile */
  display: flex;
  flex-direction: column;
}
main{ flex: 1 0 auto; }

/* Header safe-area + no clipping */
header.top{
  padding-top: calc(10px + env(safe-area-inset-top));
  overflow: visible; /* if you had overflow hidden, it clips the logo */
}

/* Footer safe-area (home indicator) + breathing room */
footer.footer{
  flex-shrink: 0;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* Logo scaling so it never gets cropped */
.brand-logo{
  display: block;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Tighten spacing on small screens */
@media (max-width: 520px){
  .container.nav{ padding-left: 16px; padding-right: 16px; }
  footer.footer{ padding-left: 16px; padding-right: 26px; }
  .brand-logo{ max-height: 36px; }
}

/* FIX: navbar text (e.g. "Products") getting clipped */
.top,
.container.nav{
  overflow: visible;               /* stops cutting glyphs */
}

.container.nav{
  align-items: center;
  min-height: 60px;                /* gives text room */
  padding-block: 10px;             /* extra breathing space */
}

.links a{
  display: inline-flex;
  align-items: center;
  line-height: 1.1;                /* prevents font from spilling */
  padding: 10px 12px;              /* ensures vertical space on tap */
}

/* Mobile: slightly taller + safer */
@media (max-width: 520px){
  .container.nav{ min-height: 64px; padding-block: 12px; }
  .links a{ padding: 12px 10px; }
}

/* CONTACT PAGE MOBILE ZOOM FIXES */
html { -webkit-text-size-adjust: 100%; }

/* iOS zooms when focusing inputs if font-size < 16px */
input, select, textarea, button {
  font-size: 16px;
}

/* Make form blocks responsive (safe generic rules) */
form, .contact-form, .contactForm {
  width: 100%;
}

input, select, textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* CLEAN FOOTER */
.siteFooter{
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
}

.footerInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 18px 0;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.footBrand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0;
}

.footLogo{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:800;
  letter-spacing:.5px;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.footMeta{
  display:flex;
  flex-direction:column;
  line-height:1.1;
  min-width:0;
}
.footMeta strong{
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.footMeta .muted{
  font-size:12px;
}

.footLinks{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:center;
}
.footLinks a{
  color: inherit;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  opacity:.9;
}
.footLinks a:hover{ opacity:1; text-decoration:underline; }

.footRight{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.footCta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: var(--bg-white);
  color: inherit;
  text-decoration:none;
  font-weight:700;
  font-size:13px;
}
.footCta:hover{ background: var(--accent-soft); }

@media (max-width: 720px){
  .footerInner{
    flex-direction:column;
    align-items:flex-start;
  }
  .footRight{
    width:100%;
    justify-content:space-between;
  }
}

/* Footer active link highlight */
.footLinks a.active{
  opacity: 1;
  text-decoration: none;
  position: relative;
}

.footLinks a.active::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

/* Footer: center everything on mobile */
@media (max-width: 720px){
  .footerInner{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footBrand{
    justify-content: center;
  }

  .footMeta{
    align-items: center;
  }

  .footLinks{
    justify-content: center;
  }

  .footRight{
    width: 100%;
    justify-content: center;
  }

  .footLinks a{ display:inline-block; }
}

/* CONTACT: responsive map sizing (prevents huge map on mobile) */
.map, .mapWrap, .contactMap, .mapEmbed {
  width: 100%;
  max-width: 100%;
}

/* Works for most Google Maps iframes */
.map iframe,
.mapWrap iframe,
.contactMap iframe,
.mapEmbed iframe{
  width: 100%;
  height: min(320px, 45vh);
  border: 0;
  display: block;
  border-radius: 16px;
}

/* Mobile: smaller */
@media (max-width: 520px){
  .map iframe,
  .mapWrap iframe,
  .contactMap iframe,
  .mapEmbed iframe{
    height: min(220px, 36vh);
    border-radius: 14px;
  }
}

/* Contact map: actually responsive */
.mapEmbed{
  border-radius:12px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  margin-top:6px;
}

.mapEmbed iframe{
  display:block;
  width:100%;
  height: clamp(220px, 40vh, 340px);
}

/* Smaller on mobile */
@media (max-width:520px){
  .mapEmbed iframe{
    height: clamp(160px, 28vh, 220px);
  }
}

