/* ============================================================
   IMNT Health — global stylesheet
   Intelligent Medical Nutrition Therapy theme:
   blue (intelligent/medical) → teal → green (nutrition),
   vibrant gradients, playful shapes, bold type
   ============================================================ */

:root {
  --blue-600: #2563eb;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --emerald-500: #10b981;
  --lime-600: #65a30d;
  --lime-500: #84cc16;
  --cyan-400: #22d3ee;
  --amber-500: #f59e0b;
  --ink-900: #0e2231;
  --ink-600: #46606b;
  --ink-400: #7d939c;
  --white: #ffffff;
  --bg-tint: #f4fbf8;
  --bg-mint: #e6f6ef;

  --grad-brand: linear-gradient(120deg, #2563eb 0%, #0d9488 50%, #65a30d 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(37, 99, 235, 0.10), rgba(13, 148, 136, 0.10), rgba(132, 204, 22, 0.10));
  --grad-blue-teal: linear-gradient(135deg, #2563eb, #0d9488);
  --grad-dark: linear-gradient(150deg, #0a2540 0%, #0e3d4d 55%, #11513f 100%);

  --radius-lg: 26px;
  --radius-md: 14px;
  --shadow-soft: 0 14px 40px rgba(13, 148, 136, 0.16);
  --shadow-card: 0 6px 20px rgba(13, 148, 136, 0.10);
  --font-head: "Space Grotesk", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { color: var(--ink-600); }

a { color: var(--teal-600); text-decoration: none; }

/* Gradient text helper — applied to eyebrows, stats, logo */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.78rem;
  background: var(--grad-blue-teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; margin-top: 18px; }

.section { padding: 92px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-sub { margin-top: 14px; font-size: 1.05rem; }

sup { font-size: 0.6em; color: var(--ink-400); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
}

.btn:hover { transform: translateY(-2px) scale(1.02); }

.btn-lg { padding: 16px 36px; font-size: 1.02rem; }

.btn-primary {
  background: var(--grad-brand);
  background-size: 150% 150%;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}
.btn-primary:hover { background-position: 80% 50%; box-shadow: 0 12px 30px rgba(13, 148, 136, 0.45); }

.btn-secondary {
  background: var(--white);
  color: var(--teal-600);
  border-color: var(--teal-600);
}
.btn-secondary:hover { background: var(--bg-mint); }

.btn-ghost {
  background: transparent;
  color: var(--teal-600);
  border-color: rgba(13, 148, 136, 0.35);
}
.btn-ghost:hover { border-color: var(--teal-600); background: var(--bg-tint); }

.btn-light {
  background: var(--white);
  color: var(--teal-700);
}
.btn-light:hover { background: var(--bg-mint); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 148, 136, 0.10);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled { box-shadow: var(--shadow-card); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.logo-text { color: var(--ink-900); letter-spacing: 0.03em; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav > a:not(.btn) {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-600);
  position: relative;
}

.main-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 3px;
  border-radius: 3px;
  background: var(--grad-brand);
  transition: right 0.25s ease;
}

.main-nav > a:not(.btn):hover { color: var(--teal-600); }
.main-nav > a:not(.btn):hover::after { right: 0; }

.main-nav > a.active { color: var(--teal-600); }
.main-nav > a.active::after { right: 0; }

.nav-cta { margin-left: 4px; }

.main-nav .btn { padding: 10px 20px; font-size: 0.88rem; }

/* ---------- Nav dropdowns ---------- */

.nav-item { position: relative; }

.nav-drop-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-600);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  transition: color 0.15s ease;
}

.nav-drop-btn .caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}

.nav-item:hover .nav-drop-btn,
.nav-item.open .nav-drop-btn,
.nav-drop-btn.active { color: var(--teal-600); }

.nav-item:hover .caret,
.nav-item.open .caret { transform: rotate(225deg) translate(-2px, -2px); }

/* invisible bridge so the pointer can travel to the menu */
.nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -10px;
  right: -10px;
  height: 18px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--white);
  border: 1px solid rgba(13, 148, 136, 0.10);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 10px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.nav-item:hover .dropdown,
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  padding: 9px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-600);
  white-space: nowrap;
}

.dropdown a:hover { background: var(--bg-tint); color: var(--teal-600); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(600px 400px at 12% 10%, rgba(37, 99, 235, 0.12), transparent 70%),
    radial-gradient(500px 380px at 88% 20%, rgba(132, 204, 22, 0.14), transparent 70%),
    radial-gradient(520px 420px at 70% 90%, rgba(13, 148, 136, 0.13), transparent 70%),
    var(--bg-tint);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 110px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--ink-400);
}

.hero-visual { position: relative; min-height: 340px; }

.hero-blob {
  position: absolute;
  inset: 10% 5%;
  background: conic-gradient(from 210deg at 50% 50%, #2563eb, #0d9488, #10b981, #84cc16, #2563eb);
  border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%;
  opacity: 0.92;
  filter: saturate(1.1);
  animation: blob 9s ease-in-out infinite alternate;
}

/* playful floating ring + dot shapes around the blob */
.hero-blob::before {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 7px solid var(--cyan-400);
  top: -34px;
  right: -12px;
  animation: floaty 5.5s ease-in-out infinite;
}

.hero-blob::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber-500);
  bottom: -14px;
  left: -20px;
  animation: floaty 6.5s ease-in-out 0.8s infinite;
}

@keyframes blob {
  from { border-radius: 46% 54% 60% 40% / 50% 45% 55% 50%; transform: rotate(0deg); }
  to   { border-radius: 55% 45% 42% 58% / 45% 55% 45% 55%; transform: rotate(6deg); }
}

.hero-card {
  position: absolute;
  z-index: 2;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(13, 148, 136, 0.08);
  display: flex;
  flex-direction: column;
}

.hero-card .metric {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  background: var(--grad-blue-teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card .metric-label { font-size: 0.8rem; color: var(--ink-400); }

.card-float-1 { top: 8%; left: 0; animation: floaty 6s ease-in-out infinite; }
.card-float-2 { bottom: 6%; right: 0; animation: floaty 7s ease-in-out 1.2s infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-tint);
  border: 1px solid rgba(13, 148, 136, 0.08);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* each card gets its own fresh pastel gradient for a playful rhythm */
.feature-card:nth-child(1) { background: linear-gradient(160deg, #e8f1fe, #e6f6ef); }
.feature-card:nth-child(2) { background: linear-gradient(160deg, #e6f6ef, #f3fae5); }
.feature-card:nth-child(3) { background: linear-gradient(160deg, #e7f9fc, #e8f1fe); }

.feature-card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-soft);
}

.feature-icon { font-size: 2rem; margin-bottom: 18px; }

.feature-card h3 { margin-bottom: 12px; }

/* ---------- Split / GLP-1 ---------- */

.split-section { background: var(--white); }

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-copy p { margin: 16px 0 28px; }

.pill-chart {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  height: 260px;
  padding: 0 20px;
  border-bottom: 2px solid var(--bg-mint);
}

.pill-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #84cc16, #10b981 55%, #2563eb);
  border-radius: 14px 14px 0 0;
  position: relative;
  animation: grow 1.2s ease both;
}

@keyframes grow {
  from { height: 0; }
  to   { height: var(--h); }
}

.pill-bar span {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--ink-400);
  font-weight: 700;
}

.chart-caption {
  margin-top: 44px;
  font-size: 0.83rem;
  color: var(--ink-400);
  text-align: center;
}

/* ---------- Results / stats ---------- */

.results { background: var(--grad-dark); }

.results h2, .results .section-sub { color: var(--white); }
.results .section-sub { opacity: 0.85; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(120deg, #6ee7b7, #a5f3fc, #bef264);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.stat-card h3 { color: var(--white); margin-bottom: 10px; }

.stat-card p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.mini-number {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
}

.mini-stat p { color: rgba(255, 255, 255, 0.7); font-size: 0.92rem; margin-top: 6px; }

/* ---------- Testimonials ---------- */

.testimonials {
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(34, 211, 238, 0.10), transparent 70%),
    radial-gradient(500px 300px at 8% 85%, rgba(16, 185, 129, 0.10), transparent 70%),
    var(--bg-tint);
}

.carousel { max-width: 780px; margin: 0 auto; text-align: center; }

.carousel-track { position: relative; min-height: 210px; }

.testimonial {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.testimonial.active { opacity: 1; pointer-events: auto; }

.testimonial p {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.6;
}

.testimonial footer {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--ink-400);
  font-weight: 700;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 148, 136, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dot.active { background: var(--grad-blue-teal); transform: scale(1.3); }

/* ---------- Partner CTA ---------- */

.partner-cta {
  background: var(--grad-brand);
  position: relative;
  overflow: hidden;
}

/* subtle oversized circles for depth */
.partner-cta::before,
.partner-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}
.partner-cta::before { width: 380px; height: 380px; top: -160px; left: -120px; }
.partner-cta::after { width: 300px; height: 300px; bottom: -140px; right: -90px; }

.cta-inner { text-align: center; max-width: 720px; position: relative; z-index: 1; }

.partner-cta h2 { color: var(--white); }

.partner-cta p {
  color: rgba(255, 255, 255, 0.92);
  margin: 18px 0 32px;
  font-size: 1.08rem;
}

/* ---------- Footnotes ---------- */

.footnotes {
  padding: 44px 0;
  background: var(--white);
  border-top: 1px solid rgba(13, 148, 136, 0.10);
}

.footnotes h4 { font-size: 0.95rem; margin-bottom: 12px; }

.footnotes ol {
  padding-left: 20px;
  font-size: 0.8rem;
  color: var(--ink-400);
  display: grid;
  gap: 6px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0a2b33;
  padding: 64px 0 28px;
  border-top: 4px solid transparent;
  border-image: var(--grad-brand) 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 320px;
}

.site-footer .logo-text { color: var(--white); }

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h5 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p { color: rgba(255, 255, 255, 0.5); font-size: 0.82rem; }

/* ---------- Inner page hero ---------- */

.page-hero {
  background:
    radial-gradient(500px 300px at 15% 20%, rgba(37, 99, 235, 0.12), transparent 70%),
    radial-gradient(460px 300px at 85% 60%, rgba(132, 204, 22, 0.14), transparent 70%),
    var(--bg-tint);
  padding: 80px 0 64px;
  text-align: center;
}

.page-hero p {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 1.1rem;
}

/* ---------- Content blocks (inner pages) ---------- */

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.content-card {
  background: var(--white);
  border: 1px solid rgba(13, 148, 136, 0.10);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* gradient accent along the top edge of each card */
.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--grad-brand);
}

.content-card h3 { margin-bottom: 10px; }

.timeline { max-width: 760px; margin: 0 auto; display: grid; gap: 0; }

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding-bottom: 36px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.35), rgba(16, 185, 129, 0.35));
}

.timeline-item:last-child::before { display: none; }

.timeline-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad-blue-teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

/* ---------- Forms (contact page) ---------- */

.form-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(13, 148, 136, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--grad-brand);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group { margin-bottom: 20px; display: flex; flex-direction: column; }

.form-group label {
  font-weight: 800;
  font-size: 0.88rem;
  margin-bottom: 7px;
  color: var(--ink-900);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  border: 1.5px solid rgba(13, 148, 136, 0.22);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: var(--white);
  color: var(--ink-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.form-success {
  display: none;
  background: var(--bg-mint);
  color: var(--teal-700);
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 18px;
  text-align: center;
}

.form-success.visible { display: block; }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 72px; }
  .hero-visual { min-height: 300px; }
  .feature-grid, .stat-grid, .mini-stats { grid-template-columns: 1fr; }
  .split-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }

  .main-nav.open { transform: translateY(0); }

  .nav-cta { margin-left: 0; }

  .nav-item { width: 100%; }
  .nav-item::after { display: none; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--bg-mint);
    border-radius: 0;
    padding: 8px 0 0 14px;
    margin-top: 8px;
    min-width: 0;
    display: none;
  }

  .nav-item.open .dropdown { display: flex; }
}
