:root {
  --dnms-primary: #d4a23a;
  --dnms-secondary: #345e28;
  --dnms-dark: #111111;
  --dnms-text: #ffffff;
  --dnms-logo-width: 420px;
  --dnms-header-height: 540px;
  --dnms-header-height-mobile: 320px;
  --dnms-logo-top: 26px;
  --dnms-overlay: .30;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #0b0b0b 0%, var(--dnms-dark) 100%);
  color: var(--dnms-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}
a { color: var(--dnms-primary); text-decoration: none; }
a:hover { opacity: .92; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.site-main { padding: 32px 0 56px; }

.hero-header {
  min-height: var(--dnms-header-height);
  position: relative;
  background-size: cover;
  background-position: center center;
  overflow: hidden;
  border-bottom: 4px solid rgba(212,162,58,.65);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,calc(var(--dnms-overlay) + .05)) 0%, rgba(0,0,0,calc(var(--dnms-overlay) + .18)) 55%, rgba(0,0,0,calc(var(--dnms-overlay) + .38)) 100%);
}
.header-topbar {
  position: relative;
  z-index: 3;
  padding-top: var(--dnms-logo-top);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.site-branding { width: 100%; }
.site-branding.align-left { text-align: left; }
.site-branding.align-center { text-align: center; }
.site-branding.align-right { text-align: right; }
.site-logo-link { display: inline-block; }
.site-logo-image {
  width: min(var(--dnms-logo-width), 100%);
  filter: drop-shadow(0 10px 25px rgba(0,0,0,.7));
}
.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 260px;
  justify-content: flex-end;
}
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,17,17,.78);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  color: #fff;
  font-weight: 700;
}
.social-link:hover {
  transform: translateY(-1px);
  background: var(--dnms-primary);
  color: #111;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  min-height: calc(var(--dnms-header-height) - 120px);
  padding-bottom: 42px;
}
.hero-card {
  max-width: 630px;
  background: rgba(10,10,10,.62);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 5px solid var(--dnms-primary);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
.eyebrow {
  margin: 0 0 8px;
  color: #f0cf81;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .8rem;
}
.hero-card h1, .section-title {
  margin: 0 0 10px;
  line-height: 1.1;
  font-size: clamp(2rem, 3vw, 3.2rem);
}
.hero-text { margin: 0 0 18px; color: rgba(255,255,255,.95); }
.hero-button {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(180deg, #f1c664 0%, var(--dnms-primary) 100%);
  color: #111;
  border-radius: 999px;
  font-weight: 700;
}
.hero-button:hover { transform: translateY(-1px); }

.main-navigation {
  background: rgba(14,14,14,.98);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.menu-toggle {
  display: none;
  background: var(--dnms-primary);
  color: #111;
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}
#primary-menu, .footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 18px;
  align-items: center;
}
#primary-menu li a, .footer-menu li a {
  color: #fff;
  font-weight: 600;
}
#primary-menu li a:hover, .footer-menu li a:hover { color: var(--dnms-primary); }

.posts-grid, .feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.post-card, .page-card, .feature-box {
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.post-card-content, .page-card, .feature-box { padding: 22px; }
.post-thumb img, .single-thumb img { width: 100%; }
.post-meta { color: #d7c7a0; font-size: .9rem; margin: 0 0 8px; }
.entry-title { margin: 0 0 10px; font-size: 1.4rem; }
.entry-title a { color: #fff; }
.entry-title a:hover { color: var(--dnms-primary); }
.pagination-wrap { margin-top: 28px; }
.welcome-section { margin-bottom: 24px; }
.feature-box h3 { margin-top: 0; color: var(--dnms-primary); }

.site-footer {
  background: #090909;
  border-top: 2px solid rgba(212,162,58,.35);
  padding-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}
.footer-custom-content,
.footer-widgets { text-align: center; }
.footer-align-left .footer-custom-content,
.footer-align-left .footer-widgets { text-align: left; }
.footer-align-right .footer-custom-content,
.footer-align-right .footer-widgets { text-align: right; }
.footer-image-wrap img {
  max-width: 220px;
  margin-bottom: 16px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.footer-widget {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px;
  padding: 18px;
}
.footer-title { margin-top: 0; color: var(--dnms-primary); }
.footer-menu-wrap {
  margin-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 14px 0 24px;
}
.footer-menu { justify-content: center; flex-wrap: wrap; }

.comment-respond, .comments-area {
  margin-top: 24px;
  background: rgba(255,255,255,.03);
  border-radius: 22px;
  padding: 22px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
}
button, input[type="submit"] {
  background: var(--dnms-primary);
  color: #111;
  border: 0;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .posts-grid, .feature-row, .footer-grid, .footer-widgets {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-header { min-height: var(--dnms-header-height-mobile); }
  .header-topbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .site-branding.align-left, .site-branding.align-center, .site-branding.align-right { text-align: center; }
  .hero-socials { justify-content: center; max-width: 100%; }
  .hero-content {
    min-height: auto;
    padding: 12px 0 24px;
    align-items: end;
  }
  .hero-card { padding: 18px; border-radius: 18px; }
  .menu-toggle { display: inline-flex; }
  #primary-menu {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 14px 0 18px;
  }
  #primary-menu.is-open { display: flex; }
  .nav-inner { flex-direction: column; align-items: flex-start; padding: 10px 0; }
  .posts-grid, .feature-row, .footer-grid, .footer-widgets { grid-template-columns: 1fr; }
  .site-main { padding-top: 24px; }
}
