/* =========================
   DHAC — Styles (Production)
   ========================= */

#dhac {
  --dhac-bg: #05080F;
  --dhac-bg2: #0A0F1C;
  --dhac-surface: #111827;
  --dhac-text: #F3F4F6;
  --dhac-muted: #D1D5DB;
  --dhac-dim: #9CA3AF;
  --dhac-blue: #0077C8;
  --dhac-red: #E31837;
  --dhac-radius: 16px;
  --dhac-container: 1180px;
  --dhac-font: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  font-family: var(--dhac-font);
  color: var(--dhac-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;

  /* KEY FIX: prevent theme body white showing through */
  background: var(--dhac-bg);
}

#dhac * { box-sizing: border-box; }
#dhac img { max-width: 100%; height: auto; display: block; }
#dhac a { text-decoration: none; color: inherit; transition: color 0.2s; }

#dhac h1, #dhac h2, #dhac h3, #dhac h4, #dhac strong, #dhac b { color: #ffffff !important; }
#dhac p, #dhac li, #dhac span, #dhac label { color: var(--dhac-muted); }

/* Screen-reader only */
#dhac .dhac-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Smooth anchor spacing */
#dhac section { scroll-margin-top: 96px; padding: 80px 0; border-top: 1px solid rgba(255,255,255,0.05); }

#dhac .dhac-bleed {
  position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  width: 100vw;
}

#dhac .dhac-wrap {
  max-width: var(--dhac-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Page background */
#dhac .dhac-page {
  background:
    radial-gradient(1000px 800px at 0% 0%, rgba(0, 119, 200, 0.2), transparent 60%),
    radial-gradient(900px 900px at 100% 90%, rgba(227, 24, 55, 0.15), transparent 60%),
    linear-gradient(180deg, var(--dhac-bg) 0%, var(--dhac-bg2) 100%);
  min-height: 100vh;

  /* KEY FIX: offset belongs on the element with background */
  padding-top: 74px;
}

/* If logged in, WP admin bar offsets fixed header */
body.admin-bar #dhac .dhac-header { top: 32px; }
@media (max-width: 782px){
  body.admin-bar #dhac .dhac-header { top: 46px; }
}

/* --- FIXED HEADER --- */
#dhac .dhac-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  background: rgba(5, 8, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

#dhac .dhac-header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 20px;
  max-width: var(--dhac-container);
  margin: 0 auto;
}

#dhac .dhac-brand { display:flex; align-items:center; gap: 12px; }
#dhac .dhac-logo-box {
  width: 44px; height: 44px; background: white;
  border-radius: 10px; padding: 2px;
  box-shadow: 0 0 15px rgba(0, 119, 200, 0.3);
}
#dhac .dhac-logo-box img { width: 100%; height: 100%; object-fit: contain; }
#dhac .dhac-brand-text strong { font-size: 15px; letter-spacing: 0.5px; line-height: 1.2; }
#dhac .dhac-brand-text span { font-size: 11px; color: var(--dhac-dim); display:block; }

#dhac .dhac-nav { display:flex; gap: 24px; }
#dhac .dhac-nav a { font-size: 14px; font-weight: 500; color: var(--dhac-muted) !important; }
#dhac .dhac-nav a:hover { color: white !important; }

/* Mobile menu (now class-based, not inline) */
#dhac .dhac-mobile-menu {
  background:#0F1218;
  padding: 10px 20px 20px;
  border-top:1px solid rgba(255,255,255,0.08);
  position:absolute;
  left:0; right:0;
  top:100%;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  max-height:80vh;
  overflow-y:auto;
}
#dhac .dhac-mobile-menu a {
  display:block;
  padding:14px;
  border-bottom:1px solid rgba(255,255,255,0.05);
  color: var(--dhac-muted);
}
#dhac .dhac-mobile-menu a:hover { color: #fff; }

/* Buttons */
#dhac .dhac-btn {
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 700; color: white !important;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer; transition: all 0.2s;
}
#dhac .dhac-btn:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }

#dhac .dhac-btn-primary {
  background: linear-gradient(135deg, var(--dhac-blue) 0%, var(--dhac-red) 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 119, 200, 0.4);
}
#dhac .dhac-btn-primary:hover { filter: brightness(1.1); box-shadow: 0 6px 25px rgba(0, 119, 200, 0.5); }

#dhac .dhac-menu-toggle {
  display:none;
  background:none;
  border:none;
  color:white;
  font-size:26px;
  cursor:pointer;
  padding: 8px;
}

/* --- HERO --- */
#dhac .dhac-hero { padding: 60px 0; }
#dhac .dhac-hero-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }

#dhac .dhac-badges { display:flex; gap:8px; margin-bottom: 20px; flex-wrap:wrap; }
#dhac .dhac-badge {
  font-size: 11px; font-weight: 700; text-transform:uppercase;
  padding: 6px 12px; border-radius: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  color: white !important;
  display:flex; align-items:center; gap: 6px;
}
#dhac .dhac-badge.accred { background: rgba(0, 119, 200, 0.2); border-color: var(--dhac-blue); }
#dhac .dhac-dot { width: 6px; height: 6px; background: #22C55E; border-radius: 50%; box-shadow: 0 0 6px #22C55E; }

#dhac h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
#dhac .dhac-lead { font-size: 18px; margin-bottom: 30px; max-width: 520px; }
#dhac .dhac-cta-row { display:flex; gap:16px; flex-wrap:wrap; }

/* Form */
#dhac .dhac-hero-card {
  background: rgba(20, 25, 40, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 4px solid var(--dhac-red);
  border-radius: var(--dhac-radius);
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  position:relative;
}
#dhac .dhac-form-title { margin: 0 0 8px; }
#dhac .dhac-form-sub { font-size:14px; margin:0 0 20px; color: var(--dhac-muted); }

#dhac input, #dhac select, #dhac textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  color: white;
  font-family:inherit;
  font-size: 16px;
}
#dhac input:focus, #dhac select:focus, #dhac textarea:focus {
  outline: none;
  border-color: var(--dhac-blue);
  background: black;
}

#dhac .dhac-form-submit {
  width: 100%;
  margin-top: 12px;
  padding: 16px;
}

#dhac .dhac-form-success {
  position:absolute; inset:0;
  background: #0A0F1C;
  display:none;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  border-radius: var(--dhac-radius);
  text-align:center;
  padding: 30px;
  z-index:10;
}
#dhac .dhac-success-icon { background: rgba(34,197,94,0.2) !important; color: #22C55E !important; margin: 0 auto 20px; }

/* Shared text helpers */
#dhac .dhac-section-title { margin: 0 0 10px; }
#dhac .dhac-section-lead { margin: 0 0 40px; max-width: 600px; }
#dhac .dhac-small { font-size: 14px; margin: 10px 0 0; }
#dhac .dhac-small-muted { display:block; margin-top:15px; color: var(--dhac-dim); }

/* Alternate section background */
#dhac .dhac-alt { background: rgba(255,255,255,0.02); }

/* Projects */
#dhac .dhac-project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
#dhac .dhac-project-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--dhac-radius);
  overflow:hidden;
  transition: transform 0.3s, background 0.3s;
}
#dhac .dhac-project-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.05); }
#dhac .dhac-project-img { height: 200px; width: 100%; background: #222; }
#dhac .dhac-project-img img { width:100%; height:100%; object-fit:cover; opacity:0.85; transition: opacity 0.3s; }
#dhac .dhac-project-card:hover img { opacity: 1; }
#dhac .dhac-project-content { padding: 20px; }
#dhac .dhac-project-tag {
  font-size:11px; text-transform:uppercase;
  color: var(--dhac-blue);
  font-weight:700;
  letter-spacing:1px;
  margin-bottom:6px;
  display:block;
}

/* Grids/Cards */
#dhac .dhac-grid-3 { display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
#dhac .dhac-grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap: 20px; }

#dhac .dhac-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--dhac-radius);
  padding: 26px;
  transition: transform .3s;
}

#dhac .dhac-icon-box {
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(0, 119, 200, 0.2);
  color: var(--dhac-blue);
  display:grid;
  place-items:center;
  margin-bottom: 18px;
}
#dhac .dhac-icon-box.red { background: rgba(227, 24, 55, 0.2); color: var(--dhac-red); }

/* FAQ */
#dhac .dhac-faq { max-width: 800px; }
#dhac details {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
#dhac summary {
  cursor: pointer;
  font-weight: 600;
  color: white;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
#dhac summary::-webkit-details-marker { display:none; }
#dhac summary:after { content: '+'; font-size: 20px; color: var(--dhac-dim); }
#dhac details[open] summary:after { content: '-'; }

/* Contact */
#dhac .dhac-contact-row { display:flex; gap:16px; align-items:flex-start; margin-bottom: 24px; }
#dhac .dhac-contact-icon {
  width:40px; height:40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display:grid;
  place-items:center;
  color: var(--dhac-blue);
  flex-shrink:0;
}
#dhac .dhac-meta-title { font-size: 14px; color: var(--dhac-dim); text-transform: uppercase; margin: 0 0 6px; }
#dhac .dhac-address-strong { display:block; color: white; }
#dhac .dhac-phone { display:block; color:white; font-size:18px; font-weight:800; }
#dhac .dhac-emergency { display:block; color: var(--dhac-red); font-weight:800; }

#dhac .dhac-map-container {
  height: 100%;
  min-height: 400px;
  width: 100%;
  border-radius: var(--dhac-radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Footer */
#dhac .dhac-footer {
  padding: 60px 0 100px;
  background: #020305;
  border-top: 1px solid rgba(255,255,255,0.08);
}
#dhac .dhac-foot-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 40px; }
#dhac .dhac-foot-brand { color:white; display:block; margin-bottom:15px; font-size:18px; }
#dhac .dhac-foot-desc { max-width: 360px; }
#dhac .dhac-foot-title { color:white; display:block; margin-bottom:15px; }
#dhac .dhac-foot-link { display:block; color: var(--dhac-muted); margin-bottom:10px; font-size:14px; }
#dhac .dhac-foot-call { color: var(--dhac-blue); }

#dhac .dhac-hanus {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: var(--dhac-dim);
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
#dhac .dhac-hanus a { color: var(--dhac-text); font-weight:600; }

/* Mobile sticky bar */
#dhac .dhac-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99999;
  background: rgba(10, 15, 28, 0.95);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 12px 20px;
  display: none;
  gap: 12px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#dhac .dhac-sticky-btn {
  flex: 1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
}
#dhac .dhac-sticky-call { background: white; color: black; }
#dhac .dhac-sticky-request { background: var(--dhac-red); color: white; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #dhac * { transition: none !important; scroll-behavior: auto !important; }
}

/* Mobile */
@media (max-width: 900px) {
  #dhac .dhac-hero-grid,
  #dhac .dhac-grid-3,
  #dhac .dhac-grid-2,
  #dhac .dhac-foot-grid { grid-template-columns: 1fr; }

  #dhac .dhac-nav { display:none; }
  #dhac .dhac-menu-toggle { display:block; }
  #dhac .dhac-header-cta { display:none; }

  #dhac section { padding: 50px 0; }
  #dhac .dhac-hero { padding: 40px 0 20px; }
  #dhac h1 { font-size: 34px; margin-bottom: 16px; }
  #dhac .dhac-lead { font-size: 16px; margin-bottom: 24px; }
  #dhac .dhac-map-container { min-height: 300px; }

  #dhac .dhac-sticky-bar { display: flex; }
}
