/* ============================================================
   JivitKur Website — Shared Stylesheet
   Brand colors from logo: navy, peach, sage, coral, cream
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --navy:      #1D3461;
  --navy-light:#2A4A8C;
  --peach:     #F2A07B;
  --peach-light:#FDE8D8;
  --cream:     #FDF6F0;
  --sage:      #7B9E7B;
  --sage-light:#D4E6D4;
  --coral:     #C8705A;
  --coral-light:#F2C4B8;
  --white:     #FFFFFF;
  --text-dark: #1D3461;
  --text-body: #4A4A5A;
  --text-muted:#7A7A8A;
  --border:    #EDE8E3;
  --shadow:    0 4px 24px rgba(29,52,97,0.08);
  --radius:    16px;
  --radius-sm: 8px;
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  line-height: 1.3;
}

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral); }

img { max-width: 100%; height: auto; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(29,52,97,0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  border-bottom-color: var(--peach);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--peach-light) 50%, var(--sage-light) 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--peach-light) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.6;
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(29,52,97,0.15);
  margin-bottom: 24px;
  border: 4px solid var(--white);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.hero-khmer {
  font-size: 1.1rem;
  color: var(--coral);
  font-weight: 500;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 4px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
}

/* ── Page Hero (for inner pages) ───────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 24px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
}

.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.page-hero .breadcrumb a { color: var(--peach-light); }

/* ── Content Cards ─────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.card h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--peach-light);
}

.card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 28px 0 10px;
}

.card p { margin-bottom: 14px; color: var(--text-body); }

.card ul, .card ol {
  padding-left: 24px;
  margin-bottom: 14px;
}

.card li { margin-bottom: 6px; }

/* ── Highlight Box ─────────────────────────────────────────── */
.highlight-box {
  background: var(--peach-light);
  border-left: 4px solid var(--peach);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.highlight-box.info {
  background: #EEF3FF;
  border-left-color: var(--navy-light);
}

.highlight-box.success {
  background: var(--sage-light);
  border-left-color: var(--sage);
}

/* ── Features Grid (homepage) ───────────────────────────────── */
.features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(29,52,97,0.12);
}

.feature-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}

.feature-icon.peach { background: var(--peach-light); }
.feature-icon.sage  { background: var(--sage-light); }
.feature-icon.navy  { background: #EEF3FF; }

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Section Title ─────────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 16px;
}

.section-title h2 { font-size: 2rem; }

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 8px auto 0;
}

/* ── Social Links ──────────────────────────────────────────── */
.social-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all .2s;
  cursor: pointer;
}

.social-btn.facebook { background: #1877F2; color: white; }
.social-btn.tiktok   { background: #000000; color: white; }
.social-btn.youtube  { background: #FF0000; color: white; }
.social-btn:hover    { opacity: 0.85; transform: translateY(-2px); }

/* ── Table of Contents ─────────────────────────────────────── */
.toc {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.toc h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.toc ol {
  padding-left: 20px;
  margin: 0;
}

.toc li { margin-bottom: 4px; }
.toc a { font-size: 0.9rem; color: var(--navy-light); }

/* ── Legal Page Layout ─────────────────────────────────────── */
.legal-content {
  padding: 60px 0;
}

.legal-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.legal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Contact Section ───────────────────────────────────────── */
.contact-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 24px;
  text-align: center;
  color: var(--white);
  margin-top: 60px;
}

.contact-section h2 { color: var(--white); margin-bottom: 12px; }
.contact-section p { color: rgba(255,255,255,0.75); margin-bottom: 24px; }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 12px 28px;
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  transition: background .2s;
}

.contact-email:hover {
  background: rgba(255,255,255,0.25);
  color: var(--white);
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
  list-style: none;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  transition: color .2s;
}

.footer-links a:hover { color: var(--peach); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .card { padding: 28px 24px; }
  .nav-links { display: none; }
  .page-hero h1 { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
}
