/* ===== Zan Media Group — shared styles ===== */

:root {
  --accent: #b69bff;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(139,92,246,0.16);
}

html, body { overflow-x: hidden; }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0b0b0d; color: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

.bg-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,0.16) 1px, transparent 1.5px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 30% 0%, #000 0%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 75% at 30% 0%, #000 0%, transparent 78%);
}
.bg-glow {
  position: fixed; top: -260px; left: -220px; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 68%);
  filter: blur(10px);
  pointer-events: none; z-index: 0;
}
.bg-glow2 {
  position: fixed; bottom: -220px; right: -200px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none; z-index: 0;
}
.bg-glow3 {
  position: fixed; top: 38%; left: 50%; width: 900px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,92,246,0.03) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none; z-index: 0;
}

.content { position: relative; z-index: 1; }

/* NAV */
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem max(2.5rem, calc((100% - 1240px) / 2));
  border-bottom: 0.5px solid #242428;
  background: rgba(11,11,13,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 60px; width: auto; display: block; }
.nav-logo-text {
  font-size: 15px; font-weight: 500; letter-spacing: 0.12em;
  color: #fff; text-transform: uppercase;
}
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: #c5c5c5; text-decoration: none;
  letter-spacing: 0.04em; padding: 6px 2px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover { color: #fff; border-bottom-color: var(--accent); }
.nav-link.active { color: #fff; border-bottom-color: var(--accent); }
.nav-cta {
  font-size: 13px; font-weight: 500; color: #fff;
  padding: 9px 20px; border-radius: 4px; text-decoration: none;
  background: var(--accent-2); border: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent); }
.nav-cta.active { background: var(--accent); box-shadow: 0 0 0 1px rgba(255,255,255,0.25) inset; }

/* HERO (homepage) */
.hero { padding: 5.5rem max(2.5rem, calc((100% - 1240px) / 2)) 4rem; }
.hero-label { font-size: 11px; letter-spacing: 0.18em; color: #888; text-transform: uppercase; margin-bottom: 1.5rem; }
.hero-h1 { font-size: clamp(32px, 4vw, 44px); font-weight: 500; line-height: 1.2; color: #fff; margin-bottom: 1.5rem; max-width: 680px; }
.hero-h1 span { color: var(--accent); }
.hero-sub { font-size: clamp(15px, 1.1vw, 17px); color: #999; line-height: 1.7; margin-bottom: 2.5rem; max-width: 540px; }
.hero-btn {
  display: inline-block; background: var(--accent-2); color: #fff;
  padding: 12px 28px; font-size: 14px; font-weight: 500;
  border-radius: 4px; text-decoration: none;
  transition: background 0.2s;
}
.hero-btn:hover { background: var(--accent); }

/* PAGE HERO (subpages) */
.page-hero { padding: 3.5rem max(2.5rem, calc((100% - 1240px) / 2)) 2.25rem; }
.page-hero .hero-h1 { font-size: clamp(28px, 3.4vw, 36px); }

/* SECTIONS */
.gray-band {
  background: rgba(255,255,255,0.035);
  border-top: 0.5px solid #232323;
  border-bottom: 0.5px solid #232323;
  padding: 4rem max(2.5rem, calc((100% - 1240px) / 2));
}
.section-label { font-size: 11px; letter-spacing: 0.18em; color: #888; text-transform: uppercase; margin-bottom: 2.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; background: #232323; border: 0.5px solid #232323;
}
.service-card { background: #131313; padding: 1.75rem 1.5rem; }
.service-num { font-size: 11px; color: var(--accent); opacity: 0.85; margin-bottom: 1rem; letter-spacing: 0.1em; }
.service-title { font-size: 14px; font-weight: 500; color: #efefef; margin-bottom: 0.5rem; }
.service-desc { font-size: 13px; color: #8c8c8c; line-height: 1.6; }

.white-section { background: #fff; padding: 4rem max(2.5rem, calc((100% - 1240px) / 2)); }
.white-section .section-label { color: #aaa; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.step { background: #f5f5f3; border-radius: 8px; padding: 1.75rem 1.5rem; }
.step-num { font-size: 11px; color: #bbb; margin-bottom: 1rem; letter-spacing: 0.1em; }
.step-title { font-size: 14px; font-weight: 500; color: #111; margin-bottom: 0.5rem; }
.step-desc { font-size: 13px; color: #888; line-height: 1.6; }

/* DETAIL SECTIONS (services page) */
.detail-section { padding: 2.75rem max(2.5rem, calc((100% - 1240px) / 2)); border-bottom: 0.5px solid #232323; }
.detail-inner {
  max-width: 980px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
}
.detail-label { grid-column: 1; }
.detail-body { grid-column: 2; }
.detail-num { font-size: 11px; color: var(--accent); opacity: 0.85; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.detail-h2 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; color: #fff; }
.detail-p { font-size: clamp(15px, 1.05vw, 16.5px); color: #999; line-height: 1.75; margin-bottom: 1rem; max-width: 640px; }
.detail-p strong { color: #e0e0e0; font-weight: 500; }
.detail-p a { color: var(--accent); }
.detail-body .detail-p:last-child { margin-bottom: 0; }

/* STAT CARDS (results page) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.stat-card {
  background: #131313; border: 0.5px solid #262626;
  border-radius: 8px; padding: 2rem 1.75rem;
}
.stat-value { font-size: 32px; font-weight: 500; color: var(--accent); margin-bottom: 0.4rem; }
.stat-label { font-size: 13px; color: #999; line-height: 1.5; }
.stat-note { font-size: 12px; color: #777; margin-top: 1.5rem; line-height: 1.6; }

.legal-meta { font-size: 12px; color: #777; margin-bottom: 0; }

/* CONTACT */
.contact-band {
  background: rgba(255,255,255,0.02);
  border-top: 0.5px solid #232323;
  padding: 4rem max(2.5rem, calc((100% - 1240px) / 2));
}
.contact-inner {
  background: #131313; border: 0.5px solid #262626;
  border-radius: 8px; padding: 2.5rem; max-width: 560px;
  margin: 0 auto;
}
.contact-band .section-label { text-align: center; }
.contact-h2 { font-size: 22px; font-weight: 500; color: #fff; margin-bottom: 0.75rem; }
.contact-p { font-size: 15px; color: #999; margin-bottom: 1.75rem; line-height: 1.6; }

.zmg-form { display: flex; flex-direction: column; gap: 12px; margin-top: 1.5rem; }
.zmg-form input {
  background: #1a1a1a; border: 0.5px solid #333; border-radius: 4px;
  padding: 12px 14px; color: #fff; font-size: 14px; outline: none;
  font-family: inherit; transition: border-color 0.2s;
}
.zmg-form input:focus { border-color: var(--accent); }
.zmg-form input::placeholder { color: #666; }
.zmg-form select {
  background: #1a1a1a; border: 0.5px solid #333; border-radius: 4px;
  padding: 12px 14px; color: #fff; font-size: 14px; outline: none;
  font-family: inherit; transition: border-color 0.2s;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.zmg-form select:focus { border-color: var(--accent); }
.zmg-form select:invalid { color: #666; }
.zmg-form select option { color: #fff; background: #1a1a1a; }
.zmg-form button {
  background: var(--accent-2); color: #fff; border: none; border-radius: 4px;
  padding: 12px 28px; font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: inherit; transition: background 0.2s;
}
.zmg-form button:hover { background: var(--accent); }
.zmg-thanks { display: none; color: var(--accent); font-size: 13px; margin-top: 4px; }

/* POPUP MODAL */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay.open { display: flex; }
.modal-overlay.visible { opacity: 1; }
.modal-card {
  background: #121212; border: 0.5px solid rgba(139,92,246,0.25); border-radius: 10px;
  padding: 2.25rem; max-width: 460px; width: 100%; position: relative;
  transform: translateY(12px); transition: transform 0.25s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.visible .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: #888;
  font-size: 22px; line-height: 1; cursor: pointer;
  padding: 6px; font-family: inherit;
}
.modal-close:hover { color: #fff; }
.modal-label { font-size: 11px; letter-spacing: 0.18em; color: #888; text-transform: uppercase; margin-bottom: 1rem; }
.modal-h2 { font-size: 22px; font-weight: 500; color: #fff; margin-bottom: 0.6rem; }
.modal-p { font-size: 14px; color: #999; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal-card { transition: none; }
}

/* FOOTER */
.footer {
  padding: 2rem max(2.5rem, calc((100% - 1240px) / 2));
  border-top: 0.5px solid #232323;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: #707070; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { font-size: 12px; color: #707070; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-loc { font-size: 12px; color: #707070; }

/* TABLET — stack the two-column detail rows */
@media (max-width: 800px) {
  .detail-inner { grid-template-columns: 1fr; gap: 0.75rem; }
  .detail-label:empty { display: none; }
}

/* MOBILE */
@media (max-width: 600px) {
  .hero { padding: 4rem 1.5rem 3rem; }
  .hero-h1 { font-size: 28px; }
  .page-hero { padding: 3rem 1.5rem 2rem; }
  .page-hero .hero-h1 { font-size: 26px; }
  .nav { padding: 1rem 1.25rem; }
  .nav-logo img { height: 44px; }
  .nav-logo-text { display: none; }
  .nav-right { gap: 12px; }
  .nav-link { font-size: 13px; }
  .nav-cta { padding: 7px 12px; font-size: 12px; }
  .gray-band, .white-section, .contact-band, .detail-section { padding: 3rem 1.5rem; }
  .footer { padding: 1.5rem; flex-direction: column; text-align: center; }
  .modal-card { padding: 1.75rem 1.5rem; }

  .bg-grid {
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 80%);
            mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 80%);
  }
  .bg-glow { top: -180px; left: -160px; width: 420px; height: 420px; }
  .bg-glow2 { bottom: -160px; right: -140px; width: 360px; height: 360px; }
  .bg-glow3 { width: 480px; height: 480px; top: 30%; }
}
