/* Medisight LifeScience — static site */
:root {
  --blue: #4a6d81;
  --blue-dark: #2f4a5a;
  --blue-deep: #1a2f3a;
  --green: #7bae72;
  --green-dark: #5f8f57;
  --ink: #15252e;
  --muted: #5a6f7a;
  --line: rgba(74, 109, 129, 0.18);
  --paper: #f3f7f5;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(26, 47, 58, 0.12);
  --radius: 18px;
  --max: 1120px;
  --header-h: 76px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(123, 174, 114, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(74, 109, 129, 0.14), transparent 50%),
    var(--paper);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-deep);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(243, 247, 245, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand img {
  height: 48px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text strong .medi {
  color: var(--blue);
}

.brand-text strong .sight {
  color: var(--green-dark);
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--blue-dark);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(74, 109, 129, 0.1);
  color: var(--blue-deep);
}

.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  margin-left: 0.35rem;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-wrap {
  min-width: 110px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue-deep);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(26, 47, 58, 0.88) 18%, rgba(26, 47, 58, 0.45) 58%, rgba(74, 109, 129, 0.25) 100%),
    linear-gradient(to top, rgba(26, 47, 58, 0.55), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 4rem;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.35em;
  opacity: 0;
  animation: rise 0.9s ease 0.15s forwards;
}

.hero-brand .medi {
  color: #b7d0dc;
}

.hero-brand .sight {
  color: #b6d8ad;
}

.hero h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  max-width: 28ch;
  margin-bottom: 0.75em;
  opacity: 0;
  animation: rise 0.9s ease 0.3s forwards;
}

.hero p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 42ch;
  font-size: 1.08rem;
  opacity: 0;
  animation: rise 0.9s ease 0.45s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
  opacity: 0;
  animation: rise 0.9s ease 0.6s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--blue-deep);
  box-shadow: 0 10px 30px rgba(123, 174, 114, 0.35);
}

.btn-primary:hover {
  background: #8fbf86;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-dark {
  background: var(--blue);
  color: white;
}

.btn-dark:hover {
  background: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--blue-dark);
  border: 1px solid var(--line);
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  color: white;
  background: var(--blue-deep);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 280px at 85% 20%, rgba(123, 174, 114, 0.28), transparent 60%),
    linear-gradient(120deg, rgba(26, 47, 58, 0.92), rgba(74, 109, 129, 0.75));
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 18ch;
}

.page-hero p {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--blue-deep);
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

/* Category bands — not cards in hero; list/grid for interaction */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.category-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(123, 174, 114, 0.45);
}

.category-link img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
}

.category-link h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35em;
  color: var(--blue-deep);
}

.category-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.category-link .more {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.9rem;
}

/* Stats */
.stats {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: white;
  padding: 3.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  color: #d7ebc8;
}

.stat span {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

/* Products strip */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #e8eef1;
}

.product-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.product-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
  color: var(--blue-deep);
}

.product-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* About split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 360px;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

.mission-block {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}

.mission-block h3 {
  color: var(--blue);
  font-size: 1.1rem;
}

.mission-block p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Catalog lists */
.catalog {
  display: grid;
  gap: 1rem;
}

.catalog-item {
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 14px 14px 0;
}

.catalog-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35em;
  color: var(--blue-deep);
}

.catalog-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-panel {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}

.contact-panel h2 {
  font-size: 1.4rem;
  color: var(--blue-deep);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-list a {
  color: var(--blue-dark);
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--green-dark);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfdfc;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74, 109, 129, 0.15);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: none;
  font-weight: 600;
}

.form-status.ok {
  display: block;
  background: rgba(123, 174, 114, 0.18);
  color: var(--green-dark);
}

.form-status.err {
  display: block;
  background: rgba(180, 60, 60, 0.12);
  color: #8a2a2a;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* CTA band */
.cta-band {
  padding: 4rem 0;
}

.cta-inner {
  border-radius: 28px;
  padding: 3rem;
  background:
    linear-gradient(125deg, rgba(26, 47, 58, 0.94), rgba(74, 109, 129, 0.88)),
    url("../assets/hero/medications.jpg") center/cover;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.35em;
}

.cta-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40ch;
}

/* Footer */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.site-footer a:hover {
  color: var(--green);
}

.footer-brand img {
  height: 56px;
  margin-bottom: 0.85rem;
  background: white;
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 920px) {
  .category-grid,
  .product-grid,
  .stats-grid,
  .mission-grid,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-link {
    grid-template-columns: 96px 1fr;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(243, 247, 245, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-text {
    display: none;
  }

  .hero-content {
    padding: 3rem 0 2.5rem;
  }

  .cta-inner {
    padding: 2rem;
  }

  .category-link {
    grid-template-columns: 1fr;
  }

  .category-link img {
    width: 100%;
    height: 140px;
  }
}
