:root {
  --blue: #064fb4;
  --navy: #061a4f;
  --green: #278a20;
  --pale-green: #effbea;
  --gold: #f4bf21;
  --red: #f11f19;
  --ink: #303030;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: var(--blue);
  font-weight: 700;
}

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

.hero {
  position: relative;
  min-height: clamp(510px, 40vw, 640px);
  background: url("assets/top-banner.png") center top / 100% auto no-repeat;
  overflow: hidden;
}

.vendor-hero {
  position: relative;
  min-height: 370px;
  background: url("assets/top-banner.png") center top / 100% auto no-repeat;
  overflow: hidden;
}

.hero-title {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-size: clamp(22px, 3.2vw, 54px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: 0;
  padding: .38em 16px .48em;
}

.hero-logo {
  width: min(610px, 58vw);
  margin: clamp(14px, 2vw, 28px) auto 0;
}

.vendor-hero .hero-logo {
  width: min(520px, 62vw);
}

.hero-script {
  width: min(480px, 46vw);
  margin: -8px auto 0;
}

.paperclip-nav {
  position: relative;
  width: min(1080px, 82vw);
  margin: 20px auto 0;
  overflow: hidden;
}

.paperclip-nav > img {
  width: 100%;
}

.paperclip-nav a {
  position: absolute;
  top: 11%;
  height: 70%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  font-size: clamp(15px, 1.7vw, 28px);
  font-weight: 500;
  text-transform: uppercase;
}

.paperclip-nav a:nth-of-type(1) {
  left: 0;
  width: 18%;
}

.paperclip-nav a:nth-of-type(2) {
  left: 20%;
  width: 30%;
}

.paperclip-nav a:nth-of-type(3) {
  left: 48%;
  width: 22%;
}

.paperclip-nav a:nth-of-type(4) {
  left: 69%;
  width: 31%;
}

.simple-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 18px auto 0;
}

.simple-nav a {
  color: var(--navy);
  text-decoration: none;
  border: 4px double var(--gold);
  border-radius: 999px;
  background: #fff;
  padding: 8px 28px;
}

main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.event-panel,
.workshop-panel,
.contact-panel,
.vendor-form-panel {
  border: 4px dotted rgba(244, 191, 33, .8);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 38px);
  margin: clamp(28px, 4vw, 58px) auto;
}

.lead {
  margin: 0 0 24px;
  color: #393939;
  font-size: clamp(25px, 3vw, 46px);
  line-height: 1.12;
  font-weight: 400;
}

.event-content {
  display: grid;
  grid-template-columns: 1fr minmax(330px, .95fr);
  gap: clamp(20px, 4vw, 46px);
  align-items: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.detail-card {
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
  border: 3px solid rgba(244, 191, 33, .55);
  border-radius: 18px;
  padding: 8px 12px;
  background: #fffef8;
}

.detail-card img {
  grid-row: 1 / 3;
  width: 34px;
  max-height: 42px;
  object-fit: contain;
  justify-self: center;
}

.detail-card strong {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1;
}

.detail-card span {
  font-size: clamp(14px, 1.5vw, 22px);
  line-height: 1;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 12px;
}

.register-button,
.facebook-button,
.vendor-pill,
button {
  min-height: 76px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
}

.register-button {
  background: var(--red);
  color: #fff;
  font-size: clamp(28px, 4vw, 56px);
}

.facebook-button {
  color: var(--green);
  border: 6px double var(--green);
  background: #fff;
  font-size: clamp(28px, 4vw, 52px);
}

.vendor-pill {
  width: 70%;
  margin: 0 auto;
  background: #ffc824;
  color: #fff;
  font-size: clamp(19px, 2.4vw, 34px);
}

.presenter {
  width: 100%;
  border-radius: 24px;
}

.benefits-shell {
  position: relative;
  margin: 32px 0 28px;
  min-height: 310px;
  background: url("assets/middle-bar.webp") center top / 100% auto no-repeat;
}

.benefits {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  min-height: 310px;
  padding: 0 12px;
}

.benefits article {
  position: relative;
  min-height: 250px;
  background: transparent;
  border-radius: 16px 16px 0 0;
  padding: 0 18px 120px;
  overflow: hidden;
}

.benefits h2 {
  margin: -3px 0 8px;
  color: var(--green);
  font-size: clamp(24px, 2.4vw, 33px);
  line-height: 1;
  text-align: center;
  text-shadow: 0 3px 4px rgba(0,0,0,.12);
}

.benefits p {
  margin: 0;
  color: #111;
  font-size: clamp(12px, 1.12vw, 15px);
  line-height: 1.08;
  font-weight: 700;
}

.benefit-art {
  position: absolute;
  object-fit: contain;
  z-index: 2;
  display: none;
}

.benefit-art.magnifier {
  width: 60%;
  left: 49%;
  bottom: -22px;
  transform: translateX(-50%);
}

.benefit-art.stethoscope {
  width: 63%;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
}

.benefit-art.gifts {
  width: 88%;
  left: 50%;
  bottom: -12px;
  transform: translateX(-50%);
}

.benefit-art.popcorn {
  width: 50%;
  right: 5%;
  bottom: -10px;
}

.workshop-panel {
  margin-top: 48px;
}

.workshop-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 22px;
}

.workshop-heading img {
  width: min(360px, 45vw);
}

.workshop-heading p {
  margin: 0 0 12px;
  color: #496aa3;
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.1;
  font-weight: 300;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.workshop-card {
  border: 3px solid #e5e7ef;
  border-radius: 22px;
  min-height: 300px;
  padding: 20px 22px;
  text-align: center;
  background: #fff;
}

.workshop-card img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.workshop-card h3 {
  margin: 6px 0 10px;
  color: #1b5baa;
  font-size: clamp(17px, 1.8vw, 23px);
}

.workshop-card p {
  margin: 0;
  color: #333;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.08;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 36px;
}

.contact-heading {
  width: 180px;
}

.contact-form-wrap h2 {
  color: var(--green);
  font-size: clamp(16px, 2vw, 26px);
  margin: 0 0 18px;
}

form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-weight: 700;
  font-size: 18px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 38px;
  border: 2px solid #c8d4e3;
  border-radius: 15px;
  padding: 8px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.contact-info,
.vendor-contact-box {
  background: var(--pale-green);
  border: 3px solid #dcefd6;
  border-radius: 24px;
  padding: 28px;
  align-self: end;
  font-size: clamp(17px, 1.6vw, 22px);
}

.contact-info p,
.vendor-contact-box p {
  margin: 0 0 20px;
}

.vendor-doctor {
  width: 150px;
  float: right;
  margin: -12px 0 12px 18px;
}

.vendor-text-link {
  display: block;
  text-align: center;
  color: var(--navy);
  text-decoration: none;
  font-weight: 400;
  font-size: clamp(24px, 3vw, 42px);
}

.sponsors {
  display: block;
  margin: 54px auto;
}

.sponsors-heading {
  grid-column: 1 / 2;
  width: min(300px, 90%);
  align-self: start;
}

.sponsor-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: center;
}

.sponsor-grid a {
  display: flex;
  min-height: 190px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sponsor-grid img {
  max-height: 170px;
  max-width: 100%;
  object-fit: contain;
}

.site-footer {
  width: 100%;
  margin-top: 30px;
  padding-bottom: 28px;
  text-align: center;
}

.ribbon {
  width: min(1300px, 86vw);
  margin: 0 auto -14px;
  position: relative;
  z-index: 2;
}

.footer-art {
  width: 100%;
  min-height: clamp(220px, 21vw, 300px);
  background: url("assets/bottom-banner.webp") center bottom / cover no-repeat;
}

.site-footer p {
  width: min(820px, 60%);
  margin: -120px auto 10px;
  position: relative;
  z-index: 2;
  color: #111;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.2;
}

.footer-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  width: min(820px, 92%);
  margin: 0 auto;
  font-size: 14px;
}

.footer-links a:not(:last-child)::after {
  content: " |";
  color: #111;
  font-weight: 400;
}

.vendor-form-panel {
  width: min(960px, calc(100% - 32px));
}

.vendor-form-panel h1 {
  margin: 0 0 18px;
  color: var(--green);
  font-size: clamp(30px, 4vw, 48px);
}

.vendor-form-panel p {
  font-size: 18px;
  line-height: 1.4;
}

.vendor-form-panel form {
  grid-template-columns: repeat(2, 1fr);
}

.vendor-form-panel .wide {
  grid-column: 1 / -1;
}

@media (max-width: 850px) {
  .hero {
    min-height: 500px;
    background-size: 100% auto;
  }

  .vendor-hero {
    min-height: 330px;
    background-size: 100% auto;
  }

  .hero-logo {
    width: min(520px, 78vw);
  }

  .hero-script {
    width: min(420px, 66vw);
  }

  .paperclip-nav {
    width: 94vw;
  }

  .event-content,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .benefits,
  .workshop-grid,
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-shell {
    min-height: 0;
    background: none;
  }

  .benefits {
    min-height: 0;
  }

  .benefits article {
    min-height: 310px;
    background: var(--pale-green);
    padding: 0 18px 135px;
  }

  .benefit-art {
    display: block;
  }

  .workshop-heading {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .workshop-heading img {
    margin: 0 auto;
  }

  .contact-info {
    align-self: auto;
  }
}

@media (max-width: 560px) {
  body {
    overflow-x: hidden;
  }

  main {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    min-height: 445px;
    background-size: 100% auto;
    background-position: center top;
  }

  .hero-title {
    font-size: 16px;
    white-space: normal;
  }

  .hero-logo {
    width: 72vw;
    margin-top: 18px;
  }

  .hero-script {
    width: 70vw;
  }

  .paperclip-nav {
    width: 94vw;
    margin-top: 16px;
  }

  .paperclip-nav a {
    font-size: 10px;
  }

  .lead {
    font-size: 24px;
  }

  .detail-grid,
  .cta-row,
  .benefits,
  .workshop-grid,
  .sponsor-grid,
  .vendor-form-panel form {
    grid-template-columns: 1fr;
  }

  .vendor-pill {
    width: 100%;
  }

  .benefits article {
    min-height: 260px;
    padding: 0 18px 116px;
    overflow: hidden;
  }

  .benefits h2 {
    font-size: 30px;
  }

  .benefits p {
    font-size: 15px;
  }

  .benefit-art.magnifier,
  .benefit-art.stethoscope,
  .benefit-art.gifts,
  .benefit-art.popcorn {
    width: 34%;
    right: 8px;
    left: auto;
    bottom: 8px;
    transform: none;
  }

  .benefit-art.gifts {
    width: 48%;
  }

  .benefit-art.stethoscope {
    width: 45%;
  }

  .benefit-art.popcorn {
    width: 42%;
  }

  .sponsors {
    display: block;
  }

  .sponsors-heading {
    margin: 0 auto;
  }

  .sponsor-grid a {
    min-height: 150px;
  }

  .sponsor-grid img {
    max-height: 130px;
    width: auto;
  }

  .site-footer p {
    width: 78%;
    margin-top: -96px;
    font-size: 12px;
  }

  .footer-links {
    width: 78%;
    font-size: 11px;
  }
}
