/* ═══ RESET & BASE ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #fafaf7; --surface: #ffffff; --text: #1a1a18; --muted: #6b6b63;
  --accent: #1a5c2e; --accent-light: #e8f5e9; --accent-hover: #14491f;
  --border: #e8e6e0; --warm: #f5f3ee;
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --max-w: 1100px; --radius: 8px;
}
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ═══ HEADER ═══ */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; height: 60px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.logo-icon { font-size: 1.3rem; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { padding: 6px 14px; border-radius: 6px; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: all 0.15s; }
.main-nav a:hover, .main-nav a.active { background: var(--accent-light); color: var(--accent); }
.header-cta { background: var(--accent); color: white !important; padding: 8px 16px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; transition: background 0.15s; }
.header-cta:hover { background: var(--accent-hover); }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 12px; border-bottom: 1px solid var(--border); }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: block; margin-left: auto; }
  .header-cta { display: none; }
}

/* ═══ HERO (Homepage) ═══ */
.hero { padding: 80px 0 60px; text-align: center; background: var(--warm); border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 28px; }
.hero-cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta a { padding: 12px 24px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: all 0.15s; }
.hero-cta .primary { background: var(--accent); color: white; }
.hero-cta .primary:hover { background: var(--accent-hover); }
.hero-cta .secondary { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.hero-cta .secondary:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 768px) { .hero h1 { font-size: 1.8rem; } .hero { padding: 50px 0 40px; } }

/* ═══ SECTIONS ═══ */
.section { padding: 60px 0; }
.section-header { margin-bottom: 32px; }
.section-header h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.section-header p { color: var(--muted); margin-top: 6px; }

/* ═══ CARD GRID ═══ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color 0.15s, box-shadow 0.15s; }
.card:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.card-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 4px; background: var(--accent-light); color: var(--accent); margin-bottom: 10px; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.card h3 a { color: var(--text); } .card h3 a:hover { color: var(--accent); }
.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.card-meta { margin-top: 14px; display: flex; gap: 16px; font-size: 0.78rem; color: var(--muted); }
.card-projects { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-projects span { font-size: 0.72rem; padding: 2px 8px; border-radius: 4px; background: var(--warm); color: var(--muted); border: 1px solid var(--border); }

/* ═══ ARTICLE ═══ */
.article-header { padding: 60px 0 30px; background: var(--warm); border-bottom: 1px solid var(--border); }
.article-header .container { max-width: 760px; }
.article-header .breadcrumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 16px; }
.article-header .breadcrumb a { color: var(--muted); } .article-header .breadcrumb a:hover { color: var(--accent); }
.article-header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.article-header .subtitle { font-size: 1.05rem; color: var(--muted); margin-top: 10px; }
.article-meta { display: flex; gap: 16px; margin-top: 16px; font-size: 0.82rem; color: var(--muted); }
.article-body { max-width: 760px; margin: 0 auto; padding: 40px 20px 80px; }
.article-body h2 { font-size: 1.4rem; font-weight: 700; margin: 40px 0 16px; }
.article-body h3 { font-size: 1.15rem; font-weight: 600; margin: 30px 0 12px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; font-size: 0.9rem; }
.article-body th { background: var(--warm); font-weight: 600; text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--border); }
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 12px 20px; margin: 20px 0; background: var(--accent-light); border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--accent); }

/* ═══ INFO BOX (for project quick stats) ═══ */
.info-box { background: var(--warm); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.info-box h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px; }
.info-box-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.info-box-item { }
.info-box-item .label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.info-box-item .value { font-weight: 700; font-size: 0.95rem; }

/* ═══ CTA BOX (inline article) ═══ */
.cta-box { background: var(--accent); color: white; border-radius: var(--radius); padding: 28px 32px; margin: 36px 0; text-align: center; }
.cta-box h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.cta-box p { opacity: 0.9; font-size: 0.95rem; margin-bottom: 16px; }
.cta-box a { display: inline-block; background: white; color: var(--accent); padding: 10px 24px; border-radius: 6px; font-weight: 700; font-size: 0.9rem; }
.cta-box a:hover { background: #f0f0f0; }

/* ═══ COMPARISON TABLE ═══ */
.comparison-table { overflow-x: auto; margin: 24px 0; }
.comparison-table table { min-width: 500px; }
.comparison-table th:first-child { width: 30%; }
.winner { background: var(--accent-light); font-weight: 600; }

/* ═══ FOOTER ═══ */
.site-footer { background: #1a1a18; color: #b0b0a8; padding: 60px 0 30px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 40px; }
.site-footer h3 { color: white; font-size: 1.1rem; margin-bottom: 10px; }
.site-footer h4 { color: white; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: #b0b0a8; font-size: 0.88rem; } .footer-links a:hover { color: white; }
.footer-disclaimer { font-size: 0.78rem; margin-top: 12px; opacity: 0.7; }
.footer-wa-btn { display: inline-block; background: #25d366; color: white !important; padding: 10px 20px; border-radius: 6px; font-weight: 600; font-size: 0.88rem; margin-bottom: 10px; }
.footer-note { font-size: 0.8rem; opacity: 0.7; }
.footer-bottom { border-top: 1px solid #2a2a28; padding-top: 20px; font-size: 0.8rem; opacity: 0.5; }

/* ═══ WHATSAPP FLOAT ═══ */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; z-index: 999; }
.whatsapp-float a { display: flex; align-items: center; gap: 8px; background: #25d366; color: white; padding: 12px 20px; border-radius: 50px; font-weight: 600; font-size: 0.88rem; box-shadow: 0 4px 16px rgba(37,211,102,0.4); transition: transform 0.15s, box-shadow 0.15s; }
.whatsapp-float a:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37,211,102,0.5); color: white; }
@media (max-width: 768px) { .whatsapp-float a span { display: none; } .whatsapp-float a { padding: 14px; border-radius: 50%; } }

/* ═══ SECTION LISTING ═══ */
.section-listing { padding: 50px 0; }
.section-listing h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.section-listing .desc { color: var(--muted); margin-bottom: 32px; }
