/* Harvey Myers — fun, energetic, contemporary */

:root {
  --coral: #ff5a5f;
  --coral-deep: #e8454b;
  --amber: #ffb020;
  --teal: #00c2a8;
  --teal-deep: #009e89;
  --ink: #162033;
  --ink-soft: #3a465c;
  --mist: #f4f8ff;
  --peach: #fff5f0;
  --mint: #e8fff7;
  --sun: #fff8e8;
  --paper: #ffffff;
  --line: rgba(22, 32, 51, 0.1);
  --shadow: 0 18px 40px rgba(22, 32, 51, 0.12);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shell: min(1120px, calc(100% - 2.5rem));
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(255, 90, 95, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(0, 194, 168, 0.14), transparent 50%),
    radial-gradient(700px 400px at 70% 100%, rgba(255, 176, 32, 0.14), transparent 45%),
    linear-gradient(165deg, var(--peach), var(--mist) 45%, var(--sun));
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

a:hover {
  color: var(--coral-deep);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Floating background shapes */
.bg-orbits {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orbit {
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  filter: blur(2px);
  opacity: 0.45;
  animation: drift 18s var(--ease) infinite alternate;
}

.orbit-a {
  width: 22rem;
  height: 22rem;
  top: 12%;
  right: -6rem;
  background: rgba(255, 90, 95, 0.18);
}

.orbit-b {
  width: 18rem;
  height: 18rem;
  bottom: 8%;
  left: -5rem;
  background: rgba(0, 194, 168, 0.16);
  animation-duration: 22s;
}

.orbit-c {
  width: 12rem;
  height: 12rem;
  top: 55%;
  right: 18%;
  background: rgba(255, 176, 32, 0.18);
  animation-duration: 14s;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(-24px, 30px, 0) rotate(12deg); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 240, 0.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  flex: none;
  border-radius: 0.9rem;
  box-shadow: 0 8px 20px rgba(255, 90, 95, 0.25);
  transition: transform 0.45s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18rem;
}

.site-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--ink);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 0.9rem;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  content: "";
  transition: transform 0.25s var(--ease);
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-2px) rotate(-45deg);
}

/* Layout */
.site-main {
  padding-bottom: 4rem;
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(22, 32, 51, 0.72) 10%, rgba(22, 32, 51, 0.28) 55%, rgba(255, 90, 95, 0.35)),
    radial-gradient(circle at 75% 35%, rgba(255, 176, 32, 0.55), transparent 28%),
    radial-gradient(circle at 60% 70%, rgba(0, 194, 168, 0.45), transparent 32%),
    linear-gradient(160deg, #ff8a7a, #1f2a44 60%, #00a894);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 90%);
  animation: grid-shift 24s linear infinite;
}

@keyframes grid-shift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, 24px, 0); }
}

.hero-content {
  width: var(--shell);
  margin: 0 auto 3.5rem;
  color: #fff;
  max-width: 40rem;
  animation: rise 0.8s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 9vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 1rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 18ch;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--amber);
  color: var(--ink);
}

.button-primary:hover {
  background: #ffc14d;
  color: var(--ink);
}

.button-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button-ghost:hover {
  background: #fff;
  color: var(--ink);
}

.button-solid {
  background: var(--ink);
  color: #fff;
}

.button-solid:hover {
  background: var(--coral);
  color: #fff;
}

.section {
  padding: 4.5rem 0 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 0.65rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 90, 95, 0.12);
  color: var(--coral-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow.teal {
  background: rgba(0, 194, 168, 0.14);
  color: var(--teal-deep);
}

.eyebrow.amber {
  background: rgba(255, 176, 32, 0.2);
  color: #9a6400;
}

.section-head h2,
.page-hero h1,
.article-header h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-size: clamp(2rem, 4.5vw, 3rem);
}

.lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.page-hero {
  padding: 3.25rem 0 1rem;
}

.page-hero .lede {
  max-width: 42rem;
}

/* Blog cards — interaction containers */
.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.blog-card,
.topic-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.blog-card:hover,
.topic-card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 24px 48px rgba(22, 32, 51, 0.16);
  color: inherit;
}

.topic-card {
  grid-column: span 6;
  padding: 1.5rem;
}

.topic-card h3,
.blog-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.topic-card p,
.blog-card p {
  margin: 0;
  color: var(--ink-soft);
}

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--mint);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.blog-card:hover .card-media img {
  transform: scale(1.05);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-coral { background: rgba(255, 90, 95, 0.14); color: var(--coral-deep); }
.pill-teal { background: rgba(0, 194, 168, 0.14); color: var(--teal-deep); }
.pill-amber { background: rgba(255, 176, 32, 0.2); color: #9a6400; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.panel {
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.panel h2 {
  margin-top: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.stat-burst {
  display: grid;
  gap: 1rem;
}

.stat {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
}

.stat:nth-child(2) { background: var(--coral); }
.stat:nth-child(3) { background: var(--teal); color: var(--ink); }

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
  gap: 2rem;
  padding-top: 1rem;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-hero-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 0 0 1.75rem;
  border: 1px solid var(--line);
  background: #fff;
}

.article-figure {
  margin: 0 0 1.75rem;
}

.article-figure .article-hero-img {
  margin-bottom: 0.65rem;
}

.article-figure figcaption {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.prose {
  font-size: 1.125rem;
}

.prose > * + * {
  margin-top: 1.1rem;
}

.prose h2 {
  margin-top: 2rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-size: 1.65rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--coral);
  background: rgba(255, 90, 95, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.15rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--coral-deep);
  text-decoration: underline;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  opacity: 0.5;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-name {
  color: #fff;
}

.footer-blurb {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--amber);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li + li {
  margin-top: 0.45rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom p {
  margin: 0;
}

.sitemap-list {
  columns: 2;
  gap: 2rem;
}

.sitemap-list a {
  display: inline-block;
  margin: 0.25rem 0;
}

/* Newsletter CTA */
.newsletter-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.75rem;
  align-items: center;
  padding: 1.75rem;
  border-radius: calc(var(--radius) + 0.25rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(255, 176, 32, 0.22), transparent 55%),
    radial-gradient(500px 220px at 0% 100%, rgba(0, 194, 168, 0.16), transparent 50%),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.newsletter-copy h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}

.newsletter-form {
  display: grid;
  gap: 0.75rem;
}

.newsletter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.newsletter-input {
  flex: 1 1 14rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.newsletter-input:focus {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.newsletter-submit {
  min-height: 3rem;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.newsletter-fineprint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.newsletter-lists {
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.newsletter-lists legend {
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.newsletter-lists-help {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.newsletter-check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}

.newsletter-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-check-all {
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--line);
  width: 100%;
}

.newsletter-check input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--coral);
}

.service-card {
  cursor: default;
}

.service-card:hover {
  transform: none;
  box-shadow: var(--shadow);
}

.topic-card.service-card {
  grid-column: span 6;
}

.newsletter-flash {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.newsletter-flash-success {
  background: rgba(0, 194, 168, 0.16);
  color: var(--teal-deep);
}

.newsletter-flash-error {
  background: rgba(255, 90, 95, 0.14);
  color: var(--coral-deep);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .blog-card,
  .topic-card {
    grid-column: span 12;
  }

  .split,
  .footer-grid,
  .newsletter-panel {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-tag {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(255, 248, 240, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .nav-list {
    flex-direction: column;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: 78vh;
  }

  .footer-nav,
  .sitemap-list {
    grid-template-columns: 1fr;
    columns: 1;
  }
}
