/* ==========================================================
   Korde Electronics
   Palette taken from the Korde logo:
   magenta ring + the four-colour power bar.
   ========================================================== */
:root {
  --ink: #26272B;          /* logo lettering */
  --ink-soft: #5A5C63;
  --paper: #F5F5F5;        /* matches the product photography */
  --white: #FFFFFF;
  --magenta: #E5007D;      /* logo ring */
  --magenta-dark: #B80064;
  --blue: #1A82C4;
  --green: #6DB33F;
  --yellow: #F6C21C;
  --red: #E3262B;
  --line: #DEDFE2;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --r-s: 6px;
  --r-m: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); font-weight: 850; font-stretch: 115%; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 750; font-stretch: 105%; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 1.5rem;
  background: var(--magenta); color: #fff;
  font: 700 1rem/1 var(--font); font-stretch: 105%;
  text-decoration: none; border: 2px solid var(--magenta); border-radius: 999px;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--yellow); border-color: var(--yellow); }
.btn--small { min-height: 42px; padding: 0 1.1rem; font-size: .95rem; }

/* ---------- top strip & header ---------- */
.strip { background: var(--ink); color: #E9E9EC; font-size: .875rem; }
.strip__in { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.strip p { margin: 0; }
.strip a { color: #fff; font-weight: 700; text-decoration: none; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: flex; align-items: center; text-decoration: none; color: var(--ink); line-height: 1; }
.logo__k { font-weight: 900; font-stretch: 112%; font-size: 2rem; letter-spacing: .01em; }
.logo__o { width: 1.95rem; height: 1.95rem; margin: 0 .06rem; transform: translateY(-1px); }
.logo__sub { margin-left: .6rem; padding-left: .6rem; border-left: 2px solid var(--line); font-size: .95rem; font-weight: 600; color: var(--ink-soft); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--magenta); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 11px; }
.nav-toggle span:not(.sr) { display: block; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero slider ---------- */
.hero { position: relative; padding: 0; overflow: hidden; background: var(--paper); }
.slides { display: grid; height: clamp(540px, calc(100svh - 110px), 680px); }
.slide {
  grid-area: 1 / 1; position: relative; overflow: hidden;
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }

/* slide 1 */
.slide--intro {
  background: var(--paper);
  display: flex; align-items: center;
}
.intro { position: relative; z-index: 2; padding-bottom: 2.5rem; }
.intro__text { width: 44%; min-width: 440px; }
.intro__text { max-width: 600px; }
.powerbar { display: flex; gap: 4px; margin-bottom: 1.4rem; }
.powerbar i { width: 34px; height: 8px; border-radius: 2px; }
.powerbar i:nth-child(1) { background: var(--red); }
.powerbar i:nth-child(2) { background: var(--yellow); }
.powerbar i:nth-child(3) { background: var(--green); }
.powerbar i:nth-child(4) { background: var(--blue); }
.slide--intro h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); max-width: 11.5em; }
.intro__lead { font-size: 1.15rem; color: var(--ink-soft); margin: 1.2rem 0 1.8rem; max-width: 30em; }
.intro__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.intro__proof { margin: 1.4rem 0 0; font-weight: 600; font-size: .95rem; }
.stars { color: #F2A900; letter-spacing: .08em; }
.intro__shelf { position: absolute; right: -1%; top: 50%; transform: translateY(-46%); z-index: 1; width: min(56%, 960px); }
.intro__shelf img {
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 96%, transparent), linear-gradient(180deg, #000 80%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 96%, transparent), linear-gradient(180deg, #000 80%, transparent);
          mask-composite: intersect;
}
.slide--intro.is-active .intro__text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.slide--intro.is-active .intro__text > :nth-child(2) { animation-delay: .08s; }
.slide--intro.is-active .intro__text > :nth-child(3) { animation-delay: .16s; }
.slide--intro.is-active .intro__text > :nth-child(4) { animation-delay: .24s; }
.slide--intro.is-active .intro__text > :nth-child(5) { animation-delay: .32s; }
.slide--intro.is-active .intro__shelf { animation: slideIn .9s .15s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes slideIn { from { opacity: 0; transform: translate(60px, -46%); } to { transform: translate(0, -46%); } }

/* slide 2: banner fills the slide */
.slide--offer { background: radial-gradient(ellipse at 50% 40%, #7A2A8F, #4A1360 75%); }
.offer-slide, .offer-slide picture, .offer-slide img { display: block; width: 100%; height: 100%; }
.offer-slide img { object-fit: cover; object-position: center; }
.offer-slide__fine { position: absolute; left: 1rem; bottom: .6rem; margin: 0; color: rgba(255,255,255,.7); font-size: .75rem; pointer-events: none; }

/* slide 3: brands */
.slide--brands { background: var(--ink); color: #fff; display: flex; align-items: center; }
.brands-slide { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: center; padding-bottom: 3rem; }
.brands-slide h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.brands-slide p { color: #CFD0D5; font-size: 1.12rem; margin: 1.1rem 0 1.8rem; max-width: 28em; }
.brands-slide__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.brands-slide__grid li { min-width: 0; aspect-ratio: 3 / 2; background: #fff; border-radius: var(--r-s); display: flex; align-items: center; justify-content: center; padding: 12%; }
.brands-slide__grid img { max-width: 100%; max-height: 48px; width: auto; height: auto; object-fit: contain; }

/* controls */
.slider-ui {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: .3rem; padding: .3rem;
  background: rgba(255,255,255,.94); border-radius: 999px; box-shadow: 0 6px 20px -8px rgba(0,0,0,.35);
}
.slider-ui__btn { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.slider-ui__btn:hover { background: var(--paper); }
.slider-ui__btn svg { width: 18px; height: 18px; }
.slider-ui__pause .i-play { display: none; }
.slider-ui__pause[aria-pressed="true"] .i-play { display: block; }
.slider-ui__pause[aria-pressed="true"] .i-pause { display: none; }
.slider-ui__dots { display: flex; gap: 6px; padding: 0 .3rem; }
.slider-ui__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #C3C4C9; cursor: pointer; transition: width .3s, background .3s; }
.slider-ui__dots button[aria-selected="true"] { width: 30px; background: var(--magenta); }

/* ---------- shared section bits ---------- */
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; margin: .8rem 0 0; }

/* ---------- products carousel ---------- */
.products__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.products__head .section-head { margin-bottom: 0; min-width: 0; flex: 1; }
.products__nav { display: flex; gap: .6rem; flex-shrink: 0; }
.pnav { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, opacity .2s; }
.pnav svg { width: 20px; height: 20px; }
.pnav:hover:not(:disabled) { background: var(--ink); color: #fff; }
.pnav:disabled { opacity: .3; cursor: default; }

.products__track {
  --gap: 20px;
  list-style: none; margin: 0; padding: 4px 4px 8px; display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab;
}
.products__track::-webkit-scrollbar { display: none; }
.products__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.products__track.is-dragging * { pointer-events: none; user-select: none; }

.pcard {
  flex: 0 0 calc((100% - 3 * var(--gap)) / 4); scroll-snap-align: start;
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}
.pcard:hover { box-shadow: 0 18px 36px -22px rgba(38,39,43,.45); transform: translateY(-3px); }
.pcard--blue { --c: var(--blue); } .pcard--green { --c: var(--green); }
.pcard--yellow { --c: var(--yellow); } .pcard--red { --c: var(--red); }
.pcard__img { height: 240px; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 1.4rem; border-bottom: 4px solid var(--c); }
.pcard__img img { max-width: 88%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.12)); transition: transform .35s; }
.pcard:hover .pcard__img img { transform: scale(1.05); }
.pcard__body { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.pcard__dept { margin: 0; font-size: .82rem; font-weight: 700; color: var(--ink-soft); display: flex; align-items: center; gap: .45rem; }
.pcard__dept::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.pcard h3 { font-size: 1.15rem; }
.pcard__brands { margin: 0 0 1rem; font-size: .9rem; color: var(--ink-soft); }
.pcard__btn {
  margin-top: auto; align-self: stretch; min-height: 44px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--magenta); background: #fff; color: var(--magenta-dark);
  font: 700 .95rem/1 var(--font); transition: background .2s, color .2s;
}
.pcard__btn:hover { background: var(--magenta); color: #fff; }

.products__progress { height: 4px; background: var(--line); border-radius: 4px; margin-top: 1.4rem; overflow: hidden; }
.products__progress span { display: block; height: 100%; width: 25%; background: var(--magenta); border-radius: 4px; transform-origin: left; transition: transform .15s linear, width .2s; }

/* ---------- departments ---------- */
.depts { background: var(--paper); }
.depts__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.75rem; }
.dept { border-top: 10px solid var(--c); padding-top: 1.2rem; }
.dept--blue { --c: var(--blue); } .dept--green { --c: var(--green); }
.dept--yellow { --c: var(--yellow); } .dept--red { --c: var(--red); }
.dept h3 { margin-bottom: 1rem; }
.dept ul { list-style: none; margin: 0; padding: 0; }
.dept li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
.dept button {
  all: unset; cursor: pointer; display: block; font-weight: 700; font-size: 1.08rem; color: var(--ink);
  border-radius: 3px;
}
.dept button::after { content: " ↗"; color: var(--magenta); font-weight: 600; opacity: 0; transition: opacity .2s; }
.dept button:hover { color: var(--magenta-dark); }
.dept button:hover::after, .dept button:focus-visible::after { opacity: 1; }
.dept button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.dept small { display: block; color: var(--ink-soft); font-size: .9rem; margin-top: .15rem; }

/* ---------- brand logo grid ---------- */
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-grid li { min-width: 0; aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center; padding: 10%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.logo-grid img { max-width: 100%; max-height: 54px; width: auto; height: auto; object-fit: contain; }

/* ---------- stores ---------- */
.stores { background: var(--paper); }
.stores__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2rem; align-items: start; }
.stores__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.store {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; gap: .15rem; width: 100%;
  padding: 1rem 1.2rem 1rem 1.4rem; background: #fff; border-radius: var(--r-s);
  border-left: 6px solid transparent; box-shadow: 0 1px 0 var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.store:hover { box-shadow: 0 1px 0 var(--line), 0 6px 18px -10px rgba(38,39,43,.35); }
.store.is-active { border-left-color: var(--magenta); }
.store:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.store__town { font-size: .85rem; font-weight: 700; color: var(--magenta-dark); }
.store__name { font-weight: 750; font-size: 1.12rem; font-stretch: 105%; }
.store__addr { color: var(--ink-soft); font-size: .95rem; }
.store__rating { font-size: .9rem; margin-top: .2rem; color: var(--ink-soft); }
.store__rating b { color: var(--ink); }
.store__rating a { color: var(--ink); font-weight: 650; }
.stores__map { position: sticky; top: 96px; display: grid; gap: 1rem; }
.stores__map iframe { width: 100%; aspect-ratio: 4 / 3.4; border: 0; border-radius: var(--r-m); background: #E4E5E8; }
.stores__map .btn { justify-self: start; }

/* ---------- business ---------- */
.business { background: var(--ink); color: #fff; }
.business__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.business p { color: #CFD0D5; font-size: 1.15rem; margin: 1.2rem 0 2rem; max-width: 30em; }
.business__list { margin: 0; display: grid; gap: 0; }
.business__list div { padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.business__list div:first-child { border-top: 1px solid rgba(255,255,255,.14); }
.business__list dt { font-weight: 750; font-size: 1.15rem; }
.business__list dd { margin: .2rem 0 0; color: #B9BAC0; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about .about__year {
  margin: 0; line-height: .8; font-weight: 900; font-stretch: 125%;
  font-size: clamp(5rem, 14vw, 11rem); letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 3px var(--magenta);
}
.about h2 { margin-bottom: 1.2rem; }
.about p { max-width: 36em; font-size: 1.12rem; color: var(--ink-soft); }

/* ---------- enquiry ---------- */
.enquiry { background: var(--paper); }
.enquiry__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.enquiry p { color: var(--ink-soft); font-size: 1.12rem; margin: 1rem 0 1.8rem; max-width: 28em; }
.contact { list-style: none; margin: 0; padding: 0; }
.contact li { padding: .55rem 0; }
.contact span { display: inline-block; width: 4.2rem; font-weight: 700; }
.contact a { color: var(--ink); font-weight: 600; }

.form { background: #fff; border-radius: var(--r-m); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(38,39,43,.35); }
.form label { display: grid; gap: .4rem; font-weight: 650; font-size: .96rem; }
.form .opt { font-weight: 400; color: var(--ink-soft); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%;
  padding: .8rem .9rem; border: 1.5px solid #C9CACE; border-radius: 8px; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(229,0,125,.18); }
.form [aria-invalid="true"] { border-color: var(--red); }
.form__error { margin: 0; color: var(--red); font-weight: 600; font-size: .95rem; }
.form .btn { justify-self: start; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #CFD0D5; padding: 3.5rem 0 1.5rem; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; }
.footer a { color: #fff; }
.footer__name { color: #fff; font-weight: 750; font-size: 1.05rem; }
.footer__copy { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; }

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .pcard { flex-basis: calc((100% - 2 * var(--gap)) / 2.4); }
  .depts__grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .5rem 1.25rem 1.25rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }
  .business__grid, .enquiry__grid { grid-template-columns: 1fr; }
  .slides { height: auto; }
  .slide--intro { flex-direction: column; align-items: stretch; padding-top: 2.5rem; }
  .intro { padding-bottom: 0; }
  .intro__text { width: auto; min-width: 0; }
  .intro__shelf { position: relative; right: auto; top: auto; transform: none; width: 112%; margin: 1.5rem -6% 0; padding-bottom: 4.2rem; }
  .slide--intro.is-active .intro__shelf { animation: none; }
  .slide--brands { padding: 2.5rem 0 4.5rem; }
  .offer-slide img { object-fit: contain; }
  .brands-slide { padding-bottom: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .brands-slide, .stores__grid { grid-template-columns: minmax(0, 1fr); }
  .stores__map { position: static; }
}
@media (max-width: 600px) {
  .strip__in { justify-content: center; }
  .strip__in p:first-child { display: none; }
  .logo__sub { display: none; }
  .depts__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .pcard { flex-basis: 78%; }
  .products__track { --gap: 14px; }
  .products__nav { display: none; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-grid img { max-height: 38px; }
  .brands-slide__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .brands-slide__grid img { max-height: 34px; }
  .slider-ui__btn[data-dir] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
