/*
Theme Name: Laura Freeman
Description: Custom one-page theme for Laura Freeman, children's musician.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: laura-freeman
*/

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:   #1A4FC4;
  --green:  #00D45E;
  --yellow: #FFE100;
  --orange: #F05220;
  --white:  #FFFFFF;
  --dark:   #000000;
  --light:  #F5F0E8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  background: var(--white);
  color: var(--dark);
  font-size: 18px;
  line-height: 1.6;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
}

/* ============================================
   NAV
   ============================================ */

/* Push nav below the WP admin bar when logged in */
.admin-bar .site-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .site-nav {
    top: 46px;
  }
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid #000;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .nav-logo {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  color: var(--dark);
}

.nav-logo-img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.nav-logo .logo-letter {
  color: var(--dark);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.site-nav ul li a {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  transition: color 0.2s;
}

.site-nav ul li a:hover {
  color: var(--green);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  margin-top: 54px;
  position: relative;
  height: 80vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding-right: 2rem;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

@media (max-width: 1024px) {
  .hero {
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .hero {
    justify-content: center;
    align-items: flex-end;
    padding-right: 2rem;
    padding-bottom: 2rem;
  }

  .hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, #feda68);
    z-index: 1;
  }
}

.hero-overlay {
  display: none;
}

@media (max-width: 768px) {
  .hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(254, 218, 104, 0) 0%,
      rgba(254, 218, 104, 0.8) 100%
    );
    z-index: 2;
  }
}

.hero-overlay-image {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 920px;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 2;
  pointer-events: none;
  margin: 0 auto;
  left: 0;
  right: 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 66.67vw;
}

@media (max-width: 1024px) {
  .hero-content {
    max-width: 50vw;
  }
}

@media (max-width: 768px) {
  .hero-content {
    max-width: 100%;
    padding: 0 1rem;
  }
}

.hero-content p {
  font-family: var(--hero-tagline-font);
  margin-top: 0.75rem;
  color: var(--dark);
  font-weight: 700;
  line-height: 1;
}

/* ============================================
   SHARED SECTION STYLES
   ============================================ */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-video,
.section-shows,
.section-music,
.section-about,
.section-newsletter,
.site-footer {
  position: relative;
}

/* Section dividers — alternating offset */
.section-video::before,
.section-shows::before,
.section-music::before,
.section-about::before,
.section-newsletter::before,
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  height: 2px;
  background: #000;
  pointer-events: none;
}

.section-video::before   { left: 0; right: 0; }
.section-shows::before   { left: 0; right: 0; }
.section-music::before   { left: 0; right: 0; }
.section-about::before   { left: 0; right: 0; }
.section-newsletter::before { left: 0; right: 0; }
.site-footer::before     { left: 0; right: 0; }

/* ============================================
   VIDEO SECTION
   ============================================ */
.section-video {
  background: var(--blue);
}

.section-video .section-title {
  color: var(--white);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
}

/* ============================================
   SHOWS / CALENDAR SECTION
   ============================================ */
.section-shows {
  background: var(--white);
}

.section-shows .section-title {
  color: var(--dark);
}

/* Booking blurb */
.booking-blurb {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px dashed rgba(0, 0, 0, 0.15);
  text-align: center;
  font-size: 1.1rem;
}

.booking-blurb a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: underline;
}

.booking-blurb a:hover {
  color: var(--dark);
}

/* ── Simple Calendar plugin overrides ── */

/* Date header row — no rule, no gap below */
.simcal-day-label {
  border-top: none !important;
  border-bottom: none !important;
  margin: 1.5rem 0 0 !important;
  padding: 0 !important;
}

/* Date label pill — solid orange, white text, zero bottom radius so it sits flush on the event box */
.simcal-day-label > span {
  background-color: var(--orange) !important;
  color: var(--white) !important;
  border: none !important;
  font-family: 'Bricolage Grotesque', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: .35rem .75rem !important;
  display: inline-block !important;
  border-radius: 8px 8px 0 0 !important;
}

/* Event list container — flush against pill, no gap */
.simcal-events {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 .75rem !important;
}

/* Individual event — pale orange tint, top-left corner square to meet pill */
.simcal-event {
  border-left: none !important;
  background: rgba(240, 82, 32, 0.1) !important;
  padding: .75rem 1rem !important;
  margin-bottom: 0 !important;
  border-radius: 0 8px 8px 8px !important;
}

/* Event title */
.simcal-event-title {
  font-family: 'Bricolage Grotesque', sans-serif !important;
  font-size: 1.05rem !important;
  color: var(--dark) !important;
}

/* Remove the extra <p> margin around the title */
.simcal-event-details > p:first-child {
  margin-bottom: .25rem !important;
}

/* Description */
.simcal-event-description {
  font-family: 'Quicksand', sans-serif !important;
  font-size: .9rem !important;
  color: var(--dark) !important;
  margin-bottom: .4rem !important;
}

/* Time & location line */
.simcal-event-start,
.simcal-event-end,
.simcal-event-address {
  font-family: 'Quicksand', sans-serif !important;
  font-size: .875rem !important;
  color: var(--dark) !important;
}

/* "See more details" link */
.simcal-event-details a {
  font-family: 'Quicksand', sans-serif !important;
  font-size: .8rem !important;
  color: var(--blue) !important;
  text-decoration: underline !important;
}
.simcal-event-details a:hover {
  color: var(--dark) !important;
}

/* Month/grid calendar overrides (if ever switched to grid view) */
.simcal-default-calendar .simcal-calendar-head {
  background: var(--green) !important;
  color: var(--white) !important;
  border-radius: 12px 12px 0 0 !important;
}
.simcal-default-calendar table th {
  background: var(--yellow) !important;
  color: var(--dark) !important;
}
.simcal-default-calendar .simcal-current-day {
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: 50% !important;
}

.post-edit-link {
  display: none !important;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.section-about {
  background: var(--light);
}

.section-about .section-title {
  color: var(--dark);
  margin-bottom: 2rem;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}

.about-image figure {
  margin: 0;
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.about-image figcaption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.75);
  text-align: center;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .about-columns {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ============================================
   MUSIC / ALBUMS SECTION
   ============================================ */
.section-music {
  background: #feda68;
}

.section-music .section-title {
  color: var(--dark);
}

.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.albums-scroll-wrap {
  position: relative;
}

@media (max-width: 860px) {
  .albums-scroll-wrap::before,
  .albums-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1rem;
    width: 48px;
    z-index: 2;
    pointer-events: none;
  }

  .albums-scroll-wrap::before {
    left: 0;
    background: linear-gradient(to right, #feda68, transparent);
  }

  .albums-scroll-wrap::after {
    right: 0;
    background: linear-gradient(to left, #feda68, transparent);
  }
}

@media (max-width: 860px) {
  .albums-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1.25rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* hide scrollbar */
    scrollbar-width: none;
  }

  .albums-grid::-webkit-scrollbar {
    display: none;
  }

  .album-card {
    flex: 0 0 72vw;
    max-width: 300px;
    scroll-snap-align: start;
  }
}

.album-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.album-card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.album-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.album-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  transform-origin: center center;
  display: block;
}

.album-card:hover img {
  transform: scale(1.07);
}

.album-card:hover .album-art {
  transform: scale(1.07);
}

.album-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.album-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: var(--dark);
}

.album-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  transition: filter 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  filter: brightness(1.1);
  transform: scale(1.04);
}

.btn-spotify {
  background: #1DB954;
  color: #fff;
}

.btn-bandcamp {
  background: #1DA0C3;
  color: #fff;
}

.btn-contact {
  background: var(--dark);
  color: var(--white);
  font-size: 1rem;
  padding: 0.7rem 1.8rem;
}

.btn-contact:hover {
  color: var(--white);
}

.about-text .btn-contact {
  margin-top: 1.5rem;
  display: inline-flex;
}

/* ============================================
   NEWSLETTER SECTION
   ============================================ */
.section-newsletter {
  background: var(--green);
  text-align: center;
}

.section-newsletter .section-title {
  color: var(--dark);
}

.section-newsletter p.subtitle,
.section-newsletter .section-subtitle p {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 2rem;
}

.section-newsletter .section-subtitle {
  text-align: center;
}

/* Mailchimp embed overrides */
#mc_embed_signup {
  background: transparent !important;
  max-width: 520px;
  margin: 0 auto;
  font-family: 'Quicksand', sans-serif !important;
}

#mc_embed_signup form {
  padding: 0 !important;
}

#mc_embed_signup .mc-field-group label {
  font-weight: 700;
  color: var(--dark);
}

#mc_embed_signup .mc-field-group input {
  border: 2px solid var(--dark) !important;
  border-radius: 50px !important;
  padding: 0.8rem 1.4rem !important;
  font-size: 1rem !important;
  font-family: 'Quicksand', sans-serif !important;
  width: 100% !important;
}

#mc_embed_signup #mc-embedded-subscribe {
  background: #000000 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 0.8rem 2.2rem !important;
  font-family: 'Quicksand', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.15rem !important;
  cursor: pointer !important;
  transition: filter 0.2s !important;
  margin-top: 1rem !important;
}

#mc_embed_signup #mc-embedded-subscribe:hover {
  filter: brightness(1.15) !important;
  transform: scale(1.04) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--white);
  color: var(--dark);
  text-align: center;
  padding: 3rem 2rem;
}

.footer-name {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: var(--dark);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  transition: filter 0.2s, transform 0.15s;
}

.social-btn svg {
  width: 22px;
  height: 22px;
}

.social-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.06);
  color: #fff;
}

.social-btn.facebook { background: #1877F2; }
.social-btn.youtube  { background: #FF0000; }
.social-btn.spotify  { background: #1DB954; }
.social-btn.bandcamp { background: #1DA0C3; }

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.55;
  margin-top: 0.5rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .site-nav {
    justify-content: center;
  }

  .site-nav ul {
    display: none;
  }

  .hero {
    height: 60vh;
    margin-top: 54px;
  }

  section {
    padding: 3.5rem 1.25rem;
  }
}
