/*
Theme Name: Husnetaar Minimal
Theme URI: https://example.com/husnetaar-minimal
Author: Husnetaar Team
Author URI: https://example.com
Description: A fast, clean, minimal WordPress theme for Husnetaar. Built to work with plugin-based shortcodes and future modular features.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: husnetaar-minimal
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --hm-bg: #0b1220;
  --hm-surface: #0f1a33;
  --hm-text: #eaf0ff;
  --hm-muted: #b7c3e6;
  --hm-accent: #16a34a;
  --hm-accent-2: #2563eb;
  --hm-border: rgba(255,255,255,.10);
  --hm-shadow: 0 10px 30px rgba(0,0,0,.35);
  --hm-radius: 16px;
  --hm-max: 1100px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--hm-text);
  background: radial-gradient(1200px 700px at 15% 10%, rgba(37,99,235,.25), transparent 60%),
              radial-gradient(1200px 700px at 80% 30%, rgba(22,163,74,.22), transparent 55%),
              var(--hm-bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.hm-container {
  width: min(var(--hm-max), calc(100% - 40px));
  margin: 0 auto;
}

.hm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom: 1px solid var(--hm-border);
}

.hm-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.hm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: .2px;
}

.hm-logo img { height: 34px; width: auto; display: block; }
.hm-brand-name { font-size: 18px; }

.hm-nav { display: flex; align-items: center; gap: 16px; }
.hm-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hm-nav li a { color: var(--hm-muted); font-weight: 600; }
.hm-nav li a:hover { color: var(--hm-text); }

.hm-cta { display: flex; gap: 10px; align-items: center; }
.hm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--hm-border);
  background: rgba(255,255,255,.04);
  color: var(--hm-text);
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.hm-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.hm-btn-primary { background: linear-gradient(135deg, var(--hm-accent-2), var(--hm-accent)); border-color: transparent; }
.hm-btn-primary:hover { filter: brightness(1.05); }

.hm-mobile-toggle {
  display: none;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--hm-border);
  background: rgba(255,255,255,.04);
  color: var(--hm-text);
  font-weight: 700;
}

.hm-hero {
  padding: 56px 0 26px;
}
.hm-hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  box-shadow: var(--hm-shadow);
  padding: 34px;
}
.hm-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
}
.hm-hero p {
  margin: 0 0 18px;
  color: var(--hm-muted);
  font-size: 16px;
  max-width: 72ch;
}
.hm-pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.hm-pill {
  padding: 8px 12px;
  border: 1px solid var(--hm-border);
  border-radius: 999px;
  color: var(--hm-text);
  background: rgba(255,255,255,.03);
  font-weight: 700;
  font-size: 13px;
}

.hm-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin: 18px 0 0;
}
.hm-card {
  grid-column: span 4;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  padding: 18px;
}
.hm-card h3 { margin: 0 0 6px; font-size: 16px; }
.hm-card p { margin: 0; color: var(--hm-muted); font-size: 14px; }

.hm-content { padding: 28px 0 54px; }
.hm-surface {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius);
  padding: 22px;
}
.hm-content h2 { margin-top: 0; }

.hm-footer {
  border-top: 1px solid var(--hm-border);
  padding: 26px 0;
  color: var(--hm-muted);
  background: rgba(11,18,32,.7);
}
.hm-footer a { color: var(--hm-muted); }
.hm-footer a:hover { color: var(--hm-text); }

/* WordPress content defaults */
.entry-content a { text-decoration: underline; }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--hm-text); }
.entry-content p { color: var(--hm-muted); }

/* Responsive */
@media (max-width: 860px) {
  .hm-card { grid-column: span 12; }
  .hm-mobile-toggle { display: inline-flex; }
  .hm-nav { display: none; }
  .hm-nav.hm-open {
    display: block;
    width: 100%;
    padding: 12px 0 16px;
  }
  .hm-nav ul { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hm-header-inner { flex-wrap: wrap; }
  .hm-cta { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
