/*
Theme Name: Alamkia
Theme URI: https://alamkia.com
Author: Alamkia
Author URI: https://alamkia.com
Description: Tema minimalis profesional untuk Alamkia — Pena & Hukum. Biru gelap, tipografi Lora, laju dan elegan.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alamkia
Tags: minimalist, blog, custom-logo, featured-images, two-columns
*/

/* ============================================================
   TOKEN SYSTEM
   ============================================================ */
:root {
  --navy:        #0D1F3C;
  --navy-mid:    #1A3560;
  --navy-light:  #2A4A7F;
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --white:       #FFFFFF;
  --off-white:   #F7F8FA;
  --gray-100:    #EEF0F4;
  --gray-300:    #C8CDD8;
  --gray-500:    #8892A4;
  --gray-700:    #4A5568;
  --text-dark:   #0D1F3C;
  --text-body:   #374151;
  --text-muted:  #6B7280;

  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;

  --shadow-sm:   0 1px 3px rgba(13,31,60,0.08);
  --shadow-md:   0 4px 16px rgba(13,31,60,0.12);

  --max-width:   1100px;
  --content-width: 720px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.4rem; }
p:last-child { margin-bottom: 0; }

blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--off-white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-body);
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-muted);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.site-logo__tagline {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.site-nav a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--navy);
  background: var(--gray-100);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--navy);
}

.nav-toggle svg { width: 24px; height: 24px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  color: var(--white);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(201,168,76,0.06);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.875rem;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 100px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.80);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,168,76,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__quote-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
  max-width: 360px;
}

.hero__quote-card blockquote {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
}

.hero__quote-card cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 3rem;
}

.section-header--center { text-align: center; }

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

.section-title {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.section-header--center .section-desc { margin: 0 auto; }

/* ============================================================
   POST CARDS (GRID)
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-100);
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__thumb--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.post-card__thumb--placeholder::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(201,168,76,0.08);
}

.post-card__thumb--placeholder::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.post-card__thumb--placeholder .placeholder-icon {
  font-size: 1.75rem;
  color: var(--gold);
  position: relative;
  z-index: 1;
}

.post-card__thumb--placeholder .placeholder-cat {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

.post-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card__cat {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-light);
  background: var(--gray-100);
  padding: 0.25rem 0.625rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.post-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}

.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--navy-light); }

.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.post-card__date {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-card__link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.post-card__link:hover { color: var(--gold); }

/* ============================================================
   CATEGORIES SECTION
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cat-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  color: var(--white);
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.cat-card:hover {
  background: var(--navy-mid);
  transform: translateY(-3px);
  color: var(--white);
}

.cat-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.cat-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.cat-card__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0;
}

.cat-card__count {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ============================================================
   CTA / NEWSLETTER SECTION
   ============================================================ */
.cta-section {
  background: var(--off-white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.cta-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner .section-title { color: var(--navy); }

.cta-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}

.cta-form input[type="email"]:focus { border-color: var(--navy-light); }
.cta-form input[type="email"]::placeholder { color: var(--text-muted); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-hero {
  background: var(--navy);
  padding: 5rem 0 4rem;
  color: var(--white);
}

.single-hero__cat {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.single-hero__title {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.single-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.single-hero__meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.post-content {
  padding: 4rem 0;
}

.post-content .container--narrow > * + * { margin-top: 1.4rem; }

.post-content h2 { color: var(--navy); margin-top: 3rem; }
.post-content h3 { color: var(--navy); margin-top: 2rem; }

.post-content a {
  color: var(--navy-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
}

.post-content li { margin-bottom: 0.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.footer-brand__tagline {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-brand__desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

.footer-col__title {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.625rem; }

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { display: none; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .site-nav { display: none; }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open ul { flex-direction: column; }
  .nav-toggle { display: block; }
  .cta-form { flex-direction: column; }
  .hero__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
