/* ============================================================
   Edu-Portal — Landing Page Styles
   Palet warna diambil terus daripada Logo Utama (brand/ folder).
   Semua warna & jenis huruf dipusatkan di sini supaya senang
   ditukar tanpa sentuh HTML.
   ============================================================ */

:root {
  /* -- Brand (diekstrak daripada Logo Utama.png) -- */
  --color-ink:        #0B1220;   /* teks utama (near-navy-black) */
  --color-bg:         #FAFAFA;   /* latar utama */
  --color-surface:    #FFFFFF;   /* kad / panel */
  --color-primary:    #011948;   /* navy — warna jenama utama (dari logo) */
  --color-primary-hover: #04234F;
  --color-blue:       #0268C6;   /* biru sekunder (dari logo) */
  --color-accent:     #E89C0A;   /* emas — aksen (dari logo) */
  --color-muted:      #676C7A;
  --color-border:     #E5E4DF;

  /* -- Type -- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-card: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1em; max-width: 62ch; }

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-card);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-ghost {
  border-color: var(--color-border);
  color: var(--color-ink);
}
.btn-ghost:hover { border-color: var(--color-primary); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { height: 28px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--color-ink);
}
.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--color-ink); }
.nav-cta { padding: 0.5em 1.25em; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75em;
}
.hero-lead {
  color: var(--color-muted);
  font-size: 1.1rem;
}
.hero-actions { display: flex; gap: 14px; margin-top: 1.5em; }

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(2, 104, 198, 0.10), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(232, 156, 10, 0.12), transparent 50%),
    var(--color-surface);
  border: 1px solid var(--color-border);
}
.hero-logo {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* ---------- Products ---------- */
.products { padding: 72px 0; border-top: 1px solid var(--color-border); }
.section-lead { color: var(--color-muted); margin-bottom: 2.5em; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-card);
  padding: 24px;
}
.product-card.is-placeholder {
  border-left-color: var(--color-border);
}
.product-card p { font-size: 0.95rem; color: var(--color-muted); margin-bottom: 0.75em; }
.product-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.25em 0.75em;
}

/* ---------- About ---------- */
.about { padding: 72px 0; border-top: 1px solid var(--color-border); }
.about-row { max-width: 720px; }
.about p { color: var(--color-muted); font-size: 1.05rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 40px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-mark { width: 32px; height: 32px; }
.footer-muted { color: var(--color-muted); font-size: 0.85rem; margin: 0; }
.footer-contact { font-size: 0.9rem; text-decoration: none; color: var(--color-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-row { grid-template-columns: 1fr; }
  .hero-visual { height: 220px; order: -1; }
  .site-nav { display: none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
