/* ===========================================================
   INFOTECH Institute of Computer Education
   Design tokens — warm, approachable, rounded, geometric
   Brand: dark blue #0a3f5a · accent yellow-orange #f8b518
   =========================================================== */

:root {
  /* Brand */
  --brand:        #0a3f5a;
  --brand-700:    #0e4d6e;
  --brand-600:    #14607f;
  --brand-500:    #2b7390;
  --brand-ink:    #062c3f;
  --accent:       #f8b518;
  --accent-600:   #eaa206;
  --accent-700:   #cf8c00;
  --accent-soft:  #fef0cd;

  /* Warm neutrals */
  --cream:        #fbf6ee;   /* page background */
  --cream-2:      #f4ece0;   /* alt section */
  --surface:      #ffffff;
  --ink:          #16323d;   /* primary text (warm dark) */
  --ink-2:        #4b6470;   /* secondary text */
  --ink-3:        #7f939d;   /* muted */
  --line:         #e7dccd;   /* warm hairline */
  --line-2:       #efe6d8;

  /* Status */
  --ok:    #1f9d6b;
  --ok-bg: #e3f6ee;
  --warn:  #d98a0b;
  --warn-bg:#fdf0d6;
  --bad:   #d9534b;
  --bad-bg:#fbe6e4;

  /* Radius — overridable by Tweaks */
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --r-pill: 999px;

  /* Shadows — soft, warm */
  --sh-sm: 0 1px 2px rgba(10,63,90,.06), 0 1px 3px rgba(10,63,90,.05);
  --sh-md: 0 6px 18px rgba(10,63,90,.08), 0 2px 6px rgba(10,63,90,.05);
  --sh-lg: 0 18px 48px rgba(10,63,90,.14), 0 6px 16px rgba(10,63,90,.08);
  --sh-accent: 0 10px 26px rgba(248,181,24,.35);

  /* Type */
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

::selection { background: var(--accent); color: var(--brand-ink); }

/* Layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 7vw, 104px); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-700);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: .98rem; border: 0; border-radius: var(--r-pill);
  padding: 14px 26px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--brand-ink); box-shadow: var(--sh-accent); }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(248,181,24,.45); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--brand); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }

/* Cards */
.card {
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); border: 1px solid var(--line-2);
}

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-700);
}
.chip-brand { background: rgba(10,63,90,.08); color: var(--brand); }

/* Status pills */
.status { display:inline-flex; align-items:center; gap:7px; font-weight:800; padding:7px 14px; border-radius: var(--r-pill); font-size:.82rem; letter-spacing:.02em; }
.status .dot { width:8px; height:8px; border-radius:50%; }
.status-valid { background: var(--ok-bg); color: var(--ok); }
.status-valid .dot { background: var(--ok); }
.status-expired { background: var(--warn-bg); color: var(--warn); }
.status-expired .dot { background: var(--warn); }
.status-cancelled { background: var(--bad-bg); color: var(--bad); }
.status-cancelled .dot { background: var(--bad); }

/* Image placeholder */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(248,181,24,.16), transparent 55%),
    linear-gradient(135deg, #103f57 0%, #0a3349 100%);
  color: rgba(255,255,255,.62);
  display: grid; place-items: center; text-align: center;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1.5px, transparent 1.6px);
  background-size: 16px 16px; opacity: .5;
}
.ph .ph-inner { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: center; padding: 18px; }
.ph .ph-inner svg { width: 34px; height: 34px; opacity: .8; }
.ph .ph-label { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Section heading block */
.head { max-width: 680px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin-top: 14px; }
.head p { color: var(--ink-2); font-size: 1.08rem; margin-top: 16px; }

/* Utility */
.grid { display: grid; }
.flex { display: flex; }
.muted { color: var(--ink-2); }
.fade-up { opacity: 0; transform: translateY(18px); }
.in-view .fade-up, .fade-up.shown { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }

/* Forms */
.field { display: grid; gap: 7px; }
.field label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field .req { color: var(--bad); }
.input {
  width: 100%; padding: 13px 15px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease; outline: none;
}
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 4px rgba(20,96,127,.12); }
.input.err { border-color: var(--bad); box-shadow: 0 0 0 4px rgba(217,83,75,.12); }
.field .errmsg { color: var(--bad); font-size: .82rem; font-weight: 600; }

/* Scroll reveal default */
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}
