/* ============================================================
   Megan Davies – Static Site Stylesheet
   Faithfully recreates megandaviesmusic.com
   Template origin: Squarespace Bedford / dark theme
   ============================================================ */

/* ----- CSS Variables ----- */
:root {
  --bg-dark:          #000000;
  --bg-dark-alt:      #2e2e2e;
  --text-primary:     #ffffff;
  --text-muted:       #cccccc;
  --text-dark:        #222222;
  --border-color:     #333333;
  --btn-bg:           #3e3e3e;
  --btn-text:         #ffffff;
  --btn-hover-bg:     #000000;
  --font-primary:     'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono:        'Source Code Pro', monospace;
  --header-height:    50px;
  --max-width:        1200px;
  --section-pad-v:    80px;
  --section-pad-h:    40px;
  --nav-font-size:    16px;
  --nav-letter-spacing: 1.01px;
  --transition:       0.2s ease;
}

/* ----- Reset ----- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Section links scroll slowly via main.js, so no CSS smooth scrolling here
   (it would fight the script's animation) */

/* Sections get focus after a nav click (main.js) – no ring around the whole section */
.index-section[tabindex="-1"]:focus {
  outline: none;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ----- Accessibility ----- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* "Skip to content" – hidden until it receives keyboard focus */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2000;
  padding: 10px 16px;
  background-color: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* White focus rings vanish on the light sections – use dark ones there */
.page-section :focus-visible,
.section-music :focus-visible,
.section-videos :focus-visible,
.skip-link:focus-visible {
  outline-color: #111111;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   HEADER + NAVIGATION
   ============================================================ */

/* Full header (with logo) scrolls away with the page; once it's out of
   view, main.js adds .header--scrolled and a logo-free bar fades in. */
#header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: #7f5757;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#header.header--scrolled {
  position: fixed;
  animation: header-bar-in 0.14s ease-in-out;
}

/* Page opened already scrolled – show the bar without sliding it in */
#header.header--instant {
  animation: none;
}

@keyframes header-bar-in {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}

/* Stacked logo row – mobile only (desktop logo sits inside the nav) */
#logoWrapper {
  display: none;
  text-align: center;
  padding: 14px 0 2px;
}

.header--scrolled #logoWrapper {
  display: none !important;
}

#logoImage {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

#logoImage a {
  display: inline-block;
}

#logoImage img {
  width: 300px;
  height: auto;
  display: block;
}

/* Nav row */
.header-nav-bar {
  width: 100%;
  min-height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 0 17px;
}

/* Three columns – links | logo | links – with equal side columns, so the
   logo sits dead-center from the first paint (no JavaScript nudging,
   which caused the header text to jump on every page load) */
.header-nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-nav .nav-group {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  list-style: none;
  gap: 0;
}

.header-nav .nav-group--left {
  justify-content: flex-end;
}

.header-nav .nav-group--right {
  justify-content: flex-start;
}

/* Scrolled bar has no logo: center the whole row of links instead */
.header--scrolled .header-nav {
  grid-template-columns: auto auto;
  justify-content: center;
}

.header-nav ul li a {
  display: block;
  padding: 14px 14px;
  font-family: var(--font-primary);
  font-size: var(--nav-font-size);
  font-weight: 700;
  letter-spacing: var(--nav-letter-spacing);
  text-transform: uppercase;
  color: var(--text-primary);
  white-space: nowrap;
  transition: color 0.1s ease-in-out;
}

.header-nav ul li a:hover {
  color: #fdc621;
}

.header-nav ul li.active > a {
  color: #fdc621;
}

/* Centered logo inside the desktop nav – left out of the scrolled bar */
.header-nav .nav-logo {
  padding: 0 24px;
}

.header-nav .nav-logo a {
  display: block;
  padding: 12px 0;
}

.header-nav .nav-logo img {
  width: 260px;
  max-width: none;
  height: auto;
  display: block;
}

.header--scrolled .header-nav .nav-logo {
  display: none;
}

/* Mobile hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%);
}

.mobile-menu-btn .bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Hamburger → X animation */
.mobile-menu-btn[aria-expanded="true"] .top-bar {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] .middle-bar {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn[aria-expanded="true"] .bottom-bar {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0 24px;
  z-index: 999;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
}

.mobile-nav ul li a {
  display: block;
  padding: 12px 24px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color var(--transition);
}

.mobile-nav ul li:last-child a {
  border-bottom: none;
}

.mobile-nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 11px 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background-color var(--transition), color var(--transition);
}

.btn-primary {
  background-color: var(--btn-bg);
  color: var(--btn-text);
}

.btn-primary:hover {
  background-color: var(--btn-hover-bg);
  color: #fff;
}

/* ============================================================
   COMMON SECTION LAYOUT
   ============================================================ */

.index-section,
.page-section {
  width: 100%;
  position: relative;
  /* Offset anchor scroll so fixed header doesn't cover the section top */
  scroll-margin-top: var(--header-height);
}

.section-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad-v) var(--section-pad-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.section-heading-img {
  max-width: 500px;
  width: 80%;
}

/* Heading images sit inside real <h2>s; the h2 takes the sizing classes
   and the image just fills it */
.section-heading {
  font-size: inherit;
  line-height: 0;
}

.section-heading img {
  width: 100%;
}

/* ============================================================
   SECTION 1 – HOME (hero)
   ============================================================ */

.section-home {
  background-color: var(--bg-dark);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100% - var(--header-height));
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
}

/* ============================================================
   SECTION 2 – MEG + JAC
   paper-texture-11 = warm dusty rose/cream; B&W photo fills section
   ============================================================ */

.section-megandjac {
  background-color: #000;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.megandjac-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

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

.section-megandjac .section-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 80px;
  padding-top: 0;
  gap: 0;
}

.section-megandjac .btn-primary {
  background-color: #b5885e;
  color: #fff;
  padding: 20px 44px;
  font-size: 16px;
  letter-spacing: 0.1em;
}
.section-megandjac .btn-primary:hover {
  background-color: #b5885e;
  color: #fff;
  opacity: 0.8;
}

/* ============================================================
   SECTION 3 – MUSIC
   Light background: album art, badges, and Spotify player are all light
   ============================================================ */

.section-music {
  background-image: url('../assets/images/paper-texture-11.jpg');
  background-image: image-set(url('../assets/images/paper-texture-11.webp') type('image/webp'), url('../assets/images/paper-texture-11.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #111;
}

/* Scroll fade-in (main.js adds .reveal, then .is-revealed when in view) */
.reveal {
  opacity: 0;
  translate: 0 40px;
}

/* Transition only on the way in, so hiding on page load is instant */
.reveal.is-revealed {
  opacity: 1;
  translate: 0 0;
  transition: opacity 1s ease, translate 1s ease;
}

/* Badges look best with a tiny shadow so they don't disappear on light bg */
.section-music .platform-link img {
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}

.album-link {
  display: block;
}

.album-art {
  width: 100%;
  max-width: 900px;
  object-fit: cover;
}

/* Platform badges */
.platform-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
}

/* Badges are list items; keep them as tight as plain links */
.platform-badges li {
  display: flex;
}

.platform-link {
  display: inline-block;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.platform-link:hover {
  opacity: 1;
}

.platform-link img {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}


/* Music carousel */

.music-carousel {
  position: relative;
  width: 100%;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* side padding leaves room for the arrows; bottom leaves room for the dots */
  padding: var(--section-pad-v) calc(var(--section-pad-h) + 56px) 64px;
  text-align: center;
  gap: 32px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  width: 52px;
  height: 52px;
  cursor: pointer;
  padding: 0;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.carousel-btn:hover:not(:disabled) {
  background: #e8e8e8;
}

.carousel-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

/* Dots sit over the bottom of the slides so a full-bleed slide can fill the section */
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.section-music.on-full-bleed .carousel-dot {
  background-color: #fff;
  opacity: 0.5;
}

.section-music.on-full-bleed .carousel-dot.active {
  opacity: 1;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #555;
  opacity: 0.3;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.carousel-dot.active {
  opacity: 1;
}

/* Without JavaScript, show every release stacked instead of a carousel */
html:not(.js) .carousel-track {
  flex-direction: column;
}

html:not(.js) .carousel-btn,
html:not(.js) .carousel-dots {
  display: none;
}

.carousel-cta {
  padding: 20px 44px;
  font-size: 16px;
  letter-spacing: 0.1em;
  background-color: #f7c265;
  color: #111;
  border: none;
}

.carousel-cta:hover {
  background-color: #fad894;
  color: #111;
}

/* Full-bleed slide variant */
.carousel-slide--full-bleed {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 64px;
  gap: 0;
}

.carousel-slide--full-bleed .album-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.carousel-slide--full-bleed .album-art {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.carousel-slide--full-bleed .carousel-cta {
  position: relative;
  z-index: 1;
  background-color: #fff;
  color: #111;
}

.carousel-slide--full-bleed .carousel-cta:hover {
  background-color: #f7c265;
  color: #111;
}

/* ============================================================
   SECTION 4 – VIDEOS
   paper-texture-07 = light gray/white; VIDEOS.png heading has dark text
   ============================================================ */

.section-videos {
  background-image: url('../assets/images/paper-texture-07.jpg');
  background-image: image-set(url('../assets/images/paper-texture-07.webp') type('image/webp'), url('../assets/images/paper-texture-07.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #111;
}

/* Videos + Sign Up follow the live site's 12-column grid: 1080px
   content box with 34px gutters, headings left-aligned on the grid */
.section-videos .section-content,
.section-subscribe .section-content {
  max-width: 1080px;
  padding-left: 34px;
  padding-right: 34px;
}

.section-videos .section-content {
  align-items: center;
  text-align: center;
}

/* VIDEOS.png has white background; multiply blends it into the light paper texture.
   Spans 5 of 12 columns, left-aligned (as on the live site). */
.section-videos .section-heading-img {
  mix-blend-mode: multiply;
  align-self: flex-start;
  width: calc((100% + 34px) * 5 / 12 - 34px);
  max-width: none;
  /* The PNG has 75px of blank space left of the "V" (75/1024 = 7.32%);
     shift it so the lettering lines up with the left edge of the videos */
  translate: -7.32% 0;
}

.section-videos .btn-primary {
  background-color: #fff;
  color: #111;
  padding: 19px 43px; /* 1px less to make room for the border */
  font-size: 16px;
  letter-spacing: 0.1em;
  border: 1px solid #111;
}
.section-videos .btn-primary:hover {
  background-color: #f7c265;
  color: #111;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  width: 100%;
  max-width: 1100px;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   SECTION 5 – SUBSCRIBE
   lofi-screenshot.jpg is already dark/desaturated — white SIGN UP heading reads clearly over it
   ============================================================ */

.section-subscribe {
  background-image: url('../assets/images/lofi-screenshot.jpg');
  background-image: image-set(url('../assets/images/lofi-screenshot.webp') type('image/webp'), url('../assets/images/lofi-screenshot.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}

/* Slight dark overlay to ensure text legibility */
.section-subscribe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.section-subscribe .section-content {
  position: relative;
  z-index: 1;
  align-items: center;
  text-align: center;
  padding-top: calc(var(--section-pad-v) + 100px);
  padding-bottom: calc(var(--section-pad-v) + 100px);
}

/* SIGN UP heading spans 11 of 12 columns, left-aligned (as on the live site).
   The tagline and form line up under it. */
.section-subscribe .section-heading-img {
  align-self: flex-start;
  width: calc((100% + 34px) * 11 / 12 - 34px);
  max-width: none;
}

.section-subscribe .subscribe-tagline,
.section-subscribe .subscribe-form {
  align-self: flex-start;
  text-align: left;
}

.subscribe-tagline {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.subscribe-form {
  width: 100%;
  max-width: 560px;
}

/* ---- Kit newsletter form (rendered by Kit's JS embed) ----------------
   Kit injects its own stylesheet and inline styles, so these rules are
   scoped under #subscribe-section and use !important only where Kit sets
   inline style attributes (input/button colors, borders, radius).
   Fields/labels/success text are managed in Kit, not here. */

#subscribe-section .formkit-form {
  max-width: none;
  margin: 0;
  font-family: var(--font-primary);
}

#subscribe-section .formkit-form [data-style="clean"] {
  padding: 0;
}

/* Two columns on desktop: First | Last, Email | ZIP, then the button */
#subscribe-section .formkit-form .formkit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

#subscribe-section .formkit-form .formkit-field,
#subscribe-section .formkit-form .formkit-submit {
  margin: 0;
}

#subscribe-section .formkit-form .formkit-input {
  padding: 11px 16px;
  background-color: #fff;
  border: 1px solid #fff !important;
  border-radius: 0 !important;
  color: #111 !important;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400 !important;
  line-height: 1.4;
}

#subscribe-section .formkit-form .formkit-input::placeholder {
  color: #767676;
  opacity: 1;
}

#subscribe-section .formkit-form .formkit-input:focus {
  border-color: #f7c265 !important;
}

/* "required" hint inside any field Kit marks as required
   (follows the form's settings in Kit automatically) */
#subscribe-section .formkit-form .formkit-field:has(.formkit-input:required) {
  position: relative;
}

#subscribe-section .formkit-form .formkit-field:has(.formkit-input:required)::after {
  content: 'required';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  font-family: var(--font-primary);
  font-size: 11px;
  font-style: italic;
  color: #767676;
  pointer-events: none;
}

#subscribe-section .formkit-form .formkit-input:required {
  padding-right: 80px;
}

/* Subscribe button – matches the site's white → gold buttons */
#subscribe-section .formkit-form .formkit-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
  background-color: #fff !important;
  color: #111 !important;
  border-radius: 0 !important;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color var(--transition);
}

#subscribe-section .formkit-form .formkit-submit:hover,
#subscribe-section .formkit-form .formkit-submit:focus-visible {
  background-color: #f7c265 !important;
}

#subscribe-section .formkit-form .formkit-submit > span {
  padding: 11px 26px;
  background: none;
}

/* Kit's success / error messages */
#subscribe-section .formkit-form .formkit-alert {
  margin: 0 0 12px;
  border-radius: 0;
  font-size: 13px;
  text-align: left;
}

#subscribe-section .formkit-form .formkit-powered-by-convertkit-container {
  margin-top: 12px;
}

/* "Built with Kit" badge – required on Kit's free plan, so it stays visible;
   recolored white and softened so it suits the dark photo background */
#subscribe-section .formkit-form .formkit-powered-by-convertkit {
  margin: 0;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

#subscribe-section .formkit-form .formkit-powered-by-convertkit:hover,
#subscribe-section .formkit-form .formkit-powered-by-convertkit:focus {
  opacity: 0.9;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.page-about main {
  padding-top: var(--header-height);
}

.page-about .page-section {
  background-color: #ffffff;
  min-height: calc(100vh - var(--header-height));
}

.section-about .section-content {
  display: block;
  padding-top: 140px;
  padding-bottom: 100px;
  padding-left: calc(var(--section-pad-h) + 24px);
  padding-right: calc(var(--section-pad-h) + 24px);
}

.section-about .section-content::after {
  content: '';
  display: table;
  clear: both;
}

.about-photo {
  float: left;
  width: 360px;
  margin: 0 40px 20px 0;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-bio {
  color: #333333;
  font-size: 15px;
  line-height: 1.85;
}

.about-bio a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

.about-bio a:hover {
  opacity: 0.6;
}

.about-bio p + p {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .section-about .section-content {
    padding-top: 120px;
  }

  .about-photo {
    float: none;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 32px;
  }

  .about-bio {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .about-photo {
    max-width: 100%;
  }

  .section-about .section-content {
    padding-top: 100px;
  }
}

/* ============================================================
   SHOWS PAGE
   ============================================================ */

.page-shows main {
  padding-top: var(--header-height);
}

.page-shows .page-section {
  background-color: #ffffff;
  min-height: calc(100vh - var(--header-height));
}

.page-title {
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #333333;
  margin-bottom: 16px;
}

.tourdates-widget,
.bandsintown-widget {
  width: 100%;
  max-width: 800px;
}

.no-shows-msg {
  font-family: var(--font-primary);
  font-size: 13px;
  color: #666666;
  margin-top: 24px;
  display: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

#footer {
  background-color: var(--bg-dark-alt);
  border-top: 1px solid var(--border-color);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px var(--section-pad-h) 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer-heading-img {
  max-width: 280px;
  width: 60%;
  margin-top: 20px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--text-primary);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.social-links a:hover {
  opacity: 1;
}

.social-links svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.business-name {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-email {
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--text-primary);
  transition: opacity var(--transition);
}

.contact-email:hover {
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  font-family: var(--font-primary);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fdc621;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.copyright {
  font-family: var(--font-primary);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE – Tablet (≤ 1024px)
   ============================================================ */

@media (max-width: 1024px) {
  .header-nav ul li a {
    padding: 12px 10px;
    font-size: 13px;
  }

  .header-nav .nav-logo {
    max-width: 200px;
    padding: 0 12px;
  }

  .header-nav .nav-logo img {
    width: 170px;
  }

  .video-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
  }
}

/* Small tablets – tighten the nav so both link groups still fit beside the logo */
@media (min-width: 768px) and (max-width: 900px) {
  .header-nav ul li a {
    padding: 12px 7px;
    font-size: 12px;
  }

  .header-nav .nav-logo {
    padding: 0 8px;
  }

  .header-nav .nav-logo img {
    width: 150px;
  }
}

/* ============================================================
   RESPONSIVE – Mobile (≤ 767px)
   ============================================================ */

@media (max-width: 767px) {
  :root {
    --header-height:    44px;
    --section-pad-v:    60px;
    --section-pad-h:    20px;
  }

  /* Hide desktop nav, show hamburger */
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  /* The nav row is empty on mobile – collapse it and center the hamburger
     on the whole header (beside the logo); the scrolled bar keeps its height */
  .header-nav-bar {
    position: static;
    min-height: 0;
  }

  .header--scrolled .header-nav-bar {
    min-height: 44px;
  }

  #logoWrapper {
    display: block;
    padding: 10px 0 8px;
  }

  #logoImage img {
    width: 200px;
    margin: 0 auto;
  }

  /* Hero */
  .section-home {
    min-height: 100svh;
  }

  .hero-logo {
    width: 280px;
  }

  /* Platform badges */
  .platform-badges {
    gap: 10px;
  }

  .platform-link img {
    height: 32px;
    max-width: 100px;
  }

  /* Videos */
  .video-grid {
    grid-template-columns: 1fr;
  }

  .section-videos .section-content,
  .section-subscribe .section-content {
    padding-left: var(--section-pad-h);
    padding-right: var(--section-pad-h);
  }

  .section-videos .section-heading-img {
    width: 75%;
  }

  .section-subscribe .section-heading-img {
    width: 100%;
  }

  /* Kit subscribe form – one column, full-width button */
  #subscribe-section .formkit-form .formkit-fields {
    grid-template-columns: 1fr;
  }

  #subscribe-section .formkit-form .formkit-submit {
    justify-self: stretch;
  }

  /* Footer */
  .footer-inner {
    padding: 24px 20px 36px;
    gap: 24px;
  }

  .footer-heading-img {
    width: 50%;
  }
}

/* ============================================================
   RESPONSIVE – Small mobile (≤ 390px)
   ============================================================ */

@media (max-width: 390px) {
  .hero-logo {
    width: 220px;
  }

  .section-heading-img {
    width: 90%;
  }

  .platform-badges {
    gap: 8px;
  }

  .platform-link img {
    height: 28px;
    max-width: 90px;
  }
}

/* ============================================================
   LINKS + 404 PAGES
   Same white page layout as Tour
   ============================================================ */

.page-links main,
.page-404 main {
  padding-top: var(--header-height);
}

.page-links .page-section,
.page-404 .page-section {
  background-color: #ffffff;
  min-height: calc(100vh - var(--header-height));
}

.section-links .section-content,
.section-not-found .section-content {
  padding-top: 140px;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.link-list .btn {
  display: block;
  padding: 16px 26px;
  font-size: 13px;
}

.not-found-msg {
  color: #333333;
  font-size: 15px;
  text-align: center;
}

@media (max-width: 767px) {
  .section-links .section-content,
  .section-not-found .section-content {
    padding-top: 100px;
  }
}
