/* ==========================================================
   Delta Pharma (Pvt.) Limited — website styles
   Colours: Delta Pharma Colour & Typography Brand Kit
   Fonts:   Delta Pharma Premium Website Font Kit
            (Montserrat headings / Open Sans body)
   ========================================================== */

:root {
  /* Typography */
  --font-heading: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;

  /* Core palette */
  --brand-navy: #102F67;   /* headings, navigation, formal elements */
  --brand-blue: #087FBD;   /* links, buttons, section markers */
  --brand-cyan: #20B6D2;   /* limited innovation accents */
  --brand-teal: #12A6A0;   /* secondary accent, icons */
  --brand-slate: #687784;  /* captions, metadata */
  --brand-mist: #F3F7FA;   /* panels, subtle backgrounds */
  --brand-ink: #1E2B39;    /* body text */
  --white: #FFFFFF;

  /* Derived tones */
  --navy-deep: #0B2350;
  --blue-dark: #066A9E;
  --line: #DCE5EC;

  /* Layout */
  --container: 1180px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 47, 103, 0.06), 0 2px 8px rgba(16, 47, 103, 0.05);
  --shadow-md: 0 10px 30px rgba(16, 47, 103, 0.10);
  --header-h: 120px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--brand-ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 900px) {
  body { font-size: 17px; }
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(20px, 2vw, 22px); font-weight: 600; line-height: 1.25; }

p { margin: 0 0 1em; }

a { color: var(--brand-blue); }
a:hover { color: var(--blue-dark); }

small, .caption, .meta {
  font-size: 14px;
  line-height: 1.45;
  color: var(--brand-slate);
}

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--brand-navy);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  font-family: var(--font-heading);
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  padding: 14px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { transform: translateY(-1px); }

.button-primary { background: var(--brand-blue); color: var(--white); }
.button-primary:hover { background: var(--brand-navy); color: var(--white); }

.button-ghost { background: transparent; color: var(--brand-navy); border-color: var(--brand-navy); }
.button-ghost:hover { background: var(--brand-navy); color: var(--white); }

.text-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand { display: inline-flex; border-radius: 8px; transition: opacity .2s ease, transform .2s ease; }
.brand:hover { opacity: 0.85; }
.brand:active { transform: scale(0.98); }
.brand img { height: 102px; width: auto; mix-blend-mode: multiply; }
.hero-card img, .footer-logo img { mix-blend-mode: multiply; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-navy);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--brand-blue); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.nav-cta { padding: 11px 22px; font-size: 14px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--brand-navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 899px) {
  :root { --header-h: 100px; }
  .brand img { height: 87px; }
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav-link { display: block; padding: 14px 0; font-size: 16px; }
  .nav-link::after { display: none; }
  .nav-cta { width: 100%; justify-content: center; padding: 14px 22px; font-size: 15px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(32, 182, 210, 0.10), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--brand-mist) 100%);
  padding: 72px 0 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow, .section-marker {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 16px;
}

.lead {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--brand-ink);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 480px;
}

.hero-ring {
  position: absolute;
  width: 115%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(18, 166, 160, 0.25);
  border-right-color: rgba(18, 166, 160, 0.6);
  border-top-color: rgba(8, 127, 189, 0.35);
  z-index: 0;
}

@media (max-width: 899px) {
  .hero { padding: 48px 0 88px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { padding: 28px; max-width: 400px; }
  .hero-ring { width: 100%; max-width: 440px; }
}

@media (max-width: 480px) {
  .hero-actions .button { width: 100%; justify-content: center; }
}

/* ---------- Values strip ---------- */
.values {
  position: relative;
  margin-top: -48px;
  z-index: 2;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  padding: 0;
}

.value {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 28px 28px;
}
.value + .value { border-left: 1px solid var(--line); }
.value h3 { margin-bottom: 4px; font-size: 19px; }
.value p { margin: 0; font-size: 15px; color: var(--brand-slate); }

.value-icon {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(18, 166, 160, 0.10);
}
.value-icon svg { width: 22px; height: 22px; fill: var(--brand-teal); }

@media (max-width: 899px) {
  .values-grid { grid-template-columns: 1fr; }
  .value + .value { border-left: 0; border-top: 1px solid var(--line); }
  .container.values-grid { width: calc(100% - 40px); padding: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-mist { background: var(--brand-mist); }

.section-navy {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(8, 127, 189, 0.35), transparent 60%),
    var(--brand-navy);
  color: rgba(255, 255, 255, 0.86);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--brand-slate); }
.section-head-light h2 { color: var(--white); }
.section-head-light p:last-child { color: rgba(255, 255, 255, 0.78); }
.section-head-light .section-marker { color: #7FD3E3; }

@media (max-width: 899px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* About feature list */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.feature-list li {
  background: var(--brand-mist);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  display: grid;
  gap: 4px;
}
.feature-list li:nth-child(even) { border-left-color: var(--brand-teal); }
.feature-list strong {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--brand-navy);
  font-size: 17px;
}
.feature-list span { color: var(--brand-slate); font-size: 15px; }

/* Quality process */
.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
}
.process li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
  position: relative;
}
.process p { margin: 0; color: var(--brand-slate); font-size: 15px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.process li:last-child .step-num { background: var(--brand-teal); }

@media (max-width: 999px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

/* Product cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}
.card h3 { color: var(--brand-navy); }
.card p { margin: 0; color: var(--brand-slate); font-size: 15px; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(8, 127, 189, 0.10);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; fill: var(--brand-blue); }

@media (max-width: 999px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-item {
  border-top: 3px solid var(--brand-teal);
  padding-top: 24px;
}
.why-item h3 { color: var(--white); }
.why-item p { margin: 0; font-size: 15px; }
@media (max-width: 899px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.contact-list li { display: grid; gap: 2px; }
.contact-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-slate);
}
.contact-list a { text-decoration: none; font-weight: 600; }

.contact-form {
  background: var(--brand-mist);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--line);
}
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-navy);
}
.optional { font-weight: 400; color: var(--brand-slate); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;
  color: var(--brand-ink);
  background: var(--white);
  border: 1px solid #C8D4DE;
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(8, 127, 189, 0.18);
}
.field [aria-invalid="true"] { border-color: #C0392B; }
.field textarea { resize: vertical; min-height: 120px; }
.form-status { margin: 14px 0 0; min-height: 1.45em; }
.form-status.is-error { color: #B03A2E; }
.form-status.is-success { color: var(--brand-teal); }

@media (max-width: 560px) {
  .contact-form { padding: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form .button { width: 100%; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-mist);
  border-top: 1px solid var(--line);
  padding: 56px 0 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand p {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.footer-address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--brand-slate);
  margin-top: 8px;
}
.footer-address a { color: var(--brand-slate); text-decoration: none; }
.footer-address a:hover { color: var(--brand-blue); }
.footer-logo {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  border: 1px solid var(--line);
}
.footer-logo img { height: 72px; width: auto; }

.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-navy);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--brand-blue); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
}
.back-to-top { font-size: 14px; text-decoration: none; font-weight: 600; }

/* ---------- Product catalogue ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.products-head .section-head { margin-bottom: 0; }
.product-search { position: relative; width: min(100%, 340px); }
.product-search svg {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: none; stroke: var(--brand-slate); stroke-width: 2;
}
.product-search input {
  font: inherit; font-size: 15px; width: 100%;
  padding: 13px 16px 13px 44px;
  border: 1px solid #C8D4DE; border-radius: 999px;
  background: var(--white); color: var(--brand-ink);
}
.product-search input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(8, 127, 189, 0.18); }

.category-cards {
  display: grid;
  grid-template-columns: 0.8fr repeat(4, 1fr);
  gap: 16px;
}
.category-card {
  font: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--brand-ink);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.category-card .card-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 12px; }
.category-card .card-icon svg { width: 22px; height: 22px; }
.category-name { font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--brand-navy); }
.category-count { font-size: 14px; color: var(--brand-blue); font-weight: 600; }
.category-desc { font-size: 14px; line-height: 1.45; color: var(--brand-slate); margin-top: 6px; }
.category-card.is-active { background: var(--brand-navy); border-color: var(--brand-navy); }
.category-card.is-active .category-name { color: var(--white); }
.category-card.is-active .category-count { color: #7FD3E3; }
.category-card.is-active .category-desc { color: rgba(255, 255, 255, 0.75); }
.category-card.is-active .card-icon { background: rgba(255, 255, 255, 0.12); }
.category-card.is-active .card-icon svg { fill: #7FD3E3; }

.product-group { margin-top: 56px; }
.product-group-title { display: flex; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--line); }
.product-group-title span { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--brand-slate); letter-spacing: 0; }

.product-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product {
  font: inherit; text-align: left; color: inherit; cursor: pointer;
  width: 100%; height: 100%; padding: 0;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.product:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.product-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; background: var(--brand-mist);
}
.product-media { overflow: hidden; }
.product-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-more {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(16, 47, 103, 0.88); color: var(--white);
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
}
.product-noimg {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 16px; text-align: center; color: var(--white);
  background: linear-gradient(135deg, var(--brand-navy) 0%, #0B4A86 60%, var(--brand-blue) 100%);
}
.product-noimg svg { width: 40px; height: 40px; fill: #7FD3E3; }
.product-noimg b { font-family: var(--font-heading); font-size: 18px; line-height: 1.2; }
.product-noimg small { color: rgba(255, 255, 255, 0.72); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.product-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.product-form { font-family: var(--font-heading); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-teal); }
.product-name { font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--brand-navy); }
.product-generic { font-size: 14px; line-height: 1.45; color: var(--brand-ink); }
.product-meta {
  margin-top: auto; padding-top: 12px;
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 13px; color: var(--brand-slate); font-variant-numeric: tabular-nums;
}
.product-empty { margin-top: 40px; }
.product-note {
  margin: 48px 0 0; padding: 16px 20px;
  background: var(--brand-mist); border-left: 4px solid var(--brand-teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px; color: var(--brand-slate);
}

/* Product popup */
.product-dialog, .licence-dialog {
  border: 0; padding: 0; border-radius: var(--radius-lg);
  width: min(940px, calc(100% - 32px)); max-height: calc(100% - 48px);
  box-shadow: 0 30px 80px -20px rgba(11, 35, 80, 0.55);
  color: var(--brand-ink);
}
.product-dialog::backdrop, .licence-dialog::backdrop { background: rgba(11, 35, 80, 0.6); }
.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; }
.pd-layout > * { min-width: 0; }
.pd-gallery { background: var(--brand-mist); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pd-main { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pd-main .product-noimg { border-radius: var(--radius); }
.pd-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-thumbs button { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--white); cursor: pointer; }
.pd-thumbs button[aria-current="true"] { border-color: var(--brand-blue); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { position: relative; padding: 32px 32px 28px; }
.pd-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); color: var(--brand-navy);
  font-size: 24px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.pd-close:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.pd-category { font-family: var(--font-heading); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-blue); margin: 0 0 6px; }
.pd-info h3 { font-size: clamp(22px, 2.4vw, 28px); padding-right: 44px; margin-bottom: 4px; }
.pd-class { color: var(--brand-slate); font-size: 15px; margin-bottom: 20px; }
.pd-label { font-family: var(--font-heading); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-slate); margin: 0 0 6px; }
.pd-composition { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.pd-composition li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pd-composition li span:last-child { font-weight: 600; color: var(--brand-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pd-specs div { background: var(--white); padding: 10px 14px; }
.pd-specs dt { font-size: 12px; color: var(--brand-slate); }
.pd-specs dd { margin: 2px 0 0; font-weight: 600; color: var(--brand-navy); font-variant-numeric: tabular-nums; }
.pd-foot { margin: 16px 0 20px; }
.pd-enquire { font-size: 14px; padding: 12px 20px; }

/* Licence */
.licence-block {
  margin-top: 56px;
  display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px;
}
.licence-figure { margin: 0; }
.licence-open {
  display: block; width: 100%; padding: 8px; cursor: zoom-in;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--shadow-md); transition: transform .2s ease;
}
.licence-open:hover { transform: translateY(-3px); }
.licence-figure figcaption { margin-top: 12px; text-align: center; }
.licence-copy p { color: var(--brand-slate); }
.licence-facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.licence-facts dt { font-family: var(--font-heading); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-slate); }
.licence-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--brand-navy); }
.licence-dialog { width: min(760px, calc(100% - 32px)); background: var(--white); padding: 16px; }
.licence-dialog .pd-close { top: 24px; right: 24px; }

@media (max-width: 1099px) {
  .category-cards { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .category-cards { grid-template-columns: repeat(2, 1fr); }
  .category-card:first-child { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; }
  .category-card:first-child .card-icon { margin-bottom: 0; }
  .category-card:first-child .category-count { margin-left: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .pd-layout { grid-template-columns: 1fr; }
  .pd-main { aspect-ratio: 4 / 3; }
  .pd-info { padding: 24px 20px; }
  .licence-block { grid-template-columns: 1fr; gap: 28px; padding: 24px; }
  .licence-figure { max-width: 360px; }
}
@media (max-width: 560px) {
  .category-card { padding: 16px; }
  .category-desc { display: none; }
  .category-name { font-size: 15px; }
  .product-body { padding: 12px 12px 14px; }
  .product-name { font-size: 15px; }
  .product-generic { font-size: 13px; }
  .product-meta { flex-direction: column; gap: 0; font-size: 12px; }
  .product-form { font-size: 10px; }
  .product-noimg b { font-size: 15px; }
  .product-noimg svg { width: 32px; height: 32px; }
  .pd-specs { grid-template-columns: 1fr; }
  .pd-enquire { width: 100%; justify-content: center; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Leadership — Chairman profile
   ========================================================== */
.leader {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  background: var(--brand-mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.leader-portrait { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.leader-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #F7F5F0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.leader-frame::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue) 60%, var(--brand-teal));
}
.leader-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.leader-portrait figcaption { margin-top: 18px; }
.leader-portrait figcaption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--brand-navy);
  line-height: 1.25;
}
.leader-portrait figcaption span { font-size: 14px; color: var(--brand-slate); }
.leader-bio > h2 { margin-bottom: 18px; }
.leader-bio p { max-width: 68ch; }
.leader-intro { font-size: 18px; color: var(--brand-navy); }
.leader-roles { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.leader-roles li {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.3;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--brand-navy);
}
.leader-focus { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.leader-focus h3 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-slate);
  margin: 0 0 12px;
}
.leader-focus ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.leader-focus li {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 4px;
  background: var(--white);
  border-left: 3px solid var(--brand-teal);
  color: var(--brand-navy);
}
@media (max-width: 899px) {
  .leader { grid-template-columns: 1fr; gap: 32px; padding: 28px 22px; }
  .leader-portrait { position: static; max-width: 340px; }
}
@media (max-width: 480px) {
  .leader { padding: 22px 16px; border-radius: var(--radius); }
  .leader-intro { font-size: 17px; }
}

/* Licence — text-only block in Quality; document behind footer verification link */
.licence-block-text { grid-template-columns: 1fr; }
.footer-bottom-links { display: inline-flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.doc-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 12px; color: var(--brand-slate); opacity: 0.7;
}
.doc-link:hover { opacity: 1; text-decoration: underline; }
#doc-dialog { width: min(560px, calc(100% - 32px)); padding: 32px 28px 28px; }
#doc-dialog:has(.doc-step[data-step="3"]:not([hidden])) { width: min(760px, calc(100% - 32px)); padding: 16px; }
.doc-step h3 { margin: 0 0 12px; padding-right: 40px; }
.doc-step p { color: var(--brand-ink); }
.doc-step .button { margin-top: 8px; }
.doc-view img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }

   Product pages (/products/ and /products/<name>/)
   ========================================================== */
.product-pages-link { margin: 40px 0 0; }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.pd-page { font-size: 14px; }

.page-intro {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(32, 182, 210, 0.10), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, var(--brand-mist) 100%);
  padding: 40px 0 48px;
}
.page-intro h1 { margin-bottom: 8px; }
.page-intro .lead { color: var(--brand-slate); }
.breadcrumb { font-size: 14px; color: var(--brand-slate); margin-bottom: 20px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--brand-slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-blue); text-decoration: underline; }

a.product { text-decoration: none; }
a.product:hover .product-name { color: var(--brand-blue); }
.product-catalogue-static .product-group:first-child { margin-top: 0; }
.category-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.category-jump a {
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--brand-navy); text-decoration: none;
}
.category-jump a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.pp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pp-layout > * { min-width: 0; }
.pp-gallery { display: grid; gap: 12px; }
.pp-main {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--brand-mist); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.pp-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pp-main .product-noimg { border-radius: var(--radius-lg); }
.pp-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pp-thumbs a {
  position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--brand-mist); border: 1px solid var(--line); border-radius: var(--radius);
}
.pp-thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pp-info .pd-category { margin-bottom: 4px; }
.pp-info h2 { font-size: clamp(18px, 1.8vw, 20px); margin: 28px 0 10px; }
.pp-info .pd-specs { margin-bottom: 24px; }
.pp-aka { font-size: 14px; color: var(--brand-slate); margin: -12px 0 20px; }
.pp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.pp-cta .button { font-size: 15px; padding: 12px 20px; }
.pp-related h2 { margin-bottom: 24px; }

@media (max-width: 899px) {
  .pp-layout { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .pp-cta .button { width: 100%; justify-content: center; }
}

/* Not-found page */
.notfound { padding: 96px 0; text-align: center; }
.notfound .hero-actions { justify-content: center; }
