* {
  box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 60, 160, 0.40) 0%,
    rgba(20, 60, 120, 0.15) 100%
  );
  pointer-events: none;
  z-index: -1;
}

body {
  background-image: url("https://assets.mahaneyvoice.com/site/images/DowntownRochesterAtDawn.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: yellow;
  text-align: center;
  font-weight: 600;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  max-width:100%;
  width:1200px;
}

h1, h2, h3, .section-title {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 700;
}

body, p {
    font-family: 'Nunito', sans-serif !important;
}

/* OUTER WRAPPER — TRUE CENTERING */
.page-wrapper {
    /* max-width: 1000px; */
    width: 90%;
    margin: 0 auto;
    background-color: transparent;
    padding: 0 20px;
}

/* MAIN GRID — NO WIDTH CONFLICTS */
.index-grid-container-center {
  display: grid;
  grid-template-areas:
    'header'
    'divider1'
    'demo'
    'divider2'
    'testimonials'
    'divider3'
    'bio'
    'divider4'
    'footer';
  width: 100%;
  margin: 0 auto;
  background-color: transparent;
  grid-auto-rows: auto;
  gap: 10px;
}

/* HEADER */
#header {
  width: 100%;
  margin: 0 auto;
  grid-area: header;
  color: yellow;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-left img {
  max-width: 150px;
  height: auto;
}

.header-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.header-text h1,
.header-text h2,
.header-text p {
    margin: 0;
    padding: 0;
}

.header-right {
    white-space: nowrap;
    font-weight: bold;
}

.header-right a {
    color: yellow;
    text-decoration: none;
    margin: 0 5px;
}

.divider1 {
  grid-area: divider1;
}

/* DEMO SECTION */
#demo {
  width: 100%;
  margin: 0 auto;
  grid-area: demo;
  min-height: 440px;
}

#demo-block {
  max-width: 400px;
  margin: 0 auto;
}

#demo-block > h2 {
  text-align: left;
}

#demo-block .demo-player {
  background: rgba(20, 60, 160, 0.40);
  color: #fff;
  padding: 1rem;
  border-radius: 10px 10px 0 0;
  margin-bottom: 0;
}

#demo-block .demo-player__title {
  text-align: center;
  font-size: 1.0rem;
  margin-bottom: 0.25rem;
}

#demo-block .demo-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding-top: .5rem;
}

#demo-block .demo-player__prev,
#demo-block .demo-player__play,
#demo-block .demo-player__next {
  background: #222;
  color: #fff;
  border: none;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

#demo-block .demo-player__play {
  background: #e0b04b;
  color: #111;
}

#demo-block .demo-player__progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#demo-block .demo-time {
  font-size: 0.85rem;
  opacity: 0.8;
  min-width: 90px;
}

#waveform-canvas {
  width: 100%;
  height: 36px;
  display: block;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
}

#waveform-canvas {
    --wave-normal: #e0b04b;
    --wave-fast:   #ffd98a;
    --wave-bg:     rgba(224,176,75,0.25);
}

#demo-block .demo-volume-wrap {
  position: relative;
  padding-bottom: 6px;
}

#demo-block .demo-volume-icon {
  cursor: pointer;
  font-size: 1.2rem;
}

#demo-block .demo-volume-slider {
  position: absolute;
  left: 25%;
  transform: translateX(-50%);
  bottom: 75%;
  width: 1px;
  padding: 0;
  height: 80px;
  display: none;
  writing-mode: vertical-lr;
  direction: rtl;
  background-color: gold;
}

#demo-block .demo-volume-wrap:hover .demo-volume-slider,
.demo-volume-slider:hover {
  display: block;
}

/* PLAYLIST */
#demo-block .demo-playlist {
  display: block;
  width: 100%;
  margin-top: 0;
  padding: 0;
  font-style: normal;
  font-size: .3275rem;
  font-weight: 400;
  list-style: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

#demo-block .demo-playlist__item {
  display: flex;
  justify-content: space-between;
  background: rgba(20, 60, 120, 0.15);
  border: 1px solid rgba(20, 60, 120, 0.25);
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  color: #fff;
  width: 100%;
}

.demo-playlist__item:last-child {
  border-radius: 0 0 10px 10px;
}

.demo-playlist__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  width: 100%;
  font-size: .75rem;
  font-weight: 400;
}

.demo-playlist__index {
  width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.demo-number,
.demo-icon {
  position: absolute;
  left: 0;
  right: 0;
}

.demo-icon {
  opacity: 0;
}

.demo-number {
  opacity: 1;
  font-size: larger;
  font-weight: 400;
}

.demo-playlist__item:hover .demo-number,
.demo-playlist__item:hover .demo-icon {
  transition: opacity 0.2s ease;
  color: rgb(224, 186, 90);
}

.demo-playlist__item:hover .demo-playlist__download {
    visibility: visible;
}

.demo-playlist__item:hover .demo-number {
  opacity: 0;
}

.demo-playlist__item:hover .demo-icon {
  opacity: 1;
}

.demo-playlist__item.playing .demo-number {
  opacity: 0;
}

#demo-block .demo-playlist__item.is-active {
  border-color: #e0b04b;
  color: rgb(224, 186, 90);
}

.demo-playlist__item.playing .demo-icon {
  opacity: 1;
}

#demo-block .demo-playlist__title {
  flex: 1;
  text-align: left;
}

#demo-block .demo-playlist__duration {
  width: 50px;
  text-align: right;
  opacity: 0.8;
  font-size: 0.9rem;
  margin-right: 0.75rem;
}

.demo-playlist__download {
  color: #e0b04b;
  font-size: 1.25rem;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.demo-playlist__item:not(.playing):hover .demo-number {
  opacity: 0;
}

.demo-playlist__item:not(.playing):hover .demo-icon {
  opacity: 1;
}

.demo-playlist__item:not(.playing):hover .demo-playlist__download {
  opacity: 1;
  pointer-events: auto;
}

.demo-playlist__item.playing .demo-playlist__download {
  opacity: 1;
  pointer-events: auto;
}

#demo > h2 {
  text-align: left;
}

.divider2 {
  grid-area: divider2;
}

/* TESTIMONY */
#testimonials {
  grid-area: testimonials;
  text-align: center;
  color: white;
  font-style: italic;
  font-weight: 400;
  width: 100%;
  max-width: 100%;
}

#testimonials .author {
  font-style: normal;
  color: yellow;
  font-weight: bold;
}

.divider3 {
  grid-area: divider3;
}

/* BIO */
#bio {
  grid-area: bio;
  text-align: left;
  width: 100%;
  margin: 0 auto;
}

#bio-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
}

#bio-info img {
  float: right;
  width: 150px;
  height: auto;
  margin: 1rem 0 1rem 1rem;
  border-radius: 0.75rem;
  padding: 0;
  image-rendering: optimizeQuality;
}

.divider4 {
  grid-area: divider4;
}

/* FOOTER */
#footer {
  grid-area: footer;
  width: 100%;
  margin: 0 auto;
  height:auto;
}

.foot {
  text-align: center;
  padding: 1.25rem;
  font-size: .75rem;
  color: rgb(173, 162, 243);
}

.foot a {
  text-decoration: none;
  margin: 0 5px;
  color: rgb(173, 162, 243);
}

.badge {
    margin-bottom: 10px;
    width: 100%;
    text-align:center;
    height:auto;
}

.notice {
  font-size: 1rem;
  color: whitesmoke;
  font-weight: 400;
}

/* MICRO DIVIDER — FIXED */
.micro-divider {
    width: 60%;
    max-width: 80%;
    margin: .9375rem auto;
    text-align: center;
    color: #A2C4C9;
    white-space: nowrap;
    overflow: hidden;
    font-size: .55rem;
    letter-spacing: 1px;
    text-transform: lowercase;
    padding-bottom: .325rem;
    padding-top: .5rem;
    font-family: 'Comic Neue', cursive !important;
    font-weight: 400;
}

/* CONTACT PAGE */
.cf-turnstile {
    display: block;
    min-height: 5px;
    margin-top: 5px;
}

.contact-grid-container-center {
  display: grid;
  grid-template-areas:
    'header'
    'divider1'
    'contact'
    'divider2'
    'footer';
  background-color: transparent;
  grid-auto-rows: auto;
  grid-gap: 10px;
  width: 100%;
  max-width: 100%;
}

#header { grid-area: header; }
.divider1 { grid-area: divider1; }
.divider2 { grid-area: divider2; }
#footer { grid-area: footer; }

.contact {
  grid-area: contact;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-areas: 'form booking';
  gap: 40px;
  width: 100%;
  max-width: 100%;
  text-align: left;
  align-items: start;
  margin:0;
}

.form {
  grid-area: form;
  display: flex;
  flex-direction: column;
  gap: 10px;
  
}

.contact .form h2 {
  margin-bottom: 0;
}

.contact .form > h2 + #name {
  margin-top: -10px;
}

#name {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width:100%;
  margin-top: 0;
}

#name > div{
  flex:1;
  min-width:0;
}

#name input {
  width: 100%;
  box-sizing: border-box;
}

.last_name {
  margin-left: 10px;
}

#email, #subject, #message, #drop_zone {
  width: 100%; 
  max-width: 100%;
}

.required {
  font-size: smaller;
  margin-top: -10px;
  padding: 0;
  border: none;
 
}

#file-upload-area {
  margin-top: 20px;
}

#drop_zone {
  border: 2px dashed #888;
  padding: 25px;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  display: block;
  width: 100%;
  max-width: 100%;
}

#drop_zone:hover {
  border-color: #444;
  background: #f7f7f7;
}

#drop_zone.dragover {
  border-color: #1a73e8;
  background: #e8f0fe;
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.7;
}

#file_upload {
  display: none;
}

#file_name_display {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

#submit-btn {
  border-radius: 12px;
  background-color: darkblue;
  color: yellow;
  border-width: 1px;
  border-color: yellow;
  font-size: larger;
  padding: .25rem;
}

.booking {
  grid-area: booking;
  text-align: left;
  margin: 0;
}

/* @media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
    grid-template-areas:
      "form"
      "booking";
    gap: 20px;
  }

  .form,
  .booking {
    width: 100%;
    max-width: 100%;
  }
  /* HEADER becomes vertical */
  /*.site-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  /* Logo centered */
  /*.header-left {
    flex-direction: column;
    align-items: center;
  }

  /* Name + tagline centered */
  /*.header-text h1 {
    font-size: 1.8rem;
  }

  .header-text h2 {
    font-size: 1.2rem;
  }

  .header-text p {
    font-size: 1rem;
  }

  /* NAV drops below name */
  /*.header-right ul {
    justify-content: center;
    gap: 20px;
  }

  .header-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  footer {
    font-size: 0.9rem;
    text-align: center;
  }

  .badge img {
    max-width:100%;
    height:auto;
  }
}

@media (max-width: 600px) {

  /* GLOBAL FONT SCALE */
  /*body {
  font-size: 0.95rem;
  }

  /* HEADER */
  /*.site-header {
    gap: 5px;
  }

  .header-text h1 {
    font-size: 1.5rem;
  }

  .header-text h2 {
    font-size: 1rem;
  }

  .header-right ul {
    gap: 12px;
    font-size: 0.95rem;
  }

  /* FORM */
  /*.form label {
    font-size: 0.95rem;
  }

  .form input,
  .form textarea {
    font-size: 0.95rem;
    padding: 8px;
  }

  /* BOOKING WIDGET */
 /* .booking {
    transform: scale(0.95);
    transform-origin: top center;
  }

  /* FOOTER */
 /* footer {
    font-size: 0.85rem;
  }

  .badge img {
    height: 38px;
  }

  /* PAGE PADDING */
 /* .content-wrapper,
  .contact {
    padding-left: 10px;
    padding-right: 10px;
  }
}
 */
