/* HGX Media — Shared Design System */

/* ── GLOBAL RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── DESIGN TOKENS ── */
:root {
    --blue: #1B6CF2;
    --blue-hover: #1560d9;
    --blue-bg: rgba(27, 108, 242, 0.04);
    --white: #070b15;
    --off-white: #0d1526;
    --text-primary: #ffffff;
    --text-secondary: #94a0b8;
    --text-muted: #5a6478;
    --border: rgba(255, 255, 255, 0.08);
    --font: 'Inter', -apple-system, sans-serif;
    --playfair: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --max-w: 1200px;
    --r: 12px;
    --r-sm: 8px;
    --r-lg: 16px;
    --r-xl: 20px;

    /* Aliases for --hgx- prefixed variables (used by footer, creators, woocommerce) */
    --hgx-blue: var(--blue);
    --hgx-blue-hover: var(--blue-hover);
    --hgx-blue-bg: var(--blue-bg);
    --hgx-white: var(--white);
    --hgx-off-white: var(--off-white);
    --hgx-text-primary: var(--text-primary);
    --hgx-text-secondary: var(--text-secondary);
    --hgx-text-muted: var(--text-muted);
    --hgx-border: var(--border);
    --hgx-font: var(--font);
    --hgx-playfair: var(--playfair);
    --hgx-max-w: var(--max-w);
    --hgx-r: var(--r);
    --hgx-r-sm: var(--r-sm);
    --hgx-r-lg: var(--r-lg);
    --hgx-r-xl: var(--r-xl);
}

/* ── SMOOTH SCROLL ── */
html {
    scroll-behavior: smooth;
}

/* ── BODY BASE ── */
body {
    font-family: var(--font);
    background-color: var(--white);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-primary);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ── ACCESSIBILITY ── */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── SERVICE INQUIRY MODAL (global — loaded on every page) ── */
#hgx-service-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}
#hgx-service-modal.hgx-modal-open { display: flex; }

#hgx-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.hgx-modal-card {
    position: relative; z-index: 2;
    width: 90%; max-width: 480px; max-height: 90vh; overflow-y: auto;
    background: #ffffff; border-radius: 20px; padding: 40px 36px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.3);
}
.hgx-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1); background: rgba(0,0,0,0.03);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; color: #5a6478; line-height: 1;
    transition: background .15s;
}
.hgx-modal-close:hover { background: rgba(0,0,0,0.08); }
.hgx-modal-title { font-size: 22px; font-weight: 600; color: #0a0f1c; letter-spacing: -.02em; margin-bottom: 6px; }
.hgx-modal-sub { font-size: 13px; color: #6b7a99; margin-bottom: 28px; line-height: 1.5; }
.hgx-modal-field { margin-bottom: 18px; }
.hgx-modal-field label { display: block; font-size: 12px; font-weight: 600; color: #3b4256; margin-bottom: 6px; letter-spacing: .02em; }
.hgx-modal-field input,
.hgx-modal-field select {
    width: 100%; padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.12); border-radius: 10px;
    font-size: 14px; font-family: var(--font); color: #0a0f1c; background: #fafafa;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.hgx-modal-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.hgx-modal-field input:focus, .hgx-modal-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,108,242,0.1); }
.hgx-modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hgx-modal-submit {
    width: 100%; padding: 14px 24px;
    background: linear-gradient(135deg, #2979ff, #1B6CF2, #1254d4); color: #fff; border: none;
    border-radius: 100px; font-size: 14px; font-weight: 600; cursor: pointer;
    font-family: var(--font); transition: all .3s cubic-bezier(.23,1,.32,1);
    box-shadow: 0 4px 20px rgba(27,108,242,0.35); margin-top: 8px;
}
.hgx-modal-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(27,108,242,0.5); }
#hgx-modal-thankyou { display: none; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 20px 0; }
#hgx-modal-thankyou .hgx-modal-ty-icon { font-size: 48px; }
#hgx-modal-thankyou h3 { font-size: 20px; font-weight: 600; color: #0a0f1c; }
#hgx-modal-thankyou p { font-size: 14px; color: #6b7a99; line-height: 1.6; }
#hgx-modal-thankyou a { color: var(--blue); font-weight: 600; text-decoration: none; }
@media (max-width: 480px) { .hgx-modal-card { padding: 28px 20px; } .hgx-modal-row { grid-template-columns: 1fr; } }
