/* ==========================================================================
   Sekolah Tinggi Teologi Parausorat Nauli Jakarta - stylesheet
   ========================================================================== */

:root {
  --navy-950: #0f1b33;
  --navy-900: #16233f;
  --navy-800: #1c2c4d;
  --navy-700: #263a63;
  --gold-500: #c9a35c;
  --gold-400: #d8b878;
  --gold-700: #8a6220; /* WCAG AA-safe gold for text/icons on light backgrounds */
  --gold-100: #f6ecd9;
  --cream-50: #faf7f0;
  --cream-100: #f3ede0;
  --ink-900: #1d2433;
  --ink-600: #4c5568;
  --ink-400: #798096;
  --white: #ffffff;
  --border: #e4ddca;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-md: 0 12px 30px -14px rgba(15, 27, 51, 0.25);
  --shadow-lg: 0 24px 60px -20px rgba(15, 27, 51, 0.35);
  --maxw: 1160px;
}

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

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-serif {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  color: var(--navy-950);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-600); }

a { color: inherit; text-decoration: none; }

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

ul { padding-left: 1.2em; color: var(--ink-600); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 0.6em;
}

.section {
  padding: 72px 0;
}

.section--tight { padding: 48px 0; }

.section--alt {
  background: var(--cream-100);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--navy {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
}
.section--navy h2, .section--navy h3, .section--navy p { color: var(--white); }
.section--navy .eyebrow { color: var(--gold-400); }
.section--navy p { color: rgba(255,255,255,0.78); }

.section-head {
  max-width: 640px;
  margin: 0 0 40px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: var(--shadow-md);
}
.btn--gold:hover { background: var(--gold-400); }

.btn--outline {
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

.btn--outline-navy {
  border-color: var(--navy-800);
  color: var(--navy-950);
}
.btn--outline-navy:hover { background: var(--navy-950); color: var(--white); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "EB Garamond", serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy-950);
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
  overflow: hidden;
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text small {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-600);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--cream-100); color: var(--navy-950); }
.nav a.is-active { background: var(--navy-950); color: var(--white); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 82% 18%, rgba(201,163,92,0.28), transparent 45%),
    radial-gradient(circle at 8% 90%, rgba(201,163,92,0.16), transparent 40%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  padding: 92px 0 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero p.lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.hero__stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero__stat strong {
  display: block;
  font-family: "EB Garamond", serif;
  font-size: 1.7rem;
  color: var(--gold-400);
}
.hero__stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--white);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.hero__art img { width: 100%; height: 100%; object-fit: contain; }
.hero__art svg { width: 62%; height: 62%; opacity: 0.92; }
.hero__art--photo { background: var(--navy-900); border: 1px solid rgba(255,255,255,0.18); padding: 0; }
.hero__art--photo img { object-fit: cover; }

/* Page header (non-home pages) */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero p { color: rgba(255,255,255,0.78); max-width: 60ch; }
.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--gold-400); }

/* ---------------- Cards / grids ---------------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--navy-950);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }

.card p:last-child { margin-bottom: 0; }

.card--gold-badge {
  border-color: var(--gold-500);
  background: var(--gold-100);
}

/* Split section */
.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .split__art { order: 2; }

.split__art {
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  aspect-ratio: 4/3.2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.split__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 20%, rgba(201,163,92,0.35), transparent 55%);
}
.split__art svg { width: 46%; height: 46%; color: var(--gold-400); position: relative; z-index: 1; }
.split__art img { width: 52%; height: 52%; object-fit: contain; position: relative; z-index: 1; border-radius: 50%; background: var(--white); padding: 14px; }
.split__art--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; background: none; padding: 0; position: absolute; inset: 0; }

.checklist { list-style: none; padding: 0; margin: 24px 0; }
.checklist li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  color: var(--ink-600);
}
.checklist li svg {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--gold-700);
}

/* Timeline (Sejarah) */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline li {
  position: relative;
  padding: 0 0 34px 48px;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold-500);
}
.timeline .year {
  display: inline-block;
  font-weight: 700;
  color: var(--navy-950);
  font-family: "EB Garamond", serif;
  margin-bottom: 4px;
}

/* Leadership */
.leader-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.leader-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-400);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "EB Garamond", serif;
  font-weight: 700;
  overflow: hidden;
}
.leader-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-card h4 { margin: 0 0 2px; font-size: 1rem; color: var(--navy-950); font-family: "Source Sans 3", sans-serif; font-weight: 700; }
.leader-card .role { font-size: 0.82rem; color: var(--gold-700); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; display: block; }
.leader-card p { margin: 0; font-size: 0.92rem; color: var(--ink-600); }

/* Program table */
.program-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.program-table th, .program-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.program-table thead th {
  background: var(--navy-950);
  color: var(--white);
  font-weight: 600;
}
.program-table tbody tr:last-child td { border-bottom: none; }
.program-table tbody tr:hover { background: var(--cream-100); }

/* Blog */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card__thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card__thumb svg { width: 34%; height: 34%; color: var(--gold-400); opacity: 0.85; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-950);
  background: var(--gold-100);
  border: 1px solid var(--gold-500);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.post-card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.post-card .meta { font-size: 0.8rem; color: var(--ink-400); margin-top: auto; padding-top: 14px; }
.post-card .readmore { font-weight: 700; color: var(--navy-950); font-size: 0.9rem; margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; }

.notice-banner {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--gold-100);
  border: 1px solid var(--gold-500);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.notice-banner svg { width: 22px; height: 22px; color: var(--gold-700); flex-shrink: 0; margin-top: 2px; }
.notice-banner p { margin: 0; color: var(--ink-900); font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.contact-info-card h3 { color: var(--white); }
.contact-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.contact-item:first-of-type { border-top: none; }
.contact-item svg { width: 20px; height: 20px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.contact-item strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-400); margin-bottom: 3px; }
.contact-item span, .contact-item a { color: rgba(255,255,255,0.85); font-size: 0.95rem; }

.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.map-frame iframe { width: 100%; height: 340px; border: 0; display: block; }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-950); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream-50);
  color: var(--ink-900);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201, 163, 92, 0.35);
}
.field textarea { resize: vertical; min-height: 110px; }

/* Visible keyboard focus for all interactive elements */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2.5px solid var(--gold-500);
  outline-offset: 2px;
}
.section--navy a:focus-visible,
.hero a:focus-visible,
.page-hero a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--gold-400);
}

/* CTA band */
.cta-band {
  background: linear-gradient(150deg, var(--navy-950), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; max-width: 46ch; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-950);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: var(--white);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--gold-400); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 32ch; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .hero__art { aspect-ratio: 16/10; order: -1; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .split__art, .split.reverse .split__art { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }
  .site-header.is-open .nav a { width: 100%; }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
