/*
Theme Name: Astra HTML Child
Theme URI: https://example.com/astra-html-child
Description: HTML-based child theme for Astra. All templates are pure HTML that you can edit manually - header with mega menu, page with related pages sidebar, post, archive, taxonomy, footer.
Author: Achi Systems
Author URI: https://achisystems.co.ke
Template: astra
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: astra-html-child
*/

:root{
  --primary:#2d5c88;
  --accent:#3b82f6;
  --bg:#ffffff;
  --muted:#64748b;
  --border:#e2e8f0;
  --mega-bg:#f8fafc;
}
* { box-sizing: border-box; }
body { font-family: Inter, system-ui, sans-serif; color: var(--primary); background: var(--bg); margin:0; }
.html-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.html-row { display:flex; gap:40px; }
.html-main { flex:1; min-width:0; }
.html-sidebar { width:320px; flex-shrink:0; }
.html-header { position:sticky; top:0; z-index:100; background:rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom:1px solid var(--border); }
.html-header-top { display:flex; justify-content:space-between; align-items:center; height:42px; }
.html-logo { font-weight:800; font-size:22px; letter-spacing:-0.02em; text-decoration:none; color:var(--primary); }
.html-logo span { color:var(--accent); }
.html-nav { display:flex; align-items:center; gap:28px; list-style:none; margin:0; padding:0; }
.html-nav > li { position:relative; }
.html-nav > li > a { text-decoration:none; color:var(--primary); font-weight:500; font-size:14.5px; padding:8px 0; display:block; }
.html-nav > li > a:hover { color:var(--accent); }
.has-mega .mega-menu { position:absolute; left:50%; transform:translateX(-50%); top:100%; width:720px; background:var(--mega-bg); border:1px solid var(--border); border-radius:16px; padding:24px; display:none; box-shadow: 0 20px 40px rgba(0,0,0,0.08); grid-template-columns: repeat(3, 1fr); gap:24px; }
.has-mega:hover .mega-menu { display:grid; }
.mega-col h4 { font-size:12px; text-transform:uppercase; letter-spacing:0.08em; color:var(--muted); margin:0 0 12px; }
.mega-col ul { list-style:none; margin:0; padding:0; }
.mega-col ul li a { display:block; padding:8px 0; text-decoration:none; color:var(--primary); font-size:14px; }
.mega-col ul li a:hover { color:var(--accent); }
.mobile-toggle { display:none; background:none; border:1px solid var(--border); border-radius:8px; padding:8px 12px; cursor:pointer; }
@media(max-width: 980px){
  .html-nav { display:none; position:absolute; top:72px; left:0; right:0; background:white; flex-direction:column; align-items:flex-start; padding:24px; border-bottom:1px solid var(--border); }
  .html-nav.open { display:flex; }
  .has-mega .mega-menu { position:static; transform:none; width:100%; display:none; box-shadow:none; margin-top:12px; }
  .has-mega.open .mega-menu { display:grid; grid-template-columns:1fr; }
  .mobile-toggle { display:block; }
  .html-row { flex-direction:column; }
  .html-sidebar { width:100%; }
}
.html-page-hero { padding:48px 0 24px; border-bottom:1px solid var(--border); margin-bottom:32px; }
.html-page-hero h1 { font-size:40px; line-height:1.1; margin:0 0 12px; letter-spacing:-0.03em; }
.html-breadcrumbs { font-size:13px; color:var(--muted); }
.html-card { border:1px solid var(--border); border-radius:16px; padding:20px; background:white; }
.html-sidebar .widget-title { font-size:13px; text-transform:uppercase; letter-spacing:0.08em; color:var(--muted); margin-bottom:16px; }
.html-footer { margin-top:80px; background:var(--primary); color:#cbd5e1; padding:64px 0 32px; }
.html-footer a { color:#e2e8f0; text-decoration:none; }
.html-footer a:hover { color:white; }
.html-footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap:40px; }
.html-footer-bottom { border-top:1px solid #1e293b; margin-top:48px; padding-top:24px; font-size:13px; display:flex; justify-content:space-between; }
@media(max-width: 900px){ .html-footer-grid { grid-template-columns:1fr 1fr; } }
.html-post-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:24px; }
@media(max-width: 900px){ .html-post-grid { grid-template-columns:1fr; } }
.html-badge { display:inline-block; background:var(--mega-bg); border:1px solid var(--border); border-radius:999px; padding:4px 10px; font-size:12px; }
.entry-content a { color:var(--accent); }
