/* ==========================================================================
   Harry Jackson Travel — "World's Worst Travel Agents"
   Deliberately tacky 90s-travel-agency styling.

   Fonts are self-hosted (see /fonts) rather than pulled from a CDN at
   runtime, so there's no dependency on venue wifi during the speech, but
   the look is still identical on every phone - Impact/Comic Sans MS are
   Windows-only fonts and silently fall back to plain sans-serif on iOS/
   Android, which is why this used to look "completely different" on
   phones.
   ========================================================================== */

@font-face {
  font-family: 'Bangers';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bangers-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Comic Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/comic-neue-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Comic Neue';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/comic-neue-bold.woff2') format('woff2');
}

:root {
  --hot-pink: #ff2d95;
  --sunset-orange: #ff7a18;
  --sunshine-yellow: #ffd400;
  --deep-purple: #3d0e5c;
  --ink: #1a0a26;
  --paper: #fff8e7;
  --gold: #ffcf40;

  --font-heading: 'Bangers', Impact, 'Arial Black', 'Franklin Gothic Bold', sans-serif;
  --font-body: 'Comic Neue', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Marquee ticker
   -------------------------------------------------------------------------- */

.ticker {
  background: var(--ink);
  color: var(--sunshine-yellow);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 3px dashed var(--gold);
  position: relative;
  z-index: 20;
}

.ticker__track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker-scroll 22s linear infinite;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* --------------------------------------------------------------------------
   Buttons — chunky 3D beveled naff-o-vision
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.3rem;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sunshine-yellow), var(--gold));
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--ink), 0 10px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--ink), 0 6px 14px rgba(0, 0, 0, 0.45);
}

.btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--ink), 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   SALE starburst badge
   -------------------------------------------------------------------------- */

.sale-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 120px;
  height: 120px;
  background: var(--hot-pink);
  color: var(--paper);
  border-radius: 50%;
  clip-path: polygon(
    50% 0%, 61% 18%, 82% 8%, 82% 30%, 100% 35%, 88% 50%,
    100% 65%, 82% 70%, 82% 92%, 61% 82%, 50% 100%, 39% 82%,
    18% 92%, 18% 70%, 0% 65%, 12% 50%, 0% 35%, 18% 30%,
    18% 8%, 39% 18%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.15;
  transform: rotate(-12deg);
  z-index: 10;
  animation: badge-wobble 2.4s ease-in-out infinite;
  box-shadow: 0 0 0 4px var(--ink);
}

@keyframes badge-wobble {
  0%,
  100% {
    transform: rotate(-12deg) scale(1);
  }
  50% {
    transform: rotate(-6deg) scale(1.06);
  }
}

/* --------------------------------------------------------------------------
   Hero section (index.html)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh; /* avoids mobile browser chrome cutting off the bottom of him */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-image:
    linear-gradient(
      to bottom,
      rgba(61, 14, 92, 0.2) 0%,
      rgba(26, 10, 38, 0.35) 55%,
      rgba(26, 10, 38, 0.88) 100%
    ),
    url('../hero-lycra.jpeg'),
    radial-gradient(circle at center, var(--sunset-orange) 0%, var(--hot-pink) 45%, var(--deep-purple) 100%);
  /* "contain" (rather than "cover") on the photo layer guarantees his full
     body is always visible, on every device, regardless of exact screen
     aspect ratio - the sunset-gradient layer behind fills in any letterboxed
     space instead of leaving it blank. */
  background-size: cover, contain, cover;
  background-position: top center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
}

.hero__content {
  max-width: 640px;
  color: var(--paper);
}

.hero__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sunshine-yellow);
  text-shadow: 2px 2px 0 var(--ink);
  margin: 0 0 0.5rem;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 9vw, 4rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--paper);
  text-shadow:
    3px 3px 0 var(--hot-pink),
    6px 6px 0 var(--ink);
  -webkit-text-stroke: 1px var(--ink);
}

.hero__text {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0 0 1.1rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.9);
}

.hero__cta {
  margin-top: 1.5rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  animation: bounce 1.6s ease-in-out infinite;
  text-shadow: 2px 2px 0 var(--ink);
}

@keyframes bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* --------------------------------------------------------------------------
   Below-the-fold sections on index.html
   -------------------------------------------------------------------------- */

.section {
  padding: 3.5rem 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 2rem;
  text-align: center;
  color: var(--hot-pink);
  text-shadow: 2px 2px 0 var(--ink);
  margin: 0 0 1.5rem;
}

.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.perks li {
  background: #fff;
  border: 3px dashed var(--sunset-orange);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  font-size: 1.05rem;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.15);
}

.reviews {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.review {
  background: linear-gradient(135deg, #fff, #fff2cc);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: 5px 5px 0 var(--deep-purple);
}

.review__stars {
  color: var(--sunset-orange);
  letter-spacing: 0.15em;
  font-size: 1.1rem;
}

.review__quote {
  margin: 0.4rem 0 0.3rem;
  font-style: italic;
}

.review__author {
  margin: 0;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--deep-purple);
}

/* --------------------------------------------------------------------------
   Site footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 2rem 1.25rem;
}

.site-footer__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.badge {
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-family: var(--font-heading);
}

.site-footer__fine-print {
  font-size: 0.75rem;
  opacity: 0.7;
  margin: 0.3rem 0;
}

.site-footer__copyright {
  font-size: 0.85rem;
  margin-top: 0.8rem;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Gallery page header/nav
   -------------------------------------------------------------------------- */

.site-header {
  background: linear-gradient(90deg, var(--hot-pink), var(--sunset-orange), var(--sunshine-yellow));
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  border-bottom: 4px solid var(--ink);
}

.site-header__logo {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.site-header__back {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
}

.gallery-page {
  background: linear-gradient(160deg, var(--deep-purple), var(--ink) 70%);
  min-height: 100vh;
}

.gallery-page__intro {
  text-align: center;
  color: var(--paper);
  padding: 2rem 1.25rem 1rem;
}

.gallery-page__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--sunshine-yellow);
  text-shadow: 3px 3px 0 var(--hot-pink);
  margin: 0 0 0.5rem;
}

.gallery-page__subtitle {
  font-size: 1.05rem;
  margin: 0;
}

.gallery-status {
  text-align: center;
  color: var(--paper);
  padding: 1rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Photo grid
   -------------------------------------------------------------------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  padding: 1rem 0.8rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 560px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 860px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
  }
}

@media (min-width: 1150px) {
  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 3px solid var(--gold);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--deep-purple);
  padding: 0;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease;
}

.gallery-item:hover {
  transform: scale(1.03) rotate(-1deg);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 3, 15, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__figure {
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  position: relative;
  text-align: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  border: 3px solid var(--gold);
  border-radius: 10px;
  margin: 0 auto;
}

.lightbox__caption {
  color: var(--paper);
  font-size: 0.85rem;
  margin-top: 0.6rem;
  opacity: 0.7;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: var(--sunshine-yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-heading);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close {
  top: -0.5rem;
  right: -0.5rem;
}

.lightbox__nav--prev {
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__nav--next {
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 640px) {
  .lightbox__nav--prev {
    left: 0.25rem;
  }

  .lightbox__nav--next {
    right: 0.25rem;
  }

  .lightbox__close {
    top: 0.25rem;
    right: 0.25rem;
  }
}
