:root {
  --bg: #fafbf7;
  --surface: #ffffff;
  --surface-tint: #f1f6ee;
  --surface-sage: #e6efe3;
  --ink: #143b33;
  --ink-muted: #4a665f;
  --brand: #15483d;
  --brand-deep: #0f352d;
  --accent: #e2f2b0;
  --accent-strong: #d5eca8;
  --border: rgba(21, 72, 61, 0.13);
  --glass-bg: rgba(255, 255, 255, 0.68);
  --glass-bg-strong: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-shadow: 0 10px 30px rgba(15, 53, 45, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  --focus: #ca8320;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(15, 53, 45, 0.06);
  --shadow-md: 0 18px 42px rgba(15, 53, 45, 0.13);
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(226, 242, 176, 0.45), transparent 38%),
    radial-gradient(circle at 88% 18%, rgba(56, 134, 114, 0.14), transparent 42%),
    radial-gradient(circle at 75% 65%, rgba(226, 242, 176, 0.32), transparent 45%),
    radial-gradient(circle at 18% 82%, rgba(21, 72, 61, 0.08), transparent 40%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--brand-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

.container {
  max-width: 1220px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4.5vw, 56px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 251, 247, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(21, 72, 61, 0.1);
  box-shadow: 0 4px 20px rgba(15, 53, 45, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

nav a[aria-current="page"] {
  font-weight: 700;
}

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

.page-hero-card {
  background: linear-gradient(135deg, #15483d 0%, #0e322a 100%);
  color: #fffdf3;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 48px);
  box-shadow: var(--shadow-md);
}

.page-hero-card h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin: 12px 0 12px;
}

.page-hero-card p {
  margin: 0;
  max-width: 60ch;
  color: rgba(255, 253, 243, 0.88);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fffdf5;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.header-cta:hover {
  background: var(--brand-deep);
  transform: translateY(-1px);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.lang-btn:hover {
  background: var(--surface-sage);
  transform: translateY(-1px);
}

.lang-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--brand-deep);
  border-color: rgba(21, 72, 61, 0.25);
}

/* Hide Google Translate top banner bar */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-simple,
body > .skiptranslate {
  display: none !important;
}

body {
  top: 0 !important;
}

.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero */
.hero-wrap {
  padding-top: 22px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, #15483d 0%, #10372e 100%);
  color: #fffdf3;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5.5vw, 68px);
  display: flex;
  align-items: center;
  min-height: 390px;
  box-shadow: var(--shadow-md);
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 2;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.location {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(226, 242, 176, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 242, 176, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(3.2rem, 6.5vw, 5.4rem);
  line-height: 0.95;
  margin: 20px 0 18px;
}

h1 em {
  color: var(--accent);
  font-style: italic;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  color: rgba(255, 253, 243, 0.88);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--brand-deep);
}

.btn-primary:hover {
  background: #ecf7c6;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fffdf3;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.btn-ghost {
  background: rgba(226, 242, 176, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--accent);
  border-color: rgba(226, 242, 176, 0.38);
}

.btn-ghost:hover {
  background: rgba(226, 242, 176, 0.12);
}

/* Hero visual (transparent cutout + 3D plus accent) */
.hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: clamp(12px, 3vw, 44px);
  background: radial-gradient(ellipse at 65% 58%, rgba(58, 134, 114, 0.42), transparent 68%);
}

.hero-accent {
  position: absolute;
  right: clamp(18px, 6vw, 90px);
  top: 50%;
  transform: translateY(-54%) rotate(-8deg);
  width: clamp(180px, 20vw, 280px);
  height: auto;
  opacity: 0.78;
  filter: drop-shadow(0 18px 28px rgba(7, 30, 24, 0.45));
  animation: floatPlus 6.5s ease-in-out infinite;
}

.hero-model {
  position: relative;
  z-index: 2;
  height: 94%;
  max-height: 430px;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  filter: drop-shadow(0 16px 28px rgba(7, 30, 24, 0.45));
  animation: slideInModel 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

/* Trust strip */
.trust-strip {
  position: relative;
  z-index: 5;
  list-style: none;
  margin: -26px 18px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.trust-strip li {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-strip li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.trust-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.trust-value {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

/* Sections */
.section {
  padding-block: clamp(46px, 6vw, 76px);
}

.section-tinted {
  background: var(--surface-tint);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: 6px;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.05;
  margin: 0 0 10px;
}

.section-desc {
  margin: 0;
  color: var(--ink-muted);
}

/* Services */
.services-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow-md);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface-sage);
  color: var(--brand);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.service-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.services-feature {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #15483d 0%, #0e322a 100%);
  color: #fffdf3;
  border-radius: var(--radius-md);
  padding: 26px 26px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  min-height: 380px;
}

.services-feature-copy {
  position: relative;
  z-index: 2;
}

.feature-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(226, 242, 176, 0.16);
  border: 1px solid rgba(226, 242, 176, 0.3);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.services-feature-copy h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.85rem;
  line-height: 1.08;
}

.services-feature-copy p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 253, 243, 0.85);
}

.services-feature-visual {
  position: relative;
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 250px;
}

.feature-accent {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-52%, -50%) rotate(10deg);
  width: 210px;
  height: auto;
  opacity: 0.72;
  filter: drop-shadow(0 14px 22px rgba(5, 24, 19, 0.45));
  animation: floatPlusFeature 7s ease-in-out infinite;
}

.feature-model {
  position: relative;
  z-index: 2;
  max-height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(5, 24, 19, 0.48));
  transition: transform 0.35s ease;
}

.services-feature:hover .feature-model {
  transform: translateY(-4px) scale(1.015);
}

/* Stock Quality Showcase Banner */
.stock-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  background: linear-gradient(135deg, #15483d 0%, #0e322a 100%);
  color: #fffdf3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: var(--shadow-md);
}

.stock-showcase-copy {
  padding: clamp(22px, 3.5vw, 36px);
}

.eyebrow-light {
  color: var(--accent);
}

.stock-showcase-copy h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  margin: 0 0 10px;
}

.stock-showcase-copy p {
  margin: 0;
  color: rgba(255, 253, 243, 0.86);
  font-size: 0.94rem;
}

.stock-showcase-media {
  height: 100%;
  min-height: 220px;
  max-height: 280px;
}

.stock-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

/* Search & Results */
.search-panel {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3.5vw, 34px);
  box-shadow: var(--glass-shadow);
}

.stock-status-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.stock-status-bar strong {
  color: var(--brand);
}

.search-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.search-field {
  flex: 1 1 320px;
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 560px;
}

input[type="search"],
input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  border: 1px solid #9ab0a4;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

.input-wrap input[type="search"] {
  padding-right: 76px;
}

.clear-btn {
  position: absolute;
  right: 8px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--surface-tint);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-bar {
  display: flex;
  gap: 8px;
}

.filter-chip {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

#results {
  margin-top: 20px;
  padding: 20px;
  background: var(--surface-sage);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.empty-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.empty-state p {
  margin: 0;
  font-weight: 500;
}

.results-meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

table {
  border-collapse: collapse;
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

caption {
  text-align: left;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}

th {
  background: var(--surface-tint);
  font-weight: 700;
  color: var(--ink);
}

tr:last-child td {
  border-bottom: 0;
}

.stock-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.stock-in {
  background: #daf2dc;
  color: #155724;
}

.stock-out {
  background: #fbe4e4;
  color: #8b2020;
}

.enquiry-box {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.enquiry-copy h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.enquiry-copy p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.enquiry-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1 1 340px;
  max-width: 520px;
}

.enquiry-form input {
  flex: 1 1 210px;
}

.enquiry-form .btn-primary {
  background: var(--brand);
  color: #fffdf5;
}

.enquiry-form .btn-primary:hover {
  background: var(--brand-deep);
}

/* Store Details & Licences */
.fsda-banner {
  background: linear-gradient(135deg, rgba(241, 246, 238, 0.78), rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow: var(--glass-shadow);
}

.fsda-banner-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 10px;
}

.fsda-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 18px;
  font-size: 0.9rem;
}

.fsda-checklist a {
  color: var(--brand);
  font-weight: 600;
}

.pharmacist-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.pharmacist-photo-wrap {
  width: 72px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-tint);
}

.pharmacist-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pharmacist-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.pharmacist-photo-placeholder span {
  font-weight: 700;
  color: var(--ink);
}

.pending-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fdf3dc;
  border: 1px solid #e7cf96;
  color: #6b4c0b;
  font-size: 0.84rem;
  font-weight: 600;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.detail-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  background: var(--surface-sage);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.detail-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

address,
.detail-card p {
  font-style: normal;
  line-height: 1.65;
  margin: 0;
}

.card-lead {
  margin-bottom: 12px !important;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.text-link {
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copy-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-tint);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--surface-sage);
}

.inline-copy {
  margin-left: 8px;
  padding: 3px 9px;
}

dl {
  margin: 14px 0 0;
}

.compact-dl {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

dt {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 0.85em;
}

dt:first-child {
  margin-top: 0;
}

dd {
  margin: 0.2em 0 0;
  overflow-wrap: anywhere;
}

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-tint);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.muted {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.note-text {
  margin-top: 14px !important;
}

/* Official Certificates & Licences */
.certificates-block {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}

.certificates-head h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  margin: 0 0 8px;
  line-height: 1.1;
}

.doc-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.doc-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.doc-card-head h4 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.doc-card-head p {
  margin: 0;
}

.doc-preview {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-tint);
  overflow: hidden;
  height: 440px;
}

.doc-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

.doc-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #fff;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-dark {
  background: var(--brand);
  color: #fffdf5;
  padding: 9px 16px;
  font-size: 0.88rem;
}

.btn-dark:hover {
  background: var(--brand-deep);
}

.doc-actions a.copy-btn {
  text-decoration: none;
}

/* Document Modal */
.doc-modal {
  width: min(94vw, 960px);
  height: min(90vh, 860px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(10, 35, 29, 0.35);
  overflow: hidden;
}

.doc-modal::backdrop {
  background: rgba(15, 53, 45, 0.6);
  backdrop-filter: blur(4px);
}

.doc-modal[open] {
  display: flex;
  flex-direction: column;
}

.doc-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border);
}

.doc-modal-bar h3 {
  margin: 0;
  font-size: 1rem;
}

.doc-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doc-modal-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
}

.doc-modal-image {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  object-fit: contain;
  background: #102a23;
  padding: 12px;
}

/* Footer */
.site-footer {
  padding-block: 28px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-sub {
  margin: 4px 0 0;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 600;
  font-size: 0.92rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Toast */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  background: var(--brand-deep);
  color: #fffdf5;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

/* Sticky mobile quick-action bar (hidden on desktop) */
.mobile-bar {
  display: none;
}

/* Admin Panel */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.admin-upload-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.admin-upload-row input[type="file"] {
  flex: 1 1 220px;
  font: inherit;
  font-size: 0.9rem;
}

.admin-meta-row {
  margin-top: 16px;
}

.admin-meta-row input[type="date"] {
  padding: 10px 14px;
  font: inherit;
  border: 1px solid #9ab0a4;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.admin-field label {
  font-size: 0.82rem;
  margin-bottom: 5px;
  color: var(--ink-muted);
}

.admin-field input {
  width: 100%;
  padding: 10px 13px;
  font: inherit;
  border: 1px solid #9ab0a4;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
}

.admin-field-full,
.admin-form button {
  grid-column: 1 / -1;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-toolbar h3 {
  margin: 0 0 2px;
}

.admin-toolbar p {
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-actions .btn-primary {
  background: var(--accent);
  color: var(--brand-deep);
  border-color: rgba(21, 72, 61, 0.16);
}

#admin-table-wrap {
  overflow-x: auto;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-btn {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.admin-inline-input {
  width: 100%;
  min-width: 96px;
  padding: 7px 9px;
  font: inherit;
  font-size: 0.86rem;
  border: 1px solid var(--brand);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
}

.bulk-modal {
  width: min(96vw, 1100px);
  height: min(88vh, 760px);
}

.bulk-modal-body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px 18px;
}

.bulk-hint {
  margin: 0 0 12px;
}

.bulk-table-wrap {
  overflow-x: auto;
}

.bulk-table th,
.bulk-table td {
  padding: 8px;
}

.bulk-modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-tint);
  display: flex;
  justify-content: flex-end;
}

/* Admin Login Gate & Background */
body.admin-page {
  background:
    linear-gradient(rgba(250, 251, 247, 0.28), rgba(250, 251, 247, 0.34)),
    url("assets/admin-bg.jpg") center / cover no-repeat fixed;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

#admin-login {
  position: relative;
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.login-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.login-card {
  width: min(100%, 460px);
  padding: clamp(26px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius-lg);
  box-shadow:
    0 24px 54px rgba(15, 53, 45, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.login-card h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  margin: 0 0 8px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.login-form input {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(21, 72, 61, 0.18);
}

.pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pass-wrap input {
  padding-right: 46px;
}

.pass-toggle {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}

.pass-toggle:hover,
.pass-toggle[aria-pressed="true"] {
  color: var(--brand);
  background: rgba(21, 72, 61, 0.08);
}

.login-error {
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(251, 228, 228, 0.9);
  color: #8b2020;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 980px) {
  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: 40%;
    opacity: 0.35;
  }

  .fsda-checklist {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }

  .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
    gap: 10px;
  }

  .header-cta {
    padding: 8px 13px;
    font-size: 0.84rem;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  nav::-webkit-scrollbar {
    display: none;
  }

  nav a {
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--border);
    text-decoration: none;
  }

  nav a[aria-current="page"] {
    background: var(--brand);
    color: #fffdf5;
    border-color: var(--brand);
    text-decoration: none;
  }

  .hero {
    padding: 28px 22px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11vw, 3.4rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .enquiry-form .btn {
    width: 100%;
    min-height: 44px;
  }

  .hero-visual {
    display: none;
  }

  .brand-logo {
    height: 36px;
  }

  .trust-strip {
    margin: 16px 0 0;
  }

  input[type="search"],
  input[type="text"] {
    font-size: 16px;
  }

  .filter-chip,
  .copy-btn {
    min-height: 38px;
  }

  /* Responsive stacked cards for medicine table on phones */
  #results {
    padding: 14px;
  }

  #results table,
  #results thead,
  #results tbody,
  #results tr,
  #results td {
    display: block;
    width: 100%;
  }

  #results thead {
    display: none;
  }

  #results tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  #results tbody tr:last-child {
    margin-bottom: 0;
  }

  #results tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border);
    text-align: right;
  }

  #results tbody td:last-child {
    border-bottom: 0;
  }

  #results tbody td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--ink-muted);
    text-align: left;
  }

  .cards,
  .doc-grid,
  .admin-grid,
  .admin-form,
  .stock-showcase,
  .fsda-checklist,
  .trust-strip,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .doc-preview {
    height: 290px;
  }

  .doc-modal {
    width: 96vw;
    height: 92vh;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    text-align: center;
  }

  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(250, 251, 247, 0.88);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(15, 53, 45, 0.08);
  }

  .mobile-bar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
  }

  .mobile-bar-call {
    background: var(--brand);
    color: #fffdf5;
  }

  .mobile-bar-wa {
    background: var(--accent);
    color: var(--brand-deep);
    border: 1px solid rgba(21, 72, 61, 0.16);
  }
}

/* Animations & Scroll Reveal */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInModel {
  from {
    opacity: 0;
    transform: translateX(24px) translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@keyframes floatPlus {
  0%,
  100% {
    transform: translateY(-54%) rotate(-8deg);
  }
  50% {
    transform: translateY(-60%) rotate(-3deg);
  }
}

@keyframes floatPlusFeature {
  0%,
  100% {
    transform: translate(-52%, -50%) rotate(10deg);
  }
  50% {
    transform: translate(-52%, -56%) rotate(15deg);
  }
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  .hero-content,
  .hero-model,
  .hero-accent,
  .feature-accent {
    animation: none;
  }

  .reveal,
  .reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .service-card,
  .feature-model,
  .header-cta {
    transition: none;
  }
}
