/* Hero */

.hero {
  position: relative;
  min-height: 448px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.97) 0%, rgba(6, 5, 3, 0.92) 37%, rgba(6, 5, 3, 0.58) 63%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(135deg, var(--night), var(--night-2));
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.12) 100%),
    url("assets/hero-coffee.png") right center / min(58vw, 680px) 100% no-repeat;
  opacity: 0.98;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 448px;
  align-items: end;
  padding: 110px 0 36px;
}

.hero-copy {
  width: min(690px, 100%);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 4px;
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.subtitle {
  margin-bottom: 20px;
  color: var(--gold-2);
  font-size: clamp(17px, 1.9vw, 24px);
}

.intro {
  width: min(445px, 100%);
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Shared Sections */

.why-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  align-items: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-width: 0;
  min-height: 208px;
  padding: 28px 24px 23px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card svg {
  width: 39px;
  height: 39px;
  margin-bottom: 22px;
  color: #8c5c24;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 19px;
  line-height: 1.15;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.process {
  padding: 23px 0 34px;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 17% 10%, rgba(182, 122, 45, 0.2), transparent 30%),
    linear-gradient(105deg, #080503, #1b1008 48%, #090705);
}

.process h2 {
  margin-bottom: 18px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
  margin: 0 0 22px;
}

.step {
  position: relative;
  min-width: 0;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 39px;
  right: -30px;
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
}

.step-number {
  position: absolute;
  top: 6px;
  left: calc(50% - 62px);
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: var(--white);
  background: linear-gradient(135deg, #9a6422, #c98f3c);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 13px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.step-icon svg {
  width: 34px;
  height: 34px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.step p {
  width: min(180px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.section-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-row h2 {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8b5b24;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.text-link svg {
  width: 17px;
  height: 17px;
}

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

.program-card {
  display: grid;
  grid-template-columns: 1fr 132px;
  min-width: 0;
  min-height: 132px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.program-card img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.program-copy {
  min-width: 0;
  padding: 17px 18px;
}

.program-copy span,
.path-card > p {
  display: inline-block;
  margin-bottom: 9px;
  padding: 4px 8px;
  color: var(--white);
  background: #5e3a18;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.program-copy h3 {
  margin-bottom: 9px;
  font-size: 18px;
}

ul {
  margin: 0;
  padding-left: 18px;
}

li {
  margin-bottom: 4px;
  color: #312820;
  font-size: 12px;
}

.paths {
  padding-top: 0;
}

.paths h2 {
  text-align: center;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.path-card {
  position: relative;
  min-width: 0;
  min-height: 168px;
  overflow: hidden;
  padding: 24px 20px 19px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12)),
    var(--path-image) right center / cover no-repeat;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.path-card:nth-child(3) {
  background:
    linear-gradient(90deg, rgba(70, 83, 54, 0.82), rgba(70, 83, 54, 0.2)),
    var(--path-image) right center / cover no-repeat;
}

.path-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.path-card ul {
  margin-bottom: 12px;
  padding-left: 15px;
}

.path-card li {
  color: rgba(255, 255, 255, 0.94);
}

.awards {
  padding-top: 8px;
}

.awards-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 38px;
  align-items: center;
}

.award-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 26px;
}

.award-list span {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  color: #382b1d;
  font-size: 12px;
  font-weight: 700;
}

.award-list svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  color: #9b692d;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.sponsor-panel {
  display: grid;
  grid-template-columns: 1fr 242px;
  gap: 22px;
  align-items: center;
}

.sponsor-panel h2 {
  margin-bottom: 13px;
}

.sponsor-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

.sponsor-panel img {
  width: 100%;
  height: 142px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* CTA + Countdown */

.cta {
  position: relative;
  overflow: hidden;
  padding: 27px 0;
  color: var(--white);
  background: linear-gradient(90deg, #080604, #160c05 72%, #090705);
}

.beans {
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  background:
    linear-gradient(90deg, #160c05 0%, rgba(22, 12, 5, 0.52) 30%, rgba(22, 12, 5, 0.12) 100%),
    url("assets/beans.png") center / cover no-repeat;
  opacity: 0.8;
}

.cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr auto 1fr;
  gap: 36px;
  align-items: center;
}

.cta h2 {
  margin-bottom: 5px;
}

.cta p {
  max-width: 380px;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 58px);
  gap: 10px;
}

.countdown div {
  display: grid;
  place-items: center;
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
}

.countdown strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.countdown span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.deadline p {
  display: grid;
  grid-template-columns: 21px 1fr;
  gap: 10px;
  max-width: none;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.deadline svg {
  width: 18px;
  height: 18px;
}

.rules-section {
  padding: 52px 0 58px;
  background:
    radial-gradient(circle at 88% 12%, rgba(182, 122, 45, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 243, 237, 0.96));
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rule-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.rule-card.intro-rule {
  grid-column: span 2;
}

.rule-card span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--white);
  background: linear-gradient(135deg, #9a6422, #c68b3a);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.rule-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.2;
}

.rule-card p,
.rule-card li {
  color: #463a30;
  font-size: 13px;
}

.rule-card p:last-child,
.rule-card ul:last-child {
  margin-bottom: 0;
}

.criteria-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 16px;
  padding-left: 17px;
}

.rules-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.registration-tabs-section {
  padding: 48px 0 22px;
  background:
    radial-gradient(circle at 92% 12%, rgba(182, 122, 45, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(247, 243, 237, 0.96));
}

.registration-heading {
  margin-bottom: 22px;
}

.form-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 8px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-tab {
  min-height: 52px;
  padding: 11px 14px;
  color: #6f461c;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.form-tab:hover,
.form-tab.is-active {
  color: var(--white);
  background: linear-gradient(135deg, #9a6422, #c68b3a);
  border-color: rgba(154, 100, 34, 0.35);
}

.form-tab-panel {
  display: none;
}

.form-tab-panel.is-active {
  display: block;
}

.sample-form-section {
  padding: 22px 0 74px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(247, 243, 237, 0.96)),
    var(--paper);
}

.buyer-form-section {
  background:
    radial-gradient(circle at 92% 8%, rgba(182, 122, 45, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(247, 243, 237, 0.98), rgba(255, 253, 249, 0.94));
}

.sponsor-form-section {
  background:
    radial-gradient(circle at 8% 12%, rgba(101, 115, 77, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(247, 243, 237, 0.98));
}

.form-heading {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 32px;
}

.form-heading h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 3.5vw, 46px);
  line-height: 1.08;
  text-transform: uppercase;
}

.form-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.sample-form {
  display: grid;
  gap: 20px;
}

.sample-form fieldset {
  margin: 0;
  min-width: 0;
  padding: 24px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sample-form legend {
  padding: 0 8px;
  color: #6f461c;
  font-size: 16px;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sample-form label {
  display: grid;
  gap: 8px;
  color: #2f261e;
  font-size: 13px;
  font-weight: 900;
}

.sample-form label.wide {
  grid-column: 1 / -1;
}

.sample-form input,
.sample-form select,
.sample-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #d5c9ba;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sample-form textarea {
  resize: vertical;
}

.sample-form input:focus,
.sample-form select:focus,
.sample-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(182, 122, 45, 0.14);
}

.commitments {
  display: grid;
  gap: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}

.choice-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-group {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: rgba(247, 243, 237, 0.72);
  border: 1px solid #ded2c5;
  border-radius: 6px;
}

.choice-group.single {
  background: transparent;
  border: 0;
  padding: 0;
}

.choice-group p {
  margin-bottom: 4px;
  color: #2f261e;
  font-size: 13px;
  font-weight: 900;
}

.choice-group label {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: #43382e;
  font-weight: 700;
  line-height: 1.35;
}

.choice-group input[type="checkbox"],
.choice-group input[type="radio"] {
  width: 17px;
  height: 17px;
  min-height: 17px;
  margin-top: 1px;
  accent-color: var(--gold);
}

.choice-group .with-input {
  grid-template-columns: 18px auto 1fr;
  align-items: center;
}

.choice-group .with-input input[type="text"] {
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
}

.brand-description {
  grid-column: span 2;
}

.stacked-grid {
  margin-top: 16px;
}

.commitments label {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.commitments input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding-top: 8px;
}

.form-actions .button {
  border: 0;
  cursor: pointer;
}

.form-status {
  margin: 0;
  color: #5f6c45;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 1180px) {
  .program-grid,
  .path-grid,
  .rules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .award-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsor-panel,
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-panel img {
    height: 220px;
  }

  .sample-form-section {
    padding-bottom: 66px;
  }

  .form-heading {
    margin-bottom: 28px;
  }
}

@media (max-width: 1024px) {
  .hero-copy {
    max-width: 620px;
  }

  .feature-grid,
  .program-grid,
  .path-grid,
  .award-list,
  .rules-grid,
  .cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-card {
    grid-template-columns: 1fr;
  }

  .program-card img {
    height: 188px;
  }

  .countdown-wrap {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .registration-heading {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .process {
    padding-bottom: 28px;
  }

  .program-grid,
  .path-grid,
  .award-list,
  .rules-grid,
  .cta-grid,
  .why-grid,
  .choice-grid.two-col,
  .brand-description {
    grid-template-columns: 1fr;
  }

  .registration-heading,
  .form-tabs,
  .sponsor-panel,
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .registration-tabs-section {
    padding-top: 12px;
  }

  .sample-form-section {
    padding-bottom: 54px;
  }
}

@media (max-width: 768px) {
  .feature-card,
  .path-card,
  .award-card,
  .rule-card {
    min-height: auto;
  }

  .criteria-list {
    grid-template-columns: 1fr;
  }

  .choice-group .with-input {
    grid-template-columns: 18px 1fr;
    align-items: start;
  }

  .choice-group .with-input input[type="text"] {
    grid-column: 1 / -1;
  }

  .form-heading h2 {
    font-size: clamp(30px, 7vw, 40px);
  }

  .countdown-wrap {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.94)),
      url("assets/hero-coffee.png") center top / cover no-repeat;
    opacity: 0.84;
  }

  .hero-grid {
    min-height: auto;
    align-items: start;
    padding: 104px 0 38px;
  }

  .hero-copy,
  .intro {
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(30px, 8.8vw, 40px);
  }

  .intro {
    font-size: 15px;
  }

  .hero-actions,
  .cta-actions,
  .rules-actions,
  .section-row,
  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .section-row {
    justify-content: stretch;
    justify-items: start;
    text-align: left;
  }

  .section-row > * {
    min-width: 0;
    width: 100%;
  }

  .section-row h2 {
    max-width: 100%;
    overflow-wrap: normal;
  }

  .section-row .text-link {
    width: 100%;
    justify-content: flex-start;
  }

  .feature-grid,
  .steps,
  .why-grid,
  .program-grid,
  .path-grid,
  .award-list,
  .rules-grid,
  .cta-grid,
  .criteria-list,
  .registration-heading,
  .form-tabs,
  .form-grid,
  .choice-grid,
  .choice-grid.two-col,
  .sponsor-panel,
  .awards-grid,
  .brand-description {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .path-card,
  .award-card,
  .rule-card {
    min-height: auto;
  }

  .program-card {
    grid-template-columns: 1fr;
  }

  .program-card img {
    height: 176px;
  }

  .path-card {
    min-height: 220px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .countdown div {
    min-height: 62px;
  }

  .countdown strong {
    font-size: 23px;
  }

  .rule-card.intro-rule,
  .brand-description {
    grid-column: auto;
  }

  .sample-form fieldset {
    padding: 20px 16px;
  }

  .sample-form legend {
    font-size: 14px;
    line-height: 1.35;
  }

  .sample-form input,
  .sample-form select,
  .sample-form textarea {
    font-size: 16px;
  }

  .choice-group .with-input {
    grid-template-columns: 18px 1fr;
  }

  .choice-group .with-input input[type="text"] {
    grid-column: 1 / -1;
  }

  .beans {
    width: 100%;
    opacity: 0.32;
  }
}

@media (max-width: 420px) {
  .hero-grid {
    padding-top: 100px;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
