/*
Theme Name: Semeru Institute
Theme URI: https://semeruinstitute.net
Author: The Semeru Institute
Description: Modern theme untuk The Semeru Institute - Lembaga Survei & Riset Indonesia
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: semeru
*/

:root {
  --primary: #0b4a59;
  --primary-dark: #063641;
  --primary-soft: #e8f2f4;
  --accent: #c99a4a;
  --text: #17242a;
  --muted: #64747b;
  --white: #ffffff;
  --bg: #f7fafb;
  --border: #dce6e9;
  --shadow: 0 24px 70px rgba(6,54,65,0.12);
  --radius: 22px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* HEADER */
#site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220,230,233,0.8);
}
.navbar { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; }
.brand-logo-text strong { display: block; color: var(--primary-dark); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand-logo-text span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
#navMenu { display: flex; align-items: center; gap: 28px; }
#navMenu a { font-size: 14px; font-weight: 600; color: #31464d; transition: color 0.2s; }
#navMenu a:hover { color: var(--primary); }
.nav-cta { padding: 11px 20px; background: var(--primary); color: var(--white) !important; border-radius: 999px; box-shadow: 0 10px 25px rgba(11,74,89,0.22); }
.nav-cta:hover { background: var(--primary-dark) !important; }
.menu-btn { display: none; border: 0; background: var(--primary-soft); color: var(--primary); width: 44px; height: 44px; border-radius: 12px; font-size: 22px; cursor: pointer; }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(201,154,74,0.22), transparent 34%), linear-gradient(135deg, #ffffff 0%, #eef6f8 48%, #dbecef 100%);
  padding: 92px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 58px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; background: rgba(11,74,89,0.08);
  color: var(--primary); border: 1px solid rgba(11,74,89,0.15);
  border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero h1 { font-size: clamp(40px, 5.5vw, 72px); line-height: 1; letter-spacing: -0.06em; color: var(--primary-dark); margin-bottom: 24px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: #44585f; margin-bottom: 34px; max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 480px; }
.stat { padding: 18px; background: rgba(255,255,255,0.72); border: 1px solid rgba(220,230,233,0.9); border-radius: 18px; backdrop-filter: blur(10px); }
.stat strong { display: block; font-size: 26px; color: var(--primary-dark); line-height: 1; margin-bottom: 6px; }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-card { background: var(--primary-dark); color: white; border-radius: 32px; padding: 30px; box-shadow: var(--shadow); overflow: hidden; min-height: 400px; position: relative; }
.hero-card::before { content: ""; position: absolute; width: 400px; height: 400px; right: -140px; top: -140px; background: radial-gradient(circle, rgba(201,154,74,0.4), transparent 62%); }
.insight-panel { position: relative; z-index: 2; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.panel-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.72); font-weight: 800; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: #fff3d8; padding: 7px 12px; border-radius: 999px; background: rgba(201,154,74,0.22); }
.topic-item { display: flex; justify-content: space-between; gap: 14px; padding: 15px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; font-size: 14px; color: rgba(255,255,255,0.84); margin-bottom: 10px; }
.topic-item strong { color: white; font-size: 13px; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; font-weight: 800; font-size: 14px; transition: 0.25s ease; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 18px 35px rgba(11,74,89,0.22); }
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); color: var(--white); }
.btn-outline { background: rgba(255,255,255,0.7); color: var(--primary); border-color: rgba(11,74,89,0.2); }
.btn-outline:hover { background: var(--white); transform: translateY(-2px); }

/* SECTIONS */
section { padding: 86px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-kicker { color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.1; letter-spacing: -0.04em; color: var(--primary-dark); max-width: 640px; }
.section-desc { max-width: 400px; color: var(--muted); font-size: 15px; }

/* SERVICES */
.services-section { background: var(--bg); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 16px 45px rgba(6,54,65,0.06); transition: 0.25s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.icon { width: 54px; height: 54px; border-radius: 16px; background: var(--primary-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 20px; }
.service-card h3 { color: var(--primary-dark); font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14px; }

/* PUBLICATIONS */
.publications-section { background: white; }
.publication-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr; gap: 22px; }
.publication { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: 0 16px 45px rgba(6,54,65,0.06); transition: 0.25s ease; }
.publication:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.publication.large { grid-row: span 2; }
.pub-image { min-height: 180px; background: linear-gradient(135deg, rgba(11,74,89,0.88), rgba(6,54,65,0.95)), radial-gradient(circle at 80% 20%, rgba(201,154,74,0.5), transparent 32%); }
.publication.large .pub-image { min-height: 300px; }
.pub-content { padding: 22px; }
.tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 900; margin-bottom: 12px; }
.pub-content h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.02em; color: var(--primary-dark); margin-bottom: 10px; }
.pub-content h3 a { color: inherit; }
.pub-content h3 a:hover { color: var(--primary); }
.pub-content p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.read-more { color: var(--primary); font-weight: 900; font-size: 14px; }
.read-more:hover { color: var(--accent); }

/* DATA SECTION */
.data-section { background: var(--primary-dark); color: white; position: relative; overflow: hidden; }
.data-section::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 20%, rgba(201,154,74,0.18), transparent 35%), linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: auto, 42px 42px, 42px 42px; }
.data-section .container { position: relative; z-index: 2; }
.data-section .section-title { color: white; }
.data-section .section-desc { color: rgba(255,255,255,0.7); }
.data-section .section-kicker { color: #f4d79b; }
.data-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.data-card { padding: 24px; border-radius: 22px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.data-card strong { display: block; font-size: 36px; line-height: 1; letter-spacing: -0.05em; margin-bottom: 10px; color: #f4d79b; }
.data-card span { color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 600; }

/* CONTACT */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; }
.contact-info, .contact-form { border: 1px solid var(--border); border-radius: 28px; padding: 32px; background: #fff; box-shadow: 0 16px 45px rgba(6,54,65,0.06); }
.contact-info h3 { font-size: 26px; color: var(--primary-dark); letter-spacing: -0.04em; margin-bottom: 12px; }
.contact-info > p { color: var(--muted); margin-bottom: 24px; }
.info-list { display: grid; gap: 14px; }
.info-item { display: flex; gap: 14px; color: #40555c; font-weight: 600; font-size: 15px; }
.info-item b { color: var(--primary); min-width: 80px; }
.contact-form form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select, textarea { width: 100%; border: 1px solid var(--border); background: #fbfdfe; border-radius: 14px; padding: 14px 16px; font: inherit; color: var(--text); outline: none; transition: 0.2s ease; font-size: 15px; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,74,89,0.08); background: white; }
textarea { min-height: 120px; resize: vertical; }

/* FOOTER */
footer { background: #031f26; color: white; padding: 54px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr; gap: 34px; margin-bottom: 38px; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer p, footer li, footer a { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.8; }
footer h4 { margin-bottom: 14px; font-size: 15px; color: white; }
footer ul { display: grid; gap: 8px; }
.copyright { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* SINGLE POST */
.single-wrap { padding: 60px 0 80px; }
.single-article { max-width: 780px; }
.single-title { font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.04em; line-height: 1.1; color: var(--primary-dark); margin: 16px 0 18px; }
.single-meta { display: flex; gap: 20px; color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.single-thumb { border-radius: 20px; overflow: hidden; margin-bottom: 36px; }
.single-thumb img { width: 100%; }
.single-content { font-size: 17px; line-height: 1.8; color: #2a3a40; }
.single-content h2, .single-content h3 { color: var(--primary-dark); margin: 32px 0 14px; letter-spacing: -0.03em; }
.single-content p { margin-bottom: 18px; }
.single-content a { color: var(--primary); text-decoration: underline; }

/* ARCHIVE */
.archive-wrap { padding: 60px 0 80px; }
.archive-header { margin-bottom: 40px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pagination { margin-top: 40px; text-align: center; }
.page-numbers { display: inline-flex; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--border); color: var(--primary); font-weight: 700; margin: 4px; }
.page-numbers.current { background: var(--primary); color: white; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero h1 { font-size: 38px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .services { grid-template-columns: 1fr; }
  .publication-grid { grid-template-columns: 1fr; }
  .publication.large { grid-row: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { flex-direction: column; text-align: center; }
  #navMenu { display: none; position: absolute; top: 82px; left: 0; right: 0; background: white; flex-direction: column; align-items: flex-start; padding: 20px 24px; border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,0.08); gap: 18px; }
  #navMenu.active { display: flex; }
  .menu-btn { display: grid; }
}
