/* Chicago Google Ads Agency — site styles
   Palette taken from the Chicago flag: sky blue stripes, red stars, white field. */
:root {
  --sky: #41B6E6;
  --sky-pale: #E7F5FB;
  --sky-deep: #0B6E99;
  --red: #C8102E;
  --red-dark: #A00D25;
  --ink: #13233A;
  --muted: #4A5A70;
  --line: #D3E3EB;
  --paper: #FFFFFF;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-sm: 6px;
  --radius-lg: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }

h1, h2, h3 {
  font-variation-settings: "wdth" 118;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.2; font-variation-settings: "wdth" 110; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 54ch; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-variation-settings: "wdth" 112; font-size: 1.05rem; line-height: 1.1; }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.nav-list > li > a, .nav-top { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"] { color: var(--red); }

/* Dropdowns */
.has-menu { position: relative; display: flex; align-items: center; gap: 2px; padding: 22px 0; }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--ink); cursor: pointer; }
.sub-toggle svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-menu:hover .sub-toggle, .sub-toggle:hover { color: var(--red); }
.submenu {
  display: none; position: absolute; top: 100%; left: -14px; z-index: 30;
  min-width: 250px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--sky);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 16px 32px -18px rgba(19, 35, 58, 0.45);
}
.has-menu:hover > .submenu, .sub-toggle[aria-expanded="true"] + .submenu { display: block; }
.submenu a { display: block; padding: 9px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.submenu a:hover, .submenu a:focus-visible { background: var(--sky-pale); color: var(--red); }
.submenu li:first-child a { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sub-toggle svg { transition: none; } }

.menu-toggle { display: none; font: inherit; font-weight: 700; font-size: 0.95rem; color: var(--ink); background: none; border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 0.45em 0.9em; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.8em 1.3em; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-small { padding: 0.55em 1em; font-size: 0.95rem; }

@media (max-width: 860px) {
  .site-header .wrap { gap: 10px 12px; padding-top: 12px; padding-bottom: 12px; }
  .header-call { order: 1; margin-left: auto; }
  .menu-toggle { display: inline-flex; order: 2; }
  .nav { display: none; order: 3; width: 100%; margin-left: 0; border-top: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-list > li > a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .has-menu { display: block; padding: 0; }
  .has-menu > .nav-top { display: block; padding: 14px 0 6px; font-size: 1.05rem; }
  .sub-toggle { display: none; }
  .submenu, .has-menu:hover > .submenu { display: block; position: static; min-width: 0; padding: 0 0 10px 14px; border: 0; border-left: 3px solid var(--sky); box-shadow: none; border-radius: 0; margin-bottom: 12px; }
  .submenu li:first-child { display: none; }
  .submenu a { padding: 7px 10px; }
}
@media (max-width: 520px) {
  .call-num { display: none; }
}
@media (max-width: 400px) {
  .site-header .wrap { gap: 10px 8px; }
  .brand { font-size: 0.9rem; gap: 8px; }
  .brand svg { width: 24px; height: 24px; }
  .header-call, .menu-toggle { padding: 0.45em 0.7em; font-size: 0.9rem; }
}

/* Flag stripes: the page's signature device */
.stripes { display: grid; gap: 10px; }
.stripes span { display: block; height: 14px; background: var(--sky); }
.stripes.thin span { height: 8px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

.serp {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; padding: 22px; box-shadow: 0 18px 40px -24px rgba(19, 35, 58, 0.45);
}
.serp-bar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: var(--ink); font-size: 0.98rem; }
.serp-bar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.serp-ad { margin-top: 20px; padding: 16px; border-radius: 10px; background: var(--sky-pale); outline: 2px solid var(--sky); }
.serp-meta { font-size: 0.85rem; color: var(--muted); }
.serp-meta b { color: var(--ink); font-weight: 700; }
.serp-title { color: #1A0DAB; font-size: 1.2rem; line-height: 1.3; margin: 4px 0; font-weight: 500; }
.serp-desc { font-size: 0.92rem; color: var(--muted); margin: 0; }
.serp-call { display: inline-flex; margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: #1A0DAB; border: 1px solid var(--line); background: #fff; padding: 5px 12px; border-radius: 999px; }
.serp-organic { margin-top: 18px; display: grid; gap: 10px; }
.serp-organic i { display: block; height: 10px; border-radius: 5px; background: #EEF2F5; }
.serp-organic i:nth-child(1) { width: 45%; } .serp-organic i:nth-child(2) { width: 85%; } .serp-organic i:nth-child(3) { width: 70%; }
.serp-caption { margin-top: 14px; font-size: 0.92rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-pale { background: var(--sky-pale); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink .lede, .section-ink p { color: #C9D6E3; }
.section-ink a { color: #fff; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* Services list: rows, not cards */
.service-rows { border-top: 2px solid var(--ink); }
.service-row {
  display: grid; grid-template-columns: minmax(180px, 1fr) 2fr auto; gap: 8px 32px;
  padding: 24px 0; border-bottom: 1px solid var(--line); align-items: baseline;
  color: inherit; text-decoration: none;
}
.service-row h3 { margin: 0; }
.service-row p { margin: 0; color: var(--muted); }
.service-row .more { font-weight: 700; color: var(--red); white-space: nowrap; }
.service-row:hover h3 { color: var(--red); }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; } }

/* Star lists */
.star-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.star-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.star-list li::before {
  content: ""; width: 18px; height: 18px; margin-top: 4px; background: var(--red);
  clip-path: polygon(50% 0%, 61.5% 30.1%, 93.3% 25%, 73% 50%, 93.3% 75%, 61.5% 69.9%, 50% 100%, 38.5% 69.9%, 6.7% 75%, 27% 50%, 6.7% 25%, 38.5% 30.1%);
}
.star-list strong { display: block; }
.star-list span { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--sky); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-variation-settings: "wdth" 125; font-size: 2.4rem; line-height: 1; color: var(--red); margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Report mock */
.report { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.report-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 4px; }
.report-top strong { font-variation-settings: "wdth" 115; font-weight: 800; }
.report-top span { color: var(--muted); font-size: 0.92rem; }
.report-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-row:last-child { border-bottom: 0; }
.report-row b { font-weight: 700; }
.report-row span { color: var(--muted); }
@media (max-width: 560px) { .report-row { grid-template-columns: 1fr; gap: 2px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 64ch; }

/* CTA band */
.cta-band { padding: clamp(48px, 7vw, 88px) 0; text-align: left; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 20ch; }
.cta-band .hero-actions { margin-top: 0; }

/* Page hero for inner pages */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px); }
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.98rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #A9BFCC; border-radius: var(--radius-sm); padding: 0.7em 0.85em;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sky); outline-offset: 0; border-color: var(--sky-deep); }
.hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #E6F4EA; color: #1E5631; }
.form-status.err { background: #FDECEE; color: var(--red-dark); }
.aside-box { background: var(--sky-pale); border-radius: var(--radius-lg); padding: 28px; }
.aside-box h2 { font-size: 1.5rem; }
.phone-big { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; font-variation-settings: "wdth" 118; color: var(--ink); text-decoration: none; display: inline-block; margin: 4px 0 8px; }
.phone-big:hover { color: var(--red); }

/* Footer */
.site-footer { background: var(--ink); color: #C9D6E3; padding: 56px 0 96px; font-size: 0.98rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 800; font-variation-settings: "wdth" 112; margin-bottom: 12px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-bottom { border-top: 1px solid #2A3D57; margin-top: 40px; padding-top: 20px; font-size: 0.9rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Industry links on the homepage */
.ind-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.ind-links li { border-bottom: 1px solid var(--line); }
.ind-links a { display: flex; align-items: center; gap: 12px; padding: 18px 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.ind-links a::before {
  content: ""; width: 16px; height: 16px; flex: none; background: var(--red);
  clip-path: polygon(50% 0%, 61.5% 30.1%, 93.3% 25%, 73% 50%, 93.3% 75%, 61.5% 69.9%, 50% 100%, 38.5% 69.9%, 6.7% 75%, 27% 50%, 6.7% 25%, 38.5% 30.1%);
}
.ind-links a:hover { color: var(--red); }
@media (max-width: 860px) { .ind-links { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
@media (max-width: 520px) { .ind-links { grid-template-columns: 1fr; } }

/* "What we set up" list on industry pages */
.run-list { padding: 0; border-top: 2px solid var(--ink); border-radius: 0; }
.run-list .report-row { grid-template-columns: 180px 1fr; }
.run-list a { color: var(--ink); }
.run-list a:hover { color: var(--red); }
@media (max-width: 560px) { .run-list .report-row { grid-template-columns: 1fr; } }

/* Floating "Text us" button */
.text-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem; line-height: 1;
  box-shadow: 0 10px 24px -8px rgba(19, 35, 58, 0.55);
}
.text-fab:hover { background: var(--red-dark); color: #fff; }
.text-fab svg { width: 20px; height: 20px; flex: none; }
.text-fab .fab-short { display: none; }
@media (max-width: 640px) {
  .text-fab { right: 16px; bottom: 16px; padding: 14px 18px; }
  .text-fab .fab-long { display: none; }
  .text-fab .fab-short { display: inline; }
}
