/* The Farmacy brand: purple + lime. PerAlta: deep blue. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --purple: #7b2ff2;
  --purple-deep: #5b1fc4;
  --purple-soft: #f3ebff;
  --lime: #3cf04b;
  --lime-deep: #1dbf3a;
  --lime-soft: #e9ffe9;
  --ink: #1a1228;
  --ink-soft: #4a4258;
  --muted: #7a7289;
  --bg: #faf8ff;
  --bg-warm: #f6f0ff;
  --white: #ffffff;
  --line: #e4dcf2;
  --blue: #0d4f8b;
  --blue-deep: #083862;
  --blue-soft: #eaf4fc;
  --gold: #f0c14b;
  --shadow: 0 18px 50px rgba(91, 31, 196, 0.12);
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); text-underline-offset: 3px; }
a:hover { color: var(--lime-deep); }
h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); }
h3 { font-size: 1.22rem; font-family: var(--font); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 38rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}
.logo-link img {
  height: 48px;
  width: auto;
  filter: none !important;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--purple); }
.nav-toggle {
  display: none;
  border: none;
  background: var(--purple);
  color: #fff;
  padding: 0.5rem 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.3rem;
  font-weight: 800;
  font-size: 0.94rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 999px;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--purple);
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(123, 47, 242, 0.35);
}
.btn-primary:hover { background: var(--purple-deep); }
.btn-secondary {
  background: var(--white);
  color: var(--ink) !important;
  border: 2px solid var(--purple);
}
.btn-lime {
  background: var(--lime);
  color: var(--ink) !important;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 70% 80% at 0% 50%, rgba(123, 47, 242, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(60, 240, 75, 0.18), transparent 50%),
    linear-gradient(135deg, #2a0a5c 0%, #5b1fc4 45%, #7b2ff2 100%);
  color: #fff;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: min(72vh, 620px);
  align-items: stretch;
}
.hero-copy {
  padding: 3.25rem 1.5rem 3.25rem clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy h1 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.hero-copy .lead { color: rgba(255,255,255,0.9); }
.hero-media {
  position: relative;
  min-height: 320px;
  background: #2a0a5c;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  margin-bottom: 1rem;
  background: var(--lime);
  color: var(--ink);
  border-radius: 999px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.trust-badge {
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.trust-badge.usa {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border-color: rgba(255,255,255,0.28);
}

/* Sections */
section { padding: 3.5rem 0; }
.section-soft { background: var(--bg-warm); }
.section-white { background: #fff; }
.section-purple {
  background: linear-gradient(160deg, #2a0a5c, #5b1fc4 60%, #7b2ff2);
  color: #fff;
}
.section-purple h2, .section-purple h3 { color: #fff; }
.section-purple p { color: rgba(255,255,255,0.9); }
.section-head { max-width: 40rem; margin-bottom: 1.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Mosaic */
.banner-mosaic {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 380px;
  overflow: hidden;
  border-radius: 28px;
  position: relative;
  box-shadow: var(--shadow);
}
.banner-mosaic .mosaic-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-mosaic .mosaic-a { grid-row: 1 / 3; }
.banner-mosaic .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(42,10,92,0.88) 0%, rgba(42,10,92,0.25) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  z-index: 2;
}
.banner-mosaic .overlay h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  max-width: 12ch;
  margin: 0 0 0.5rem;
}
.banner-mosaic .overlay p,
.banner-mosaic .overlay .recovery-caption {
  max-width: 28rem;
  margin: 0;
}
.banner-mosaic .overlay .recovery-caption {
  display: inline-block;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  line-height: 1.45;
}

/* Values — static row that pops, no marquee */
.values-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.value-tile {
  padding: 1.75rem 1.4rem;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.value-tile:nth-child(1) {
  background: linear-gradient(145deg, var(--purple), var(--purple-deep));
  color: #fff;
}
.value-tile:nth-child(2) {
  background: linear-gradient(145deg, var(--lime), #9aff7a);
  color: var(--ink);
}
.value-tile:nth-child(3) {
  background: linear-gradient(145deg, #1a1228, #3d2a6b);
  color: #fff;
}
.value-tile h3 {
  color: inherit;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.value-tile p {
  color: inherit;
  opacity: 0.92;
  margin: 0;
  font-size: 0.98rem;
}
.value-tile .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
}
.value-tile .icon.us-mark {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  display: inline-block;
  padding: 0.35rem 0.55rem;
  border: 2px solid currentColor;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

/* Two lines — stronger type */
.lines-intro {
  text-align: center;
  padding: 0.5rem 0 2rem;
}
.lines-intro h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-family: var(--display);
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}
.lines-intro p {
  font-size: 1.2rem;
  max-width: 32rem;
  margin: 0 auto;
  color: rgba(255,255,255,0.88);
}

.brand-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.brand-tile {
  border-radius: 28px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  color: #fff;
  box-shadow: var(--shadow);
}
.brand-tile img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.brand-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(20,10,40,0.88) 100%);
  z-index: 1;
}
.brand-tile.peralta::after {
  background: linear-gradient(180deg, transparent 15%, rgba(8,40,70,0.9) 100%);
}
.brand-tile .content {
  position: relative;
  z-index: 2;
  padding: 1.75rem;
}
.brand-tile h3 {
  color: #fff;
  font-family: var(--display);
  font-size: 1.85rem;
  margin: 0.4rem 0 0.35rem;
}
.brand-tile .tagline {
  color: var(--lime);
  font-weight: 800;
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}
.brand-tile.peralta .tagline { color: #7ec8ff; }
.brand-tile p { color: rgba(255,255,255,0.9); margin: 0 0 1rem; }

/* Lines page — brand sections */
.brand-section {
  padding: 3.5rem 0;
}
.brand-section.farmacy {
  background: linear-gradient(180deg, var(--purple-soft) 0%, var(--bg) 45%);
}
.brand-section.peralta {
  background: linear-gradient(180deg, var(--blue-soft) 0%, var(--bg) 45%);
  border-top: 1px solid #d0e6f7;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.brand-mark img {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.brand-mark.peralta img {
  height: 88px;
  max-width: 420px;
  width: auto;
}
.brand-intro {
  max-width: 36rem;
  margin-bottom: 2rem;
}
.brand-intro .role {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.brand-section.farmacy .role {
  background: var(--lime);
  color: var(--ink);
}
.brand-section.peralta .role {
  background: var(--blue);
  color: #fff;
}
.product-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.product-flow article {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(26, 18, 40, 0.08);
}
.product-flow .shot {
  background: linear-gradient(160deg, #f8f5ff, #fff);
  padding: 2rem;
  display: grid;
  place-items: center;
  min-height: 260px;
}
.product-flow .shot img {
  max-height: 240px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.product-flow .body {
  padding: 1.35rem 1.5rem 1.6rem;
  border-top: 1px solid var(--line);
}
.product-flow .body h3 {
  font-family: var(--display);
  font-size: 1.45rem;
}
.product-flow .note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}
.ingredients {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* Who — staggered, not card clones */
.who-list {
  display: grid;
  gap: 2.5rem;
}
.who-item {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1.75rem;
  align-items: center;
}
.who-item:nth-child(even) {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.who-item:nth-child(even) .who-pic { order: 2; }
.who-pic {
  border-radius: 32px 8px 32px 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 240px;
}
.who-item:nth-child(even) .who-pic {
  border-radius: 8px 32px 8px 32px;
}
.who-pic img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}
.who-copy h3 {
  font-family: var(--display);
  font-size: 1.6rem;
}
.who-copy .role {
  font-weight: 800;
  color: var(--purple);
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
}

/* Contact — strip layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}
.contact-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.contact-intro ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}
.contact-intro li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink-soft);
}
.contact-form {
  background: #fff;
  padding: 1.75rem;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  background: #faf8ff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--purple);
  border-color: var(--purple);
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.86rem; color: var(--muted); margin-top: 0.7rem; }
.form-setup {
  background: var(--purple-soft);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Page intros — less cheesy, more editorial */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  max-width: 18ch;
}
.page-hero .lead {
  font-size: 1.08rem;
  max-width: 36rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.feature-list li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.25rem;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 2px rgba(60, 240, 75, 0.25);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: 24px;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
}
.story-steps { display: grid; gap: 1rem; }
.story-step {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1rem;
  align-items: start;
}
.story-step .num {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
}
.notice {
  background: var(--purple-soft);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  font-size: 0.95rem;
}
.callout {
  background: var(--lime-soft);
  border-radius: 16px;
  padding: 1rem 1.15rem;
  margin: 1rem 0;
}
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* Footer */
.site-footer {
  background: #1a1228;
  color: rgba(255,255,255,0.75);
  padding: 2.75rem 0 1.5rem;
}
.site-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.94rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.1rem;
  font-size: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 960px) {
  .hero-inner, .brand-duo, .product-flow, .who-item, .who-item:nth-child(even),
  .contact-layout, .split, .grid-2, .grid-3, .values-row, .footer-grid {
    grid-template-columns: 1fr;
  }
  .who-item:nth-child(even) .who-pic { order: 0; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .header-inner { position: relative; }
  .form-grid { grid-template-columns: 1fr; }
  .banner-mosaic {
    grid-template-columns: 1fr 1fr;
    height: auto;
    grid-template-rows: 140px 140px 140px;
  }
  .banner-mosaic .mosaic-a {
    grid-column: 1 / 3;
    grid-row: auto;
  }
}
