
:root {
  --navy: #0f2742;
  --navy-2: #163b63;
  --blue: #246aa3;
  --cyan: #1895a7;
  --olive: #667452;
  --gold: #b9904d;
  --text: #172033;
  --muted: #667085;
  --soft: #f3f6fa;
  --soft-2: #eaf0f6;
  --white: #ffffff;
  --line: #d9e2ec;
  --shadow: 0 24px 70px rgba(15, 39, 66, 0.14);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.landing-body { overflow: hidden; min-height: 100vh; }
.landing {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy);
}
.landing-panel {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: end;
  padding: clamp(28px, 5vw, 70px);
  color: var(--white);
  isolation: isolate;
}
.landing-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--panel-image) center/cover;
  transform: scale(1.04);
  transition: transform 0.7s ease;
  z-index: -2;
}
.landing-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15,39,66,0.12), rgba(15,39,66,0.78)),
    linear-gradient(90deg, rgba(15,39,66,0.50), rgba(15,39,66,0.12));
  z-index: -1;
}
.landing-panel:hover::before { transform: scale(1.09); }
.landing-panel.medical { --panel-image: url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1500&q=85"); }
.landing-panel.defence { --panel-image: url("../img/defence-ship-engine-hangar.jpeg"); }

.landing-center {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  display: grid;
  place-items: center;
}
.landing-logo {
  width: clamp(170px, 20vw, 260px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(185,144,77,0.7);
  box-shadow: 0 24px 80px rgba(0,0,0,0.24);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--navy);
}
.landing-logo strong {
  display: block;
  font-size: clamp(44px, 6vw, 84px);
  letter-spacing: -0.08em;
  line-height: 1;
}
.landing-logo span {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.25em;
  font-weight: 900;
}
.landing-content {
  max-width: 560px;
  position: relative;
  z-index: 2;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f3d59b;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 16px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
.landing h1 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin-bottom: 18px;
}
.landing p {
  color: rgba(255,255,255,0.78);
  font-size: clamp(16px, 1.6vw, 20px);
  max-width: 480px;
  margin-bottom: 30px;
}
.landing-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--white);
  color: var(--navy);
  font-weight: 900;
  transition: 0.2s ease;
}
.landing-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.24);
}
.landing-top {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 6;
  color: var(--white);
  padding: 24px clamp(24px, 4vw, 54px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.landing-top .name {
  font-weight: 900;
  letter-spacing: 0.12em;
}
.landing-top .sub {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}

.topbar {
  height: 38px;
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  display: flex;
  align-items: center;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 20px; }
.site-header {
  position: fixed;
  top: 38px;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.brand-mark {
  width: 46px;
  height: 46px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  font-size: 13px;
  box-shadow: 0 0 0 6px rgba(185,144,77,0.12);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 10px 16px;
  border-radius: 999px;
}
.mobile-menu-btn { display: none; }

.page-hero {
  min-height: 100vh;
  padding: 150px 0 70px;
  display: flex;
  align-items: stretch;
  background: linear-gradient(180deg, #f9fbfd 0%, #eef3f8 100%);
}
.page-hero-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: calc(100vh - 220px);
  border-radius: 34px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.page-hero-content {
  padding: clamp(34px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.page-hero-image {
  min-height: 560px;
  background: var(--hero-image) center/cover;
  position: relative;
}
.page-hero-image::after {
  content: attr(data-label);
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  padding: 18px 22px;
  border-radius: 22px;
  color: var(--white);
  background: rgba(15,39,66,0.76);
  backdrop-filter: blur(12px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}
.medical-hero { --hero-image: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(15,39,66,0.12)), url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1700&q=85"); }
.defence-hero { --hero-image: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(15,39,66,0.12)), url("../img/defence-ship-engine-hangar.jpeg"); }

.page-hero h1 {
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--navy);
  margin-bottom: 24px;
}
.lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  max-width: 670px;
  margin-bottom: 32px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--line);
  transition: 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(15,39,66,0.16); }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-outline { background: var(--white); color: var(--navy); }

section { padding: 92px 0; }
.section-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 34px;
}
.section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 10px;
}
h2 {
  color: var(--navy);
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.04em;
}
.section-copy { max-width: 560px; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  align-items: stretch;
}
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(26px, 4vw, 44px);
  box-shadow: 0 12px 34px rgba(15,39,66,0.06);
}
.panel h3 { color: var(--navy); font-size: 26px; margin-bottom: 12px; }
.panel p { color: var(--muted); margin-bottom: 14px; }
.image-card {
  min-height: 430px;
  border-radius: var(--radius);
  background: var(--card-image) center/cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.medical-card-image { --card-image: url("https://images.unsplash.com/photo-1581093458791-9d15482442f6?auto=format&fit=crop&w=1200&q=85"); }
.social-card-image { --card-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=85"); }
.defence-card-image { --card-image: url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1200&q=85"); }

.info-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.info-box {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.info-box span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.info-box strong { color: var(--navy); font-size: 15px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.brand-card, .certificate-card, .reference-card {
  min-height: 150px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 26px;
  box-shadow: 0 12px 34px rgba(15,39,66,0.06);
}
.brand-card {
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 32px;
  font-weight: 950;
  letter-spacing: 0.08em;
}
.certificate-card strong, .reference-card strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 8px;
}
.certificate-card span, .reference-card span { color: var(--muted); }
.reference-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}
.contact-box {
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  padding: clamp(28px, 4vw, 44px);
}
.contact-box p { color: rgba(255,255,255,0.74); margin-top: 12px; }
.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: rgba(255,255,255,0.84);
}
.form {
  display: grid;
  gap: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow);
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
  color: var(--text);
  padding: 15px 16px;
  font: inherit;
  outline: none;
}
textarea { min-height: 132px; resize: vertical; }

.footer {
  padding: 32px 0;
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .landing { grid-template-columns: 1fr; min-height: 100vh; }
  .landing-panel { min-height: 50vh; align-items: center; padding-top: 110px; }
  .landing-logo { width: 150px; }
  .landing-center { align-items: center; opacity: 0.92; }
  .landing h1 { font-size: clamp(34px, 9vw, 56px); }
  .mobile-menu-btn {
    display: inline-flex;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 9px 12px;
    color: var(--navy);
    font-weight: 900;
  }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .page-hero-shell, .split, .contact-grid { grid-template-columns: 1fr; }
  .page-hero-image { min-height: 420px; order: -1; }
  .section-head { display: block; }
  .section-copy { margin-top: 14px; }
  .info-row, .card-grid, .reference-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .topbar { display: none; }
  .site-header { top: 0; }
  .page-hero { padding-top: 104px; }
  .page-hero-shell { border-radius: 24px; }
  .landing-top { display: block; padding: 18px; }
  .landing-top .sub { margin-top: 4px; }
  .landing-center { display: none; }
  .landing-panel { min-height: 50vh; padding: 24px; }
  .landing-panel.medical { padding-top: 82px; }
  .landing-panel.defence { padding-bottom: 34px; }
  .info-row, .card-grid, .reference-grid { grid-template-columns: 1fr; }
  .brand-card { min-height: 120px; }
}


/* Revision: landing center logo overlap fix */
@media (min-width: 981px) {
  .landing-panel.medical { padding-right: clamp(120px, 14vw, 250px); }
  .landing-panel.defence { padding-left: clamp(120px, 14vw, 250px); }
  .landing-panel.medical .landing-content { margin-right: auto; }
  .landing-panel.defence .landing-content { margin-left: auto; text-align: right; }
  .landing-panel.defence .landing-content p { margin-left: auto; }
  .landing-panel.defence .kicker { justify-content: flex-end; }
  .landing-panel.defence .kicker::before { display: none; }
  .landing-panel.defence .kicker::after {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
  }
}

/* Revision: Medical social responsibility tab layout */
.social-tabs {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.social-menu {
  display: grid;
  gap: 12px;
}
.social-tab {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 18px;
  padding: 18px 20px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}
.social-tab strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}
.social-tab span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.social-tab.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 14px 34px rgba(15,39,66,0.16);
}
.social-tab.is-active span { color: rgba(255,255,255,0.76); }
.social-preview {
  min-height: 430px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--social-image) center/cover;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.social-preview::after {
  content: attr(data-title);
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  border-radius: 20px;
  padding: 18px 20px;
  background: rgba(15,39,66,0.76);
  color: white;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.social-preview.default { --social-image: url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=85"); }
.social-preview.health { --social-image: url("https://images.unsplash.com/photo-1584515933487-779824d29309?auto=format&fit=crop&w=1200&q=85"); }
.social-preview.education { --social-image: url("https://images.unsplash.com/photo-1497633762265-9d179a990aa6?auto=format&fit=crop&w=1200&q=85"); }

@media (max-width: 980px) {
  .social-tabs { grid-template-columns: 1fr; }
  .social-preview { min-height: 320px; }
}


/* Revision: logo, references, certificates, company-info and form refinements */
.brand-logo-img { width: 168px; height: auto; display: block; }
.brand.with-logo { letter-spacing: 0; }
.brand.with-logo .brand-mark, .brand.with-logo .brand-text { display: none; }

.landing-logo {
  width: clamp(210px, 25vw, 330px);
  aspect-ratio: auto;
  border-radius: 30px;
  padding: 26px;
}
.landing-logo img { width: 100%; height: auto; }
.landing-logo strong, .landing-logo span { display: none; }
.landing-center { z-index: 5; }

@media (max-width: 980px) {
  .landing-panel.defence { order: 1; padding-top: 96px; }
  .landing-panel.medical { order: 2; }
  .landing-logo { width: 170px; border-radius: 22px; padding: 18px; }
}

.company-info-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1.15fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.company-info-item {
  min-width: 0;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
}
.company-info-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 3px;
}
.company-info-item strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

.reference-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 16px;
}
.reference-logo-card {
  min-height: 132px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15,39,66,0.06);
}
.reference-logo-card img {
  max-width: 100%;
  max-height: 74px;
  object-fit: contain;
  margin: 0 auto 10px;
}
.reference-logo-card strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}
.reference-logo-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.cert-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(15,39,66,0.06);
  transition: 0.2s ease;
}
.cert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cert-thumb {
  aspect-ratio: 4 / 3;
  background: var(--soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.cert-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cert-body { padding: 20px; }
.cert-body strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 8px; }
.cert-body span { display: block; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.cert-link { color: var(--blue); font-weight: 900; }

.form-response { min-height: 24px; font-weight: 800; font-size: 14px; }
.form-response.red { color: #b42318; }
.form-response.green { color: #067647; }
.form-response.orange { color: #b54708; }

@media (max-width: 980px) {
  .brand-logo-img { width: 138px; }
  .company-info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .brand-logo-img { width: 124px; }
  .company-info-grid { grid-template-columns: 1fr; }
  .reference-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .reference-logo-card { min-height: 118px; padding: 14px; }
  .reference-logo-card strong { font-size: 13px; }
}


/* Revision v5: header gap, company cards, references and distributor logos */
.topbar {
  display: none;
}

.site-header {
  top: 0;
}

.page-hero {
  padding-top: 112px;
}

.company-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.company-info-item {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.company-info-item strong {
  font-size: 15px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
  word-break: normal;
}

.company-info-item span {
  font-size: 12px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .page-hero {
    padding-top: 96px;
  }

  .company-info-grid {
    grid-template-columns: 1fr !important;
  }

  .company-info-item {
    min-height: auto;
    padding: 16px;
  }
}

.brand-card {
  min-height: 170px;
  display: flex !important;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  font-size: 28px !important;
}

.brand-logo-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(135deg, #f5f7fa, #dfe7f0);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.reference-logo-grid {
  align-items: stretch;
}

.reference-logo-card {
  min-height: 150px !important;
  height: 100%;
  grid-template-rows: 74px auto 18px;
  gap: 8px;
  align-content: center;
}

.reference-logo-card img {
  max-height: 64px !important;
  margin-bottom: 0 !important;
  align-self: center;
}

.reference-logo-card strong {
  min-height: 38px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.reference-logo-card span {
  min-height: 18px;
}

@media (max-width: 640px) {
  .reference-logo-card {
    min-height: 142px !important;
    grid-template-rows: 58px auto 18px;
  }
  .reference-logo-card img {
    max-height: 52px !important;
  }
}


/* Revision v7: keep v5 logo, remove landing top-left text, active menu, capital single-line */
.landing-top .name {
  display: none;
}

.company-info-grid {
  grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
}

.company-info-item strong {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  white-space: nowrap !important;
}

@media (max-width: 760px) {
  .company-info-grid {
    grid-template-columns: 1fr !important;
  }

  .company-info-item strong {
    white-space: normal !important;
  }
}

.nav-links a.is-active {
  color: var(--navy);
  position: relative;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: var(--gold);
}

.nav-links .nav-cta.is-active::after {
  display: none;
}


/* Revision v9: no landing-logo layout change; only content fixes */
.company-info-item strong {
  font-size: 14px !important;
}

/* Reference cards: make logo visible and card heights consistent */
.reference-logo-card {
  grid-template-rows: 225px auto 18px !important;
  min-height: 325px !important;
}

.reference-logo-card img {
  width: 200px !important;
  height: 225px !important;
  max-width: 200px !important;
  max-height: 225px !important;
  object-fit: contain !important;
  transform: none !important;
  margin: 0 auto !important;
}

.reference-logo-card.reference-logo-featured img,
.reference-logo-card:first-child img {
  width: 200px !important;
  height: 225px !important;
  max-width: 200px !important;
  max-height: 225px !important;
  transform: none !important;
}

.reference-logo-card strong {
  min-height: 42px;
}

@media (max-width: 640px) {
  .reference-logo-card {
    grid-template-rows: 170px auto 18px !important;
    min-height: 270px !important;
  }

  .reference-logo-card img,
  .reference-logo-card.reference-logo-featured img,
  .reference-logo-card:first-child img {
    width: 150px !important;
    height: 170px !important;
    max-width: 150px !important;
    max-height: 170px !important;
  }
}


/* Revision v10: fix broken references grid on Medical and Defence */
.reference-logo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.reference-logo-card {
  min-height: 210px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 20px 16px !important;
  text-align: center !important;
  overflow: hidden !important;
  grid-template-rows: none !important;
}

.reference-logo-card img,
.reference-logo-card.reference-logo-featured img,
.reference-logo-card:first-child img {
  width: auto !important;
  height: auto !important;
  max-width: 120px !important;
  max-height: 120px !important;
  object-fit: contain !important;
  transform: none !important;
  margin: 0 auto !important;
  flex: 0 0 auto !important;
}

.reference-logo-card.reference-logo-featured img {
  max-width: 135px !important;
  max-height: 135px !important;
}

.reference-logo-card strong {
  min-height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.25 !important;
  font-size: 15px !important;
  margin: 0 !important;
}

.reference-logo-card span {
  min-height: 34px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.35 !important;
  font-size: 12px !important;
  margin: 0 !important;
  color: var(--muted) !important;
}

@media (max-width: 640px) {
  .reference-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .reference-logo-card {
    min-height: 190px !important;
    padding: 16px 12px !important;
    gap: 10px !important;
  }

  .reference-logo-card img,
  .reference-logo-card.reference-logo-featured img,
  .reference-logo-card:first-child img {
    max-width: 96px !important;
    max-height: 96px !important;
  }

  .reference-logo-card strong {
    min-height: 36px !important;
    font-size: 13px !important;
  }

  .reference-logo-card span {
    min-height: 32px !important;
    font-size: 11px !important;
  }
}


/* Revision v12: stable references + 5 columns + progressive reveal */
.reference-logo-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.reference-logo-card {
  min-height: 245px !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: 108px 1fr 20px !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 12px !important;
  padding: 22px 16px !important;
  text-align: center !important;
  overflow: hidden !important;
}
.reference-logo-frame {
  height: 108px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reference-logo-card img,
.reference-logo-card.reference-logo-featured img,
.reference-logo-card:first-child img {
  width: auto !important;
  height: auto !important;
  max-width: 104px !important;
  max-height: 104px !important;
  object-fit: contain !important;
  transform: none !important;
  margin: 0 auto !important;
}
.reference-logo-card strong {
  height: 72px !important;
  min-height: unset !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.18 !important;
  font-size: 14px !important;
  margin: 0 !important;
  overflow: hidden !important;
}
.reference-logo-card span {
  height: 20px !important;
  min-height: unset !important;
  display: block !important;
  line-height: 1.3 !important;
  font-size: 12px !important;
  margin: 0 !important;
}
.reference-logo-card.is-hidden { display: none !important; }
.reference-actions { display: flex; justify-content: center; margin-top: 32px; }
.reference-more.is-hidden { display: none !important; }
@media (max-width: 1100px) {
  .reference-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 860px) {
  .reference-logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .reference-logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .reference-logo-card { min-height: 220px !important; grid-template-rows: 92px 1fr 18px !important; padding: 18px 12px !important; gap: 10px !important; }
  .reference-logo-frame { height: 92px; }
  .reference-logo-card img,
  .reference-logo-card.reference-logo-featured img,
  .reference-logo-card:first-child img { max-width: 86px !important; max-height: 86px !important; }
  .reference-logo-card strong { height: 68px !important; font-size: 12.5px !important; }
  .reference-logo-card span { height: 18px !important; font-size: 11px !important; }
}


/* Revision v13: rebuilt reference sections, no duplicate cards */
.references-medical .reference-logo-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.references-defence .reference-logo-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

.reference-logo-grid {
  display: grid !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.reference-logo-card {
  min-height: 228px !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: 112px 1fr !important;
  align-items: center !important;
  justify-items: center !important;
  gap: 14px !important;
  padding: 22px 16px !important;
  text-align: center !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

.reference-logo-frame {
  height: 112px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.reference-logo-card img {
  width: auto !important;
  height: auto !important;
  max-width: 104px !important;
  max-height: 104px !important;
  object-fit: contain !important;
  transform: none !important;
  margin: 0 auto !important;
}

.reference-logo-card strong {
  height: 78px !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.18 !important;
  font-size: 13.5px !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.reference-logo-card span {
  display: none !important;
}

.reference-logo-card.is-hidden {
  display: none !important;
}

.reference-actions {
  display: flex !important;
  justify-content: center !important;
  margin-top: 32px !important;
}

.reference-more.is-hidden {
  display: none !important;
}

@media (max-width: 1200px) {
  .references-defence .reference-logo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1020px) {
  .references-medical .reference-logo-grid,
  .references-defence .reference-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  .references-medical .reference-logo-grid,
  .references-defence .reference-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .references-medical .reference-logo-grid,
  .references-defence .reference-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .reference-logo-card {
    min-height: 206px !important;
    grid-template-rows: 88px 1fr !important;
    padding: 18px 12px !important;
    gap: 10px !important;
  }

  .reference-logo-frame {
    height: 88px !important;
  }

  .reference-logo-card img {
    max-width: 82px !important;
    max-height: 82px !important;
  }

  .reference-logo-card strong {
    height: 72px !important;
    font-size: 12px !important;
  }
}


/* Revision v15: distributor logo presentation */
.brand-card-with-logo {
  min-height: 235px !important;
}

.brand-logo-box {
  width: 200px;
  height: 175px;
  max-width: 100%;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15,39,66,0.08);
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-card-with-logo strong {
  font-size: 24px;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .brand-logo-box {
    width: 180px;
    height: 158px;
  }
}


/* Revision v16: alternating section backgrounds and distributor logos */
.section-white { background: var(--white); }

.brand-card-with-logo { min-height: 235px !important; }

.brand-logo-box {
  width: 200px;
  height: 175px;
  max-width: 100%;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15,39,66,0.08);
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-card-with-logo strong {
  font-size: 24px;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .brand-logo-box { width: 180px; height: 158px; }
}


/* Revision v20: social responsibility cards, carousel and modal */
.social-responsibility { position: relative; }
.social-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.social-project-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15,39,66,0.08);
}
.social-project-gallery { position: relative; aspect-ratio: 1 / 1; background: var(--soft); overflow: hidden; }
.gallery-track { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border: 0; border-radius: 999px;
  background: rgba(15,39,66,0.78); color: white; font-size: 28px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.social-project-body { padding: 26px; }
.social-project-body h3 { color: var(--navy); font-size: 24px; line-height: 1.15; margin-bottom: 12px; }
.social-project-body p { color: var(--muted); margin-bottom: 20px; }
.social-detail-btn {
  border: 0; border-radius: 999px; background: var(--navy); color: white;
  min-height: 44px; padding: 0 18px; font-weight: 900; cursor: pointer;
}
.project-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.project-modal.is-open { display: block; }
.project-modal-backdrop { position: absolute; inset: 0; background: rgba(15,39,66,0.72); backdrop-filter: blur(8px); }
.project-modal-dialog {
  position: relative; z-index: 2; width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 48px); margin: 24px auto; background: var(--white);
  border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr;
  box-shadow: 0 28px 90px rgba(0,0,0,0.32);
}
.project-modal-close {
  position: absolute; right: 16px; top: 16px; z-index: 4; width: 42px; height: 42px;
  border-radius: 999px; border: 0; background: var(--navy); color: white; font-size: 28px; cursor: pointer;
}
.project-modal-media { position: relative; min-height: 520px; background: var(--soft); display: grid; place-items: center; }
.project-modal-media img { width: 100%; height: 100%; object-fit: contain; background: #111; }
.modal-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px;
  border: 0; border-radius: 999px; background: rgba(15,39,66,0.82); color: white; font-size: 30px; cursor: pointer;
}
.modal-gallery-prev { left: 16px; }
.modal-gallery-next { right: 16px; }
.project-modal-content { padding: clamp(28px, 4vw, 46px); overflow-y: auto; }
.project-modal-content h3 { color: var(--navy); font-size: clamp(28px, 3vw, 42px); line-height: 1.08; margin-bottom: 20px; }
.project-modal-content p { color: var(--muted); margin-bottom: 16px; }
@media (max-width: 900px) {
  .social-project-grid { grid-template-columns: 1fr; }
  .project-modal-dialog { grid-template-columns: 1fr; overflow-y: auto; }
  .project-modal-media { min-height: 360px; }
}
@media (max-width: 640px) {
  .social-project-body { padding: 22px; }
  .project-modal-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); margin: 10px auto; border-radius: 22px; }
  .project-modal-media { min-height: 300px; }
}


/* Revision v21: compact social cards, dots carousel, hover arrows, image lightbox */
.social-project-grid {
  align-items: stretch;
}

.social-project-card {
  display: flex;
  flex-direction: column;
}

.social-project-gallery {
  aspect-ratio: 16 / 10 !important;
  max-height: 310px;
}

.gallery-track img {
  cursor: zoom-in;
}

.gallery-nav {
  opacity: 0;
  transform: translateY(-50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
  width: 34px !important;
  height: 34px !important;
  font-size: 24px !important;
}

.social-project-gallery:hover .gallery-nav {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(15,39,66,0.38);
  backdrop-filter: blur(8px);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  cursor: pointer;
  padding: 0;
}

.gallery-dot.is-active {
  width: 22px;
  background: white;
}

.social-project-body {
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.social-project-body p {
  flex: 1;
}

.social-detail-btn {
  width: fit-content;
  margin-top: auto;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
}

.image-lightbox.is-open {
  display: block;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 24, 0.92);
}

.image-lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 34px;
}

.image-lightbox img {
  max-width: min(100%, 1400px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  box-shadow: 0 26px 90px rgba(0,0,0,0.44);
  border-radius: 12px;
}

.image-lightbox-close,
.image-lightbox-nav {
  position: absolute;
  z-index: 4;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  cursor: pointer;
}

.image-lightbox-close {
  right: 24px;
  top: 24px;
  width: 44px;
  height: 44px;
  font-size: 30px;
}

.image-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 34px;
}

.image-lightbox-prev { left: 24px; }
.image-lightbox-next { right: 24px; }

@media (max-width: 900px) {
  .social-project-gallery {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .social-project-gallery {
    aspect-ratio: 1 / 1 !important;
  }

  .gallery-nav {
    opacity: 1;
  }

  .social-project-body {
    min-height: auto;
  }

  .image-lightbox-dialog {
    padding: 16px;
  }

  .image-lightbox img {
    max-height: calc(100vh - 96px);
  }

  .image-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .image-lightbox-prev { left: 12px; }
  .image-lightbox-next { right: 12px; }
}


/* Revision v22: apply gallery UX to detail popup image area */
.project-modal-media {
  overflow: hidden;
}

.project-modal-media .modal-gallery-nav {
  opacity: 0;
  transform: translateY(-50%) scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.project-modal-media:hover .modal-gallery-nav {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.modal-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(15,39,66,0.42);
  backdrop-filter: blur(8px);
}

.modal-gallery-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.58);
  cursor: pointer;
  padding: 0;
}

.modal-gallery-dot.is-active {
  width: 22px;
  background: white;
}

.project-modal-media img {
  cursor: zoom-in;
}

@media (max-width: 640px) {
  .project-modal-media .modal-gallery-nav {
    opacity: 1;
  }

  .modal-gallery-dots {
    bottom: 12px;
  }
}
