/* Skujy Scholarships design system: colours, type, buttons, header, footer.
   Matches skujytutorials.com (forest/leaf green, honey, ivory; Montserrat
   and Work Sans; rounded cards and pill buttons). Used by every page. Page-specific styles live in home.css, form.css and
   legal.css. */

:root {
  /* Palette: the same tokens as skujytutorials.com (tailwind.config.js there).
     The old names (navy, lime, coral…) are kept as aliases so every rule
     that uses them picks up the new colours. */
  --leaf-50: #f1f8ef;
  --leaf-100: #ddefd9;
  --leaf-200: #bfe0b9;
  --leaf-400: #5fae63;
  --leaf-500: #45994d;
  --leaf-600: #358040;
  --leaf-700: #2a6834;
  --leaf-800: #21522a;
  --honey-100: #fbefd6;
  --honey-200: #f5dcb4;
  --honey-300: #eec675;
  --honey-400: #e2b257;
  --honey-500: #cf9a35;
  --honey-600: #a87a22;
  --paper: #faf8f2;
  --paper-deep: #f4f1e8;
  --paper-line: #e6e2d8;

  --navy: var(--leaf-700);
  --navy-2: var(--leaf-800);
  --lime: var(--honey-300);
  --blue: var(--leaf-500);
  --coral: var(--honey-500);
  --yellow: var(--honey-400);
  --white: #ffffff;
  --ink: #1c1f1d;
  --text: #4a524d;
  --muted: #7b837e;
  --grey: var(--paper);
  --line: var(--paper-line);

  /* Roles used by the form and policy pages */
  --bg: var(--paper);
  --surface: #ffffff;
  --surface-2: var(--paper-deep);
  --ink-2: var(--text);
  --line-strong: #d9d3c4;
  --brand: var(--leaf-600);
  --brand-hover: var(--leaf-700);
  --on-brand: #ffffff;
  --brand-50: var(--leaf-50);
  --brand-100: var(--leaf-100);
  --brand-ink: var(--leaf-700);
  --gold: var(--honey-300);
  --gold-soft: var(--honey-100);
  --gold-ink: var(--honey-600);
  --danger: #c8372b;
  --danger-soft: #fdecea;
  --success: var(--leaf-600);

  /* Type: Montserrat for headings, Work Sans for reading text */
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: var(--display);

  /* Shape */
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(28, 31, 29, 0.04);
  --shadow: 0 1px 2px rgba(28, 31, 29, 0.04), 0 6px 20px -14px rgba(28, 31, 29, 0.16);
  --shadow-lg: 0 2px 6px rgba(28, 31, 29, 0.06), 0 20px 44px -22px rgba(28, 31, 29, 0.24);
  --max: 1240px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 640px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
a { color: var(--navy); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--leaf-200); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Icons from /assets/icons.svg */
.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--leaf-700);
}
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.01em; }

/* Small pill above headings ("eyebrow" on skujytutorials.com) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(191, 224, 185, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--leaf-700);
}
@media (max-width: 420px) { .kicker { font-size: 11px; letter-spacing: 0.1em; padding: 5px 12px; } }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--honey-400); flex: none; }

/* The one honey-coloured word in a heading. The hand-drawn circles and
   underlines from the old design are hidden; the word keeps its emphasis. */
.circled, .scribble { color: var(--honey-500); white-space: nowrap; }
.circled svg, .scribble svg, .squiggle, .ribbon { display: none !important; }

/* Soft colour glow, as on skujytutorials.com: colour comes from `color`. */
.glow { background-image: radial-gradient(closest-side, currentColor, transparent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid var(--paper-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.btn:hover { border-color: var(--leaf-200); color: var(--leaf-700); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .i { width: 18px; height: 18px; transition: transform 0.3s ease; }
.btn:hover .i.arrow { transform: translateX(3px); }

/* Green pill with a white circle around the arrow, like PrimaryButton there */
.btn-primary, .btn-navy, .btn-coral {
  background: var(--leaf-600);
  border-color: var(--leaf-600);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(53, 128, 64, 0.7);
}
.btn-primary:hover, .btn-navy:hover, .btn-coral:hover { background: var(--leaf-700); border-color: var(--leaf-700); color: #fff; }
.btn-primary .i.arrow, .btn-navy .i.arrow, .btn-coral .i.arrow {
  width: 34px; height: 34px; margin-right: -18px; padding: 9px;
  border-radius: 50%; background: #fff; color: var(--leaf-700);
}
.btn-honey { background: var(--honey-300); border-color: var(--honey-300); color: var(--ink); box-shadow: 0 14px 30px -14px rgba(207, 154, 53, 0.75); }
.btn-honey:hover { background: var(--honey-400); border-color: var(--honey-400); color: var(--ink); }
.btn-outline, .btn-outline-light { background: rgba(255, 255, 255, 0.8); border-color: var(--paper-line); color: var(--text); }
.btn-outline:hover, .btn-outline-light:hover { background: #fff; border-color: var(--leaf-200); color: var(--leaf-700); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--ink); padding: 0 14px; box-shadow: none; }
.btn-quiet:hover { background: var(--paper-deep); border-color: transparent; transform: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn[aria-disabled="true"] { background: var(--paper-deep); border-color: var(--paper-deep); color: var(--muted); box-shadow: none; cursor: default; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--leaf-700); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .i { width: 16px; height: 16px; }

/* ---------- Header: floating glass pill, as on skujytutorials.com ---------- */

.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 12px 0; pointer-events: none; }
.header-inner {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1152px; height: 64px; margin: 0 auto; padding: 0 8px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px -24px rgba(28, 31, 29, 0.35);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.site-header .container.header-inner { width: auto; }
@media (min-width: 640px) { .site-header { padding: 18px 24px 0; } }
.site-header, .header-inner { transition: padding 0.4s ease, border-radius 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease; }
/* On phones the scrolled bar is a full-width strip flush with the top edge
   (and below the notch), so no page content shows above it. From 640px up it
   floats as a glass pill. */
@media (max-width: 639px) {
  .site-header.scrolled { padding: 0; }
  .site-header.scrolled .header-inner {
    height: calc(58px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    border: 0; border-bottom: 1px solid var(--paper-line); border-radius: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px -24px rgba(28, 31, 29, 0.35);
  }
}

/* "Skujy" over "SCHOLARSHIPS", set like the Skujy Tutorials logo */
.logo { display: inline-flex; flex-direction: column; color: var(--leaf-600); text-decoration: none; line-height: 1; white-space: nowrap; }
.logo b { font-family: "Playfair Display", Georgia, serif; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
.logo span { margin-top: 3px; font-family: Inter, Arial, sans-serif; font-weight: 600; font-size: 8px; letter-spacing: 0.34em; text-transform: uppercase; color: rgba(42, 104, 52, 0.8); }

.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 8px 0;
  color: var(--text); font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; transition: color 0.2s ease;
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--honey-400); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.nav-links a:hover { color: var(--leaf-700); }
.nav-links a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn-sm { background: var(--leaf-600); border-color: var(--leaf-600); color: #fff; box-shadow: 0 12px 26px -12px rgba(53, 128, 64, 0.75); }
.header-actions .btn-sm:hover { background: var(--leaf-700); border-color: var(--leaf-700); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--paper-line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle .i { width: 22px; height: 22px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--leaf-50); color: var(--leaf-700); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.back-link:hover { background: var(--leaf-100); }
.back-link .i { width: 18px; height: 18px; }
.back-link .show-sm { display: none; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    padding: 10px;
    border: 1px solid var(--paper-line); border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 60px -24px rgba(28, 31, 29, 0.35);
  }
  .site-header.menu-open .nav-links a { padding: 14px 16px; border-radius: 16px; font-size: 14px; }
  .site-header.menu-open .nav-links a::after { display: none; }
  .site-header.menu-open .nav-links a:hover { background: var(--leaf-50); }
}
@media (max-width: 440px) {
  .back-link .hide-sm { display: none; }
  .back-link .show-sm { display: inline; }
}
@media (max-width: 420px) {
  .header-inner { gap: 6px; padding-left: 16px; height: 58px; }
  .logo b { font-size: 23px; }
  .header-actions { gap: 4px; flex: none; }
  .header-actions .btn-sm { min-height: 38px; padding: 0 14px; }
  .back-link { flex: none; padding: 9px 12px; gap: 6px; }
}

/* ---------- Footer: ivory with soft glows, as on skujytutorials.com ---------- */

.site-footer {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--paper-line);
  background:
    radial-gradient(closest-side, var(--leaf-50), transparent) -160px -160px / 448px 448px no-repeat,
    radial-gradient(closest-side, rgba(251, 239, 214, 0.7), transparent) calc(100% + 160px) 80px / 416px 416px no-repeat,
    var(--paper);
  color: var(--text);
  padding: 64px 0 28px;
  font-size: 15px;
}
.site-footer .brush { display: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr; gap: 40px; }
.footer-grid h4 { color: var(--muted); font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-grid a { color: var(--text); text-decoration: none; transition: color 0.2s ease; }
.footer-grid a:hover { color: var(--leaf-700); }
.footer-grid p { margin-top: 18px; max-width: 34ch; line-height: 1.6; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--paper-line); font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Small components ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 99px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--honey-300); color: var(--ink);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-700); }
.badge.muted { background: var(--paper-deep); color: var(--muted); }
.badge.muted::before { background: var(--muted); }

.crest {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12); color: var(--honey-300);
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  flex: none;
}
.crest.ghost { background: #fff; color: var(--muted); box-shadow: var(--shadow); }
.crest.ghost .i { width: 22px; height: 22px; }

.icon-chip { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--leaf-50); color: var(--leaf-700); flex: none; }
.icon-chip .i { width: 22px; height: 22px; }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.footer-grid .logo, .footer-grid .logo:hover { color: var(--leaf-600); }

/* Social icons (WhatsApp, Instagram, TikTok) in the footers */
.footer-follow { font-size: 14px; }
.footer-follow b { color: var(--ink); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--paper-line); border-radius: 50%;
  background: #fff; color: var(--leaf-700);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.footer-social a:hover { background: var(--leaf-600); border-color: var(--leaf-600); color: #fff; transform: translateY(-2px); }
.footer-social .i { width: 19px; height: 19px; }
.footer-grid .footer-social a:hover { color: #fff; }
.app-footer .footer-social { justify-content: center; margin-top: 14px; }
