/* =========================================================
   RUKMANI COLLEGE OF PHARMACY — Global Design System
   style.css
   ========================================================= */

/* ── 1. Design Tokens ──────────────────────────────────── */
:root {
  /* Brand — Forest Green */
  --clr-brand-deep:  #0f3d24;
  --clr-brand:       #155e34;
  --clr-brand-mid:   #1e7a45;
  --clr-brand-light: #3fa15c;
  --clr-brand-pale:  #e8f5ee;

  /* Accent — Gold */
  --clr-gold:        #b8872e;
  --clr-gold-light:  #e6c674;
  --clr-gold-pale:   #fdf5e0;

  /* Neutrals */
  --clr-cream:       #f7f3e8;
  --clr-ink:         #12261a;
  --clr-muted:       #5a7563;
  --clr-border:      rgba(21,94,52,0.14);
  --clr-surface:     #ffffff;

  /* Typography */
  --ff-display: 'Lora', Georgia, serif;
  --ff-body:    'DM Sans', system-ui, sans-serif;

  /* Fluid type */
  --fs-xl:   clamp(2.25rem, 5vw, 3.75rem);
  --fs-lg:   clamp(1.625rem, 3vw, 2.5rem);
  --fs-md:   clamp(1.1rem,  2vw, 1.4rem);
  --fs-base: 1.0625rem;
  --fs-sm:   0.875rem;
  --fs-xs:   0.75rem;

  /* Spacing (8-pt) */
  --sp-1:  0.5rem;
  --sp-2:  1rem;
  --sp-3:  1.5rem;
  --sp-4:  2rem;
  --sp-5:  3rem;
  --sp-6:  4rem;
  --sp-7:  6rem;
  --sp-8:  8rem;

  /* Radii */
  --r-sm:   4px;
  --r-md:   10px;
  --r-lg:   18px;
  --r-xl:   28px;
  --r-pill: 9999px;

  /* Shadows */
  --sh-1: 0 1px 3px rgba(15,61,36,0.08), 0 1px 2px rgba(15,61,36,0.05);
  --sh-2: 0 4px 14px rgba(15,61,36,0.10), 0 2px 6px rgba(15,61,36,0.06);
  --sh-3: 0 8px 28px rgba(15,61,36,0.12), 0 4px 12px rgba(15,61,36,0.07);

  /* Motion */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:  150ms;
  --dur-mid:   300ms;
  --dur-slow:  600ms;

  /* Layout */
  --max-w: 1200px;
  --nav-h:  80px;
}

/* ── 2. Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 100%; }

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--clr-ink);
  background: var(--clr-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ── 3. Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration:  0.01ms !important;
  }
}

/* ── 4. Layout helpers ─────────────────────────────────── */
.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
@media (max-width: 600px) { .container { padding-inline: var(--sp-3); } }

/* ── 5. Typography ─────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--ff-display);
  line-height: 1.2;
  text-wrap: balance;
  color: var(--clr-ink);
}
p { text-wrap: pretty; }

/* ── 6. Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--ff-body); font-weight: 600; font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  padding: 0.75em 1.6em;
  border-radius: var(--r-pill);
  transition: background var(--dur-mid) var(--ease-out),
              color var(--dur-mid) var(--ease-out),
              transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-mid) var(--ease-out);
  white-space: nowrap;
  min-height: 44px;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--clr-gold); outline-offset: 3px; }

.btn--primary {
  background: var(--clr-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(21,94,52,0.30);
}
.btn--primary:hover {
  background: var(--clr-brand-deep);
  box-shadow: 0 8px 20px rgba(21,94,52,0.35);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn--gold {
  background: var(--clr-gold);
  color: #fff;
  box-shadow: 0 4px 14px rgba(184,135,46,0.30);
}
.btn--gold:hover { background: #9e721f; }

.btn--lg { padding: 0.9em 2em; font-size: var(--fs-base); }

/* ── 7. Section header ─────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--sp-6); }
.section-header__overline {
  display: block;
  font-family: var(--ff-body); font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--clr-brand-mid); margin-bottom: var(--sp-1);
}
.section-header__title {
  font-size: var(--fs-lg); color: var(--clr-brand-deep); margin-bottom: var(--sp-2);
}
.section-header__sub {
  font-size: var(--fs-sm); color: var(--clr-muted);
  max-width: 52ch; margin-inline: auto;
}
.section-header__rule {
  width: 3.5rem; height: 3px; margin: var(--sp-3) auto 0;
  background: linear-gradient(90deg, var(--clr-gold), var(--clr-gold-light));
  border-radius: 2px;
}

/* ── 8. Scroll animations ──────────────────────────────── */
[data-animate] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
[data-animate="fade-left"]  { transform: translateX(-28px); }
[data-animate="fade-right"] { transform: translateX(28px); }
[data-animate="scale"]      { transform: scale(0.93); }
[data-animate].in-view { opacity: 1; transform: none; }

/* stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ── 9. Gold rule utility ──────────────────────────────── */
.gold-rule {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--clr-gold) 25%, var(--clr-gold-light) 50%, var(--clr-gold) 75%, transparent);
}

/* ── 10. Form base ─────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-1); }
.form-group label {
  font-size: var(--fs-sm); font-weight: 500; color: var(--clr-brand-deep);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--ff-body); font-size: var(--fs-sm);
  padding: 0.75em 1em;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--clr-ink);
  transition: border-color var(--dur-mid) var(--ease-out),
              box-shadow  var(--dur-mid) var(--ease-out);
  min-height: 44px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-brand-mid);
  box-shadow: 0 0 0 3px rgba(30,122,69,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
