/*
Theme Name:  Scott Meyers Music
Theme URI:   https://www.facebook.com/scottmeyersmusic
Description: Custom theme for Scott Meyers — Live Music, Northern Kentucky.
Author:      Scott Meyers
Version:     1.1.1
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scott-meyers
*/

/* ===================================
   SCOTT MEYERS — THEME STYLES
   Rustic Americana Theme
   =================================== */

:root {
  --bg-dark: #18100A;
  --bg-surface: #2B1D12;
  --accent: #C8832A;
  --accent-hover: #E09B3A;
  --text: #F0E6D3;
  --text-muted: #A89070;
  --border: rgba(200, 131, 42, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 90px 0;
}

/* ---- BUTTONS ---- */
.btn,
.wp-block-button__link {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 2px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button.is-style-fill .wp-block-button__link {
  background-color: var(--accent);
  color: #18100A;
  border: 2px solid var(--accent);
}

.btn-primary:hover,
.wp-block-button.btn-primary .wp-block-button__link:hover,
.wp-block-button.is-style-fill .wp-block-button__link:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary,
.wp-block-button.btn-secondary .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover,
.wp-block-button.btn-secondary .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--accent);
  color: #18100A;
}

/* ---- SECTION DIVIDERS ---- */
section + section,
.wp-block-group + .wp-block-group {
  border-top: 1px solid var(--border);
}

/* ===================================
   NAV
   =================================== */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 2rem;
  transition: background 0.3s, padding 0.3s;
}

#main-nav.scrolled {
  background: rgba(18, 10, 6, 0.95);
  backdrop-filter: blur(8px);
  padding: 14px 2rem;
  border-bottom: 1px solid var(--border);
}

.nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.05em;
  text-decoration: none;
}

#main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

#main-nav ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
}

#main-nav ul a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--accent) !important;
  border: 1px solid var(--accent);
  padding: 8px 20px;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--accent);
  color: #18100A !important;
}

/* ===================================
   HERO
   =================================== */
.hero {
  padding: 0;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  /* Fluid: natural 3:2 height until it would exceed the viewport, then cap at 100vh */
  height: min(calc(100vw * 1024 / 1536), 100vh);
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18,6,10,0.1) 0%, rgba(18,6,10,0.5) 100%);
}

.hero-cta {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  white-space: nowrap;
}

/* ===================================
   ABOUT
   =================================== */
.about-section,
.wp-block-group.about-section {
  background-color: var(--bg-surface);
  padding: 90px 0;
}

.about-grid,
.wp-block-columns.about-grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 5rem;
  align-items: center;
}

.about-text .wp-block-heading,
.about-text h2 {
  color: var(--accent);
}

.about-text p,
.about-text .wp-block-paragraph {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Genre pill spans inside a paragraph */
.genre-pills .genre-pill,
.genre-pills span {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 1px;
  display: inline-block;
}

.about-photo .wp-block-image img,
.about-photo img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  filter: brightness(0.88) contrast(1.06);
}

/* ===================================
   GALLERY
   =================================== */
.gallery-section,
.wp-block-group.gallery-section {
  background-color: var(--bg-dark);
  padding: 90px 0;
}

.gallery-section > .wp-block-heading,
.gallery-section h2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* WP Gallery block overrides — force CSS grid, fixed-height cropped cells */
.gallery-section .wp-block-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: 280px !important;
  gap: 10px !important;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  /* neutralise the block's own flex layout */
  flex-wrap: unset !important;
  align-items: unset !important;
}

/* Each image figure fills its grid cell */
.gallery-section .wp-block-gallery .wp-block-image {
  display: block !important;
  flex: unset !important;
  width: auto !important;
  max-width: 100% !important;
  height: 100% !important;
  overflow: hidden;
  margin: 0 !important;
  border-radius: 2px;
}

.gallery-section .wp-block-gallery .wp-block-image figure {
  height: 100%;
  margin: 0;
}

.gallery-section .wp-block-gallery .wp-block-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center top;
  border-radius: 2px;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.82);
}

.gallery-section .wp-block-gallery .wp-block-image img:hover {
  transform: scale(1.025);
  filter: brightness(1);
}

/* ===================================
   TESTIMONIAL
   =================================== */
.testimonial-section,
.wp-block-group.testimonial-section {
  background-color: var(--bg-surface);
  padding: 90px 0;
  text-align: center;
}

.testimonial-section > .wp-block-quote,
.site-testimonial.wp-block-quote {
  max-width: 800px;
  margin: 0 auto;
  border: none;
  padding: 0;
}

.testimonial-section::before,
.wp-block-group.testimonial-section::before {
  content: '\201C';
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 7rem;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: -1.5rem;
}

.site-testimonial p,
.site-testimonial .wp-block-quote__citation,
.testimonial-section blockquote p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  color: var(--text);
  font-style: italic;
  line-height: 1.75;
  max-width: none;
  margin-bottom: 1.8rem;
}

.site-testimonial cite,
.site-testimonial .wp-block-quote__citation,
.testimonial-section cite {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* ===================================
   SHOWS
   =================================== */
#shows {
  background-color: var(--bg-dark);
  padding: 90px 0;
}

.shows-content {
  text-align: center;
}

.shows-content p {
  margin: 0 auto 2.2rem;
  font-size: 1.1rem;
}

.shows-list {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.show-date {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.show-venue {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
}

.show-city {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.show-link-btn {
  padding: 8px 18px;
  font-size: 0.78rem;
}

.shows-fb-btn {
  margin-top: 0.5rem;
}

/* ===================================
   CONTACT / BOOK
   =================================== */
.contact-section,
.wp-block-group.contact-section {
  background-color: var(--bg-surface);
  padding: 90px 0;
}

.contact-section .wp-block-heading,
.contact-section h2 {
  text-align: center;
}

.contact-sub {
  margin: 0 auto 2.8rem !important;
  font-size: 1.05rem;
}

.contact-hint {
  font-size: 0.82rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  margin: 0 auto 2.8rem !important;
  max-width: none !important;
}

.phone-link {
  display: block;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.phone-link:hover {
  color: var(--accent-hover);
}

/* ===================================
   FOOTER
   =================================== */
footer {
  background-color: #100A05;
  padding: 28px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: none;
}

footer a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent-hover);
}

/* ===================================
   WP BLOCK ALIGNMENT UTILITIES
   (replaces wp-block-library which is dequeued)
   =================================== */
.has-text-align-center {
  text-align: center;
}

.has-text-align-left {
  text-align: left;
}

.has-text-align-right {
  text-align: right;
}

/* ===================================
   WP ADMIN BAR OFFSET
   =================================== */
.admin-bar #main-nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar #main-nav {
    top: 46px;
  }
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 900px) {
  .about-grid,
  .wp-block-columns.about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-photo .wp-block-image img,
  .about-photo img {
    height: 380px;
  }
}

@media (max-width: 768px) {
  section,
  .about-section,
  .gallery-section,
  .testimonial-section,
  .contact-section,
  #shows {
    padding: 60px 0;
  }

  /* Hide nav entirely on mobile — hero has its own Book Scott button */
  #main-nav {
    display: none;
  }

  /* Hide nav links except CTA on mobile */
  #main-nav ul li:not(:last-child) {
    display: none;
  }

  .gallery-section .wp-block-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .show-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .show-link-btn {
    grid-column: 1 / -1;
    text-align: center;
  }

  footer {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gallery-section .wp-block-gallery {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 240px !important;
  }
}
