* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --amsac-magenta: #D1127F;
  --amsac-magenta-deep: #A10E63;
  --amsac-plum: #5C0A3D;
  --amsac-ink: #212529;
  --amsac-soft: #f8f9fa;
  --amsac-mint: #0FA98C;
  --amsac-mint-soft: #E6F7F3;
  --amsac-gold: #C9932F;
  --amsac-border: #EAE1E8;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

body {
  font-family: var(--font-body);
  color: var(--amsac-ink);
  background: #fff;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.display-font {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--font-mono);
}

a {
  color: var(--amsac-magenta);
}

::selection {
  background: var(--amsac-magenta);
  color: #fff;
}

main {
  scroll-margin-top: 76px;
}

.navbar-brand {
  padding: 0;
}

.navbar-logo {
  height: 60px;
  width: auto;
  display: block;
  transition: .3s ease;
}

.navbar-logo:hover {
  transform: scale(1.03);
}

/* Mobile */
@media (max-width:991px) {
  .navbar-logo {
    height: 50px;
  }
}

/* ===== Signature diamond motif (from the logo mark) ===== */
.diamond-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
}

.diamond-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amsac-magenta);
  transform: rotate(45deg);
  border-radius: 6px;
}

.diamond-frame i {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 1.5rem;
}

.diamond-frame.mint::before {
  background: var(--amsac-mint);
}

.diamond-frame.outline::before {
  background: #fff;
  border: 2px solid var(--amsac-magenta);
}

.diamond-frame.outline i {
  color: var(--amsac-magenta);
}

.diamond-bullet {
  width: 8px;
  height: 8px;
  background: var(--amsac-magenta);
  transform: rotate(45deg);
  display: inline-block;
  margin-right: 10px;
  flex-shrink: 0;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amsac-magenta);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: .85rem;
}

.section-eyebrow::before {
  content: "";
  width: 22px;
  height: 22px;
  background: var(--amsac-magenta);
  transform: rotate(45deg);
  display: inline-block;
  flex-shrink: 0;
}

.bg-soft {
  background: var(--amsac-soft);
}

.bg-plum {
  background: var(--amsac-plum);
}

.text-magenta {
  color: var(--amsac-magenta) !important;
}

.text-mint {
  color: var(--amsac-mint) !important;
}

.btn-amsac {
  background: var(--amsac-magenta);
  border: 1px solid var(--amsac-magenta);
  color: #fff;
  font-weight: 600;
  padding: .7rem 1.6rem;
  border-radius: 2px;
  transition: .2s;
}

.btn-amsac:hover {
  background: var(--amsac-magenta-deep);
  border-color: var(--amsac-magenta-deep);
  color: #fff;
}

.btn-outline-amsac {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  font-weight: 600;
  padding: .68rem 1.6rem;
  border-radius: 2px;
  transition: .2s;
}

.btn-outline-amsac:hover {
  background: #fff;
  color: var(--amsac-magenta);
}

.btn-outline-magenta {
  background: transparent;
  border: 1.5px solid var(--amsac-magenta);
  color: var(--amsac-magenta);
  font-weight: 600;
  padding: .68rem 1.6rem;
  border-radius: 2px;
}

.btn-outline-magenta:hover {
  background: var(--amsac-magenta);
  color: #fff;
}

/* ===== Top utility bar ===== */
.topbar {
  background: var(--amsac-plum);
  color: #f2d9ea;
  font-size: .8rem;
}

.topbar a {
  color: #f2d9ea;
  text-decoration: none;
}

.topbar .social-icons a {
  color: #f2d9ea;
  margin-left: 14px;
  font-size: .92rem;
  transition: .2s;
}

.topbar .social-icons a:hover {
  color: #fff;
}

/* ===== Navbar ===== */
.navbar-amsac {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
  padding: .65rem 0;
}

.navbar-amsac .navbar-brand img {
  height: 42px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.1;
  color: var(--amsac-magenta);
}

.brand-text span {
  color: var(--amsac-magenta);
}

.navbar-amsac .nav-link {
  font-weight: 600;
  font-size: .92rem;
  color: var(--amsac-ink);
  margin: 0 .35rem;
  position: relative;
}

.navbar-amsac .nav-link.active,
.navbar-amsac .nav-link:hover {
  color: var(--amsac-magenta);
}

.navbar-amsac .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--amsac-magenta);
}

/* ===== Page header (sub-page banner) ===== */
.page-header {
  position: relative;
  background: var(--amsac-plum);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  background: rgba(209, 18, 127, .35);
  transform: rotate(45deg);
  top: -180px;
  right: -100px;
  border-radius: 24px;
}

.page-header::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(15, 169, 140, .18);
  transform: rotate(45deg);
  bottom: -100px;
  left: -60px;
  border-radius: 16px;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header .ph-eyebrow {
  font-family: var(--font-mono);
  color: #F5C1DD;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 600;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  margin: .5rem 0 .75rem;
}

.page-header p {
  color: #eadfe4;
  max-width: 600px;
  margin-bottom: 0;
}

.amsac-breadcrumb {
  list-style: none;
  display: flex;
  gap: .5rem;
  padding: 0;
  margin: 0 0 1rem;
  font-size: .82rem;
}

.amsac-breadcrumb li {
  color: #c9a7bc;
}

.amsac-breadcrumb li a {
  color: #f2d9ea;
  text-decoration: none;
  font-weight: 600;
}

.amsac-breadcrumb li a:hover {
  color: #fff;
}

.amsac-breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: .5rem;
  color: #8a5a75;
}

/* ===== Hero (home only) ===== */
.hero-carousel {
  position: relative;
}

.hero-slide {
  height: 88vh;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30, 7, 20, .86) 0%, rgba(30, 7, 20, .62) 40%, rgba(30, 7, 20, .25) 75%);
}

.hero-slide .container {
  position: relative;
  z-index: 2;
}

.hero-tag {
  font-family: var(--font-mono);
  color: #F5C1DD;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 600;
}

.hero-slide h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  max-width: 680px;
  line-height: 1.1;
}

.hero-slide p.lead {
  color: #eadfe4;
  max-width: 540px;
  font-size: 1.05rem;
}

.carousel-indicators [data-bs-target] {
  width: 28px;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, .45);
}

.carousel-indicators .active {
  background: var(--amsac-magenta);
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: .7;
}

.stat-strip {
  position: relative;
  margin-top: -58px;
  z-index: 5;
}

.stat-card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 20px 44px -18px rgba(93, 10, 64, .35);
  padding: 1.6rem 1rem;
  text-align: center;
}

.stat-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--amsac-magenta);
}

.stat-card .lbl {
  font-size: .82rem;
  color: #6c757d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ===== value props ===== */
.value-card {
  border: 1px solid var(--amsac-border);
  padding: 2rem 1.6rem;
  height: 100%;
  transition: .25s;
  background: #fff;
}

.value-card:hover {
  border-color: var(--amsac-magenta);
  box-shadow: 0 18px 34px -22px rgba(209, 18, 127, .4);
  transform: translateY(-4px);
}

/* ===== About ===== */
.about-photo-wrap {
  position: relative;
}

.about-photo-wrap img {
  width: 100%;
  border-radius: 4px;
  position: relative;
  z-index: 2;
}

.about-photo-wrap::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  background: var(--amsac-mint-soft);
  bottom: -24px;
  left: -24px;
  z-index: 1;
}

.badge-cert {
  border: 1px solid var(--amsac-border);
  padding: .6rem .9rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: .85rem;
  background: #fff;
}

.timeline-row {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--amsac-border);
}

.timeline-row:last-child {
  border-bottom: none;
}

.timeline-row .yr {
  font-family: var(--font-mono);
  color: var(--amsac-magenta);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
  width: 64px;
}

/* ===== Vision Mission ===== */
.vm-card {
  padding: 2.4rem;
  height: 100%;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.vm-card.vision {
  background: var(--amsac-magenta);
}

.vm-card.mission {
  background: var(--amsac-plum);
}

.vm-card .diamond-frame {
  background: transparent;
}

.vm-card .diamond-frame::before {
  background: rgba(255, 255, 255, .18);
}

.vm-card .diamond-frame i {
  color: #fff;
}

.vm-card h3 {
  font-size: 1.5rem;
}

.value-pill {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: #f4e3ee;
  margin-bottom: .6rem;
}

/* ===== Products ===== */
.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.chip-nav .chip {
  border: 1px solid var(--amsac-border);
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--amsac-ink);
  background: #fff;
  cursor: default;
}

.product-card {
  border: 1px solid var(--amsac-border);
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: .25s;
}

.product-card:hover {
  box-shadow: 0 22px 40px -22px rgba(93, 10, 64, .3);
  transform: translateY(-3px);
}

.product-img {
  background: linear-gradient(135deg, #f8f8ff, #ffffff);
  padding: 25px;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.product-img img {
  height: 220px;
  width: 100%;
  object-fit: contain;
}

.product-card .p-top {
  padding: 1.4rem 1.4rem 0;
}

.rx-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .25rem .55rem;
  border: 1px solid var(--amsac-magenta);
  color: var(--amsac-magenta);
  display: inline-block;
}

.rx-badge.supp {
  border-color: var(--amsac-mint);
  color: var(--amsac-mint);
}

.product-card h4 {
  font-size: 1.25rem;
  margin: .7rem 0 .1rem;
}

.product-card .generic {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: #6c757d;
}

.product-card .p-body {
  padding: 1rem 1.4rem 1.4rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card .type-line {
  font-size: .82rem;
  color: #495057;
  margin-bottom: 1rem;
}

.product-card .mt-auto-btn {
  margin-top: auto;
  border-top: 1px solid var(--amsac-border);
  padding-top: 1rem;
}

/* Product detail page */
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px dashed var(--amsac-border);
  font-size: .92rem;
}

.detail-row .k {
  color: #6c757d;
  font-weight: 600;
  min-width: 150px;
}

.detail-row .v {
  font-family: var(--font-mono);
  font-size: .87rem;
  text-align: right;
}

.warn-box {
  background: #FFF4E5;
  border-left: 3px solid var(--amsac-gold);
  padding: .85rem 1rem;
  font-size: .85rem;
  margin-top: 1rem;
}

.related-card {
  border: 1px solid var(--amsac-border);
  padding: 1.2rem;
  background: #fff;
  height: 100%;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: .2s;
}

.related-card:hover {
  border-color: var(--amsac-magenta);
  box-shadow: 0 14px 28px -18px rgba(209, 18, 127, .35);
}

.related-card .generic {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: #6c757d;
}

.product-hero-icon {
  width: 84px;
  height: 84px;
  background: rgba(255, 255, 255, .12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(45deg);
}

.product-hero-icon i {
  transform: rotate(-45deg);
  font-size: 2.2rem;
  color: #fff;
}

.product-image-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.product-image-card img {
  max-height: 420px;
  width: auto;
  transition: .3s;
}

.product-image-card:hover img {
  transform: scale(1.05);
}

/* ===== Manufacturing ===== */
.mfg-step {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--amsac-border);
}

.mfg-step:last-child {
  border-bottom: none;
}

.mfg-step .mk {
  font-family: var(--font-mono);
  color: var(--amsac-magenta);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  width: 34px;
}

.facility-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 3px;
}

/* ===== Patients ===== */
.patient-card {
  background: #fff;
  border: 1px solid var(--amsac-border);
  padding: 1.8rem;
  height: 100%;
}

.patient-card .diamond-frame {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
}

.patient-card .diamond-frame i {
  font-size: 1.25rem;
}

.accordion-item {
  border: 1px solid var(--amsac-border) !important;
  margin-bottom: .6rem;
  border-radius: 0 !important;
}

.accordion-button {
  font-weight: 600;
  font-size: .95rem;
  border-radius: 0 !important;
}

.accordion-button:not(.collapsed) {
  background: var(--amsac-mint-soft);
  color: var(--amsac-magenta-deep);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--amsac-border);
}

.accordion-button::after {
  filter: hue-rotate(280deg) saturate(3);
}

/* ===== Contact ===== */
.contact-info-card {
  background: var(--amsac-plum);
  color: #f0dfe8;
  padding: 2.4rem;
  height: 100%;
}

.contact-info-card a {
  color: #fff;
  text-decoration: none;
}

.contact-info-card .ci-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}

.form-control {
  border-radius: 2px;
  border-color: #dcd3d9;
  padding: .7rem .9rem;
}

.form-control:focus {
  border-color: var(--amsac-magenta);
  box-shadow: 0 0 0 .2rem rgba(209, 18, 127, .15);
}

.form-label {
  font-weight: 600;
  font-size: .85rem;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 340px;
  border-radius: 2px;
}

/* ===== CTA banner (reused across pages) ===== */
.cta-banner {
  background: var(--amsac-magenta);
  padding: 3rem 0;
  color: #fff;
}

.cta-banner h3 {
  color: #fff;
}

/* ===== Footer ===== */
footer.amsac-footer {
  background: #180310;
  color: #c9b3c2;
}

footer.amsac-footer h6 {
  color: #fff;
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .05em;
  margin-bottom: 1.1rem;
}

footer.amsac-footer a {
  color: #c9b3c2;
  text-decoration: none;
  font-size: .88rem;
}

footer.amsac-footer a:hover {
  color: var(--amsac-magenta);
}

footer.amsac-footer .footer-social a {
  width: 34px;
  height: 34px;
  border: 1px solid #43293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .5rem;
}

footer.amsac-footer .footer-social a:hover {
  border-color: var(--amsac-magenta);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #33172a;
  font-size: .8rem;
  color: #8a7284;
}

.footer-cert {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  color: #c9b3c2;
  border: 1px solid #43293b;
  padding: .4rem .7rem;
}

/* ===== WhatsApp floating ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .4);
  z-index: 1000;
  transition: .2s;
}

.whatsapp-float:hover {
  transform: scale(1.07);
  color: #fff;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 46px;
  height: 46px;
  background: var(--amsac-ink);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  text-decoration: none;
}

@media (max-width:767px) {
  .hero-slide {
    height: 78vh;
  }

  .stat-strip {
    margin-top: -40px;
  }

  .page-header {
    padding: 3.5rem 0 2.5rem;
  }
}