/* ================================================================
   HopMeds Pharmacy — public site
   Same palette as the staff app (teal + marigold on cream) so the
   site and the product read as one thing. System fonts only: this is
   the first thing a shop on a slow connection sees, and a webfont
   round-trip would delay the paint for no real gain.
   ================================================================ */

:root {
  --teal: #0f4d4d;
  --teal-light: #1a6b6b;
  --marigold: #d96a25;
  --marigold-deep: #a84812;
  --cream: #fdf3e3;
  --cream-2: #f9ead4;
  --rule: #ead8b8;
  --ink: #2a1a10;
  --ink-soft: #6b5340;
  --white: #fff;

  --wrap: 1080px;
  --r: 16px;
  --shadow: 0 1px 2px rgba(42, 26, 16, .06), 0 8px 24px rgba(42, 26, 16, .06);
}

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

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

body {
  font-family: 'Nirmala UI', 'Kohinoor Devanagari', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal); color: var(--cream); padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 243, 227, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
/* .nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; } */
.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.brand__logo { width: 132px; }
/* Latin gets the tracked small-caps treatment; Devanagari must not be
   letter-spaced — it shatters the conjuncts. */
.brand__sub {
  font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--ink-soft); padding-left: 2px;
}
html[lang="ne"] .brand__sub { letter-spacing: normal; text-transform: none; font-size: 12px; }

/* .nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links > a { font-size: 15px; color: var(--ink-soft); }
.nav__links > a:hover { color: var(--teal); } */

.nav__center { display: flex; align-items: center; gap: 22px; justify-self: center; }
.nav__center > a { font-size: 15px; color: var(--ink-soft); }
.nav__center > a:hover { color: var(--teal); }

.nav__actions { display: flex; align-items: center; gap: 22px; justify-self: end; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
}

.langbtn {
  font: inherit; font-size: 14px; cursor: pointer;
  background: transparent; border: 1px solid var(--rule); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 999px; transition: all .15s;
}
.langbtn:hover { border-color: var(--teal); color: var(--teal); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .08s, background-color .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn--solid { background: var(--marigold); color: var(--white); box-shadow: 0 4px 14px rgba(168, 72, 18, .28); }
.btn--solid:hover { background: var(--marigold-deep); }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); background: rgba(15, 77, 77, .04); }
.btn--lg { padding: 16px 30px; font-size: 16px; border-radius: 14px; }

/* ---- Hero ---- */
.hero { padding: 80px 0 64px; background: radial-gradient(80% 120% at 50% 0%, #fff 0%, var(--cream) 60%); }
.hero__inner { max-width: 800px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px); line-height: 1.08; letter-spacing: -1.2px;
  color: var(--teal); font-weight: 800; margin-bottom: 20px;
}
html[lang="ne"] .hero h1 { letter-spacing: normal; line-height: 1.25; }
.hero__lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--ink-soft); margin: 0 auto 32px; max-width: 640px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 20px; font-size: 14px; color: var(--ink-soft); opacity: .85; }

/* ---- Trust strip ---- */
.strip { background: var(--teal); color: var(--cream); }
.strip__viewport {
  overflow: hidden;
}

.strip__viewport:hover .strip__track,
.strip__viewport:focus-within .strip__track {
  animation-play-state: paused;
}

.strip__track {
  display: flex;
  align-items: center;
  gap: 126px;              /* gap BETWEEN groups — comparatively large */
  width: max-content;
  animation: strip-scroll 32s linear infinite;
  will-change: transform;
}

.strip__group {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 40px;               /* gap WITHIN a group — back to original */
  padding: 16px 0;
  font-size: 14px;
  opacity: .95;
  white-space: nowrap;
}

@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Sections ---- */

/* modify this offset value for navbar link to adjust by how much the content is seen */
:root {
  --anchor-offset: 112px;
}
.section {
  padding: 76px 0;
  scroll-margin-top: var(--anchor-offset);
}
.section--alt { background: var(--cream-2); }
.section h2 {
  font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -.6px;
  color: var(--teal); font-weight: 800; margin-bottom: 12px; text-align: center;
}
html[lang="ne"] .section h2 { letter-spacing: normal; }
.section__lead { text-align: center; color: var(--ink-soft); margin-bottom: 40px; }
.section h2 + .grid { margin-top: 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card--wide { padding: 30px 28px; }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px;
  background: var(--cream-2); color: var(--marigold-deep);
  display: grid; place-items: center;
}
.card__icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 18px; color: var(--teal); margin-bottom: 8px; letter-spacing: -.2px; }
html[lang="ne"] .card h3 { letter-spacing: normal; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* ---- Coming soon ---- */
.soon { display: flex; align-items: center; gap: 44px; flex-wrap: wrap; }
.soon__text { flex: 1 1 380px; }
.soon__text h2 { text-align: left; }
.soon__text p { color: var(--ink-soft); margin: 12px 0 22px; }
.soon__mark { flex: 0 0 auto; margin: 0 auto; opacity: .9; }

/* ---- CTA ---- */
.section--cta { background: var(--teal); color: var(--cream); }
.cta { text-align: center; max-width: 660px; }
.section--cta h2 { color: var(--cream); }
.cta p { color: rgba(253, 243, 227, .82); margin-bottom: 30px; }
.cta__links { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.section--cta .btn--ghost { border-color: rgba(253, 243, 227, .45); color: var(--cream); }
.section--cta .btn--ghost:hover { border-color: var(--cream); background: rgba(253, 243, 227, .1); color: var(--cream); }

/* ---- Footer ---- */
.foot { 
  background: var(--cream-2); 
  border-top: 1px solid var(--rule); 
  padding: 64px 0 28px; 
}

.foot__grid { 
  display: grid; 
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr; 
  gap: 40px; 
  align-items: flex-start;
}

.foot__brand img { margin-bottom: 12px; }
.foot__sub { font-size: 14px; color: var(--ink-soft); max-width: 240px; }

.foot__socials { 
  display: flex; 
  gap: 10px; 
  margin-top: 20px; 
}
.foot__socials a {
  width: 36px; 
  height: 36px;
  display: grid; 
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 14px; 
  font-weight: 700;
  color: var(--teal);
  transition: all .15s;
}
.foot__socials a:hover {
  background: var(--teal); 
  color: var(--cream); 
  border-color: var(--teal);
}

.foot__col { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.foot__col h4 { 
  color: var(--teal); 
  font-size: 15px; 
  margin-bottom: 4px; 
  font-weight: 700; 
}

.foot__col a, 
.foot__contact p { 
  color: var(--ink-soft); 
  font-size: 14px; 
  transition: color .15s;
}

.foot__col a:hover { color: var(--teal); }

/* Specific styling for the address block */
.foot__contact address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}
.foot__contact address strong {
  color: var(--ink);
  font-weight: 600;
}
.foot__contact a:hover { color: var(--teal); }

.foot__legal { 
  margin-top: 56px; 
  padding-top: 20px; 
  border-top: 1px solid var(--rule); 
  font-size: 13px; 
  color: var(--ink-soft); 
  opacity: .8; 
  text-align: center;
}

/* CTA Section Phone Number */
.cta__phone {
  margin-top: 20px;
  font-size: 15px;
  color: rgba(253, 243, 227, .82);
}
.cta__phone a {
  color: var(--cream);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Footer Responsive ---- */
@media (max-width: 860px) {
  .foot__grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 32px; 
  }
  .foot__brand { 
    grid-column: 1 / -1; 
    margin-bottom: 8px; 
  }
  .foot__contact { 
    grid-column: 1 / -1; 
  }
}

@media (max-width: 480px) {
  .foot__grid { 
    grid-template-columns: 1fr; 
    gap: 24px; 
  }
}

/* ---- Policy pages ---- */
.policy { max-width: 820px; padding-top: 64px; padding-bottom: 80px; }
.policy__eyebrow { color: var(--marigold-deep); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.policy h1 { color: var(--teal); font-size: clamp(34px, 6vw, 52px); line-height: 1.1; margin: 8px 0 10px; }
.policy__updated { color: var(--ink-soft); margin-bottom: 34px; }
.policy__intro { font-size: 18px; color: var(--ink-soft); border-left: 4px solid var(--marigold); padding-left: 20px; margin-bottom: 38px; }
.policy section + section { margin-top: 34px; }
.policy h2 { color: var(--teal); font-size: 23px; line-height: 1.25; margin-bottom: 10px; }
.policy p + p, .policy ul + p { margin-top: 12px; }
.policy ul { padding-left: 24px; }
.policy li + li { margin-top: 8px; }
.policy a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.policy a:hover { color: var(--marigold-deep); }

/* ---- Responsive ---- */
@media (max-width: 860px) {

  .nav__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    gap: 12px;
  }
  .brand { order: 1; }
  .nav__toggle { display: flex; order: 2; margin-left: auto; }

  .nav__center,
  .nav__actions {
    display: none;
    order: 3;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0 20px;
    border-top: 1px solid var(--rule);
  }

  .nav--open .nav__center,
  .nav--open .nav__actions {
    display: flex;
  }

  .hero { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .soon__text h2 { text-align: center; }
  .soon__text { text-align: center; }
  .soon__text .btn { margin: 0 auto; }
  .policy { padding-top: 44px; padding-bottom: 56px; }

  /* animate hamburger icon into an X when opened */
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---- Polish ---- */

/* Slide animation for footer links on hover */
.foot__col a {
  display: inline-block;
  transition: color .15s ease, transform .15s ease;
}
.foot__col a:hover {
  transform: translateX(3px);
}

/* Ensure privacy page section anchors aren't hidden by sticky nav */
.policy section {
  scroll-margin-top: 112px;
}