/* ==========================================================================
   Halogen Pharmachem — Global Stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — derived from the Halogen Pharmachem mark */
  --navy-950: #060B33;
  --navy-900: #0B1354;
  --navy-800: #131B7A;
  --navy-700: #1E2AA0;
  --navy-600: #2C3AC4;
  --navy-100: #E7EAFB;
  --navy-50:  #F3F5FE;

  --teal:   #10A5A5;
  --teal-d: #0B7E7E;
  --coral:  #E8453C;
  --green:  #2FA84F;
  --gold:   #F2A93B;

  /* Neutrals */
  --ink:      #0E1428;
  --ink-2:    #2B3350;
  --muted:    #5C6784;
  --muted-2:  #8A93AB;
  --line:     #E3E8F2;
  --line-2:   #EEF1F8;
  --surface:  #F5F7FC;
  --surface-2:#FAFBFE;
  --white:    #FFFFFF;

  /* Type */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Layout */
  --wrap: 1200px;
  --wrap-narrow: 880px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11,19,84,.06), 0 2px 6px rgba(11,19,84,.05);
  --shadow-md: 0 4px 10px rgba(11,19,84,.07), 0 14px 34px rgba(11,19,84,.08);
  --shadow-lg: 0 10px 26px rgba(11,19,84,.10), 0 30px 70px rgba(11,19,84,.12);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-600); }
button { font: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.5rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
mark { background: rgba(242,169,59,.38); color: inherit; padding: 0 .12em; border-radius: 3px; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; background: var(--surface); padding: .1em .35em; border-radius: 4px; }
::selection { background: var(--navy-700); color: #fff; }

/* ---------- Utilities ---------- */
.wrap { width: min(100% - 2.6rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.6rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding: clamp(3.4rem, 7vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.4rem, 4.5vw, 4rem) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy-900); color: #C9D0F0; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.lead { font-size: 1.13rem; color: var(--muted); }
.section--navy .lead { color: #A9B3E0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display);
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal-d);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--teal); border-radius: 2px;
}
.section--navy .eyebrow { color: #5FD6D6; }
.section--navy .eyebrow::before { background: #5FD6D6; }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  padding: .82rem 1.55rem; border-radius: 100px; border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--navy-700); color: #fff; box-shadow: 0 6px 18px rgba(30,42,160,.26); }
.btn--primary:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(30,42,160,.32); }
.btn--accent { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(16,165,165,.28); }
.btn--accent:hover { background: var(--teal-d); color: #fff; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--navy-700); color: var(--navy-700); transform: translateY(-2px); }
.btn--on-navy { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--on-navy:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn--sm { padding: .55rem 1.05rem; font-size: .85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-950); color: #A9B3E0;
  font-size: .82rem; letter-spacing: .01em;
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar a { color: #C9D0F0; }
.topbar a:hover { color: #fff; }
.topbar__list { display: flex; gap: 1.4rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.topbar__list li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.topbar__tag { color: #5FD6D6; font-weight: 600; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 75px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: .05rem; list-style: none; margin: 0; padding: 0; }
.nav__menu > li { margin: 0; position: relative; }
.nav__menu > li > a {
  display: block; padding: .5rem .52rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: .88rem; font-weight: 600; color: var(--ink-2);
  transition: all .15s ease; white-space: nowrap;
}
.nav__menu > li > a:hover { background: var(--navy-50); color: var(--navy-700); }
.nav__menu > li > a.is-active { color: var(--navy-700); }
.nav__menu > li > a.is-active::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--teal); margin: .25rem .2rem -.35rem;
}
.nav__actions { display: flex; align-items: center; gap: .7rem; flex: none; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav__toggle span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1260px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    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: .6rem 1.3rem 1.4rem; box-shadow: var(--shadow-lg);
    max-height: 72vh; overflow-y: auto;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .18s ease;
  }
  .nav__menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__menu > li > a { padding: .85rem .4rem; border-bottom: 1px solid var(--line-2); border-radius: 0; font-size: 1rem; }
  .nav__menu > li > a.is-active::after { display: none; }
  .nav__actions .btn { display: none; }
  .topbar__list li:not(:last-child) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(16,165,165,.34), transparent 62%),
    radial-gradient(760px 420px at 8% 108%, rgba(232,69,60,.20), transparent 60%),
    linear-gradient(155deg, var(--navy-900) 0%, var(--navy-950) 58%, #050927 100%);
  color: #C9D0F0;
  padding: clamp(4rem, 8vw, 7.5rem) 0 clamp(3.5rem, 6vw, 6rem);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2 L60 19 L60 53 L30 70 L0 53 L0 19 Z M90 2 L120 19 L120 53 L90 70 L60 53 L60 19 Z M60 53 L90 70 L90 104 L60 121 L30 104 L30 70 Z' fill='none' stroke='%23ffffff' stroke-opacity='.075' stroke-width='1.1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero h1 .accent {
  background: linear-gradient(100deg, #5FD6D6, #7FE3B0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: 1.16rem; color: #A9B3E0; max-width: 58ch; margin-bottom: 2rem; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #C9D0F0; padding: .42rem 1rem .42rem .5rem; border-radius: 100px;
  font-size: .82rem; font-weight: 500; margin-bottom: 1.6rem;
}
.hero__badge b { background: var(--teal); color: #fff; padding: .16rem .6rem; border-radius: 100px; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }

.hero__card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 1.8rem; backdrop-filter: blur(8px);
}
.hero__card h3 { font-size: 1.05rem; margin-bottom: 1.2rem; }
.hero__cardlist { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.hero__cardlist li {
  display: flex; gap: .7rem; padding: .62rem 0; border-bottom: 1px dashed rgba(255,255,255,.14);
  font-size: .92rem; color: #C9D0F0;
}
.hero__cardlist li:last-child { border-bottom: 0; }
.hero__cardlist svg { width: 18px; height: 18px; flex: none; color: #5FD6D6; margin-top: 3px; }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Page header (inner pages) ---------- */
.pagehead {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 380px at 88% 0%, rgba(16,165,165,.28), transparent 62%),
    linear-gradient(140deg, var(--navy-900), var(--navy-950));
  color: #A9B3E0; padding: clamp(2.8rem, 5.5vw, 4.6rem) 0 clamp(2.6rem, 5vw, 4rem);
}
.pagehead__grid { position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2 L60 19 L60 53 L30 70 L0 53 L0 19 Z M90 2 L120 19 L120 53 L90 70 L60 53 L60 19 Z' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.1'/%3E%3C/svg%3E"); }
.pagehead__in { position: relative; max-width: 780px; }
.pagehead h1 { color: #fff; margin-bottom: .7rem; }
.pagehead p { font-size: 1.1rem; color: #A9B3E0; margin-bottom: 0; }
.crumbs { display: flex; gap: .5rem; align-items: center; font-size: .84rem; color: #8A93C8; margin-bottom: 1.1rem; flex-wrap: wrap; }
.crumbs a { color: #A9B3E0; }
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .5; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; transition: all .2s ease; height: 100%;
}
.card:hover { border-color: var(--navy-100); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card h3 { margin-bottom: .55rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy-700); margin-bottom: 1.1rem;
}
.card__icon svg { width: 23px; height: 23px; }
.card__icon--teal { background: rgba(16,165,165,.11); color: var(--teal-d); }
.card__icon--coral { background: rgba(232,69,60,.10); color: var(--coral); }
.card__icon--green { background: rgba(47,168,79,.11); color: var(--green); }
.card__icon--gold { background: rgba(242,169,59,.13); color: #B87A10; }

.card--flat { background: var(--surface-2); border-color: var(--line-2); }
.card--navy { background: rgba(255,255,255,.055); border-color: rgba(255,255,255,.13); color: #A9B3E0; }
.card--navy:hover { border-color: rgba(255,255,255,.28); transform: translateY(-3px); box-shadow: none; }
.card--navy .card__icon { background: rgba(255,255,255,.1); color: #5FD6D6; }

.card--num { position: relative; padding-top: 2.6rem; }
.card--num .num {
  position: absolute; top: 1.5rem; left: 1.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em;
  color: var(--teal-d);
}

/* Category card (products) */
.catcard {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: all .2s ease; position: relative; overflow: hidden; height: 100%;
}
.catcard::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--navy-700));
  transform: scaleY(0); transform-origin: top; transition: transform .22s ease;
}
.catcard:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--navy-100); }
.catcard:hover::before { transform: scaleY(1); }
.catcard__sym {
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--navy-50); color: var(--accent, var(--navy-700)); margin-bottom: 1.05rem;
}
.catcard h3 { font-size: 1.13rem; margin-bottom: .45rem; color: var(--ink); }
.catcard p { font-size: .93rem; color: var(--muted); margin-bottom: .9rem; }
.catcard__count { font-size: .8rem; font-weight: 600; color: var(--accent, var(--navy-700)); font-family: var(--font-display); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: #fff; padding: 1.9rem 1.4rem; text-align: center; }
.stat__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--navy-700); line-height: 1; letter-spacing: -.03em; }
.stat__l { font-size: .84rem; color: var(--muted); margin-top: .55rem; letter-spacing: .02em; }
.section--navy .stats { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.14); }
.section--navy .stat { background: var(--navy-900); }
.section--navy .stat__n { color: #5FD6D6; }
.section--navy .stat__l { color: #A9B3E0; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Split (image/text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }

.figure {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  aspect-ratio: 4/3; display: grid; place-items: center; box-shadow: var(--shadow-lg);
}
.figure svg { width: 78%; height: auto; }
.figure__label {
  position: absolute; left: 1.2rem; bottom: 1.2rem; background: rgba(255,255,255,.94);
  border-radius: 100px; padding: .38rem 1rem; font-size: .78rem; font-weight: 600;
  font-family: var(--font-display); color: var(--navy-800);
}

/* ---------- Checklist ---------- */
.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .7rem; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; margin-top: 4px;
  background: rgba(47,168,79,.13) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232FA84F' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section--navy .checks li::before { background-color: rgba(95,214,214,.16); }

/* ---------- Pills / tags ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-800);
  padding: .35rem .85rem; border-radius: 100px; font-size: .82rem; font-weight: 500; margin: 0;
}
.pill--teal { background: rgba(16,165,165,.09); border-color: rgba(16,165,165,.22); color: var(--teal-d); }
.pill--green { background: rgba(47,168,79,.09); border-color: rgba(47,168,79,.22); color: #1E7A38; }
.pill--gold { background: rgba(242,169,59,.12); border-color: rgba(242,169,59,.28); color: #96620A; }
.section--navy .pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #C9D0F0; }

/* ---------- Certification strip ---------- */
.certs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
@media (max-width: 900px) { .certs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .certs { grid-template-columns: repeat(2, 1fr); } }
.cert {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  padding: 1.15rem .7rem; text-align: center; transition: all .18s ease;
}
.cert:hover { border-color: var(--navy-100); box-shadow: var(--shadow-sm); }
.cert__n { font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--navy-800); }
.cert__d { font-size: .74rem; color: var(--muted-2); margin-top: .2rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.2rem; margin: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(var(--navy-100), var(--teal), var(--navy-100)); }
.timeline li { position: relative; margin-bottom: 2rem; }
.timeline li::before {
  content: ""; position: absolute; left: -2.2rem; top: .38rem; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--navy-700);
}
.timeline li:last-child { margin-bottom: 0; }
.timeline__y { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .1em; color: var(--teal-d); display: block; margin-bottom: .2rem; }
.timeline__t { font-family: var(--font-display); font-weight: 600; color: var(--ink); display: block; margin-bottom: .25rem; }
.timeline p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- Product catalogue ---------- */
.catalog-bar {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: .8rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow-sm); margin-bottom: 1.4rem;
}
@media (max-width: 860px) { .catalog-bar { grid-template-columns: 1fr 1fr; } .catalog-bar .search { grid-column: 1 / -1; } }
.search { position: relative; }
.search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-2); }
input[type="text"], input[type="search"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .72rem .95rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.search input { padding-left: 2.6rem; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(44,58,196,.13); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235C6784' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 15px; padding-right: 2.4rem; }
textarea { resize: vertical; min-height: 128px; }

.alpha { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1.4rem; }
.alpha button {
  min-width: 33px; padding: .32rem .45rem; border: 1px solid var(--line); background: #fff;
  border-radius: 7px; font-size: .82rem; font-weight: 600; font-family: var(--font-display);
  color: var(--muted); cursor: pointer; transition: all .15s ease;
}
.alpha button:hover { border-color: var(--navy-600); color: var(--navy-700); }
.alpha button.is-active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.alpha button:disabled { opacity: .32; cursor: not-allowed; }

.result-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; font-size: .9rem; color: var(--muted); }

.ptable-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.ptable { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ptable thead th {
  background: var(--surface); text-align: left; padding: .9rem 1.1rem;
  font-family: var(--font-display); font-size: .76rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ptable tbody td { padding: .95rem 1.1rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: var(--surface-2); }
.ptable .pname { font-weight: 600; color: var(--ink); font-family: var(--font-display); font-size: .95rem; }
.ptable .psyn { font-size: .8rem; color: var(--muted-2); display: block; margin-top: .12rem; }
.ptable .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
.ptable .cat-tag { font-size: .76rem; font-weight: 600; padding: .22rem .6rem; border-radius: 100px; white-space: nowrap; display: inline-block; }
.ptable td.act { text-align: right; white-space: nowrap; }
@media (max-width: 820px) {
  .ptable thead { display: none; }
  .ptable tbody tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem .8rem; padding: .95rem 1.05rem; border-bottom: 1px solid var(--line-2); }
  .ptable tbody td { border: 0; padding: 0; line-height: 1.45; }
  .ptable tbody td.act { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
  .ptable tbody td.mono::before {
    content: attr(data-label) " ";
    font-family: var(--font-display); font-size: .68rem; font-weight: 700;
    letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); margin-right: .4rem;
  }
  .ptable tbody td:nth-child(4) { margin-top: .3rem; }
}

.empty { padding: 3.5rem 1rem; text-align: center; color: var(--muted); }
.empty svg { width: 42px; height: 42px; color: var(--muted-2); margin: 0 auto 1rem; }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__btn {
  width: 100%; text-align: left; background: #fff; border: 0; cursor: pointer;
  padding: 1.15rem 1.4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink);
}
.acc__btn:hover { background: var(--surface-2); }
.acc__btn::after { content: "+"; font-size: 1.35rem; color: var(--navy-700); font-weight: 400; line-height: 1; flex: none; transition: transform .2s ease; }
.acc__btn[aria-expanded="true"]::after { content: "−"; }
.acc__panel { padding: 0 1.4rem 1.3rem; color: var(--muted); font-size: .96rem; }
.acc__panel[hidden] { display: none; }
.acc__panel p:last-child, .acc__panel ul:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.ctaband {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-950) 70%);
  border-radius: var(--radius-lg); padding: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #C9D0F0; position: relative; overflow: hidden;
}
.ctaband::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(16,165,165,.35), transparent 68%); pointer-events: none;
}
.ctaband__in { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.ctaband h2 { color: #fff; margin-bottom: .5rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.ctaband p { margin: 0; color: #A9B3E0; max-width: 54ch; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink-2); margin-bottom: .38rem; font-family: var(--font-display); }
.field .req { color: var(--coral); }
.field .hint { font-size: .8rem; color: var(--muted-2); margin-top: .35rem; }
.checkline { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.checkline input { width: 17px; height: 17px; margin-top: 3px; flex: none; accent-color: var(--navy-700); }
.form-note { font-size: .84rem; color: var(--muted-2); }
.formmsg { padding: .95rem 1.15rem; border-radius: var(--radius-sm); font-size: .92rem; margin-top: 1rem; }
.formmsg--ok { background: rgba(47,168,79,.09); border: 1px solid rgba(47,168,79,.28); color: #1E7A38; }

/* ---------- Contact blocks ---------- */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; height: 100%; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-card .role { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-d); font-weight: 700; font-family: var(--font-display); margin-bottom: .9rem; }
.contact-card address { font-style: normal; font-size: .93rem; color: var(--muted); line-height: 1.7; }
.contact-card a { font-weight: 500; }

.iconrow { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.iconrow svg { width: 19px; height: 19px; color: var(--navy-700); flex: none; margin-top: 3px; }
.iconrow div { font-size: .94rem; }
.iconrow strong { display: block; font-family: var(--font-display); font-size: .82rem; color: var(--ink); margin-bottom: .1rem; }

/* ---------- Job listing ---------- */
.job { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; background: #fff; transition: all .2s ease; }
.job:hover { box-shadow: var(--shadow-md); border-color: var(--navy-100); }
.job__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.job h3 { margin: 0; font-size: 1.1rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: .8rem 0 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8A93C8; font-size: .92rem; padding: clamp(3rem, 5vw, 4.5rem) 0 0; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.15rem; font-weight: 700; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #A9B3E0; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 56px; background: #fff; padding: .45rem .7rem; border-radius: 9px; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 40ch; margin-bottom: 1.2rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.4rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.social { display: flex; gap: .55rem; }
.social a {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); transition: all .18s ease;
}
.social a:hover { background: var(--teal); border-color: var(--teal); }
.social svg { width: 17px; height: 17px; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy-700); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .22s ease;
}
.totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--navy-800); }
.totop svg { width: 19px; height: 19px; }

/* ---------- Reveal on scroll ----------
   Hidden only when JavaScript is present (the <head> script adds .js).
   A 2.5s failsafe adds .reveal-fallback so content can never stay invisible
   if main.js fails to load or the observer never fires. */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
html.js .reveal.is-in,
html.reveal-fallback .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .topbar, .site-footer, .totop, .ctaband, .catalog-bar, .alpha { display: none !important; }
  body { font-size: 11pt; }
  .hero, .pagehead { background: #fff !important; color: #000; }
  .hero h1, .pagehead h1 { color: #000; }
}

/* ---------- Enquiry panel (contact page) --------------------------------
   The contact form was replaced by a direct mailto call to action, so the
   panel has to carry the emphasis the form used to. Reuses .ctaband. */
.ctaband--enquire { height: 100%; display: flex; flex-direction: column; justify-content: center; }
.ctaband--enquire h3 {
  color: #fff; margin: 0 0 .7rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2;
}
.eyebrow--on-navy { color: #5FD6D6; }
.eyebrow--on-navy::before { background: #5FD6D6; }
.ctaband__mail { margin: 1.5rem 0 0 !important; font-family: var(--font-display); font-size: .93rem; }
.ctaband__mail a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 1px; }
.ctaband__mail a:hover { border-bottom-color: #fff; }

/* ---------- Photography ------------------------------------------------- */
/* A .figure that holds a real photograph rather than an inline SVG. */
.figure--photo { background: var(--navy-950); }
.figure--photo picture, .figure--photo img {
  display: block; width: 100%; height: 100%;
}
.figure--photo img { object-fit: cover; object-position: center; }
/* Portrait photographs in a 50/50 split become monoliths at desktop width
   (564px wide x 752px tall), so the box is capped and the photo crops. */
.figure--portrait { aspect-ratio: 3 / 4; max-height: 560px; }
.figure--wide     { aspect-ratio: 16 / 9; }

/* Slight navy wash so photographs sit in the brand palette rather than
   fighting it, and so the white .figure__label pill stays legible. */
.figure--photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6,11,51,.10) 0%, rgba(6,11,51,0) 42%, rgba(6,11,51,.38) 100%);
}
.figure--photo .figure__label { z-index: 2; }

/* A row of supporting photographs (used on About and Careers). */
.photo-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.photo-row figure { margin: 0; }
.photo-row .shot {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--navy-950); box-shadow: var(--shadow-md);
}
.photo-row .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-row figcaption {
  margin-top: .6rem; font-size: .82rem; color: var(--muted); line-height: 1.45;
}
@media (max-width: 780px) {
  .photo-row { grid-template-columns: 1fr; gap: 1.4rem; }
  .photo-row .shot { aspect-ratio: 4 / 3; }
}

/* Full-bleed photographic band with the headline sitting over it. */
.photo-band {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: clamp(300px, 42vw, 460px); display: grid; align-items: end;
  background: var(--navy-950);
}
.photo-band > picture { display: contents; }
.photo-band > img,
.photo-band > picture > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  /* bias upward so the estate signage survives the crop on wide viewports */
  object-fit: cover; object-position: center 24%; z-index: -2;
}
.photo-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6,11,51,.88) 0%, rgba(6,11,51,.66) 46%, rgba(6,11,51,.30) 100%);
}
.photo-band__in { padding: 3rem 0 2.6rem; color: #fff; max-width: 44rem; }
.photo-band__in h2 { color: #fff; margin: .4rem 0 .7rem; }
.photo-band__in p  { color: rgba(255,255,255,.86); margin: 0; }
.photo-band .eyebrow { color: #5FD6D6; }
@media (max-width: 640px) {
  .photo-band::before {
    background: linear-gradient(180deg, rgba(6,11,51,.55) 0%, rgba(6,11,51,.88) 62%);
  }
}

/* ── Narrow phones (360px and below) ───────────────────────────────────────
   Two things outgrow a 360px viewport: the header (logo + hamburger + wrap
   padding came to 356px against 345px of room), and any long single-line
   button, because .btn is white-space:nowrap by default. */
/* Long unbreakable tokens (the email address) must be allowed to wrap. */
a[href^="mailto:"], a[href^="tel:"] { overflow-wrap: anywhere; }
p, li, dd, figcaption { overflow-wrap: break-word; }

@media (max-width: 430px) {
  /* fluid so the header still fits a 320px screen */
  .brand img { height: clamp(20px, 5.6vw, 26px); }
  .btn { white-space: normal; text-align: center; padding-left: 1.15rem; padding-right: 1.15rem; }
  .btn-row .btn { width: 100%; }
  /* "anywhere" also shrinks min-content, which "break-word" does not */
  li, td, th, dd, p, span { overflow-wrap: anywhere; }
}

/* ── Mobile overflow safety net ────────────────────────────────────────────
   Grid and flex children default to min-width:auto, so a long word, a wide
   SVG or a nowrap cell can push a track past the viewport. Zero-specificity
   :where() so any real rule still wins. */
:where(.split, .grid, .grid--2, .grid--3, .grid--4, .split__media, .cards, .row, .flex) > * { min-width: 0; }
:where(.split, .grid, .cards, .row, .flex) > * > :where(svg, img, table) { max-width: 100%; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  table { display: block; overflow-x: auto; max-width: 100%; }
}
