/* Mile High Badgers — static rebuild of the Divi 5 site */

:root {
  --red: #c5050c;
  --black: #000;
  --grey-bg: #e1e5e7;
  --link: #e47138;
  --text: #666;
  --header-h: 80px;
  --header-h-shrunk: 56px;
  --font-body: "Open Sans", Arial, sans-serif;
  --font-display: "Archivo", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h-shrunk); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  background: #fff;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; padding-bottom: 10px; color: #333; font-weight: 500; line-height: 1.2; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: #000; color: #fff; padding: 8px 16px;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  transition: box-shadow .4s ease;
}
.site-header.is-scrolled { box-shadow: 0 0 7px rgba(0, 0, 0, .1); }

.header-inner {
  width: 80%; max-width: 1080px; margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  transition: height .4s ease;
}
.site-header.is-scrolled .header-inner { height: var(--header-h-shrunk); }

.logo img { height: calc(var(--header-h) * .6); width: auto; transition: height .4s ease; }
.site-header.is-scrolled .logo img { height: calc(var(--header-h-shrunk) * .75); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.main-nav a {
  color: rgba(0, 0, 0, .6);
  font-weight: 600; font-size: 14px;
  transition: opacity .4s ease;
}
.main-nav a:hover { opacity: .7; text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--red); }

.nav-toggle {
  display: none;
  background: none; border: 0; padding: 8px; cursor: pointer;
  color: var(--red);
}
.nav-toggle svg { display: block; }

main { padding-top: var(--header-h); }

/* ---------- Sections & rows ---------- */

.section { padding: 54px 0; }
.section--red { background: var(--red); border-bottom: 8px solid var(--black); color: var(--black); }
.section--grey { background: var(--grey-bg); }

.row { width: 90%; max-width: 1400px; margin: 0 auto; padding: 27px 0; }
.row--full { max-width: none; }
.row:first-child { padding-top: 0; }
.row:last-child { padding-bottom: 0; }

.cols { display: flex; gap: 5.5%; align-items: flex-start; }
.cols > * { flex: 1 1 0; min-width: 0; }
.cols--1-2 > :first-child { flex: 1 1 29.6667%; }
.cols--1-2 > :last-child { flex: 2 1 64.833%; }

/* ---------- Typography blocks ---------- */

.hero-title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700; text-transform: uppercase;
  font-size: 9vw; letter-spacing: -.02em; line-height: 1;
  text-align: center;
  color: var(--black);
  padding-bottom: 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700; text-transform: uppercase;
  font-size: 14px; line-height: 1.4;
  color: var(--black);
  padding-bottom: 0;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800; font-size: 55px; line-height: 1.2;
  color: var(--black);
}

.footer-info h3 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 25px;
  color: var(--black);
}

/* ---------- Text link button (arrow on hover, like Divi) ---------- */

.text-button {
  display: inline-flex; align-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 25px; line-height: 1.7;
  color: var(--black);
  padding-right: 28px;
  position: relative;
}
.text-button::after {
  content: "\2192";
  position: absolute; right: 0;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease;
  color: #dfdbd8;
}
.text-button:hover { text-decoration: none; }
.text-button:hover::after,
.text-button:focus-visible::after { opacity: 1; transform: translateX(0); }

.align-right { display: flex; justify-content: flex-end; }

/* ---------- Business / rental listings ---------- */

.listings { display: flex; flex-direction: column; }

.listing {
  display: flex; align-items: flex-start; gap: 5.5%;
  padding: 10px 0;
  border-bottom: 2px solid var(--black);
  color: inherit;
  transition: transform .3s ease;
}
.listing:hover { transform: scale(.98); text-decoration: none; }
.listing > * { flex: 1 1 0; min-width: 0; }

.listing__logo { align-self: center; display: flex; justify-content: center; }
.listing__logo img { width: auto; max-height: 180px; }
.listing__logo img[src$="placeholder.svg"] { width: 100%; max-height: none; }
.listing__logo img.listing__photo { width: 100%; max-height: none; height: auto; border-radius: 6px; }

.listing__name {
  font-family: var(--font-display);
  font-weight: 800; font-size: 55px; line-height: 1.2;
  color: var(--black);
}

.listing--event { align-items: center; }
.listing--event > :first-child { flex-grow: 2; }
.listing__url.listing__cta { font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 1.4; }
.listing:hover .listing__cta { text-decoration: underline; }

.listing__info { text-align: right; }
.listing__info p { padding-bottom: 0; }
.listing__desc { margin-bottom: 1em; }
.listing__url {
  color: var(--link);
  font-size: 16px; line-height: 1.8;
  overflow-wrap: anywhere;
}

/* ---------- Contact form ---------- */

.contact-form { margin-top: 20px; }
.contact-form .fields { display: flex; flex-wrap: wrap; gap: 3%; row-gap: 20px; }
.contact-form .field { flex: 1 1 48.5%; }
.contact-form .field--full { flex-basis: 100%; }

.contact-form label {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px; line-height: 1.4;
  text-transform: uppercase;
  color: var(--black);
  background: transparent;
  border: 2px solid var(--black);
  border-radius: 0;
  padding: 16px 40px;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--black); opacity: 1; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid #fff; outline-offset: 2px; }

/* honeypot */
.contact-form .hp { position: absolute; left: -9999px; }

.contact-form .actions { display: flex; justify-content: flex-end; margin-top: 20px; }

.btn-pill {
  font-family: var(--font-display);
  font-weight: 700; font-size: 14px; text-transform: uppercase;
  color: #fff; background: var(--black);
  border: 0; border-radius: 100px;
  padding: 16px 40px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .5em;
  transition: padding .3s ease;
}
.btn-pill::after { content: "\2192"; }
.btn-pill:hover { padding-left: 34px; padding-right: 46px; }
.btn-pill:disabled { opacity: .6; cursor: wait; }

.form-status { margin-top: 16px; color: var(--black); font-weight: 700; min-height: 1.7em; }
.form-status.is-error { color: #fff; }

/* ---------- Footer ---------- */

.site-footer { background: #222; }
.footer-bottom {
  background: rgba(0, 0, 0, .32);
  padding: 15px 0 5px;
  color: #666;
  font-size: 14px;
}
.footer-bottom .footer-inner { width: 80%; max-width: 1080px; margin: 0 auto; padding-bottom: 10px; }

/* ---------- 404 ---------- */

.not-found { min-height: 50vh; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  :root { --header-h: 66px; --header-h-shrunk: 66px; }

  .section { padding: 50px 0; }
  .row { padding: 30px 0; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 3px solid var(--red);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; width: 80%; margin: 0 auto; padding: 5% 0; }
  .main-nav a { display: block; padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); }

  .cols { flex-direction: column; gap: 30px; }
  .cols > * { flex-basis: auto; width: 100%; }
  .cols > :empty { display: none; }
  .align-right { justify-content: flex-start; }

  .text-button { font-size: 20px; }
  .section-title, .listing__name { font-size: 32px; }
  .listing__info { text-align: left; }
  .listing__desc { font-size: 15px; }
  .listing__url { font-size: 15px; }
  .listing__url.listing__cta { font-size: 20px; }
}

@media (max-width: 767px) {
  .listing { flex-wrap: wrap; row-gap: 12px; }
  .listing > * { flex: 1 1 100%; }

  .text-button { font-size: 16px; }
  .section-title, .listing__name { font-size: 20px; }
  .listing__url { font-size: 14px; }
  .listing__url.listing__cta { font-size: 16px; }

  .contact-form .field { flex-basis: 100%; }
  .contact-form .actions { justify-content: flex-start; }
}

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