@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Nunito:wght@200;300;400;600;700;800;900&display=swap');

/* =========================================================
   HMG Design System — matches hmgprocessing.com exactly
   Source: phlox/custom.css + Elementor globals
   ─────────────────────────────────────────────────────────
   Body font   : Quicksand   (body{ font-family:'Quicksand' })
   Heading font: Nunito      (h1–h4 { font-family:'Nunito' })
   BG          : #ffffff (white, sections)
   Hero        : dark overlay + bg image
   Footer      : #1A1A1A (dark)
   Gold primary: rgb(208,165,86) = #d0a556
   Black button: #000000
   Green accent: #0cd68a  (--auxin-featured-color-3)
   ========================================================= */

:root {
  /* Backgrounds */
  --hmg-bg:        #ffffff;
  --hmg-surface:   #f9f9f9;
  --hmg-surface-2: #fafafa;

  /* Text */
  --hmg-ink:   rgb(0, 0, 0);
  --hmg-muted: rgba(0, 0, 0, 0.68);   /* matches nav label rgba(0,0,0,0.7) */
  --hmg-line:  #EAEAEA;                /* matches subfooter border */

  /* Gold — matches --e-global-color-primary: rgb(208,165,86) */
  --hmg-gold:      rgb(208, 165, 86);
  --hmg-gold-hex:  #d0a556;
  --hmg-gold-dark: #b8904a;
  --hmg-gold-soft: rgba(208, 165, 86, 0.15);

  /* Green — matches --auxin-featured-color-3: #0cd68a */
  --hmg-green:      #0cd68a;
  --hmg-green-dark: #309f5e;

  /* Black — secondary button */
  --hmg-black: #000000;

  /* Hero / footer dark */
  --hmg-dark:    #000205;
  --hmg-footer-bg: #1A1A1A;

  /* Layout */
  --hmg-max:    1180px;
  --hmg-radius: 14px;
  --hmg-shadow: 0 4px 28px rgba(0, 0, 0, 0.08);
}

/* ── Reset ───────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

.hmg-shell {
  min-height: 100vh;
  background: var(--hmg-bg);
  color: var(--hmg-ink);
  /* Body font: Quicksand — matches: body{ font-family:'Quicksand'; } */
  font-family: 'Quicksand', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.65;
}
.hmg-shell a { color: inherit; text-decoration: none; }

/* ── Layout ──────────────────────────────────────────────── */
.hmg-container {
  width: min(calc(100% - 32px), var(--hmg-max));
  margin: 0 auto;
}

/* ── Header / Nav ────────────────────────────────────────── */
.hmg-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;                 /* sticky-header-color: #FFFFFF !important */
  border-bottom: 1px solid var(--hmg-line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.hmg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.hmg-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--hmg-ink);
}
.hmg-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: block;
  object-fit: cover;
}
.hmg-nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.hmg-nav-links a {
  /* matches: color:rgba(0,0,0,0.7); font-family:'Quicksand'; font-weight:normal; */
  color: rgba(0, 0, 0, 0.70);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.3px;
  transition: color 0.2s, font-weight 0.1s;
}
.hmg-nav-links a:hover {
  /* matches: color:rgb(0,0,0); font-weight:800 */
  color: #000000;
  font-weight: 800;
}

/* ── Section spacing ─────────────────────────────────────── */
.hmg-section { padding: 60px 0; }

/* ── Hero — dark with photo overlay ─────────────────────── */
.hmg-hero {
  padding: 96px 0 72px;
  color: #fff;
  /* matches elementor-element-cba294d: bg #000205 + gradient overlay opacity 0.69
     --hero-photo can be set per-page via inline style="--hero-photo: url('...')" */
  background-color: #000205;
  background-image:
    linear-gradient(237deg, rgba(0,2,5,0.88) 0%, rgba(26,26,26,0.78) 43%),
    var(--hero-photo, linear-gradient(135deg, #000205 0%, #1a1a1a 100%));
  background-size: auto, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  position: relative;
}
.hmg-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }

/* ── Typography ──────────────────────────────────────────── */
.hmg-kicker,
.hmg-section-label {
  /* gold accent for kickers */
  color: var(--hmg-gold-hex);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 10px;
  display: block;
}

/* Headings: Nunito — matches: body h1,h2,h3,h4 { font-family:'Nunito'; } */
.hmg-shell h1, .hmg-shell h2, .hmg-shell h3 {
  font-family: 'Nunito', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.1;
  margin: 0 0 14px;
  color: var(--hmg-ink);
}
.hmg-shell h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -1.5px; font-weight: 800; }
.hmg-shell h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.75px; font-weight: 800; }
.hmg-shell h3 { font-size: 1.12rem; font-weight: 700; }

/* Hero headings are white */
.hmg-hero h1, .hmg-hero h2, .hmg-hero h3 { color: #ffffff; }

.hmg-lead {
  font-size: 1.05rem;
  color: var(--hmg-muted);
  max-width: 64ch;
  margin: 0;
}
.hmg-hero .hmg-lead { color: rgba(255,255,255,.68); }
.hmg-hero .hmg-kicker { color: var(--hmg-gold-hex); }
.hmg-copy-muted { color: var(--hmg-muted); margin: 0; }
.hmg-copy-muted + .hmg-copy-muted { margin-top: 10px; }
.hmg-hero-supporting { max-width: 62ch; margin-top: 14px; color: rgba(255,255,255,.58); }

/* ── Buttons ─────────────────────────────────────────────── */
.hmg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hmg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 4px;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: 'Quicksand', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.3px;
  transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
  cursor: pointer;
  text-decoration: none;
}

/* Primary button: gold — matches --e-global-color-primary: rgb(208,165,86) */
.hmg-button-primary {
  background: var(--hmg-gold);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(208, 165, 86, 0.30);
}
.hmg-button-primary:hover {
  background: var(--hmg-gold-dark);
  box-shadow: 0 6px 24px rgba(208, 165, 86, 0.40);
  transform: translateY(-1px);
}

/* Secondary button: black */
.hmg-button-secondary {
  background: var(--hmg-black);
  color: #ffffff !important;
}
.hmg-button-secondary:hover {
  background: #222222;
  transform: translateY(-1px);
}

/* Secondary on dark hero bg: outlined white */
.hmg-hero .hmg-button-secondary {
  background: transparent;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.40);
}
.hmg-hero .hmg-button-secondary:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.70);
}

/* ── Cards ───────────────────────────────────────────────── */
.hmg-card, .hmg-hero-card, .hmg-quote, .hmg-faq-item, .hmg-band {
  background: #ffffff;
  border: 1px solid var(--hmg-line);
  border-radius: var(--hmg-radius);
  box-shadow: var(--hmg-shadow);
}
.hmg-card, .hmg-quote, .hmg-faq-item, .hmg-band, .hmg-hero-card { padding: 24px; }
.hmg-card-compact { padding: 16px; border-radius: 10px; box-shadow: none; }

.hmg-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.hmg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}

/* ── Hero card (floated on dark hero) ───────────────────── */
.hmg-hero-card {
  background: rgba(255,255,255,0.97);
  border-color: rgba(208,165,86,0.30);
  color: var(--hmg-ink);
}
.hmg-hero-card .hmg-copy-muted { color: var(--hmg-muted); }

/* ── Mini blocks ─────────────────────────────────────────── */
.hmg-mini {
  padding: 14px 16px;
  border-radius: 8px;
  background: #f9f9f9;
  border-left: 3px solid var(--hmg-gold-hex);
}
.hmg-mini + .hmg-mini { margin-top: 12px; }
.hmg-mini strong { color: var(--hmg-ink); }

/* ── Grids ───────────────────────────────────────────────── */
.hmg-split-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: start; }
.hmg-card-list, .hmg-grid-2, .hmg-grid-3, .hmg-faq-grid, .hmg-process, .hmg-proof-list { display: grid; gap: 16px; }
.hmg-grid-2, .hmg-faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hmg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── Proof items ─────────────────────────────────────────── */
.hmg-proof-list { margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.hmg-proof-item {
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(208,165,86,0.30);
  color: rgba(255,255,255,0.90);
  font-weight: 600;
}

/* ── Stat rows ───────────────────────────────────────────── */
.hmg-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--hmg-line);
}
.hmg-stat:first-of-type { border-top: 0; padding-top: 0; }

/* ── Process steps ───────────────────────────────────────── */
.hmg-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--hmg-line);
  border-radius: var(--hmg-radius);
}
.hmg-step-num {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  background: var(--hmg-gold-soft);
  color: var(--hmg-gold-dark);
  border: 1px solid rgba(208,165,86,0.36);
  font-family: 'Nunito', sans-serif;
}

/* ── Chips ───────────────────────────────────────────────── */
.hmg-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hmg-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 4px;
  background: #f3f3f3;
  color: rgba(0,0,0,0.68);
  border: 1px solid #EAEAEA;
  font-weight: 600;
  font-size: 0.88rem;
}
.hmg-hero .hmg-chip {
  background: rgba(208,165,86,0.18);
  color: rgba(255,255,255,0.90);
  border-color: rgba(208,165,86,0.36);
}

/* ── Band / CTA block ────────────────────────────────────── */
.hmg-band {
  background: linear-gradient(135deg, rgba(208,165,86,0.08) 0%, rgba(208,165,86,0.04) 100%);
  border-color: rgba(208,165,86,0.20);
  padding: 40px;
}

/* ── Checklist ───────────────────────────────────────────── */
.hmg-checklist { margin: 0; padding-left: 1.2rem; color: var(--hmg-muted); }
.hmg-checklist li + li { margin-top: 10px; }
.hmg-checklist li::marker { color: var(--hmg-gold-hex); }

/* ── Card bullet dots ────────────────────────────────────── */
.hmg-card h3::before,
.hmg-mini strong::before,
.hmg-step h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--hmg-gold-hex);
  box-shadow: 0 0 0 3px rgba(208,165,86,0.18);
  vertical-align: 0.1em;
}

/* ── Footer — dark #1A1A1A (matches aux-site-footer bg) ─── */
.hmg-footer {
  padding: 48px 0 56px;
  background: var(--hmg-footer-bg);   /* #1A1A1A */
  color: rgba(255,255,255,0.60);
}
.hmg-footer strong { color: #ffffff; }
.hmg-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.hmg-footer p { max-width: 56ch; margin: 10px 0 0; }
.hmg-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
  max-width: 520px;
}
.hmg-footer-links a {
  color: rgba(255,255,255,0.60);
  font-weight: 600;
  border-bottom: 1px solid rgba(208,165,86,0.36);
  padding-bottom: 1px;
  transition: color 0.2s;
}
.hmg-footer-links a:hover { color: var(--hmg-gold-hex); }

/* ── Intake form ─────────────────────────────────────────── */
.hmg-intake-form { display: grid; gap: 18px; }
.hmg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hmg-intake-form label { display: grid; gap: 8px; font-weight: 600; color: var(--hmg-ink); }
.hmg-intake-form label span { font-size: 0.94rem; }
.hmg-intake-form input,
.hmg-intake-form select,
.hmg-intake-form textarea {
  width: 100%;
  border: 1px solid #EAEAEA;
  border-radius: 6px;
  padding: 13px 16px;
  background: #ffffff;
  color: var(--hmg-ink);
  font: inherit;
  transition: border-color 0.2s;
}
.hmg-intake-form input:focus,
.hmg-intake-form select:focus,
.hmg-intake-form textarea:focus {
  outline: 2px solid rgba(208,165,86,0.35);
  outline-offset: 2px;
  border-color: var(--hmg-gold-hex);
}
.hmg-intake-form .hmg-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--hmg-muted);
}
.hmg-intake-form .hmg-consent-row input { width: auto; margin-top: 4px; }

/* ── Utilities ───────────────────────────────────────────── */
.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;
}

/* ── Animations — Elementor fadeIn (opacity only) ────────── */
/* matches: /elementor/assets/lib/animations/styles/fadeIn.min.css
   @keyframes fadeIn{from{opacity:0}to{opacity:1}} */
@keyframes hmgFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hmg-hero .hmg-kicker    { animation: hmgFadeIn 600ms ease both; }
.hmg-hero h1             { animation: hmgFadeIn 700ms ease 0.15s both; }
.hmg-hero .hmg-lead      { animation: hmgFadeIn 700ms ease 0.30s both; }
.hmg-hero .hmg-actions   { animation: hmgFadeIn 700ms ease 0.45s both; }
.hmg-hero .hmg-chip-row  { animation: hmgFadeIn 700ms ease 0.58s both; }
.hmg-hero .hmg-hero-card { animation: hmgFadeIn 700ms ease 0.20s both; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hmg-hero-grid, .hmg-split-grid,
  .hmg-grid-2, .hmg-grid-3, .hmg-faq-grid { grid-template-columns: 1fr; }
  .hmg-nav { flex-direction: column; align-items: flex-start; }
  .hmg-nav-links { gap: 12px; justify-content: flex-start; }
  .hmg-footer-links { justify-content: flex-start; }
  .hmg-hero { padding-top: 44px; }
  .hmg-form-grid { grid-template-columns: 1fr; }
  .hmg-band { padding: 24px; }
}
