/*==================== VARIABLES ====================*/
:root{
  --header-height: 4.5rem;

  /*========== Colors ==========*/
  --brand: #069C54;
  --brand-dark: #047A42;
  --brand-soft: #E7F6EE;
  --ink: #10201A;
  --text: #4B5A54;
  --muted: #7D8A84;
  --bg: #FFFFFF;
  --surface: #F4F8F6;
  --card: #FFFFFF;
  --border: #E2EAE6;
  --header-bg: rgba(255, 255, 255, .82);
  --shadow-lg: 0 2px 4px rgba(16, 32, 26, .04), 0 18px 40px rgba(16, 32, 26, .10);

  /*========== Illustration ==========*/
  --ill-bg-a: #E7F6EE;
  --ill-bg-b: #CFEEDD;
  --ill-paper: #FFFFFF;
  --ill-line: #DDE8E2;
  --ill-stroke: #CFDDD5;
  --ill-desk: #BFD9CA;
  --ill-printer: #D3E2DA;
  --ill-mint: #BDEBD2;
  --ill-mint-strong: #7FD3A6;
  --ill-ink: #1F3A2E;
  --ill-yellow: #F6C653;
  --ill-yellow-dark: #E4AE34;
  --ill-wood: #E5B978;
  --ill-wood-dark: #B98A4C;
  --ill-coral: #F08A6C;

  /*========== Typography ==========*/
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --h1: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  --h2: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem);
  --h3: 1.125rem;
  --normal: 1rem;
  --small: .875rem;
  --smaller: .75rem;

  /*========== Shape ==========*/
  --radius: 1rem;
  --radius-lg: 1.5rem;

  /*========== z index ==========*/
  --z-fixed: 100;
}

body.dark-theme{
  color-scheme: dark;
  --brand: #17B26A;
  --brand-dark: #12A15E;
  --brand-soft: #12291E;
  --ink: #EEF4F1;
  --text: #B6C3BD;
  --muted: #84928B;
  --bg: #0D1411;
  --surface: #121B17;
  --card: #17211D;
  --border: #24302B;
  --header-bg: rgba(13, 20, 17, .82);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .35);

  --ill-bg-a: #13281F;
  --ill-bg-b: #0F3424;
  --ill-paper: #24322C;
  --ill-line: #34443C;
  --ill-stroke: #3B4C44;
  --ill-desk: #2C4237;
  --ill-printer: #31423A;
  --ill-mint: #1D573A;
  --ill-mint-strong: #2E8A5A;
  --ill-ink: #0A1410;
  --ill-yellow: #E2B23F;
  --ill-yellow-dark: #C8982A;
}

/*==================== BASE ====================*/
*, ::before, ::after{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body{
  margin: 0;
  font-family: var(--font);
  font-size: var(--normal);
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}

h1, h2, h3, p, ul{
  margin: 0;
}

h1, h2, h3{
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

ul{
  padding: 0;
  list-style: none;
}

a{
  color: inherit;
  text-decoration: none;
}

img{
  display: block;
  max-width: 100%;
  height: auto;
}

button{
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* The inline script in <body> sets .js. Without JavaScript AOS never runs,
   so its hidden starting state must not apply */
html:not(.js) [data-aos]{
  opacity: 1 !important;
  transform: none !important;
}

/* Hidden while a saved Malay/Chinese translation loads (see the inline script and main.js) */
.i18n-pending body{
  visibility: hidden;
}

:focus-visible{
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: .375rem;
}

/*==================== LAYOUT ====================*/
.container{
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section{
  padding-block: 4rem;
}

.section--tinted{
  background-color: var(--surface);
}

.section--tight{
  padding-block: 2rem 4.5rem;
}

.section-head{
  max-width: 36rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.section-title{
  font-size: var(--h2);
  margin-bottom: 1rem;
}

.section-head .section-title{
  margin-bottom: 0;
}

.section-note{
  margin-top: 1rem;
  color: var(--text);
  text-wrap: balance;
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .875rem;
  font-size: var(--smaller);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before{
  content: '';
  width: 1.25rem;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.eyebrow--light{
  color: rgba(255, 255, 255, .85);
}

/*==================== BUTTONS ====================*/
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background-color: var(--brand);
  color: #FFFFFF;
  font-size: var(--small);
  font-weight: 600;
  line-height: 1;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s;
}

.button:hover{
  background-color: var(--brand-dark);
}

@media (hover: hover){
  .button:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -8px rgba(6, 156, 84, .55);
  }
}

.button .bx{
  font-size: 1.125rem;
}

.button--ghost{
  background-color: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.button--ghost:hover{
  background-color: var(--card);
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: none;
}

.button--light{
  background-color: #FFFFFF;
  color: #047A42;
}

.button--light:hover{
  background-color: #F0FBF5;
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .3);
}

.button--outline-light{
  background-color: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: #FFFFFF;
}

.button--outline-light:hover{
  background-color: rgba(255, 255, 255, .12);
  border-color: #FFFFFF;
  box-shadow: none;
}

.icon-button{
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.25rem;
  transition: background-color .25s, color .25s;
}

.icon-button:hover{
  background-color: var(--surface);
  color: var(--brand);
}

/*==================== HEADER & NAV ====================*/
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-fixed);
  background-color: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}

.scroll-header{
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(16, 32, 26, .05);
}

.nav{
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.nav__logo{
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  flex-shrink: 0;
}

.logo{
  display: block;
  height: 2rem;
  width: auto;
  flex-shrink: 0;
}

/* The logo's boxes are transparent; on the dark theme, fill them white
   (clipped to the slanted outline) so it matches the printed artwork */
body.dark-theme .logo{
  background-color: #FFFFFF;
  clip-path: polygon(12.4% 0, 100% 0, 87.6% 100%, 0 100%);
}

.nav__logo-sub{
  display: none;
  max-width: 8.5rem;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.nav__menu{
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  padding: .75rem 1.25rem 1.5rem;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-.5rem);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s, opacity .3s, visibility .3s;
}

.nav__menu.show-menu{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav__list{
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.nav__link{
  display: block;
  padding: .75rem .5rem;
  border-radius: .625rem;
  color: var(--text);
  font-weight: 500;
  transition: color .25s, background-color .25s;
}

.nav__link:hover{
  color: var(--brand);
}

.active-link{
  color: var(--brand);
}

.nav__actions{
  display: flex;
  align-items: center;
  gap: .125rem;
}

.lang-switch{
  display: inline-flex;
  flex-shrink: 0;
  padding: .1875rem;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--border);
}

.nav__lang{
  min-height: 2.25rem;
  padding: .3125rem .5rem;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--smaller);
  font-weight: 700;
  letter-spacing: .04em;
  transition: background-color .25s, color .25s;
}

.nav__lang:hover{
  color: var(--ink);
}

/* Below 360px the header can't fit the language switch, so it moves into the menu */
.lang-switch--header{
  display: none;
}

.lang-switch--menu{
  margin: .75rem .5rem 0;
}

.nav__lang.active{
  background-color: var(--card);
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(16, 32, 26, .12);
}

/*==================== HOME ====================*/
.home{
  position: relative;
  padding-top: calc(var(--header-height) + 2.5rem);
  padding-bottom: 3rem;
  background:
    radial-gradient(60% 50% at 85% 10%, var(--brand-soft) 0%, transparent 70%),
    radial-gradient(40% 40% at 0% 60%, var(--brand-soft) 0%, transparent 70%);
  overflow: hidden;
}

.home__container{
  display: grid;
  gap: 3rem;
  align-items: center;
}

.home__title{
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.home__title-accent{
  color: var(--brand);
}

.home__subtitle{
  max-width: 28rem;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.about__buttons{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.home__buttons{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.home__visual{
  position: relative;
}

.home__img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.home__card{
  position: absolute;
  left: 1rem;
  bottom: -1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.125rem .75rem .75rem;
  border-radius: var(--radius);
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  line-height: 1.3;
}

.home__card strong{
  display: block;
  color: var(--ink);
  font-size: var(--small);
}

.home__card small{
  color: var(--muted);
  font-size: var(--smaller);
}

.home__card-icon{
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  background-color: var(--brand-soft);
  color: var(--brand);
  font-size: 1.25rem;
}

.categories{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 4rem;
}

.categories__item:last-child:nth-child(odd){
  grid-column: 1 / -1;
}

.categories__item{
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .875rem 1rem;
  border-radius: var(--radius);
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: var(--small);
  font-weight: 600;
  line-height: 1.3;
}

.categories__item .bx{
  flex-shrink: 0;
  font-size: 1.375rem;
  color: var(--brand);
}

/*==================== ILLUSTRATIONS ====================*/
.ill{
  display: block;
  height: auto;
}

.ill-stop-a{ stop-color: var(--ill-bg-a); }
.ill-stop-b{ stop-color: var(--ill-bg-b); }
.ill-bg{ fill: var(--ill-bg-b); }
.ill-paper{ fill: var(--ill-paper); }
.ill-line{ fill: var(--ill-line); }
.ill-stroke{ stroke: var(--ill-stroke); stroke-width: 2; }
.ill-desk{ fill: var(--ill-desk); }
.ill-printer{ fill: var(--ill-printer); }
.ill-mint{ fill: var(--ill-mint); }
.ill-mint-strong{ fill: var(--ill-mint-strong); }
.ill-ink{ fill: var(--ill-ink); }
.ill-ink-soft{ fill: var(--ink); opacity: .8; }
.ill-brand{ fill: var(--brand); }
.ill-brand-dark{ fill: var(--brand-dark); }
.ill-yellow{ fill: var(--ill-yellow); }
.ill-yellow-dark{ fill: var(--ill-yellow-dark); }
.ill-wood{ fill: var(--ill-wood); }
.ill-wood-dark{ fill: var(--ill-wood-dark); }
.ill-coral{ fill: var(--ill-coral); }
.ill-surface{ fill: var(--surface); }
.ill-clip{ fill: none; stroke: var(--muted); stroke-width: 3; }
.ill-stamp{ fill: none; stroke: var(--brand); opacity: .85; }

.ill-mark{
  fill: #FFFFFF;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
}

.ill-stamp-text{
  fill: var(--brand);
  opacity: .85;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .08em;
}

.ill-stamp-text--sm{
  font-size: 17px;
}

/*==================== ABOUT ====================*/
.about__container{
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about__img{
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about__description{
  margin-bottom: 1.5rem;
}

.about__points{
  display: grid;
  gap: .75rem;
  margin-bottom: 2rem;
}

.about__points li{
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--ink);
  font-weight: 500;
}

.about__points .bx{
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background-color: var(--brand-soft);
  color: var(--brand);
  font-size: 1rem;
}

/*==================== CARDS ====================*/
.card{
  border-radius: var(--radius-lg);
  background-color: var(--card);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

@media (hover: hover){
  .card:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
  }
}

.card__title{
  font-size: var(--h3);
  margin-bottom: .5rem;
}

.card__text{
  font-size: var(--small);
}

/*==================== SERVICES ====================*/
.services__container{
  display: grid;
  gap: 1.25rem;
}

.services__card{
  padding: 2rem 1.75rem;
}

.services__icon{
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background-color: var(--brand-soft);
}

.services__svg{
  width: 2.5rem;
  height: 2.5rem;
}

/*==================== PRODUCTS ====================*/
/* A horizontally scrollable row. main.js auto-advances it right to left,
   lets people drag it with the mouse, and loops it using an aria-hidden copy
   of the cards. Touch swipes and trackpads use native scrolling. */
.products__marquee{
  --card-gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  /* room for the card hover lift and shadow */
  padding-block: .75rem 1.5rem;
  margin-block: -.75rem -1.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.products__marquee::-webkit-scrollbar{
  display: none;
}

.products__marquee.is-dragging{
  cursor: grabbing;
  user-select: none;
}

.products__marquee.is-dragging .product{
  pointer-events: none;
}

.products__track{
  display: flex;
  width: max-content;
}

.product{
  flex: none;
  display: flex;
  flex-direction: column;
  width: min(78vw, 320px);
  margin-right: var(--card-gap);
  overflow: hidden;
}

/* Closing "And much more" card: tells viewers the row is only a selection */
.product--more{
  justify-content: center;
  align-items: center;
  gap: .25rem;
  padding: 2rem 1.75rem;
  text-align: center;
  background-color: var(--surface);
  border: 2px dashed var(--border);
}

.product--more .product__detail{
  max-width: 16rem;
}

.product__more-icon{
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: var(--brand);
  background-color: var(--brand-soft);
  font-size: 1.75rem;
}

.product__media{
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  padding: 1.25rem;
  background-color: var(--surface);
}

.product__art{
  width: 100%;
  height: 100%;
  transition: transform .4s;
}

@media (hover: hover){
  .product:hover .product__art{
    transform: scale(1.05);
  }
}

.product__body{
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.5rem;
}

.product__detail{
  color: var(--muted);
  font-size: var(--small);
  margin-bottom: 1.25rem;
}

.product__footer{
  display: flex;
  margin-top: auto;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product__link{
  display: inline-flex;
  padding-block: .625rem;
  margin-block: -.625rem;
  white-space: nowrap;
  align-items: center;
  gap: .25rem;
  color: var(--brand);
  font-size: var(--small);
  font-weight: 600;
}

.product__link .bx{
  font-size: 1.125rem;
  transition: transform .25s;
}

.product__link:hover .bx{
  transform: translateX(3px);
}

/*==================== FOR BUSINESSES ====================*/
.business__container{
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.business__intro{
  max-width: 30rem;
  margin-bottom: 2rem;
}

.business__list{
  display: grid;
  gap: 1rem;
}

.business__item{
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
}

.business__item .card__title{
  margin-bottom: .25rem;
}

.business__icon{
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: .875rem;
  background-color: var(--brand-soft);
  color: var(--brand);
  font-size: 1.5rem;
}

/*==================== CONTACT ====================*/
.contact__panel{
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 60%),
    linear-gradient(135deg, #07A85A 0%, #04693A 100%);
  color: rgba(255, 255, 255, .85);
  overflow: hidden;
}

.contact__panel .section-title{
  color: #FFFFFF;
}

.contact__description{
  max-width: 30rem;
  margin-bottom: 2rem;
}

.contact__buttons{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.contact__info{
  display: grid;
  gap: .75rem;
  align-content: center;
}

.contact__info li{
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #FFFFFF;
  font-weight: 500;
  line-height: 1.4;
}

.contact__info small{
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: var(--smaller);
  font-weight: 500;
}

.contact__info a{
  display: inline-block;
  padding-block: .25rem;
}

.contact__info a:hover{
  text-decoration: underline;
}

.contact__branches{
  display: grid;
  gap: 1rem;
}

/* Each card is header / address / phone lines. When the cards sit side by
   side they share rows (subgrid), so the lines stay level across both. */
.branch{
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: 1.25rem 1.25rem 1.375rem;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #FFFFFF;
  font-size: var(--small);
  line-height: 1.5;
}

.branch__head{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: .375rem .625rem;
  margin-bottom: .75rem;
}

.branch__name{
  color: #FFFFFF;
  font-size: 1rem;
  line-height: 1.75rem;
  letter-spacing: 0;
}

.branch__note{
  padding: .125rem .625rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .16);
  color: #FFFFFF;
  font-size: var(--smaller);
  font-weight: 600;
}

.branch__address{
  display: flex;
  gap: .5rem;
  margin-bottom: .875rem;
  color: rgba(255, 255, 255, .85);
}

.branch__address .bx{
  flex-shrink: 0;
  margin-top: .1875rem;
}

/* Narrow cards: two rows, with the numbers lined up in one column.
   Wide cards: Tel / Fax and Mobile side by side on one line. */
.branch__lines{
  display: grid;
  grid-template-columns: max-content max-content 1fr;
  align-content: start;
  column-gap: .75rem;
  row-gap: .25rem;
}

.branch__lines li{
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: 2rem;
}

@container (min-width: 27rem){
  .branch__lines{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1.5rem;
  }

  .branch__lines li{
    display: flex;
    gap: .5rem;
  }
}

.branch__lines span{
  color: rgba(255, 255, 255, .65);
  font-size: var(--smaller);
  font-weight: 600;
}

.branch__lines a{
  padding-block: .25rem;
  font-weight: 600;
}

.branch__lines a:hover{
  text-decoration: underline;
}

/* Phone line, then the map and its button underneath */
.branch__body{
  display: grid;
  gap: .75rem;
  align-content: start;
}

.branch__map{
  height: 9rem;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: rgba(255, 255, 255, .12);
}

.branch__map iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Map with its "Get directions" button directly underneath */
.branch__location{
  display: grid;
  gap: .5rem;
}

.branch__directions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  min-height: 2.5rem;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .16);
  color: #FFFFFF;
  font-size: var(--small);
  font-weight: 600;
  transition: background-color .25s;
}

.branch__directions:hover{
  background-color: rgba(255, 255, 255, .28);
}

.branch__wa{
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, .16);
  font-size: 1rem;
  vertical-align: middle;
}

.branch__lines a.branch__wa:hover{
  text-decoration: none;
  background-color: rgba(255, 255, 255, .28);
}

.contact__icon{
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .875rem;
  background-color: rgba(255, 255, 255, .16);
  font-size: 1.25rem;
}

/*==================== OUR STORY ====================*/
/* Intro + key figures */
.story-hero{
  padding-top: 8rem;
  padding-bottom: 2rem;
}

.story-hero__head{
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.story-hero__title{
  margin-bottom: 1.25rem;
  font-size: var(--h1);
  line-height: 1.1;
  text-wrap: balance;
}

.story-hero__intro{
  color: var(--text);
  font-size: 1.0625rem;
}

.story-stats{
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.story-stat{
  display: grid;
  gap: .375rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
}

.story-stat__value{
  color: var(--brand);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.story-stat__label{
  color: var(--text);
  font-size: var(--small);
}

/* How it started */
.story-start{
  display: grid;
  gap: 1.5rem;
}

.story-start__text{
  display: grid;
  gap: 1rem;
  max-width: 44rem;
  color: var(--text);
}

.story-start__lead{
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 500;
}

/* Milestones: vertical on phones, horizontal from 960px */
.timeline{
  list-style: none;
  display: grid;
  gap: 1rem;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border);
}

.timeline__item{
  position: relative;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background-color: var(--card);
  color: var(--text);
}

.timeline__item::before{
  content: '';
  position: absolute;
  top: 1.625rem;
  left: calc(-1.75rem - 7px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--brand);
  box-shadow: 0 0 0 4px var(--surface);
}

.timeline__year{
  display: block;
  margin-bottom: .375rem;
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}

/* BMSC today */
.story-today{
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .16) 0%, transparent 60%),
    linear-gradient(135deg, #07A85A 0%, #04693A 100%);
  color: rgba(255, 255, 255, .85);
}

.story-today .section-title{
  color: #FFFFFF;
}

.story-today__text{
  max-width: 40rem;
}

.story-today__buttons{
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

@media screen and (min-width: 640px){
  .story-today{
    padding: 3rem;
  }
}

@media screen and (min-width: 960px){
  .story-hero{
    padding-top: 9rem;
  }

  .story-start{
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
  }

  .timeline{
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2rem 0 0;
    border-left: 0;
    border-top: 2px solid var(--border);
  }

  .timeline__item::before{
    top: calc(-2rem - 7px);
    left: 1.5rem;
  }

  .story-today{
    padding: 4rem;
  }
}

/*==================== PRIVACY POLICY ====================*/
.section.legal{
  padding-top: 8rem;
}

.legal__container{
  max-width: 46rem;
}

.legal__updated{
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: var(--small);
}

.legal__intro{
  margin-bottom: 2rem;
  color: var(--ink);
  font-size: 1.0625rem;
}

.legal__heading{
  margin: 2rem 0 .5rem;
  font-size: var(--h3);
}

.legal p{
  color: var(--text);
}

.legal a:not(.button){
  color: var(--brand);
  font-weight: 600;
}

.legal a:not(.button):hover{
  text-decoration: underline;
}

.legal__back{
  margin-top: 2.5rem;
}

/*==================== FOOTER ====================*/
.footer{
  padding-top: 4rem;
  background-color: var(--surface);
  border-top: 1px solid var(--border);
}

.footer__container{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 1.5rem;
  padding-bottom: 3rem;
}

.footer__brand{
  grid-column: 1 / -1;
}

.footer__brand .nav__logo-sub{
  display: block;
}

.footer__tagline{
  max-width: 20rem;
  margin: 1rem 0 1.25rem;
  font-size: var(--small);
}

.footer__social{
  display: flex;
  gap: .5rem;
}

.footer__social a{
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background-color: var(--card);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.125rem;
  transition: background-color .25s, color .25s, border-color .25s;
}

.footer__social a:hover{
  background-color: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.footer__title{
  margin-bottom: 1rem;
  font-size: var(--small);
  letter-spacing: 0;
}

.footer__links{
  display: grid;
  gap: .25rem;
  line-height: 1.5;
  font-size: var(--small);
}

/* Every row is the same height whether or not it's a link; links get a
   taller tap area that overlaps the row padding instead of adding to it */
.footer__links li{
  padding-block: .25rem;
}

.footer__links a{
  display: inline-block;
  padding-block: .25rem;
  margin-block: -.25rem;
  transition: color .25s;
}

.footer__links a:hover{
  color: var(--brand);
}

/* Extra room at the bottom so the WhatsApp and back-to-top buttons never cover the text */
.footer__bottom{
  padding-block: 1.5rem 9rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--smaller);
  text-align: center;
}

.footer__bottom a{
  color: var(--text);
  font-weight: 600;
  transition: color .3s;
}

.footer__bottom a:hover{
  color: var(--brand);
}

/*==================== SCROLL TOP ====================*/
.scrolltop{
  position: fixed;
  right: 1.25rem; /* lines up with the centre of the WhatsApp button below it */
  bottom: -20%;
  z-index: var(--z-fixed);
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background-color: var(--brand);
  color: #FFFFFF;
  font-size: 1.5rem;
  box-shadow: 0 10px 20px -8px rgba(6, 156, 84, .6);
  transition: bottom .4s, background-color .25s;
}

.scrolltop:hover{
  background-color: var(--brand-dark);
}

/* Sits above the WhatsApp button, centred on it */
.show-scroll{
  bottom: 5.75rem;
}

/*==================== WHATSAPP ====================*/
.wa-float{
  position: fixed;
  right: .875rem;
  bottom: 1.5rem;
  z-index: var(--z-fixed);
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  font-size: 1.875rem;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
  transition: background-color .25s, transform .25s;
}

.wa-float:hover{
  background-color: #1EBE5A;
}

@media (hover: hover){
  .wa-float:hover{
    transform: translateY(-2px);
  }
}

/* Branch picker, opened above the WhatsApp button */
.wa-picker{
  position: fixed;
  right: .875rem;
  bottom: 5.75rem;
  z-index: calc(var(--z-fixed) + 1);
  display: grid;
  gap: .5rem;
  width: min(21rem, calc(100vw - 1.75rem));
  padding: 1rem 1rem 1.125rem;
  border-radius: var(--radius-lg);
  background-color: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(.5rem);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s, opacity .25s, visibility .25s;
}

.wa-picker.is-open{
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.wa-picker__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-right: -.375rem;
}

.wa-picker__title{
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}

.wa-picker__text{
  margin-bottom: .25rem;
  font-size: var(--small);
}

.wa-picker__branch{
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  line-height: 1.35;
  transition: border-color .25s, background-color .25s;
}

.wa-picker__branch:hover{
  border-color: #25D366;
  background-color: var(--surface);
}

.wa-picker__branch strong{
  display: block;
  color: var(--ink);
  font-size: var(--small);
}

.wa-picker__branch small{
  color: var(--muted);
  font-size: var(--smaller);
}

.wa-picker__icon{
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  font-size: 1.375rem;
}

/*==================== MEDIA QUERIES ====================*/
@media screen and (min-width: 360px){
  .lang-switch--header{
    display: inline-flex;
  }

  .lang-switch--menu{
    display: none;
  }
}

@media screen and (min-width: 400px){
  .nav{
    gap: 1rem;
  }

  .logo{
    height: 2.25rem;
  }

  .nav__actions{
    gap: .25rem;
  }

  .lang-switch--header{
    margin-right: .25rem;
  }
}

/* The text beside the logo needs about 560px before the header runs out of room */
@media screen and (min-width: 560px){
  .nav__logo-sub{
    display: block;
  }
}

@media screen and (min-width: 640px){
  .product__media{
    aspect-ratio: 16 / 10;
  }

  .services__container{
    grid-template-columns: repeat(2, 1fr);
  }

  .categories{
    grid-template-columns: repeat(3, 1fr);
  }

  .categories__item:last-child:nth-child(odd){
    grid-column: auto;
  }

  .contact__branches{
    grid-template-columns: repeat(2, 1fr);
  }

  .branch{
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .contact__panel{
    padding: 3rem;
  }
}

@media screen and (min-width: 960px){
  .section{
    padding-block: 6rem;
  }

  .section--tight{
    padding-block: 2rem 6rem;
  }

  .nav__toggle{
    display: none;
  }

  .nav__menu{
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .nav__list{
    flex-direction: row;
    gap: .25rem;
  }

  .nav__link{
    position: relative;
    padding: .5rem .75rem;
    font-size: .9375rem;
    white-space: nowrap;
  }

  .nav__link::after{
    content: '';
    position: absolute;
    left: .75rem;
    right: .75rem;
    bottom: .125rem;
    height: 2px;
    border-radius: 2px;
    background-color: var(--brand);
    transform: scaleX(0);
    transition: transform .25s;
  }

  .active-link::after{
    transform: scaleX(1);
  }

  .home{
    padding-top: calc(var(--header-height) + 4.5rem);
    padding-bottom: 1rem;
  }

  .home__container{
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
  }

  .home__card{
    left: -1.5rem;
    bottom: 2rem;
  }

  .categories{
    grid-template-columns: repeat(5, 1fr);
    margin-top: 5rem;
  }

  .about__container{
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .services__container{
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .products__marquee{
    --card-gap: 1.5rem;
  }

  .business__container{
    grid-template-columns: 1fr 1.15fr;
    gap: 4rem;
  }

  .contact__panel{
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 4rem;
  }

  .contact__branches{
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__container{
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 3rem;
  }

  .footer__brand{
    grid-column: auto;
  }

  .footer__bottom{
    padding-bottom: 1.5rem;
    text-align: left;
  }
}

/* Just above 960px the desktop menu (longest in Malay) needs the room taken by the text beside the logo */
@media screen and (min-width: 960px) and (max-width: 1149px){
  .nav__logo-sub{
    display: none;
  }
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }

  *, ::before, ::after{
    transition-duration: .01ms !important;
  }

  /* main.js skips the auto-scroll and the looping copy; the row just scrolls */
  .products__marquee{
    scroll-snap-type: x proximity;
  }

  .product{
    scroll-snap-align: start;
  }
}
