/* WizPharma SaaS Portal Custom Styles */

:root {
  --wp-primary: #0284c7;        /* Medical Teal-Blue */
  --wp-primary-dark: #0369a1;
  --wp-primary-light: #e0f2fe;
  --wp-accent: #10b981;         /* Health Green */
  --wp-accent-dark: #059669;
  --wp-danger: #ef4444;
  --wp-warning: #f59e0b;
  --wp-dark: #0f172a;           /* Slate 900 */
  --wp-slate: #334155;
  --wp-muted: #64748b;
  --wp-bg-light: #f8fafc;
  --wp-card-border: #e2e8f0;
  --wp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--wp-font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--wp-dark);
  background-color: var(--wp-bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: #0f172a;
  letter-spacing: -0.025em;
  font-weight: 750;
}

/* Navbar */
.site-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wp-card-border);
  transition: all 0.3s ease;
  z-index: 1040;
}

.brand-badge {
  background: linear-gradient(135deg, var(--wp-primary), var(--wp-accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 10px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.2);
}

/* Hero Section with Rich Visual Backdrop */
.hero-section {
  position: relative;
  padding: 100px 0 85px;
  background-color: #f0f9ff;
  background-image: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.92) 45%, rgba(224, 242, 254, 0.85) 100%),
    url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--wp-card-border);
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.85rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #0d9488 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.22rem;
  color: #334155;
  line-height: 1.7;
  font-weight: 450;
  max-width: 620px;
}

.hero-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(2, 132, 199, 0.18);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.94rem;
  font-weight: 650;
  color: #1e293b;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

/* Hero Right Side: Layered Photographic Showcase */
.hero-visual-stage {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.hero-main-photo-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  border: 4px solid #ffffff;
  background: #ffffff;
}

.hero-main-photo-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 100%);
  padding: 30px 20px 16px;
  color: #ffffff;
}

/* Floating Glassmorphism Badges */
.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.18);
  border-radius: 50px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 750;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  animation: floatSlow 4s ease-in-out infinite alternate;
}

.floating-pill.pill-top-right {
  top: -18px;
  right: -14px;
}

.floating-pill.pill-bottom-left {
  bottom: 20px;
  left: -20px;
  animation-delay: -2s;
}

.floating-pill.pill-bottom-right {
  bottom: -16px;
  right: 15px;
  animation-delay: -1s;
}

@keyframes floatSlow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* Visual Product Showcase Section */
.showcase-section {
  padding: 90px 0 80px;
  background: #ffffff;
}

.showcase-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--wp-card-border);
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -10px rgba(2, 132, 199, 0.18);
  border-color: #38bdf8;
}

.showcase-img-wrap {
  height: 290px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}

.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-img-wrap img {
  transform: scale(1.06);
}

.showcase-card-body {
  padding: 32px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* Feature Cards with High Contrast & Readability */
.features-section {
  padding: 90px 0 80px;
  background: #f8fafc;
}

.feature-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 34px 30px;
  border: 1px solid rgba(2, 132, 199, 0.12);
  box-shadow: 0 8px 25px -4px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -6px rgba(2, 132, 199, 0.15);
  border-color: #38bdf8;
}

.feature-card h5 {
  font-size: 1.35rem;
  font-weight: 750;
  margin-bottom: 12px;
  color: #0f172a;
}

.feature-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
  margin-bottom: 0;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  margin-bottom: 22px;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.14);
}

/* Pricing Cards */
.pricing-section {
  padding: 95px 0 85px;
  background: #f1f5f9;
}

.pricing-card {
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid var(--wp-card-border);
  padding: 40px 34px;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border: 2px solid var(--wp-primary);
  box-shadow: 0 25px 50px -10px rgba(2, 132, 199, 0.22);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-badge {
  position: absolute;
  top: -15px;
  right: 28px;
  background: linear-gradient(135deg, var(--wp-primary), var(--wp-accent));
  color: #fff;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.25);
}

.pricing-card ul li {
  font-size: 1.04rem;
  line-height: 1.65;
  margin-bottom: 0.9rem;
  color: #334155;
}

/* A plan name that fits one line and one that wraps would otherwise put the three
   prices at three different heights and read as three different offers. */
.pricing-card h4 {
  line-height: 1.22;
  min-height: 2.44em;
}

/* The badge row every card carries, featured or not, so all three titles start at
   the same height. The ribbon stays absolutely positioned over this row. */
.pricing-plan-head {
  display: flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 16px;
}

/* Pricing period switch. The shop pays once a year, so this only changes the way
   that one price is read, and the note under it says so rather than implying a
   second plan. */
.price-switch-wrap {
  text-align: center;
  margin-bottom: 34px;
}

.price-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #e2e8f0;
  border-radius: 999px;
}

.price-switch-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 9px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.price-switch-btn:hover {
  color: var(--wp-primary);
}

.price-switch-btn.active {
  background: #ffffff;
  color: var(--wp-primary);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.price-switch-btn:focus-visible {
  outline: 2px solid var(--wp-primary);
  outline-offset: 2px;
}

.price-switch-note {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

/* The line that carries the yearly commitment rate, under the big number. */
.price-deal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  /*
   * Sits on one line in every card. If an operator sets a long yearly price the
   * pill wraps inside the card instead of spilling out of its right edge, which
   * is what a fixed nowrap did between 992px and 1150px.
   */
  white-space: normal;
}

.price-deal i {
  font-size: 0.75rem;
}

.price-deal.is-quiet {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}

/* 3-Step UPI Strip */
.upi-strip-card {
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid var(--wp-card-border);
  padding: 40px;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.07);
}

.upi-step-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
}

/* Utility Helpers */
.max-w-700 { max-width: 700px; }
.max-w-850 { max-width: 850px; }
.max-w-950 { max-width: 950px; }

/*
 * A Bootstrap row pulls itself out by half its gutter, and a g-5 row (3rem) is
 * therefore 24px wider than the container on each side. With the container's
 * default 12px padding the hero and showcase rows ended 12px past the edge, so a
 * 992px window scrolled sideways by 4px. The padding carries the widest gutter.
 */
.container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* The navbar is sticky, so a jump to #features or #pricing parked the heading
   underneath it. Leave the bar's height as scroll offset. */
section[id] {
  scroll-margin-top: 84px;
}

/* ---------------------------------------------------------------------------
   Tablet and phone: one column, top to bottom.

   This stylesheet shipped without a single breakpoint, so a phone inherited the
   desktop layout whole: 90-100px of padding per section, 40px card padding, a
   380px hero photo and a scaled-up featured card. Below 992px every grid now
   stacks, the hero photo moves above the headline, and the floating badges stop
   hanging outside the screen and sit under the photo instead.
   --------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
  /* One column, whatever column class the template used. */
  .row > [class*="col-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .row.g-3,
  .row.g-4,
  .row.g-5 {
    --bs-gutter-y: 1.15rem;
  }

  /* Hero: the photo leads, the headline follows. */
  .hero-section .row > div:nth-child(1) { order: 2; }
  .hero-section .row > div:nth-child(2) { order: 1; }

  .hero-section { padding: 34px 0 48px; }
  .showcase-section,
  .features-section,
  .pricing-section { padding: 56px 0 52px; }

  .hero-title { font-size: clamp(2rem, 6vw, 3rem); }
  .hero-subtitle { font-size: 1.06rem; }
  .display-6 { font-size: 2.1rem; }

  /* Full-width buttons and chips read as one stack instead of a ragged row. */
  .hero-section .btn { width: 100%; justify-content: center; }
  .hero-trust-chips { flex-direction: column; align-items: stretch; }
  .hero-trust-chip { justify-content: flex-start; }

  /* The three floating badges become a stack under the photo. */
  .hero-visual-stage {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hero-main-photo-card { order: 1; }
  .hero-main-photo-card img { height: 300px; }

  .floating-pill {
    position: static;
    order: 2;
    animation: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }

  .showcase-img-wrap { height: 240px; }
  .showcase-card-body { padding: 26px 22px; }
  .feature-card { padding: 26px 22px; }
  .feature-card h5 { font-size: 1.2rem; }
  .feature-card p { font-size: 1rem; }

  .pricing-card { padding: 28px 24px; }
  /* A scaled card spills out of its column once the cards sit one per row. */
  .pricing-card.featured { transform: none; }
  .pricing-card ul li { font-size: 0.98rem; }

  .upi-strip-card { padding: 28px 22px; }
  .upi-step-icon { width: 60px; height: 60px; font-size: 1.6rem; }
}

@media (max-width: 575.98px) {
  .hero-section { padding: 24px 0 40px; }
  .showcase-section,
  .features-section,
  .pricing-section { padding: 40px 0 36px; }

  .hero-title { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .display-6 { font-size: 1.7rem; }
  .hero-pill { font-size: 0.84rem; padding: 7px 14px; }
  .hero-trust-chip { font-size: 0.88rem; }

  .hero-main-photo-card img { height: 240px; }
  .hero-photo-caption { padding: 22px 14px 12px; }

  /*
   * The caption sits on the photo. At desktop sizes the store name and the ONLINE
   * badge fit on one line; on a phone they did not, so the caption grew to 139px
   * and covered most of the picture. Smaller type keeps it to one row.
   */
  .hero-photo-caption .d-flex { gap: 8px; align-items: flex-end; }
  .hero-photo-caption .fw-bold { font-size: 0.86rem; line-height: 1.3; }
  .hero-photo-caption .small { font-size: 0.72rem; line-height: 1.35; }
  .hero-photo-caption .badge { font-size: 0.64rem; padding: 3px 9px; flex-shrink: 0; }

  .showcase-img-wrap { height: 195px; }
  .showcase-card-body,
  .feature-card { padding: 22px 18px; }

  .pricing-card { padding: 24px 18px; }
  .pricing-badge { right: 16px; }

  .upi-strip-card { padding: 24px 16px; }
}
