/* ==========================================================================
   H2O 2Go — shared styles (every page)
   1. modern-normalize (unchanged)   2. tokens + base   3. nav   4. footer
   5. buttons, section titles, scroll-reveal   6. inner-page hero
   ========================================================================== */

/*! modern-normalize v2.0.0 | MIT License | https://github.com/sindresorhus/modern-normalize */

/*
Document
========
*/

/**
Use a better box model (opinionated).
*/



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

html {
	/* Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3) */
	font-family:
		system-ui,
		'Segoe UI',
		Roboto,
		Helvetica,
		Arial,
		sans-serif,
		'Apple Color Emoji',
		'Segoe UI Emoji';
	line-height: 1.15; /* 1. Correct the line height in all browsers. */
	-webkit-text-size-adjust: 100%; /* 2. Prevent adjustments of font size after orientation changes in iOS. */
	-moz-tab-size: 4; /* 3. Use a more readable tab size (opinionated). */
	tab-size: 4; /* 3 */
}

/*
Sections
========
*/

body {
	margin: 0; /* Remove the margin in all browsers. */
}

/*
Grouping content
================
*/

/**
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
*/

hr {
	height: 0; /* 1 */
	color: inherit; /* 2 */
}

/*
Text-level semantics
====================
*/

/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr[title] {
	text-decoration: underline dotted;
}

/**
Add the correct font weight in Edge and Safari.
*/

b,
strong {
	font-weight: bolder;
}

/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
	font-family:
		ui-monospace,
		SFMono-Regular,
		Consolas,
		'Liberation Mono',
		Menlo,
		monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/**
Add the correct font size in all browsers.
*/

small {
	font-size: 80%;
}

/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/*
Tabular data
============
*/

/**
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/

table {
	text-indent: 0; /* 1 */
	border-color: inherit; /* 2 */
}

/*
Forms
=====
*/

/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/

button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
	text-transform: none;
}

/**
Correct the inability to style clickable types in iOS and Safari.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
}

/**
Remove the inner border and padding in Firefox.
*/

::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
Restore the focus styles unset by the previous rule.
*/

:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
Remove the additional ':invalid' styles in Firefox.
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
*/

:-moz-ui-invalid {
	box-shadow: none;
}

/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/

legend {
	padding: 0;
}

/**
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
	vertical-align: baseline;
}

/**
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

/*
Interactive
===========
*/

/*
Add the correct display in Chrome and Safari.
*/

summary {
	display: list-item;
}

/* ==========================================================================
   2. Tokens + base  (colour scheme unchanged from the original template.css)
   ========================================================================== */
:root {
  --light: rgb(247, 252, 255);
  --dark: rgb(51, 50, 50);
  --blue: rgb(15, 92, 167);
  --lgBlue: rgb(37, 149, 209);
  --purple: rgb(137, 46, 145);

  --blue-deep: rgb(10, 66, 122);
  --ink: rgb(18, 38, 58);
  --muted: rgb(84, 104, 124);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 30px -14px rgba(15, 92, 167, 0.45);
  --shadow-lg: 0 24px 50px -20px rgba(15, 92, 167, 0.55);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 68px;
  --font: 'Poppins', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--lgBlue);
  outline-offset: 3px;
}

.container {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   3a. Desktop nav (768px+)
   ========================================================================== */
.navBar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background-color: rgba(15, 92, 167, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.5);
}

.navList {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navLink a {
  display: block;
  padding: 0.5em 1.2em;
  border-radius: 999px;
  color: var(--light);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.navLink a:hover,
.navLink a[aria-current="page"] {
  background-color: var(--purple);
  box-shadow: inset 0 -2px 0 var(--light);
}

@media (min-width: 768px) {
  .navBar { display: block; }
}

/* ==========================================================================
   3b. Mobile nav (under 768px) — same slide-in drawer + arrow button
   ========================================================================== */
.menuButton {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1001;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background-color: rgba(15, 92, 167, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.45);
  transition: transform 0.5s var(--ease), background-color 0.3s;
}

.menuButton .arrow {
  color: rgb(130, 207, 221);
  font-size: 1.4rem;
  transition: color 0.3s;
}

.menuButton[aria-expanded="true"] {
  transform: rotate(-180deg);
  background-color: var(--purple);
}

.menuButton[aria-expanded="true"] .arrow { color: rgb(235, 235, 217); }

.mobNav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  width: min(78vw, 320px);
  height: 100vh;
  height: 100dvh;
  padding-top: 88px;
  overflow-y: auto;
  background: linear-gradient(180deg, var(--blue), var(--blue-deep));
  border-left: 4px solid var(--lgBlue);
  box-shadow: -20px 0 40px -20px rgba(0, 0, 0, 0.5);
  translate: 100% 0;
  visibility: hidden;
  transition: translate 0.5s var(--ease), visibility 0s linear 0.5s;
}

.mobNav.is-open {
  translate: 0 0;
  visibility: visible;
  transition: translate 0.5s var(--ease), visibility 0s;
}

.mobNav ul {
  list-style: none;
  margin: 0;
  padding: 0 0 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobNav li {
  opacity: 0;
  translate: 24px 0;
  transition: opacity 0.4s var(--ease), translate 0.4s var(--ease);
}

.mobNav.is-open li { opacity: 1; translate: 0 0; }
.mobNav.is-open li:nth-child(2) { transition-delay: 0.06s; }
.mobNav.is-open li:nth-child(3) { transition-delay: 0.12s; }
.mobNav.is-open li:nth-child(4) { transition-delay: 0.18s; }

.mobNav li a {
  display: block;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-right: none;
  border-radius: 50px 0 0 50px;
  background-color: var(--lgBlue);
  color: var(--light);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background-color 0.25s, padding-left 0.25s var(--ease);
}

.mobNav li a:hover,
.mobNav li a[aria-current="page"] {
  background-color: var(--purple);
  padding-left: 2rem;
}

.navScrim {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 30, 50, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.navScrim.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 768px) {
  .mobNav, .menuButton, .navScrim { display: none; }
}

/* ==========================================================================
   4. Footer
   ========================================================================== */
footer {
  background-color: var(--purple);
  color: var(--light);
  border-top: 5px solid var(--blue);
  padding-top: 3rem;
}

.footerWrapper {
  width: min(1160px, 100% - 32px);
  margin-inline: auto;
  display: grid;
  gap: 2.5rem;
}

.quickLinks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.quickLinks > a {
  color: var(--light);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 2px;
  transition: background-size 0.3s var(--ease);
}

.quickLinks > a:hover { background-size: 100% 2px; }

.social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: var(--light);
  background-color: rgba(255, 255, 255, 0.14);
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s;
}

.social a:hover {
  background-color: var(--light);
  color: var(--purple);
  transform: translateY(-3px);
}

.line {
  width: 30%;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(0, 0, 0, 0.3);
}

.contactInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contactInfo h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contactDetails {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contactDetails a {
  display: block;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  color: var(--light);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.25s, transform 0.25s var(--ease);
}

.contactDetails a:hover {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateX(4px);
}

.contactDetails strong { text-transform: uppercase; letter-spacing: 0.05em; }

.legal {
  margin-top: 2.5rem;
  padding: 1.25rem 16px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.18);
}

.legal a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
}

@media (min-width: 768px) {
  .footerWrapper { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ==========================================================================
   5. Buttons, section titles, scroll-reveal
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.75em 1.6em;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-transform: capitalize;
  text-decoration: none;
  color: var(--light);
  background-color: var(--purple);
  box-shadow: 0 10px 22px -10px rgba(137, 46, 145, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(137, 46, 145, 0.9);
}

.btn:active { transform: translateY(1px); box-shadow: none; }

.btn--light { background-color: var(--light); color: var(--blue); }

.section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.4em;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0.5em auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--lgBlue), var(--purple));
}

.section-lead {
  text-align: center;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 2.25rem;
  padding-inline: 16px;
}

/* Elements fade up as they scroll into view (only when JS is running). */
/* Uses `translate` (not `transform`) so hover lifts on cards keep working. */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.7s var(--ease) var(--delay, 0s),
    translate 0.7s var(--ease) var(--delay, 0s),
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; translate: 0 0; }
}

/* ==========================================================================
   6. Inner-page hero (products, contact) — water photo + wave edge
   ========================================================================== */
.pageHero {
  position: relative;
  padding: clamp(5rem, 10vw, 7rem) 16px clamp(3rem, 6vw, 4.5rem);
  text-align: center;
  color: var(--light);
  background:
    linear-gradient(180deg, rgba(15, 92, 167, 0.55), rgba(10, 66, 122, 0.85)),
    url('/assets/img/water.jpg') center / cover no-repeat;
  overflow: hidden;
}

.pageHero::after {
  /* soft wave into the page */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 48px;
  background: var(--light);
  -webkit-mask: radial-gradient(60% 48px at 50% 100%, #000 98%, transparent) ;
  mask: radial-gradient(60% 48px at 50% 100%, #000 98%, transparent);
}

.pageHero__logo img {
  width: min(260px, 60vw);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
  animation: heroIn 0.9s var(--ease) both;
}

.pageHero h1 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  margin-bottom: 0.3em;
  animation: heroIn 0.9s var(--ease) 0.15s both;
}

.pageHero p {
  max-width: 52ch;
  margin: 0 auto;
  opacity: 0.95;
  animation: heroIn 0.9s var(--ease) 0.3s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}


/* ==========================================================================
   7. Store switcher (two locations: Malvern + Kloof)
   Used on the homepage map and the contact page map. Logic in main.js.
   ========================================================================== */
.locTabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

html:not(.js) .locTabs { display: none; }

.locTab {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1.6em;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--light);
  background-color: transparent;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.locTab:hover { transform: translateY(-2px); border-color: var(--light); }

.locTab[aria-selected="true"] {
  color: var(--blue);
  border-color: var(--light);
  background-color: var(--light);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.6);
}

.locTab:focus-visible { outline: 3px solid var(--lgBlue); outline-offset: 3px; }

.locAddr {
  margin: 0 0 1rem;
  text-align: center;
  font-weight: 500;
  opacity: 0.92;
}

.locAddr i { margin-right: 0.4em; }

.mapWrapper iframe,
.map-wrap iframe { transition: opacity 0.3s; }
.is-loading iframe { opacity: 0.35; }

/* light-background variant (contact page) */
.locTabs--light .locTab {
  color: var(--blue);
  border-color: rgba(15, 92, 167, 0.35);
}

.locTabs--light .locTab:hover { border-color: var(--blue); }

.locTabs--light .locTab[aria-selected="true"] {
  color: var(--light);
  border-color: var(--blue);
  background-color: var(--blue);
  box-shadow: var(--shadow);
}

.locAddr--light { color: var(--muted); }
