:root {
  --main: #b85757;
  --dark: #7f3f3f;
  --accent: #f2c866;
  --accent-soft: #fff0c7;
  --red-soft: #f8d7d7;
  --bg: #fff8ed;
  --card: #fffdf8;
  --text: #2f2a28;
  --muted: #7a6f68;
  --line: #ead8c0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

.site-header {
  background: var(--card);
  color: var(--text);
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.header-top {
  display: flex;
  gap: 22px;
  align-items: center;
}

.logo-box,
.footer-logo {
  width: 130px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 2px dashed var(--main);
  border-radius: 12px;
  color: var(--main);
  background: white;
  text-decoration: none;
  font-weight: bold;
}

.title-box { flex: 1; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

h2 {
  color: var(--main);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}

a { color: var(--main); }

.eyebrow {
  color: var(--main);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 0;
}

.main-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}

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

.nav-wrap a {
  text-decoration: none;
  font-weight: bold;
}

.hero-banner {
  background:
    linear-gradient(135deg, rgba(184,87,87,.88), rgba(242,200,102,.78)),
    var(--main);
  color: white;
  padding: 82px 0;
}

/* BACIF: hero photo blended directly into the background, without image frame */
.hero-banner-photo {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(184,87,87,.93), rgba(242,200,102,.74)),
    var(--main);
}

.hero-banner-photo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  background-image: url("images/hero-food.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.48;
  filter: saturate(1.02) contrast(1.02);
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 20%, rgba(0,0,0,.72) 47%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.18) 20%, rgba(0,0,0,.72) 47%, #000 100%);
}

.hero-banner-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(184,87,87,.92) 0%, rgba(184,87,87,.80) 40%, rgba(184,87,87,.32) 70%, rgba(242,200,102,.10) 100%);
  pointer-events: none;
}

.hero-banner-photo .hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content {
  max-width: 780px;
}

.hero-content h2 {
  color: white;
  border: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 18px;
  padding: 0;
}

.hero-content p {
  font-size: 1.18rem;
  color: #edf4fa;
}

main { padding: 32px 0; }

section,
.hero-card {
  background: var(--card);
  margin-bottom: 24px;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,0,0,.045);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -34px;
  position: relative;
}

.quick-facts article {
  background: var(--card);
  border-top: 4px solid var(--accent);
}

.quick-facts span {
  display: block;
  color: var(--muted);
  font-size: .92rem;
}

.quick-facts strong {
  display: block;
  color: var(--main);
  font-size: 1.05rem;
}

.page-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  align-items: start;
}

.subnav {
  position: sticky;
  top: 74px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.subnav a {
  display: block;
  padding: 7px 0;
  text-decoration: none;
  border-bottom: 1px solid #edf1f5;
}

article,
details,
.rules,
.info-box,
.photo-placeholder,
.map-placeholder {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.cards,
.price-list,
.news-compact,
.sponsor-strip {
  display: grid;
  gap: 16px;
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.cards.three,
.price-list,
.news-compact {
  grid-template-columns: repeat(3, 1fr);
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #111;
  padding: 12px 20px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: bold;
}

.button.secondary {
  background: var(--accent-soft);
  color: var(--dark);
}

.date {
  color: var(--main);
  font-weight: bold;
  margin-bottom: 2px;
}

.news-list-vertical {
  display: grid;
  gap: 10px;
}

.news-list-vertical article {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
}

.cards.vertical-stack {
  grid-template-columns: 1fr;
}

.cards.vertical-stack article {
  border-left: 5px solid var(--accent);
}

.speaker-photo {
  width: 80%;
  aspect-ratio: 5 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  color: var(--muted);
  margin: 0 auto 14px;
}

.speaker-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

details { margin-bottom: 12px; }

summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--main);
}

.vertical-timeline {
  display: grid;
  gap: 16px;
}

.vertical-timeline article {
  border-left: 5px solid var(--accent);
}

.vertical-timeline span {
  color: var(--accent);
  font-weight: bold;
  text-transform: uppercase;
  font-size: .9rem;
}

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

.process span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #111;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 12px;
}

.photo-placeholder,
.map-placeholder {
  min-height: 190px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: bold;
  text-align: center;
}

.map-placeholder {
  min-height: 280px;
}

.sponsors-section,
.contact-section {
  padding: 32px 0;
}

.sponsors-section {
  background: var(--accent-soft);
}

.sponsor-group {
  margin-top: 18px;
}

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

.sponsor-strip.four {
  grid-template-columns: repeat(4, 1fr);
}

.sponsor-logo {
  min-height: 60px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 12px;
  color: var(--muted);
  font-weight: bold;
  padding: 4px;
  background: var(--bg);
}

.edition-list {
  display: grid;
  gap: 18px;
}

.edition-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.edition-logo {
  min-height: 120px;
  display: grid;
  place-items: center;
  /*border: 2px dashed var(--main);*/
  border-radius: 10px;
  color: var(--main);
  font-weight: bold;
  text-align: center;
  padding: 12px;
  background: white;
}

.site-footer {
  background: var(--card);
  color: var(--text);
  padding: 34px 0 18px;
  border-top: 1px solid var(--line);
}

.site-footer h3,
.site-footer p,
.site-footer a {
  color: var(--text);
}

.site-footer a {
  display: block;
  text-decoration: none;
  margin-bottom: 5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.4fr 1.2fr;
  gap: 24px;
}

.copyright {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
  text-align: center;
}

.copyright p { margin-bottom: 0; }

/* BACIF: Conference Fees one under another on desktop */
.price-list.vertical-fees {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 16px;
}

/* BACIF: date/place line in menu-link color */
.site-header .eyebrow {
  color: var(--main) !important;
  font-weight: 800;
}

@media (max-width: 880px) {
  .header-top,
  .page-layout,
  .quick-facts,
  .cards.two,
  .cards.three,
  .price-list,
  .news-compact,
  .process,
  .sponsor-strip,
  .sponsor-strip.four,
  .edition-item,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-top {
    display: grid;
  }

  .subnav {
    position: static;
  }

.nav-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  padding: 6px 0;
  text-align: center;
}

.nav-wrap a {
  flex: 0 0 calc(50% - 10px);
  display: block;
  padding: 4px 2px;
  font-size: 0.86rem;
  line-height: 1.15;
  white-space: normal;
}

  .hero-banner {
    padding: 58px 0;
  }

  .hero-banner-photo::before {
    width: 100%;
    opacity: 0.24;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 22%, rgba(0,0,0,.45) 78%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.45) 22%, rgba(0,0,0,.45) 78%, transparent 100%);
  }

  .hero-banner-photo::after {
    background: linear-gradient(180deg, rgba(184,87,87,.90) 0%, rgba(184,87,87,.72) 56%, rgba(184,87,87,.88) 100%);
  }

  section {
    padding: 22px;
  }

  .news-list-vertical article {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 12px 0;
  }

  .price-list.vertical-fees {
    grid-template-columns: 1fr !important;
  }
}
