@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep: #1B2D6B;
  --blue-mid:  #2E5EA8;
  --teal:      #2BA5A5;
  --green:     #44B878;
  --lime:      #B8D432;
  --bg:        #F8F6F3;
  --surface:   #ffffff;
  --text:      #1a1f36;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --radius:    12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ── HEADER ──────────────────────────────── */
.site-header {
  background: var(--blue-deep);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(27,45,107,0.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2BA5A5, #44B878);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 18px;
  color: white;
  letter-spacing: -0.5px;
}
.logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  color: white;
  line-height: 1.2;
}
.logo-text span {
  display: block;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.header-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  font-family: 'Fraunces', Georgia, serif;
}

/* ── HERO STRIP (index only) ──────────────── */
.hero {
  background: linear-gradient(135deg, #1B2D6B 0%, #2BA5A5 60%, #44B878 100%);
  padding: 64px 24px 56px;
  text-align: center;
  color: white;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}
.hero p {
  font-size: 17px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

/* ── DOC GRID (index) ─────────────────────── */
.doc-grid {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.doc-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(27,45,107,0.12);
}
.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  color: white;
  margin-bottom: 14px;
  width: fit-content;
}
.card-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--blue-deep);
  line-height: 1.3;
}
.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.card-meta {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-arrow {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── DOC PAGE LAYOUT ─────────────────────── */
.doc-page-hero {
  background: linear-gradient(135deg, #1B2D6B 0%, #2E5EA8 100%);
  padding: 40px 24px 36px;
  color: white;
}
.doc-page-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.doc-page-hero .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.doc-page-hero .back-link:hover { color: white; }
.doc-page-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}
.doc-page-hero p {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 16px;
}
.doc-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  opacity: 0.75;
}
.doc-meta-row span { display: flex; align-items: center; gap: 5px; }

/* ── DOC CONTENT ─────────────────────────── */
.doc-body {
  max-width: 860px;
  margin: 40px auto 80px;
  padding: 0 24px;
}
.doc-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 36px 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.doc-body h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-mid);
  margin: 24px 0 8px;
}
.doc-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 18px 0 6px;
}
.doc-body p {
  margin-bottom: 14px;
  color: #374151;
}
.doc-body ul {
  margin: 10px 0 14px 20px;
  color: #374151;
}
.doc-body ul li { margin-bottom: 6px; }
.doc-body a { color: var(--teal); }

/* ── FOOTER ──────────────────────────────── */
.site-footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
}
.site-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.site-footer a:hover { color: white; }
.footer-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

/* ── NOTICE BOX ──────────────────────────── */
.notice {
  background: #EFF6FF;
  border-left: 4px solid var(--blue-mid);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 14px;
  color: #1e3a6e;
}

/* ── CONTACT PAGE ────────────────────────── */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,165,165,0.12);
}
.form-group textarea { resize: vertical; }
.contact-submit {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  width: fit-content;
}
.contact-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.contact-info h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--blue-deep);
  margin-bottom: 20px;
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.contact-info-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-mid);
  margin-bottom: 6px;
}
.contact-info-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.contact-info-card a { color: var(--teal); text-decoration: none; }
.contact-info-card a:hover { text-decoration: underline; }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 640px) {
  .doc-grid { grid-template-columns: 1fr; }
  .header-tagline { display: none; }
  .doc-body { padding: 0 16px; }
  .contact-container { grid-template-columns: 1fr; gap: 32px; }
}
