/* CBG Marketing, cbgmarketing.co */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #F0B357;
  --midnight: #0B1220;
  --ivory: #F7F3EA;
  --muted: #B9BFCB;
  --soft: #D9D4CA;
  --line: rgba(247, 243, 234, .2);
  --health: #14372C;
  --creators: #000000;
  --local: #4E1D2D;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--midnight);
  color: var(--ivory);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }

a { color: var(--ivory); text-decoration: none; }
a:hover { color: #FFFFFF; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: var(--accent); color: var(--midnight); font-weight: 600;
}
.skip:focus { top: 16px; color: var(--midnight); }

.wrap { max-width: 1304px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

[id] { scroll-margin-top: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 26px; border-radius: 999px; font-size: 16px; line-height: 1.2; font-weight: 500;
}
.btn-solid { background: var(--accent); color: var(--midnight); font-weight: 600; transition: background .2s ease; }
.btn-solid:hover { color: var(--midnight); background: #F6C679; }
.btn-line { border: 1px solid rgba(247, 243, 234, .28); transition: border-color .2s ease, background .2s ease; }
.btn-line:hover { border-color: var(--ivory); background: rgba(247, 243, 234, .06); }

/* ---------- header ---------- */
.site-header .wrap {
  padding-top: 28px; padding-bottom: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: block; line-height: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; font-size: 15px; }
.navlink { color: var(--muted); transition: color .2s ease; }
.navlink:hover { color: var(--ivory); }
.nav .btn { padding: 12px 20px; font-size: 15px; }
.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(247, 243, 234, .28); background: transparent; color: var(--ivory);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }

/* ---------- eyebrow label ---------- */
.eyebrow {
  display: flex; align-items: center;
  font-size: 13px; line-height: 1.2; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* ---------- hero ---------- */
.hero .wrap {
  padding-top: 72px; padding-bottom: 104px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
}
.hero-copy { flex: 1 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.03; letter-spacing: -.04em; }
.gold { color: var(--accent); }
.hero-lede { max-width: 720px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-art { flex: 0 1 340px; min-width: 0; margin: 0 auto; }
.hero-art .art { position: relative; width: 100%; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art .mark { position: absolute; left: 50%; top: 52.4%; width: 14.5%; height: auto; transform: translate(-50%, -50%); }

/* ---------- services strip ---------- */
.services { border-top: 1px solid rgba(247, 243, 234, .12); border-bottom: 1px solid rgba(247, 243, 234, .12); }
.services ul {
  list-style: none; margin: 0 auto; padding: 24px 32px; max-width: 1304px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -.01em; color: var(--soft);
}
.services li { display: flex; align-items: center; gap: 12px; }
.services li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }

/* ---------- about ---------- */
.about .wrap { padding-top: 128px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.about h2 { font-weight: 800; font-size: clamp(34px, 4vw, 58px); line-height: 1.06; letter-spacing: -.04em; }
.about-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: 24px 64px; padding-top: 16px; }
.about-cols p { font-size: 18px; line-height: 1.65; color: var(--muted); }
.about-cols p:first-child { color: var(--soft); }

/* ---------- approach ---------- */
.approach .wrap { padding-top: 120px; padding-bottom: 128px; display: flex; flex-direction: column; gap: 48px; }
.steps { --n: clamp(120px, 11.8vw, 170px); list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: calc(var(--n) * .62) minmax(0, 1fr) auto; column-gap: 28px;
  padding: 36px 0; border-top: 1px solid var(--line);
}
.step-num { font-size: var(--n); font-weight: 800; line-height: .728; letter-spacing: -.04em; text-align: right; color: var(--accent); }
.step-body { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; max-width: 720px; }
.step h3 { margin-top: -.186em; font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.step p { margin-bottom: -.461em; font-size: 18px; line-height: 1.65; color: var(--muted); }
.dots { display: flex; gap: 8px; margin-top: 6px; align-self: start; }
.dots i { width: 12px; height: 12px; border-radius: 999px; border: 1.5px solid rgba(247, 243, 234, .3); }
.dots i.on { background: var(--accent); border-color: var(--accent); }

/* ---------- light sections (about, divisions) ---------- */
.about, .divisions { background: var(--ivory); color: var(--midnight); }
.about .eyebrow, .divisions .eyebrow { color: #4A5163; }
.about-cols p { color: #4A5163; }
.about-cols p:first-child { color: #2A3142; }
.divisions .gold { color: #B87A12; }
.divisions-head p { color: #4A5163; }
.about a:focus-visible, .divisions a:focus-visible { outline-color: var(--midnight); }

/* ---------- divisions ---------- */
.divisions .wrap { padding-top: 120px; padding-bottom: 128px; display: flex; flex-direction: column; gap: 56px; }
.divisions-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.divisions-head > div { display: flex; flex-direction: column; gap: 22px; }
.divisions h2 { font-weight: 800; font-size: clamp(40px, 5vw, 70px); line-height: 1; letter-spacing: -.04em; }
.divisions-head p { max-width: 560px; font-size: 18px; line-height: 1.6; }
.panels { display: flex; flex-direction: column; gap: 18px; }
.panel {
  position: relative; display: flex; flex-wrap: wrap; gap: 32px 64px; padding: 48px; border-radius: 20px;
  border: 1px solid rgba(247, 243, 234, .09); transition: border-color .3s ease; color: var(--ivory);
}
.panel:hover { border-color: rgba(240, 179, 87, .55); }
.panel:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.panel-health { background: var(--health); }
.panel-creators { background: var(--creators); border-color: rgba(247, 243, 234, .13); }
.panel-local { background: var(--local); border-color: rgba(247, 243, 234, .1); padding-top: 36px; padding-bottom: 36px; }
.panel-local h3 { font-size: clamp(22px, 2.1vw, 28px); }
.panel-brand { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.panel-brand img { height: 52px; width: auto; }
.pill {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent);
  font-size: 12px; line-height: 1.2; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.panel-copy { flex: 1.8 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel h3 { max-width: 560px; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.panel p { max-width: 580px; font-size: 17px; line-height: 1.65; color: var(--soft); }
.panel-health p { color: #DCE3DC; }
.panel-local p { color: #E8DCDC; }
.panel-link {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding-top: 6px;
  font-size: 16px; font-weight: 600; color: var(--accent);
}
.panel-link:hover { color: var(--accent); }
.panel-link::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.panel-link:focus-visible { outline: none; }
.panel-link svg { transition: transform .2s ease; }
.panel:hover .panel-link svg { transform: translateX(4px); }

/* ---------- contact ---------- */
.contact .wrap { padding-top: 120px; padding-bottom: 120px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; }
.contact-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact h2 { font-weight: 800; font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -.045em; }
.contact-copy p { max-width: 580px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.email-link {
  align-self: flex-start; padding-bottom: 4px; border-bottom: 2px solid var(--ivory);
  color: var(--ivory); font-size: clamp(20px, 2.2vw, 28px); font-weight: 600;
}
.email-link:hover { color: var(--ivory); border-color: var(--accent); }
.contact .btn-solid { padding: 20px 34px; font-size: 17px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid rgba(247, 243, 234, .12); }
.site-footer .wrap {
  padding-top: 40px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 14px; color: #8C93A1;
}
.site-footer img { height: 26px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- motion ---------- */
/* One entrance only. The three circles slide together once, which shows the three divisions sitting under one umbrella. */
.c-health { animation: in-health 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.c-creators { animation: in-creators 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.c-local { animation: in-local 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.art .mark, .art .core { animation: fade-in .6s .8s ease both; }
@keyframes in-health { from { transform: translate(0, -52px); opacity: 0; } }
@keyframes in-creators { from { transform: translate(-46px, 30px); opacity: 0; } }
@keyframes in-local { from { transform: translate(46px, 30px); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- phones ---------- */
@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }

  .site-header { position: relative; z-index: 20; }
  .site-header .wrap { padding-top: 18px; padding-bottom: 18px; flex-wrap: nowrap; }
  .brand img { height: 28px; }
  .js .menu-btn { display: flex; }
  .js .nav {
    display: none; position: absolute; left: 12px; right: 12px; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    border-radius: 18px; border: 1px solid rgba(247, 243, 234, .14); background: #111A2C;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45); font-size: 18px;
  }
  .js .nav.open { display: flex; }
  .js .nav .navlink { padding: 14px 0; border-bottom: 1px solid rgba(247, 243, 234, .1); color: var(--ivory); }
  .js .nav .btn { margin-top: 16px; padding: 16px 20px; font-size: 16px; background: var(--accent); color: var(--midnight); border: 0; font-weight: 600; }

  .hero .wrap { padding-top: 36px; padding-bottom: 44px; gap: 24px; }
  .hero-copy { flex-basis: 100%; gap: 24px; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 44px); line-height: 1.04; }
  .hero-lede { font-size: 17px; line-height: 1.6; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { padding: 17px 22px; }
  .hero-art { flex: 0 0 300px; width: 300px; max-width: 100%; margin-top: 16px; }

  .services ul { padding: 20px 20px; gap: 10px 24px; font-size: 17px; justify-content: flex-start; }

  .eyebrow { font-size: 12px; }

  .about .wrap { padding-top: 72px; padding-bottom: 56px; gap: 24px; }
  .about h2 { font-size: 34px; line-height: 1.07; text-wrap: balance; }
  .about-cols { padding-top: 0; gap: 24px; }
  .about-cols p { font-size: 17px; }

  .approach .wrap { padding-top: 72px; padding-bottom: 80px; gap: 32px; }
  .step {
    grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 14px; row-gap: 18px;
    padding: 28px 0 32px; align-items: baseline;
  }
  .step-body { display: contents; }
  .step-num { grid-column: 1; grid-row: 1; font-size: 100px; text-align: left; align-self: baseline; }
  .step h3 { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 27px; line-height: 1.2; align-self: baseline; }
  .step p { grid-column: 1 / -1; grid-row: 2; margin-bottom: 0; font-size: 16px; }
  .dots { grid-column: 3; grid-row: 1; gap: 7px; margin: 0 0 6px; align-self: baseline; }
  .dots i { width: 10px; height: 10px; }

  .divisions .wrap { padding-top: 72px; padding-bottom: 80px; gap: 28px; }
  .divisions-head { gap: 28px; }
  .divisions h2 { font-size: 42px; line-height: 1.02; }
  .divisions-head p { font-size: 17px; }
  .panels { gap: 14px; padding-top: 8px; }
  .panel { flex-direction: column; flex-wrap: nowrap; gap: 18px; padding: 28px 24px; border-radius: 18px; }
  .panel-local { padding-top: 24px; padding-bottom: 24px; }
  .panel-local h3 { font-size: 24px; }
  .panel-brand { flex: none; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
  .panel-brand img { height: 38px; }
  .pill { padding: 6px 11px; font-size: 11px; }
  .panel-copy { flex: none; gap: 18px; }
  .panel h3 { font-size: 27px; }
  .panel p { font-size: 16px; }
  .panel-link { min-height: 44px; padding-top: 0; }
  .panel-link::after { border-radius: 18px; }

  .contact .wrap { padding-top: 72px; padding-bottom: 72px; flex-direction: column; align-items: stretch; gap: 22px; }
  .contact-copy { display: contents; }
  .contact h2 { font-size: 42px; line-height: 1.02; text-wrap: balance; }
  .contact-copy p { font-size: 17px; }
  .contact .btn-solid { order: 1; margin-top: 6px; padding: 18px 22px; }
  .email-link { order: 2; align-self: center; font-size: 18px; }

  .site-footer .wrap { padding-top: 36px; padding-bottom: 44px; flex-direction: column; align-items: flex-start; }
  .site-footer img { height: 24px; }
  .site-footer nav { order: 1; }
  .site-footer nav a { padding: 8px 0; color: var(--muted); }
  .site-footer .copy { order: 2; }
}

/* ---------- legal and 404 pages ---------- */
.page-top .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.legal .wrap { padding-top: 56px; padding-bottom: 120px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-weight: 800; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.04em; margin: 20px 0 16px; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 8px; }
.legal h2 { font-weight: 800; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.1; margin: 72px 0 8px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 17px; line-height: 1.7; color: #C9CED8; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--accent); }
.legal a:not(.btn) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ivory); font-weight: 600; }
.notfound .wrap { min-height: 70vh; padding-top: 80px; padding-bottom: 120px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; }
.notfound h1 { font-weight: 800; font-size: clamp(48px, 8vw, 112px); line-height: .98; letter-spacing: -.045em; }
.notfound p { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 520px; }
@media (max-width: 720px) {
  .page-top .wrap { padding-top: 18px; padding-bottom: 18px; }
  .legal .wrap { padding-top: 32px; padding-bottom: 80px; }
  .legal h2 { margin-top: 56px; }
  .legal p, .legal li { font-size: 16px; }
}
