/* Regen Waters Laboratory: static copy of the original site (layout and colours approximated). */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f6f6;
  --text: #281a39;        /* original theme colour 15 */
  --nav: #4720b7;         /* original theme colour 18 */
  --muted: #949494;       /* header rule, current menu item */
  --band-blue: #0504aa;   /* "What we do" strip */
  --band-grey: #cfcfcf;   /* feature strip */
  --white: #ffffff;
  --max: 1210px;
  --hero-w: 1090px;
  --font-body: "Jost", "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
  --font-head: "Jost", "Avenir Next", "Avenir", "Segoe UI", Arial, sans-serif;
  --font-nav: "Poppins", "Segoe UI", Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; margin: 0 0 0.6em; letter-spacing: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ------------------------------------------------------------ header */
.site-header { border-bottom: 3px solid var(--muted); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 150px; gap: 24px; }
.logo img { width: 300px; height: auto; }

.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; gap: 4px 26px; align-items: center; justify-content: flex-end; }
.menu > li { position: relative; }
.menu a, .nav-parent {
  font-family: var(--font-nav);
  font-size: 14px;
  letter-spacing: 0;
  color: var(--nav);
  text-decoration: none;
  display: inline-block;
  padding: 8px 0;
  cursor: pointer;
}
.menu a:hover, .nav-parent:hover { color: var(--muted); }
.menu a[aria-current="page"], .has-sub.is-active > .nav-parent { color: var(--muted); }

.sub-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 250px;
  background: var(--bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  padding: 6px 0;
  display: none;
  z-index: 20;
}
.sub-menu a { display: block; padding: 8px 16px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------ shared blocks */
.btn {
  display: inline-block;
  border: 1px solid var(--text);
  padding: 8px 40px;
  font-family: var(--font-nav);
  font-size: 13px;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  letter-spacing: 0.05em;
}
.btn:hover { background: var(--text); color: var(--bg); }

h2.lined { display: flex; align-items: center; gap: 32px; font-size: 22px; font-weight: 500; letter-spacing: 0.08em; margin: 64px 0 40px; }
h2.lined::before, h2.lined::after { content: ""; flex: 1; border-top: 1px solid var(--text); }
h2.lined span { flex: none; }

.lead { text-align: center; max-width: 640px; margin: 0 auto 40px; font-size: 15px; letter-spacing: 0.08em; font-weight: 400; }

/* page hero: blue molecule image with an overlapping card */
.page-hero {
  max-width: var(--hero-w);
  margin: 12px auto 0;
  padding: 170px 0 40px;
  background: url("../img/hero-molecules.jpg") center top / 100% 469px no-repeat;
}
.hero-card {
  background: var(--bg);
  margin: 0 110px;
  padding: 36px 80px 40px;
  text-align: center;
}
.hero-card h1 { font-size: 42px; }
.hero-card p { max-width: 610px; margin: 0 auto 1.4em; }

.feature-band { background: var(--band-grey); padding: 60px 0; margin-top: 30px; }
.feature { display: grid; grid-template-columns: 763fr 447fr; align-items: start; }
.feature-img { grid-column: 1; grid-row: 1; width: 100%; aspect-ratio: 763 / 362; object-fit: cover; }
.feature-card {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 58px 0 0 44%;
  background: var(--bg);
  padding: 50px 60px 60px;
  min-height: 360px;
  position: relative;
}
.feature-card h2 { font-size: 46px; font-weight: 500; color: #000; }
.feature-card p { font-size: 15px; line-height: 1.7; }

.tick-list { margin: 0; padding-left: 18px; font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.6; }
.tick-list.two-col { columns: 2; column-gap: 40px; }
.tick-list li { break-inside: avoid; }

.lab-banner { margin-top: 60px; }
.lab-banner img { width: 100%; aspect-ratio: 1206 / 512; object-fit: cover; }

/* ------------------------------------------------------------ home */
.home-hero {
  max-width: var(--hero-w);
  margin: 12px auto 0;
  min-height: 469px;
  display: flex;
  align-items: center;
  padding: 40px 60px;
  background: url("../img/hero-molecules.jpg") center / cover no-repeat;
}
.home-hero h1 {
  color: var(--white);
  font-weight: 300;
  font-size: 76px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  max-width: 6.5em;
  margin: 0;
}

.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; font-size: 14px; letter-spacing: 0.08em; font-weight: 400; }
.panel { display: flex; flex-direction: column; align-items: center; }
.panel img { width: 200px; margin-bottom: 16px; }
.panel .btn { margin-top: auto; }

.what-we-do { background: var(--band-blue); color: var(--white); text-align: center; padding: 70px 0 80px; margin-top: 70px; }
.what-we-do h2 { font-size: 50px; font-weight: 500; }
.what-we-do .lead { font-size: 16px; letter-spacing: 0; max-width: none; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 960px; margin: 0 auto; }
.service img { width: 121px; height: 121px; border-radius: 50%; margin: 0 auto 24px; border: 4px solid var(--white); }
.service h3 { font-size: 18px; font-weight: 500; margin-bottom: 1.6em; }
.service p { font-size: 14px; font-weight: 500; line-height: 2; max-width: 270px; margin: 0 auto; }

.expert-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 50px 40px; }
.person-wide { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.person-wide img { width: 250px; aspect-ratio: 2 / 3; object-fit: cover; }

/* ------------------------------------------------------------ about */
.accreditation-logos { display: flex; justify-content: center; align-items: center; gap: 30px; margin: 10px 0 0; }
.accreditation-logos img:first-child { width: 215px; }
.accreditation-logos img:last-child { width: 123px; }

.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 60px 150px; }
.person { text-align: center; font-size: 14px; font-weight: 400; letter-spacing: 0.06em; line-height: 2; }
.person img { width: 220px; aspect-ratio: 220 / 268; object-fit: cover; object-position: center 35%; margin: 0 auto 20px; }
.person h3 { font-size: 22px; font-weight: 500; letter-spacing: 0; margin: 0; }
.person .role { font-size: 13px; margin: 0 0 1.6em; }
.person-wide { text-align: center; }
.person-wide img { margin: 0; }

/* ------------------------------------------------------------ contact */
.hero-contact .hero-card { text-align: left; }
.hero-contact h1 { text-align: center; font-size: 46px; font-weight: 500; color: #000; }
.contact-cols { display: grid; grid-template-columns: 1fr 0.8fr 1.3fr; gap: 30px; font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 2; }
.contact-cols h2 { font-size: 22px; font-weight: 500; color: #000; margin-bottom: 0.5em; }
.contact-cols address { font-style: normal; }
.contact-cols p { margin: 0; }
.contact-cols a { text-decoration: none; }
.hours { border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 0 24px 4px 0; font-weight: 600; vertical-align: top; }

.feedback { text-align: center; max-width: 700px; padding-top: 100px; padding-bottom: 40px; }
.feedback h2 { font-size: 22px; font-weight: 500; margin-bottom: 1.2em; }

/* ------------------------------------------------------------ dust sampling gallery */
.gallery-wrap { margin-top: 60px; }
.gallery {
  list-style: none;
  margin: 0 auto;
  padding: 0 16px 8px;
  max-width: 1240px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.gallery li { flex: none; scroll-snap-align: start; }
.gallery img { height: 464px; width: auto; max-width: none; }

/* ------------------------------------------------------------ reporting */
.reporting-text { text-align: center; max-width: 660px; font-size: 19px; letter-spacing: 0.04em; padding-top: 30px; }
.reporting-text img { margin: 50px auto 0; width: 455px; }

/* ------------------------------------------------------------ footer */
.site-footer { margin-top: 30px; padding: 30px 0 60px; }
.footer-contact {
  font-style: normal;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.footer-contact span { padding: 2px 14px; border-left: 1px solid var(--text); }
.footer-contact span:first-child { border-left: 0; }
.footer-contact a { text-decoration: none; }
.site-footer hr { border: 0; border-top: 1px solid var(--text); margin: 36px 0; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; font-family: var(--font-nav); font-size: 12px; }
.footer-legal li { padding: 4px 16px; }
.footer-legal li + li { border-left: 1px solid var(--text); }
.footer-legal a { text-decoration: none; color: #555; }
.footer-legal a:hover, .footer-contact a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ tablet / phone */
@media (max-width: 1100px) {
  .menu { gap: 4px 18px; }
  .logo img { width: 240px; }
  .hero-card { margin: 0 6%; padding: 32px 6%; }
  .feature-card { margin-left: 30%; }
  .team-grid { gap: 60px 60px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .header-inner { min-height: 0; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
  .logo img { width: 230px; }

  .js .nav-toggle {
    display: inline-block;
    font-family: var(--font-nav);
    font-size: 15px;
    color: var(--nav);
    background: transparent;
    border: 1px solid var(--nav);
    padding: 6px 16px;
    cursor: pointer;
  }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { border-top: 1px solid #ddd; }
  .menu a, .nav-parent { display: block; padding: 10px 0; }
  .nav-parent { cursor: default; }
  .sub-menu { position: static; display: block; box-shadow: none; padding: 0 0 6px 16px; min-width: 0; background: transparent; }
  .sub-menu a { padding: 6px 0; }

  .page-hero { padding-top: 120px; background-size: 100% 300px; margin-top: 0; }
  .hero-card { margin: 0 16px; padding: 24px 16px; }
  .hero-card h1 { font-size: 32px; }
  .home-hero { min-height: 300px; padding: 24px 16px; }
  .home-hero h1 { font-size: 44px; }

  .panels, .services, .expert-list { grid-template-columns: 1fr; }
  .person-wide { grid-template-columns: 1fr; justify-items: center; }
  .person-wide img { width: 220px; }
  .team-grid { grid-template-columns: 1fr; }

  .feature { display: block; padding: 0 16px; }
  .feature-card { margin: -40px 16px 0; padding: 30px 20px; min-height: 0; }
  .feature-card h2 { font-size: 32px; }
  .tick-list.two-col { columns: 1; }

  .contact-cols { grid-template-columns: 1fr; gap: 16px; }
  .gallery img { height: 300px; }
  .what-we-do h2 { font-size: 36px; }
  h2.lined { gap: 16px; margin: 48px 0 28px; }
  .footer-contact { flex-direction: column; align-items: center; text-align: center; }
  .footer-contact span { border-left: 0; }
}

@media print {
  .site-nav, .nav-toggle, .skip-link { display: none !important; }
}

/* Accreditation marks (phase 1, 2026-11-30) */
.acc { display: inline-block; margin-left: .4em; padding: 0 .45em; border: 1px solid currentColor; border-radius: 3px; font-size: .72em; line-height: 1.5; vertical-align: .1em; color: #0b5d3b; }
.acc-note { margin-top: 1em; font-size: .85em; }
.acc-note .acc { margin-left: 0; }

.footer-entity { text-align: center; font-size: .8em; margin: .5em 0 0; opacity: .85; }
