/* ==========================================================================
   Roland Pharma — Brand Foundation
   Colour tokens sampled directly from Roland_pharma.png
   ========================================================================== */

:root {
  /* Brand palette */
  --rp-navy:        #074186;
  --rp-navy-deep:   #052F63;
  --rp-navy-darker: #03203F;
  --rp-ocean:       #176CA4;
  --rp-cyan:        #41AEC7;
  --rp-cyan-light:  #56C8D4;
  --rp-pale:        #EAF5F9;
  --rp-pale-2:      #F5FAFC;

  /* Neutrals */
  --rp-ink:    #0C1B2A;
  --rp-muted:  #5B6B7C;
  --rp-line:   #E2EAF1;
  --rp-white:  #FFFFFF;

  /* Signature gradient — mirrors the logo cross mark */
  --rp-grad:      linear-gradient(135deg, #074186 0%, #176CA4 55%, #56C8D4 100%);
  --rp-grad-soft: linear-gradient(135deg, #0A4E9B 0%, #1B77B4 50%, #41AEC7 100%);
  --rp-grad-text: linear-gradient(100deg, #074186 0%, #176CA4 45%, #41AEC7 100%);
  --rp-grad-dark: linear-gradient(160deg, #052F63 0%, #074186 50%, #0E5A93 100%);

  /* Type */
  --rp-font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rp-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Elevation */
  --rp-shadow-xs: 0 1px 2px rgba(7, 65, 134, .06);
  --rp-shadow-sm: 0 2px 10px rgba(7, 65, 134, .07);
  --rp-shadow-md: 0 10px 30px rgba(7, 65, 134, .09);
  --rp-shadow-lg: 0 20px 50px rgba(7, 65, 134, .13);
  --rp-shadow-cy: 0 12px 28px rgba(65, 174, 199, .32);

  /* Geometry */
  --rp-r-sm: 10px;
  --rp-r-md: 16px;
  --rp-r-lg: 22px;
  --rp-r-pill: 999px;

  /* Motion */
  --rp-ease:     cubic-bezier(.4, 0, .2, 1);
  --rp-ease-out: cubic-bezier(.22, 1, .36, 1);

  /* Layout */
  --rp-header-h: 84px;
  --rp-section-y: clamp(4rem, 7vw, 7rem);

  /* Bootstrap variable overrides */
  --bs-primary: #074186;
  --bs-primary-rgb: 7, 65, 134;
  --bs-body-color: #0C1B2A;
  --bs-body-font-family: 'Plus Jakarta Sans', sans-serif;
  --bs-link-color: #074186;
  --bs-link-hover-color: #176CA4;
  --bs-border-color: #E2EAF1;
  --bs-focus-ring-color: rgba(65, 174, 199, .35);
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--rp-header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--rp-font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--rp-ink);
  background: var(--rp-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .rp-head {
  font-family: var(--rp-font-head);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: var(--rp-navy-deep);
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.65rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.65rem); }
h4 { font-size: clamp(1.08rem, 1.6vw, 1.28rem); }
h5 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: color .25s var(--rp-ease); }
img, svg { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

:focus-visible {
  outline: 3px solid rgba(65, 174, 199, .55);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--rp-cyan); color: #fff; }

/* ── Typographic utilities ────────────────────────────────────────────── */

.rp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--rp-font-head);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rp-ocean);
  margin-bottom: 1rem;
}
.rp-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--rp-grad);
}
.rp-eyebrow--light { color: var(--rp-cyan-light); }
.rp-eyebrow--light::before { background: var(--rp-cyan-light); }
.rp-eyebrow--center { justify-content: center; }

.rp-grad-text {
  background: var(--rp-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.rp-lead {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--rp-muted);
  line-height: 1.8;
  max-width: 64ch;
}
.rp-lead--center { margin-inline: auto; }

.rp-muted { color: var(--rp-muted); }
.rp-navy  { color: var(--rp-navy); }
.rp-cyan  { color: var(--rp-cyan); }

/* ── Layout ───────────────────────────────────────────────────────────── */

.rp-section { padding-block: var(--rp-section-y); position: relative; }
.rp-section--tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.rp-section--pale { background: var(--rp-pale-2); }
.rp-section--tint { background: var(--rp-pale); }
.rp-section--dark { background: var(--rp-grad-dark); color: rgba(255, 255, 255, .85); }
.rp-section--dark h1,
.rp-section--dark h2,
.rp-section--dark h3,
.rp-section--dark h4 { color: #fff; }

/* Inline padding must be >= half the largest Bootstrap row gutter (g-5 = 3rem),
   otherwise .row's negative margin escapes the container and scrolls the page. */
.rp-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(1.5rem, 4vw, 2rem); }

.rp-section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.rp-section-head--center { margin-inline: auto; text-align: center; }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.rp-btn {
  --_bg: var(--rp-grad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border: 0;
  border-radius: var(--rp-r-pill);
  font-family: var(--rp-font-head);
  font-size: .93rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--_bg);
  color: #fff;
  box-shadow: var(--rp-shadow-cy);
  transition: transform .3s var(--rp-ease-out), box-shadow .3s var(--rp-ease), color .25s;
}
.rp-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #56C8D4 0%, #176CA4 55%, #074186 100%);
  opacity: 0;
  transition: opacity .35s var(--rp-ease);
}
.rp-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 36px rgba(7, 65, 134, .28); }
.rp-btn:hover::after { opacity: 1; }
.rp-btn i { font-size: 1.05em; line-height: 1; }

.rp-btn--outline {
  background: transparent;
  color: var(--rp-navy);
  box-shadow: none;
  border: 1.5px solid var(--rp-line);
}
.rp-btn--outline::after { background: var(--rp-grad); }
.rp-btn--outline:hover { color: #fff; border-color: transparent; box-shadow: var(--rp-shadow-cy); }

.rp-btn--ghost {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, .4);
  backdrop-filter: blur(6px);
}
.rp-btn--ghost::after { background: #fff; }
.rp-btn--ghost:hover { color: var(--rp-navy); border-color: #fff; box-shadow: 0 16px 32px rgba(0, 0, 0, .18); }

.rp-btn--white { background: #fff; color: var(--rp-navy); box-shadow: 0 14px 30px rgba(3, 32, 63, .28); }
.rp-btn--white::after { background: var(--rp-cyan-light); }
.rp-btn--white:hover { color: var(--rp-navy-deep); }

.rp-btn--sm { min-height: 42px; padding: .6rem 1.2rem; font-size: .86rem; }
.rp-btn--lg { min-height: 56px; padding: 1rem 2.1rem; font-size: 1rem; }

/* Text link with animated arrow */
.rp-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: var(--rp-font-head);
  font-size: .88rem;
  font-weight: 600;
  color: var(--rp-ocean);
}
.rp-link i { transition: transform .3s var(--rp-ease-out); }
.rp-link:hover { color: var(--rp-cyan); }
.rp-link:hover i { transform: translateX(5px); }

/* ── Chips & badges ───────────────────────────────────────────────────── */

.rp-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .85rem;
  border-radius: var(--rp-r-pill);
  background: var(--rp-pale);
  border: 1px solid rgba(65, 174, 199, .22);
  font-family: var(--rp-font-head);
  font-size: .76rem;
  font-weight: 600;
  color: var(--rp-ocean);
  white-space: nowrap;
}
.rp-chip i { font-size: .9em; color: var(--rp-cyan); }
.rp-chip--light {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
}
.rp-chip--light i { color: var(--rp-cyan-light); }
.rp-chip--solid { background: var(--rp-grad); border-color: transparent; color: #fff; }
.rp-chip--solid i { color: #fff; }

.rp-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding-inline: .5rem;
  border-radius: var(--rp-r-sm);
  background: var(--rp-grad);
  color: #fff;
  font-family: var(--rp-font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  flex: none;
}

/* ── Icon tiles ───────────────────────────────────────────────────────── */

.rp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: var(--rp-r-md);
  background: var(--rp-pale);
  color: var(--rp-ocean);
  font-size: 1.5rem;
  transition: background .35s var(--rp-ease), color .35s var(--rp-ease), transform .35s var(--rp-ease-out);
}
.rp-icon--grad { background: var(--rp-grad); color: #fff; box-shadow: var(--rp-shadow-cy); }
.rp-icon--sm { width: 42px; height: 42px; font-size: 1.1rem; border-radius: var(--rp-r-sm); }
.rp-icon--lg { width: 72px; height: 72px; font-size: 2rem; border-radius: var(--rp-r-lg); }
.rp-icon--light { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── Reveal (GSAP sets final state; CSS holds the start state) ────────── */

[data-animate] { opacity: 0; }
.rp-no-motion [data-animate],
.rp-js-off [data-animate] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* Fallback: if JS never runs, content must still be visible */
.no-js [data-animate] { opacity: 1 !important; }
