/* =====================================================================
   Acme Pharma - site.css
   Small site-wide additions on top of the Webflow stylesheet:
   company details in the footer, legal strip, focus styles.
   ===================================================================== */

/* ---------- accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #4c82b7;
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  padding: 10px 16px; border-radius: 6px;
  background: #3a5597; color: #fff; font-family: Eina, sans-serif; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- contact forms ---------- */
/* Webflow sets typed text to near-white on phones; keep it readable everywhere */
.form-2 .text-field, .form-2 .text-field.contact, .form-2 .text-field.big.pass { color: #2b2a35; }
.form-2 .text-field::placeholder { color: #6b6e7b; }
.form-2 textarea.text-field { resize: vertical; padding-top: 10px; line-height: 1.5; font-family: inherit; font-size: 14px; }

/* ---------- contact page: direct details ---------- */
.contact-direct {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  margin: 4px 0 22px; padding: 14px 16px;
  border-radius: 12px; background: rgba(255, 255, 255, .12);
  color: #fff; font-family: Eina, sans-serif; font-size: 15px; line-height: 1.5;
}
.contact-direct__item { display: flex; flex-direction: column; gap: 2px; min-width: 160px; }
.contact-direct__label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; opacity: .8; }
.contact-direct a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); align-self: flex-start; }
.contact-direct a:hover { border-bottom-color: #fff; }
@media screen and (max-width: 479px) {
  .contact-direct { flex-direction: column; gap: 12px; }
}

/* ---------- legal pages (privacy, cookies, legal notice) ---------- */
.legal-doc { width: 100%; min-width: 0; max-width: 920px; box-sizing: border-box; font-family: Eina, sans-serif; font-size: 16px; line-height: 1.7; color: var(--text-color, #545465); text-align: left; }
.legal-doc h2 { margin: 30px 0 10px; color: var(--dark-slate-blue-2, #3a5597); font-family: Markpro, sans-serif; font-size: 22px; line-height: 1.3; letter-spacing: 0; }
.legal-doc p { margin: 0 0 12px; font-size: 16px; line-height: 1.7; color: inherit; }
.legal-doc ul { margin: 0 0 14px; padding-left: 22px; }
.legal-doc li { margin-bottom: 5px; }
.legal-doc a { color: #3a5597; text-decoration: underline; text-underline-offset: 2px; }
.legal-doc code { font-size: 14px; background: #eef1f8; padding: 1px 6px; border-radius: 4px; }
.legal-doc__meta { font-size: 14px !important; color: #6b6e7b !important; margin-bottom: 18px !important; }
.legal-doc__todo { background: #fff4cc; color: #7a5200; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.legal-doc__table { max-width: 100%; overflow-x: auto; margin: 6px 0 16px; border: 1px solid #dfe3ee; border-radius: 10px; background: #fff; }
.legal-doc table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid #e8ebf3; }
.legal-doc thead th { background: #f2f4fa; color: #2b2a35; font-weight: 700; font-size: 14px; }
.legal-doc tbody th { width: 30%; color: #2b2a35; font-weight: 700; background: #f8f9fc; }
.legal-doc tr:last-child th, .legal-doc tr:last-child td { border-bottom: 0; }
@media screen and (max-width: 767px) {
  .legal-doc table { min-width: 0; table-layout: fixed; }
  .legal-doc th, .legal-doc td { padding: 9px 10px; overflow-wrap: anywhere; }
  .legal-doc tbody th { width: 38%; }
}
@media screen and (max-width: 479px) {
  .legal-doc, .legal-doc p { font-size: 15px; }
  .legal-doc h2 { font-size: 19px; }
  .legal-doc table { font-size: 14px; }
}
.legal-doc a { overflow-wrap: anywhere; }

/* ---------- phones: stop sideways scrolling ----------
   The flip-card back faces on Equipment and Trials sit off-screen and made
   the whole page scroll sideways on phones. Clip horizontal overflow only. */
@media screen and (max-width: 991px) {
  html, body { overflow-x: clip; }
}

/* ---------- Google Map: load on request ---------- */
.map-consent { position: relative; min-height: 450px; overflow: hidden; }
.map-consent iframe { display: block; }
.map-consent__panel {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px; text-align: center;
  background: linear-gradient(135deg, #eef1f8, #c9d3ee); color: #2b2a35; font-family: Eina, sans-serif;
}
.map-consent.is-loaded .map-consent__panel { display: none; }
.map-consent__pin { color: #3a5597; }
.map-consent__title { margin: 0; font-family: Markpro, sans-serif; font-size: 24px; color: #3a5597; line-height: 1.2; }
.map-consent__address { margin: 0 0 6px; font-size: 16px; line-height: 1.5; color: #2b2a35; }
.map-consent__btn {
  padding: 11px 24px; border: 0; border-radius: 8px; background: #3a5597; color: #fff;
  font-family: Eina, sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .5px; cursor: pointer;
}
.map-consent__btn:hover { background: #4c82b7; }
.map-consent__note { margin: 4px 0 0; max-width: 320px; font-size: 13px; line-height: 1.5; color: #545465; }
.map-consent__note a, .map-consent__link { color: #3a5597; }
.map-consent__link { font-size: 14px; font-weight: 700; }
.cookie-link { color: #fff; text-decoration: underline; font-weight: 700; }

/* ---------- enquiry page card ---------- */
.enquiry-card { max-width: 900px; margin: 10px auto 40px; padding: 34px 40px 28px; }
@media screen and (max-width: 767px) { .enquiry-card { padding: 26px 20px 22px; margin: 10px 12px 30px; width: auto; } }
/* the Webflow container fades everything inside it (opacity .79); keep the form crisp */
.contact-section-container.enquiry-bg { opacity: 1; }

/* ---------- mobile menu: consistent alignment ----------
   The Webflow menu mixes fonts (Arial / Eina), row heights (56-62px),
   divider lines and a 35% indent on "Our Services", so items did not
   line up. Phones and tablets only (the menu collapses below 992px).
   Hidden template items stay hidden: no display overrides on them. */
@media screen and (max-width: 991px) {
  nav[data-nav-menu-open] { padding: 0; background: #fff; border-radius: 0 0 12px 12px; overflow: hidden;
    box-shadow: 0 12px 28px rgba(43, 42, 53, .18); }
  nav[data-nav-menu-open] a.nav__link-div,
  nav[data-nav-menu-open] a.nav__link-div-onlymobile,
  nav[data-nav-menu-open] a.nav__link-div-jobstext,
  nav[data-nav-menu-open] .dropdown-toggle {
    position: relative; margin: 0; padding: 17px 48px; box-sizing: border-box; width: 100%;
    border: 0; border-bottom: 1px solid #e3e5ec;
    font-family: Eina, sans-serif; font-size: 15px; font-weight: 700; line-height: 20px !important;
    color: #2b2a35; text-align: center; text-decoration: none;
  }
  nav[data-nav-menu-open] .dropdown-toggle { display: block; }
  nav[data-nav-menu-open] .nav__link,
  nav[data-nav-menu-open] .dropdown-toggle .text-block {
    width: auto; margin: 0; padding: 0; border: 0;
    font: inherit; color: inherit; text-align: center; letter-spacing: 0;
  }
  nav[data-nav-menu-open] .nav__link-div-jobs { width: 100%; margin: 0; padding: 0; }
  nav[data-nav-menu-open] .dropdown.w-dropdown { display: block; width: 100%; margin: 0; }
  nav[data-nav-menu-open] .dropdown-toggle .w-icon-dropdown-toggle {
    position: absolute; left: auto; right: 20px; top: 50%; bottom: auto;
    width: 14px; height: 14px; margin: -7px 0 0; font-size: 14px; transition: transform .2s ease;
  }
  nav[data-nav-menu-open] .dropdown-toggle.w--open .w-icon-dropdown-toggle { transform: rotate(180deg); }
  nav[data-nav-menu-open] .dropdown-list.w--open { background: #f5f7fb; border-bottom: 1px solid #e3e5ec; }
  nav[data-nav-menu-open] .dropdown-list .w-dropdown-link {
    display: block; margin: 0; padding: 12px 48px; border: 0;
    font-family: Eina, sans-serif; font-size: 14px; font-weight: 500; line-height: 20px;
    color: #545465; text-align: center;
  }
  nav[data-nav-menu-open] .dropdown-list .w-dropdown-link + .w-dropdown-link { border-top: 1px solid #e9ecf3; }
  nav[data-nav-menu-open] a.w--current,
  nav[data-nav-menu-open] a.w--current .nav__link { color: #3a5597; }
  nav[data-nav-menu-open] .nav__link-div-jobs > a:last-child { border-bottom: 0 !important; }
  /* same divider on every row, including the current page and the services list */
  nav[data-nav-menu-open] a.nav__link-div,
  nav[data-nav-menu-open] a.nav__link-div-onlymobile,
  nav[data-nav-menu-open] a.nav__link-div-jobstext { border-width: 0 0 1px !important; border-style: solid !important; border-color: #e3e5ec !important; }
  nav[data-nav-menu-open] .dropdown-list.w--open { border-bottom: 1px solid #e3e5ec !important; }
  /* tablets: full-width panel and the same items as on phones */
  nav[data-nav-menu-open] { left: 0 !important; right: 0 !important; margin: 0 10px !important; width: auto !important; }
  nav[data-nav-menu-open] .dropdown.w-dropdown { border: 0 !important; }
  nav[data-nav-menu-open] a.nav__link-div-onlymobile { display: block !important; }
  nav[data-nav-menu-open] .nav__link-div-learning { display: none !important; }
  nav[data-nav-menu-open] .nav__link-div-jobs { display: block !important; border: 0 !important; }
  nav[data-nav-menu-open] a.nav__link-div.contact { display: none !important; }
  nav[data-nav-menu-open] .nav__buttons { display: none; }
}

/* ---------- shared page width ----------
   Header and footer use the same content width so their edges line up. */
:root { --site-gutter: clamp(20px, 4vw, 64px); --site-width: min(calc(100% - 2 * var(--site-gutter)), 1560px); }

/* ---------- site footer ----------
   Brand | Company | Services | Contact, spread across the full content
   width, with the legal strip aligned underneath. */
.site-footer {
  border-top: 1px solid #e3e5ec; background: #fff; color: #545465;
  font-family: Eina, sans-serif; font-size: 15px; line-height: 1.6;
}
.site-footer__inner { width: var(--site-width); max-width: none; margin: 0 auto; padding: 56px 0 0; box-sizing: border-box; }
.site-footer__grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding-bottom: 44px; }
.site-footer__brand { flex: 0 1 340px; min-width: 0; }
.site-footer__col { flex: 0 1 auto; min-width: 0; }
.site-footer__logo { display: inline-block; margin-bottom: 16px; }
.site-footer__logo img { display: block; width: 170px; height: auto; }
.site-footer__about { max-width: 340px; margin: 0 0 20px; font-size: 14px; line-height: 1.65; color: #545465; }
.site-footer__social {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 8px; background: #3a5597; color: #fff; transition: background .2s ease;
}
.site-footer__social:hover { background: #4c82b7; }
.site-footer__heading {
  margin: 4px 0 18px; font-family: Eina, sans-serif; font-size: 15px; font-weight: 700;
  line-height: 1.3; letter-spacing: .2px; color: #2b2a35;
}
.site-footer__list { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { margin: 0 0 10px; }
.site-footer__list a { color: #545465; text-decoration: none; transition: color .15s ease; white-space: nowrap; }
.site-footer__list a:hover, .site-footer__list a[aria-current="page"] { color: #3a5597; }
.site-footer__contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; line-height: 1.6; }
.site-footer__icon { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 3px; color: #3a5597; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px;
  padding: 20px 0 26px; border-top: 1px solid #e3e5ec; font-size: 13px; line-height: 1.6; color: #6b6e7b;
}
.site-footer__legal p { margin: 0 0 2px; font-size: 13px; line-height: 1.6; color: inherit; }
.site-footer__legal a, .site-footer__legal-links a { color: #3a5597; text-decoration: none; }
.site-footer__legal a:hover, .site-footer__legal-links a:hover { text-decoration: underline; }
.site-footer__legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; flex-shrink: 0; }
.site-footer__legal-links a { white-space: nowrap; }
@media screen and (max-width: 991px) {
  .site-footer__inner { padding-top: 44px; }
  .site-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 32px; }
  .site-footer__bottom { flex-direction: column; gap: 10px; }
}
@media screen and (max-width: 560px) {
  .site-footer__inner { padding-top: 36px; }
  .site-footer__grid { gap: 28px 20px; padding-bottom: 32px; }
  .site-footer__brand, .site-footer__grid > .site-footer__col:last-child { grid-column: 1 / -1; }
  .site-footer__about { max-width: none; }
  .site-footer__heading { margin-bottom: 12px; }
  .site-footer__list a { white-space: normal; }
}

/* ---------- desktop header ----------
   Logo on the left edge, menu and "Trade Enquiry" button on the right edge
   of the shared content width. Height is unchanged. */
@media screen and (min-width: 992px) {
  .nav.w-nav { padding-left: 0 !important; padding-right: 0 !important; box-shadow: 0 1px 0 #e9ecf3; }
  .nav.w-nav > .nav__container {
    display: flex; align-items: center; justify-content: space-between;
    width: var(--site-width); max-width: none; margin-left: auto; margin-right: auto; padding: 0;
  }
  .nav__container > .nav-logo { flex: 0 0 auto; margin: 0; }
  .nav__container .image-3 { margin-left: 0; margin-right: 0; inset: auto; }
  .nav__menu > .nav__link-div-learning { display: none !important; }
  .nav__container > .nav__menu { display: flex; align-items: center; gap: 36px; margin: 0 0 0 auto; padding: 0; }
  .nav__menu > a.nav__link-div,
  .nav__menu .nav__link-div-jobs > a.nav__link-div-jobstext {
    position: relative; margin: 0 !important; padding: 10px 0; height: auto; border: 0 !important; display: block;
  }
  .nav__menu .nav__link-div-jobs { margin: 0; }
  .nav__menu .nav__link-div-jobs:not(:has(a[data-careers-link]:not([style*="none"]))) { display: none; }
  .nav__menu .nav__link,
  .nav__menu .dropdown-toggle .text-block {
    font-family: Eina, sans-serif; font-size: 15px; font-weight: 700; line-height: 20px; color: #2b2a35; letter-spacing: .1px; transition: color .15s ease;
  }
  .nav__menu > a.nav__link-div::after,
  .nav__menu .nav__link-div-jobs > a.nav__link-div-jobstext::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
    background: #3a5597; transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
  }
  .nav__menu > a.nav__link-div:hover::after,
  .nav__menu > a.nav__link-div.w--current::after,
  .nav__menu .nav__link-div-jobs > a.nav__link-div-jobstext:hover::after { transform: scaleX(1); }
  .nav__menu > a.nav__link-div:hover .nav__link,
  .nav__menu > a.nav__link-div.w--current .nav__link,
  .nav__menu .nav__link-div-jobs > a:hover .nav__link,
  .nav__menu .dropdown-toggle:hover .text-block,
  .nav__menu > .dropdown:has(.w--current) .text-block,
  .nav__menu > .dropdown:has(.w--current) .icon { color: #3a5597; }
  .nav__menu > .dropdown { margin: 0; }
  .nav__menu .dropdown-toggle { align-items: center; gap: 4px; margin: 0; padding: 10px 0; }
  .nav__menu .dropdown-toggle .icon { margin: 0; color: #2b2a35; }
  .nav__menu > .nav__buttons { display: flex; order: 10; position: static; margin: 0 0 0 -8px; }
  .nav__buttons .button.button--blue {
    display: inline-flex; align-items: center; margin: 0; padding: 11px 20px; border-radius: 8px;
    background: #3a5597; color: #fff; font-size: 14px; font-weight: 700; line-height: 18px; letter-spacing: .2px; white-space: nowrap;
  }
  .nav__buttons .button.button--blue:hover { background: #4c82b7; }
  .nav__container > .nav__menu .dropdown-list.w--open {
    min-width: 240px; margin-top: 6px; padding: 8px 0; border: 1px solid #e9ecf3; border-radius: 12px;
    background: #fff; box-shadow: 0 14px 32px rgba(43, 42, 53, .14); overflow: hidden;
  }
  .nav__container > .nav__menu .dropdown-list .w-dropdown-link {
    margin: 0; padding: 10px 20px; font-family: Eina, sans-serif; font-size: 15px; font-weight: 500;
    line-height: 20px; color: #2b2a35; white-space: nowrap; transition: background .15s ease, color .15s ease;
  }
  .nav__container > .nav__menu .dropdown-list .w-dropdown-link:hover,
  .nav__container > .nav__menu .dropdown-list .w-dropdown-link.w--current { background: #f5f7fb; color: #3a5597; }
}
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .nav__container > .nav__menu { gap: 24px; }
}

/* ---------- former extra H1s ----------
   Each page now has one H1. The other headings became role="heading"
   blocks; this repeats the base h1 style at zero specificity so they
   look exactly as before. */
:where(.as-h1) { margin-top: 0; margin-bottom: 0; font-family: Markpro, sans-serif; font-size: 144px; font-weight: 900; line-height: 137px; }
