/* advertisingdragon.com. Colors and type follow the Carrd page it replaced. */
:root {
  --blue: #0071E3;
  --ink: #1D1D1F;
  --text: #48484F;
  --grey: #F5F5F7;
  --white: #FFFFFF;
  --dark: #1D1D1F;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, p, figure, blockquote, address { margin: 0; }

/* Hero */
.hero { background: var(--grey); padding: 7.5rem 1.5rem; }
.hero-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-photo { border-radius: 0.25rem; width: 100%; aspect-ratio: 490 / 588; object-fit: cover; }
.hero-brand { text-align: center; }
.logo { width: min(20rem, 100%); margin: 0 auto; }
.tagline {
  margin-top: 1.5rem;
  font-size: 2.5rem;
  line-height: 1.55;
  color: var(--text);
}

/* Content bands */
.band { padding: 7rem 1.5rem; }
.band.grey { background: var(--grey); }
.band.dark { background: var(--dark); color: var(--white); }
.col { max-width: 40rem; margin: 0 auto; }
.col > * + * { margin-top: 1.5rem; }

.eyebrow {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
h2 {
  color: var(--ink);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.col > .eyebrow + h2 { margin-top: 1rem; }
.dark h2 { color: var(--white); }
.dark p, .dark address { color: var(--white); }
.dark .eyebrow { color: var(--blue); }

.pic { width: 100%; border-radius: 0.25rem; }
.pic.narrow { width: 83%; margin-left: auto; margin-right: auto; }
.pic.framed { border: 1px solid #000; border-radius: 0; }

/* "Schedule a quick chat!" */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem !important;
  padding: 0 1.6rem 0 1.4rem;
  height: 3.75rem;
  border-radius: 2rem;
  background: var(--blue);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1.25rem 2rem rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.button:hover { background: #1684F2; transform: scale(1.03); }
.button:focus-visible { outline: 3px solid #8ABFF5; outline-offset: 3px; }
.button svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Map slideshow: one map at a time, switching every 1.5 seconds */
.slideshow { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #DDE8E0; }
.slideshow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.slideshow img.on { opacity: 1; }

/* Client quotes */
.quote figcaption { order: -1; color: var(--ink); font-weight: 600; font-size: 1rem; }
.quote { display: flex; flex-direction: column; gap: 0.25rem; }
.quote blockquote { font-size: 1rem; line-height: 1.6; }

/* Creative gallery: a wide TV ad, then three phone ads, repeating */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem; transition: transform 0.25s ease; }
.gallery img.wide { grid-column: 1 / -1; height: auto; }
.gallery img:not(.wide) { aspect-ratio: 9 / 16.8; }
.gallery img:hover { transform: scale(1.06); position: relative; z-index: 1; }

/* Footer */
.social { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; gap: 1.25rem; }
.social a { display: block; width: 1.75rem; height: 1.75rem; color: var(--white); }
.social a:hover { color: #8ABFF5; }
.social svg { width: 100%; height: 100%; fill: currentColor; }
address { font-style: normal; font-size: 1.125rem; line-height: 1.6; margin-top: 2.5rem !important; }
address a { text-decoration: none; }
.fine { font-size: 0.875rem; opacity: 0.7; }

/* Unsubscribe screens (old emails' #unsub and #unsubscribe links) */
.panel { min-height: 100vh; padding: 4rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; text-align: center; background: var(--grey); }
.panel p { font-size: 1.5rem; color: var(--ink); }
.panel-logo img { width: 12rem; }
.fillout { width: 100%; max-width: 40rem; min-height: 500px; }
.panel[hidden] { display: none; }
body.panel-open main { display: none; }

/* Phones and small tablets */
@media (max-width: 736px) {
  body { font-size: 1rem; }
  .hero { padding: 3rem 1.5rem 4rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo { max-width: 22rem; margin: 0 auto; }
  .tagline { font-size: 1.75rem; margin-top: 1rem; }
  .logo { width: 14rem; }
  .band { padding: 4.5rem 1.5rem; }
  h2 { font-size: 2.25rem; }
  .pic.narrow { width: 100%; }
  .button { height: 3.25rem; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .gallery img { transition: none; }
  .button:hover, .gallery img:hover { transform: none; }
}
