/* Palette: green, gold, light green, olive gold, plus white. Flat fills only: no gradients, no shadows. */
:root {
  --noche: rgb(0, 48, 0);
  --verde: rgb(0, 48, 0);
  --dorado: #c7aa1e;
  --oliva: #406d09;
  --ink: #1b2b1b; /* verde, much darker, for body text */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

h1,
h2,
h3 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-weight: 400;
  line-height: 1;
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 2px solid var(--verde);
}

.top__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--verde);
}

.brand img {
  height: 52px;
  width: auto;
  mix-blend-mode: multiply; /* the logo file has a white background */
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid var(--verde);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
}

.btn--gold {
  background: var(--dorado);
}

.btn--gold:hover {
  background: var(--verde);
  color: #fff;
}

.btn--line {
  background: transparent;
}

.btn--line:hover {
  background: var(--noche);
  color: #fff;
}

.btn--cream {
  background: #fff;
}

.btn--cream:hover {
  background: var(--dorado);
}

/* Hero */
.hero__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  color: var(--verde);
}

.lead {
  max-width: 30em;
  margin: 20px 0 28px;
  font-size: 1.05rem;
}

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

.hero__logo {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  justify-self: center;
}

/* Product catalog */
.products {
  background: var(--noche);
  padding: 80px 0 40px;
}

.products h2,
.services h2,
.range h2,
.contact h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.products h2 {
  color: #fff;
}

.products__note {
  color: #fff;
  max-width: 38em;
  margin: 12px 0 0;
}

.cat {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 2px solid var(--dorado);
}

.cat h3 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: #fff;
}

.grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grid li {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  padding: 16px 14px 14px;
}

.grid img {
  width: 100%;
  height: 170px;
  object-fit: contain;
}

.grid span {
  margin-top: 12px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

/* Services */
.services {
  padding: 80px 0;
}

.services__in {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
}

.services h2 {
  color: var(--verde);
}

.services article p {
  max-width: 28em;
  margin: 12px 0 0;
}

.services .price {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--oliva); /* large text only: about 3:1 on white */
  margin-top: 16px;
}

/* Medication range */
.range {
  background: var(--verde);
  color: #fff;
  padding: 80px 0;
}

.range__in {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}

.range dl {
  margin: 0;
}

.range dl div {
  padding: 18px 0;
  border-top: 1px solid var(--oliva);
}

.range dl div:first-child {
  border-top: 0;
  padding-top: 0;
}

.range dt {
  font-weight: 700;
  font-size: 1.05rem;
}

.range dd {
  margin: 4px 0 0;
  color: #fff;
}

/* Contact */
.contact {
  background: var(--oliva);
  color: #fff; /* heading is large text; body copy sits on white cards */
  padding: 72px 0;
}

.contact__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 28px;
}

.hours {
  margin: 0;
  display: grid;
  gap: 12px;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
}

.hours dt {
  font-weight: 700;
}

.hours dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

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

/* Footer */
.foot {
  background: var(--verde);
  color: #fff;
  font-size: 13px;
  padding: 22px 0;
  border-top: 1px solid var(--oliva);
}

.foot .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Tablet and phone */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero__in,
  .services__in,
  .range__in,
  .contact__in {
    grid-template-columns: 1fr;
  }

  .hero__in {
    padding-top: 40px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products,
  .services,
  .range {
    padding: 56px 0;
  }

  .products {
    padding-bottom: 24px;
  }

  .services__in,
  .range__in {
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none; /* phone header: just the logo and the WhatsApp button */
  }

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

  .grid img {
    height: 130px;
  }

  .hero__cta .btn,
  .links .btn {
    width: 100%;
  }

  .hours div {
    flex-direction: column;
    gap: 2px;
  }

  .hours dd {
    text-align: left;
  }
}

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