/* ==========================================================================
   EMA Media Group — site styles for the Bricks child theme
   Every class here is also registered as a Bricks global class, so it shows
   in the Bricks class picker and can be applied to new elements.
   Colours: cream page, ink anchor sections, gold accent (contrast-checked).
   ========================================================================== */

:root {
  --ema-bg: #F3ECDF;          /* page */
  --ema-bg-alt: #EAE0CE;      /* alternating section */
  --ema-line: #DCD0BA;
  --ema-text: #14110C;
  --ema-text-2: #3A332A;
  --ema-text-3: #6B6153;
  --ema-accent: #7A5620;      /* gold that passes AA on cream */
  --ema-btn-bg: #14110C;
  --ema-btn-fg: #F3ECDF;
  --ema-display: "Zilla Slab", Georgia, "Times New Roman", serif;
  --ema-body: "Work Sans", system-ui, -apple-system, sans-serif;
  --ema-mono: ui-monospace, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --ema-max: 1440px;
  --ema-gutter: clamp(16px, 3.4vw, 48px);
  --ema-header-h: 116px;
}

/* Ink sections re-declare the same tokens, so everything inside flips. */
.ema-ink, .ema-ink-tokens {
  --ema-bg: #0B0B0B;
  --ema-bg-alt: #161616;
  --ema-line: #2E2A24;
  --ema-text: #FFFFFF;
  --ema-text-2: #D8D2C6;
  --ema-text-3: #9A9184;
  --ema-accent: #D4A857;
  --ema-btn-bg: #D4A857;
  --ema-btn-fg: #0B0B0B;
}
.ema-ink { background: var(--ema-bg); color: var(--ema-text); }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ema-header-h) + 12px); }
body {
  background: var(--ema-bg);
  color: var(--ema-text);
  font-family: var(--ema-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body a { color: inherit; }
body p { margin: 0; }

/* ---------- Layout ---------- */
.ema-section {
  width: 100%;
  padding: clamp(56px, 7vw, 96px) var(--ema-gutter);
  background: var(--ema-bg);
  color: var(--ema-text);
  align-items: stretch;
}
.ema-section.ema-alt { background: var(--ema-bg-alt); }
.ema-section.ema-tight { padding-top: 40px; padding-bottom: 40px; }
.ema-wrap {
  width: 100%;
  max-width: var(--ema-max);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ema-narrow { max-width: 860px; }
.ema-stack { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.ema-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ema-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  width: 100%;
}
.ema-grid { display: grid; gap: 0; width: 100%; }
.ema-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ema-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ema-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ema-gap { gap: 16px; }
.ema-mt { margin-top: 24px; }
.ema-mt-lg { margin-top: 56px; }

/* ---------- Type ---------- */
.ema-eyebrow {
  font-family: var(--ema-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ema-text-3);
}
.ema-eyebrow.ema-gold { color: var(--ema-accent); }
.ema-display {
  overflow-wrap: break-word;
  font-family: var(--ema-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--ema-text);
  margin: 0;
}
.ema-h1 { font-size: clamp(56px, 11vw, 150px); }
.ema-h1-page { font-size: clamp(48px, 8vw, 112px); }
.ema-h1-split { font-size: clamp(44px, 5.4vw, 88px); overflow-wrap: anywhere; }
.ema-h2 { font-size: clamp(36px, 5vw, 64px); }
.ema-h3 {
  font-family: var(--ema-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ema-text);
  margin: 0;
}
.ema-h3.ema-gold, .ema-gold { color: var(--ema-accent); }
.ema-h4 {
  font-family: var(--ema-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: var(--ema-text);
}
.ema-accent { color: var(--ema-accent); }
.ema-lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ema-text-2); max-width: 760px; }
.ema-body { color: var(--ema-text-2); }
.ema-small { font-size: 14px; color: var(--ema-text-3); }
.ema-mono { font-family: var(--ema-mono); font-size: 12px; color: var(--ema-text-3); letter-spacing: .02em; }
.ema-tagline {
  font-family: var(--ema-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.15;
  color: var(--ema-text);
}
.ema-chips {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ema-text);
}
.ema-chips b { color: var(--ema-accent); font-weight: 700; }

/* ---------- Buttons ---------- */
.ema-btn, .ema-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 9999px;
  font-family: var(--ema-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: 2px solid var(--ema-btn-bg);
  background: var(--ema-btn-bg);
  color: var(--ema-btn-fg);
  transition: transform .15s ease, opacity .15s ease;
  margin: 0;
}
.ema-btn:hover, .ema-btn-outline:hover { transform: translateY(-1px); opacity: .92; }
.ema-btn-outline { background: transparent; color: var(--ema-text); border-color: var(--ema-accent); }
.ema-btn-lg { min-height: 52px; padding: 16px 28px; font-size: 13px; }
.ema-btn-block { width: 100%; }
.ema-link { color: var(--ema-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.ema-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid var(--ema-line);
  background: var(--ema-bg);
  margin: -1px 0 0 -1px;   /* collapse borders inside grids */
  position: relative;
  height: 100%;
}
.ema-section.ema-alt .ema-card { background: var(--ema-bg); }
.ema-card .ema-btn { margin-top: auto; }
.ema-card-featured { box-shadow: inset 0 3px 0 var(--ema-accent); }
.ema-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--ema-accent);
  color: #FFF;
}
.ema-ink .ema-badge { color: #0B0B0B; }
.ema-price {
  font-family: var(--ema-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--ema-text);
}
.ema-price small { font-family: var(--ema-body); font-size: 15px; font-weight: 500; color: var(--ema-text-3); }
.ema-num {
  font-family: var(--ema-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ema-accent);
  letter-spacing: .04em;
}

/* Check lists (rich text <ul> inside .ema-checks) */
.ema-checks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ema-checks li { position: relative; padding-left: 26px; color: var(--ema-text-2); font-size: 15px; line-height: 1.45; }
.ema-checks li::before {
  content: "";
  position: absolute; left: 2px; top: .38em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--ema-accent);
  border-bottom: 2px solid var(--ema-accent);
  transform: rotate(-45deg);
}
.ema-bullets ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ema-text-2); }
.ema-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.ema-steps li { counter-increment: s; position: relative; padding-left: 48px; color: var(--ema-text-2); }
.ema-steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--ema-display); font-weight: 700; color: var(--ema-accent);
}

/* Quick-start tiles */
.ema-tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 24px;
  border: 1px solid var(--ema-line);
  background: var(--ema-bg);
  text-decoration: none;
  margin: -1px 0 0 -1px;
  transition: background .15s ease;
}
.ema-tile:hover { background: var(--ema-bg-alt); }
.ema-tile-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ema-text-3); }
.ema-tile-title { font-family: var(--ema-display); font-weight: 700; font-size: 20px; color: var(--ema-accent); }

/* Add-on rows */
.ema-addon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 24px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--ema-line);
  width: 100%;
}
.ema-addon:last-child { border-bottom: 1px solid var(--ema-line); }
.ema-addon-name { font-family: var(--ema-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); text-transform: uppercase; color: var(--ema-accent); line-height: 1.1; }
.ema-addon-price { font-family: var(--ema-body); font-weight: 500; font-size: 16px; color: var(--ema-text-2); }

/* Numbered blocks (what you can buy, process, why) */
.ema-numbered {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px;
  border: 1px solid var(--ema-line);
  margin: -1px 0 0 -1px;
  text-decoration: none;
  height: 100%;
}
a.ema-numbered:hover { background: var(--ema-bg-alt); }
.ema-numbered .ema-more { margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ema-accent); }

/* Stats strip */
.ema-stat { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border: 1px solid var(--ema-line); margin: -1px 0 0 -1px; }
.ema-stat-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ema-text-3); }
.ema-stat-value { font-family: var(--ema-display); font-weight: 700; font-size: 26px; color: var(--ema-accent); text-decoration: none; }

/* Comparison table */
.ema-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ema-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.ema-table th, .ema-table td { padding: 12px 14px; border-bottom: 1px solid var(--ema-line); text-align: center; }
.ema-table th:first-child, .ema-table td:first-child { text-align: left; }
.ema-table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ema-text-3); }
.ema-yes { color: var(--ema-accent); font-weight: 700; }
.ema-no { color: var(--ema-text-3); }

/* Definition rows (legal / SMS terms) */
.ema-dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; width: 100%; }
.ema-dl > div { padding: 14px 0; border-top: 1px solid var(--ema-line); }
.ema-dl dt, .ema-dl .k { font-weight: 700; color: var(--ema-text); }

/* Long-form text (legal pages, add-on detail copy) */
.ema-prose { color: var(--ema-text-2); max-width: 820px; }
.ema-prose h2 { font-family: var(--ema-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); color: var(--ema-text); margin: 40px 0 12px; line-height: 1.15; }
.ema-prose h3 { font-family: var(--ema-display); font-weight: 700; font-size: 20px; color: var(--ema-text); margin: 28px 0 8px; }
.ema-prose p { margin: 0 0 14px; }
.ema-prose ul, .ema-prose ol { margin: 0 0 14px; padding-left: 22px; }
.ema-prose li { margin-bottom: 6px; }
.ema-prose a { color: var(--ema-accent); }

/* FAQ */
.ema-faq details { border-top: 1px solid var(--ema-line); padding: 18px 0; }
.ema-faq details:last-child { border-bottom: 1px solid var(--ema-line); }
.ema-faq summary { cursor: pointer; font-family: var(--ema-display); font-weight: 700; font-size: 20px; color: var(--ema-text); list-style: none; }
.ema-faq summary::-webkit-details-marker { display: none; }
.ema-faq summary::after { content: "+"; float: right; color: var(--ema-accent); }
.ema-faq details[open] summary::after { content: "–"; }
.ema-faq p { margin-top: 10px; color: var(--ema-text-2); }

/* Team */
.ema-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ema-display); font-weight: 700; font-size: 24px;
  background: var(--ema-bg-alt); color: var(--ema-accent); border: 1px solid var(--ema-line);
}

/* Images */
.ema-photo, .ema-photo img { width: 100%; height: auto; display: block; object-fit: cover; }
.ema-portrait, .ema-portrait img { aspect-ratio: 4 / 5; object-fit: cover; }

/* Embedded GoHighLevel forms */
.ema-embed { width: 100%; border: 1px solid var(--ema-line); background: #FFF; }
.ema-embed iframe { display: block; width: 100%; border: 0; min-height: 720px; }

/* Breadcrumb */
.ema-crumbs { font-size: 13px; color: var(--ema-text-3); }
.ema-crumbs a { color: var(--ema-text-3); text-decoration: none; }
.ema-crumbs a:hover { color: var(--ema-accent); }

/* ---------- Hero ---------- */
.ema-hero {
  position: relative;
  overflow: hidden;
  min-height: min(92vh, 860px);
  justify-content: center;
  padding-top: calc(var(--ema-header-h) + 40px);
}
.ema-hero-media { position: absolute; inset: 0; z-index: 0; }
.ema-hero-media video, .ema-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% center; display: block;
  filter: saturate(.15) contrast(1.1) brightness(.4);
}
.ema-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,11,11,.92) 0%, rgba(11,11,11,.6) 55%, rgba(11,11,11,.35) 100%);
}
.ema-hero > .ema-wrap { position: relative; z-index: 1; }
.ema-rule { width: 64px; height: 3px; background: var(--ema-accent); }
.ema-page-hero { padding-top: calc(var(--ema-header-h) + 56px); }

/* ---------- Header ---------- */
#brx-header { position: fixed; top: 0; left: 0; right: 0; z-index: 999; }
body.admin-bar #brx-header { top: 32px; }
.ema-header { background: #0B0B0B; color: #FFF; width: 100%; }
.ema-langbar {
  width: 100%; overflow: hidden; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #FFF; background: #0B0B0B; padding: 6px 0;
  border-bottom: 1px solid #2E2A24;
}
.ema-langbar-track { display: inline-flex; gap: 0; animation: ema-marquee 45s linear infinite; }
.ema-langbar-track span { padding: 0 10px; }
.ema-langbar-track .g { color: #D4A857; }
@keyframes ema-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ema-langbar-track { animation: none; } }
.ema-header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: var(--ema-max); margin: 0 auto; width: 100%;
  padding: 12px var(--ema-gutter);
  min-height: 84px;
}
.ema-logo { display: block; flex-shrink: 0; }
.ema-logo img { height: 56px; width: auto; display: block; }
.ema-header-cta { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.ema-header .bricks-nav-menu { gap: 20px; flex-wrap: nowrap; }
.ema-header .bricks-nav-menu > li > a { white-space: nowrap; }
.ema-header .bricks-nav-menu > li > a,
.ema-header .bricks-nav-menu > li > .brx-submenu-toggle > a {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #FFF; text-decoration: none; padding: 8px 0;
}
.ema-header .bricks-nav-menu > li > a:hover,
.ema-header .bricks-nav-menu > li.current-menu-item > a { color: #D4A857; }
.ema-header .bricks-mobile-menu-toggle { color: #FFF; }
.ema-header .bricks-mobile-menu-wrapper { background: #0B0B0B; }
.ema-header .bricks-mobile-menu > li > a { color: #FFF; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Footer ---------- */
.ema-footer { padding-top: 72px; padding-bottom: 32px; }
.ema-footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; width: 100%; }
.ema-footer a { color: var(--ema-text-2); text-decoration: none; }
.ema-footer a:hover { color: var(--ema-accent); }
.ema-footer-cta { align-items: flex-start; }
.ema-footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ema-footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ema-footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; }
.ema-footer-legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ema-footer-bottom { border-top: 1px solid var(--ema-line); padding-top: 24px; margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; width: 100%; }
.ema-social { display: flex; gap: 14px; }
.ema-social a { display: inline-flex; width: 36px; height: 36px; border: 1px solid var(--ema-line); border-radius: 50%; align-items: center; justify-content: center; }
.ema-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
  .ema-header-cta .ema-btn-outline { display: none; }
}
@media (max-width: 1200px) {
  .ema-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ema-header .bricks-nav-menu { gap: 14px; }
  .ema-header .bricks-nav-menu > li > a { font-size: 11px; }
  .ema-logo img { height: 48px; }
}
@media (max-width: 991px) {
  :root { --ema-header-h: 104px; }
  .ema-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ema-split { grid-template-columns: minmax(0, 1fr); }
  .ema-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ema-header-cta { display: none; }
}
@media (max-width: 767px) {
  .ema-grid-2, .ema-grid-3, .ema-grid-4 { grid-template-columns: minmax(0, 1fr); }
  .ema-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .ema-addon { grid-template-columns: minmax(0, 1fr); }
  .ema-dl { grid-template-columns: minmax(0, 1fr); }
  .ema-dl > div.k { padding-bottom: 0; }
  .ema-dl > div.v { border-top: 0; padding-top: 4px; }
  .ema-logo img { height: 46px; }
  .ema-header-bar { min-height: 72px; }
  .ema-hero { min-height: auto; }
  body.admin-bar #brx-header { top: 46px; }
}
