/* ============================================================
   Zalom Communications — House Style
   Brand primary: #174481 (sourced from original site hero banners)
   Built by AMRIX to the Melissa-reference build standard.
   ============================================================ */

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

:root {
  /* Brand */
  --z-blue: #174481;
  --z-blue-dark: #0d2b52;
  --z-blue-light: #2b62b0;
  --z-accent: #c9a55c;          /* restrained gold — medical + premium */
  --z-accent-dark: #a8873e;

  /* Neutrals */
  --ink: #1a2332;
  --ink-muted: #5a6578;
  --ink-soft: #8a95a8;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef1f6;
  --border: rgba(15, 30, 60, 0.08);
  --border-strong: rgba(15, 30, 60, 0.15);

  /* Feedback */
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;

  /* Shape */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(10, 20, 40, 0.04);
}
.nav__bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav__logo img { height: 34px; width: auto; display: block; }
.nav__brand-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.nav__brand-text strong {
  font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em; color: var(--z-blue);
}
.nav__brand-text span { font-size: 0.68rem; color: var(--ink-muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--surface); }
.nav__link.active { color: var(--z-blue); font-weight: 600; }
.nav__cta {
  margin-left: 8px;
  background: var(--z-blue);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition);
}
.nav__cta:hover { background: var(--z-blue-dark); transform: translateY(-1px); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--z-blue) 0%, var(--z-blue-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 165, 92, 0.15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(43, 98, 176, 0.35), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.hero__kicker::before,
.hero__kicker::after {
  content: '';
  width: 32px; height: 1px;
  background: var(--z-accent);
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--z-accent); }
.hero__lead {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  margin-bottom: 32px;
}
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--z-accent);
  color: var(--z-blue-dark);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
}
.hero__cta:hover { background: #d9b56b; transform: translateY(-2px); }
.hero__cta--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: 12px;
}
.hero__cta--ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.hero__image {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 420px;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__image img { width: 88%; height: auto; object-fit: contain; }
.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero__stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero__stats strong { font-size: 1.6rem; font-weight: 800; color: #fff; }
.hero__stats span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.02em; }

/* ── Page hero (shorter) ────────────────────────────────────── */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--z-blue) 0%, var(--z-blue-dark) 100%);
  color: #fff;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--z-accent), transparent);
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.page-hero p {
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Sections & cards ───────────────────────────────────────── */
.section__heading {
  text-align: center;
  margin-bottom: 48px;
}
.section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--z-blue);
  margin-bottom: 12px;
}
.section__kicker::before,
.section__kicker::after {
  content: '';
  width: 28px; height: 1px;
  background: var(--z-accent);
}
.section__heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--ink);
}
.section__heading p {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 30, 60, 0.08);
  border-color: var(--border-strong);
}
.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--z-blue), var(--z-blue-dark));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card__icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.feature-card p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; }

/* ── Product grid ───────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 30, 60, 0.1);
}
.product-card__img {
  aspect-ratio: 4/3;
  background: radial-gradient(circle at 50% 50%, #eaf0f8, #d6e0ee);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
}
.product-card__img img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.product-card__img .placeholder {
  width: 70%; aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--z-blue), var(--z-blue-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 12px;
}
.product-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card__category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--z-accent-dark);
}
.product-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.product-card__desc { font-size: 0.85rem; color: var(--ink-muted); line-height: 1.55; flex: 1; }
.product-card__cta {
  margin-top: 6px;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--z-blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.product-card__cta svg { width: 14px; height: 14px; stroke: currentColor; transition: transform var(--transition); }
.product-card:hover .product-card__cta svg { transform: translateX(4px); }

/* ── Filter bar for /products ───────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  background: #fff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover { color: var(--ink); border-color: var(--z-blue); }
.filter-chip.active { background: var(--z-blue); color: #fff; border-color: var(--z-blue); }

/* ── IP Nurse Call intro band ───────────────────────────────── */
.intro-band {
  background: var(--surface);
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.intro-band__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.intro-band h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.intro-band h2 span { color: var(--z-blue); }
.intro-band p { font-size: 0.98rem; color: var(--ink-muted); margin-bottom: 12px; }
.intro-band__image {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
}
.intro-band__image img { width: 100%; height: 100%; object-fit: cover; }

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--z-blue) 0%, var(--z-blue-dark) 100%);
  color: #fff;
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(201, 165, 92, 0.2), transparent 60%);
}
.cta-band .container { position: relative; }
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cta-band p { font-size: 1rem; color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Badges row (industries) ───────────────────────────────── */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}
.badge {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border-strong);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

/* ── Forms ──────────────────────────────────────────────────── */
.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form__group--full { grid-column: 1 / -1; }
.form__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.form__label .req { color: var(--err); }
.form__label .opt { color: var(--ink-soft); font-weight: 400; }
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--z-blue);
  box-shadow: 0 0 0 3px rgba(23, 68, 129, 0.12);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--z-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.form__submit:hover { background: var(--z-blue-dark); transform: translateY(-1px); }
.form__submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form__note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 12px;
  line-height: 1.6;
}
.form__status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}
.form__status.show { display: block; }
.form__status--ok { background: rgba(22, 163, 74, 0.08); color: var(--ok); border: 1px solid rgba(22, 163, 74, 0.2); }
.form__status--err { background: rgba(220, 38, 38, 0.08); color: var(--err); border: 1px solid rgba(220, 38, 38, 0.2); }

/* ── Contact grid ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.contact-card__icon svg { width: 20px; height: 20px; stroke: var(--z-blue); fill: none; stroke-width: 2; }
.contact-card h4 { font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; letter-spacing: 0.01em; }
.contact-card p, .contact-card a { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.6; }
.contact-card a:hover { color: var(--z-blue); }

/* ── Download cards ────────────────────────────────────────── */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}
.download-card:hover { border-color: var(--z-blue); transform: translateY(-2px); }
.download-card__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--z-blue), var(--z-blue-light));
  display: flex; align-items: center; justify-content: center;
}
.download-card__icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }
.download-card__body { flex: 1; }
.download-card__name { font-weight: 600; color: var(--ink); font-size: 0.9rem; }
.download-card__meta { font-size: 0.74rem; color: var(--ink-soft); margin-top: 2px; }
.download-card__cta { color: var(--z-blue); font-size: 0.8rem; font-weight: 600; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--z-blue-dark);
  color: #c8d4e8;
  padding: 64px 0 28px;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer__logo { height: 36px; margin-bottom: 14px; }
.footer__tagline { font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); line-height: 1.7; }
.footer__col h4 {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 16px;
}
.footer__link { display: block; font-size: 0.86rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 10px; transition: color var(--transition); }
.footer__link:hover { color: #fff; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 14px;
}
.footer__copy { font-size: 0.76rem; color: rgba(255, 255, 255, 0.45); }
.footer__legal { display: flex; gap: 20px; }
.footer__legal a { font-size: 0.76rem; color: rgba(255, 255, 255, 0.45); }
.footer__legal a:hover { color: #fff; }
.footer__built-by { font-size: 0.76rem; color: rgba(255, 255, 255, 0.45); }
.footer__built-by a { color: var(--z-accent); font-weight: 500; }

/* ── Scroll reveals ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    position: absolute;
    top: 72px;
    right: 16px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(10, 20, 40, 0.12);
    min-width: 220px;
  }
  .nav__links.open .nav__link { width: 100%; }
  .nav__toggle { display: flex; }

  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__image { max-width: 320px; margin: 0 auto; }
  .hero__stats { gap: 20px; }

  .intro-band__grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta--ghost { margin-left: 0; margin-top: 10px; display: block; width: fit-content; }
}
