/* =====================================================
   MAESTRO GUZMAN — Main Stylesheet
   maestroguzman.com
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Raleway:wght@200;300;400;500;600&display=swap');

/* === VARIABLES === */
:root {
  --bg:        #09090c;
  --bg-2:      #0f0f14;
  --bg-3:      #161620;
  --gold:      #c8a96a;
  --gold-2:    #e0c48a;
  --text:      #eeeae0;
  --text-2:    #7a7670;
  --border:    rgba(200, 169, 106, 0.15);
  --border-2:  rgba(200, 169, 106, 0.30);
  --nav-h:     72px;
  --max-w:     1200px;
  --pad:       clamp(1.5rem, 5vw, 4rem);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s; }

/* === NAV === */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(9, 9, 12, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 2.6rem;
  list-style: none;
  align-items: center;
}

.nav__links a {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}

.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--gold); }

.nav__social {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}

.nav__social a {
  color: var(--text-2);
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

.nav__social a:hover { color: var(--gold); }
.nav__icon { width: 18px; height: 18px; fill: currentColor; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  width: 22px; height: 1px;
  background: var(--text);
  display: block;
  transition: all 0.3s;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* === SHARED COMPONENTS === */
.label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
}

.gold-rule {
  width: 50px; height: 1px;
  background: var(--gold);
  display: block;
}

p {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.95;
  max-width: 72ch;
}

p + p { margin-top: 1.2rem; }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
}

.footer__social {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.footer__social a {
  color: var(--text-2);
  display: flex;
  align-items: center;
}

.footer__social a:hover { color: var(--gold); }

/* === FADE ANIMATION === */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   BIO PAGE
   ===================================================== */

.bio-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
}

.bio-hero__img {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  min-height: 500px;
}

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

.bio-hero__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-2);
  border-right: 1px solid var(--border);
}

.bio-hero__img-placeholder .placeholder-note {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0 2rem;
  line-height: 1.7;
}

.bio-hero__img-placeholder .placeholder-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.bio-hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  text-align: right;
  padding: 5rem 3rem 5rem var(--pad);
  background: var(--bg);
  position: relative;
}

.bio-hero__content::before {
  content: 'CG';
  position: absolute;
  bottom: -0.1em;
  right: 0.1em;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18rem;
  font-weight: 300;
  color: var(--text);
  opacity: 0.015;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.bio-hero__eyebrow {
  margin-bottom: 1.4rem;
}

.bio-hero__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1.6rem;
}

.bio-hero__titles {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.6rem;
}

.bio-hero__title-item {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 400;
}

.bio-text {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 100px var(--pad);
}

.bio-text__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 6rem;
  align-items: start;
}

.bio-text__sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.bio-text__sidebar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  margin: 1rem 0;
}

.bio-text__body p:first-child::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 5.2rem;
  font-weight: 500;
  color: var(--gold);
  float: left;
  line-height: 0.72;
  margin-right: 0.1em;
  margin-top: 0.05em;
}

/* =====================================================
   OPERA / THEATER PAGE
   ===================================================== */

.opera-hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.opera-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #14080a 0%, #0a0610 60%, #060a18 100%);
  overflow: hidden;
}

.opera-hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  mix-blend-mode: luminosity;
}

.opera-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(9,9,12,0.2) 0%,
    rgba(9,9,12,0.5) 60%,
    rgba(9,9,12,0.95) 100%);
}

.opera-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--pad);
  padding-bottom: 80px;
  padding-top: var(--nav-h);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.opera-hero__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
}

.opera-hero__sub {
  margin-top: 1rem;
}

.opera-sections {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.opera-block {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 5rem;
  border-top: 1px solid var(--border);
}

.opera-block__heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--gold);
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  align-self: start;
}

/* =====================================================
   VIDEOS PAGE
   ===================================================== */

.videos-hero {
  padding-top: calc(var(--nav-h) + 90px);
  padding-bottom: 60px;
  padding-left: var(--pad);
  padding-right: var(--pad);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.videos-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  margin-top: 1rem;
}

.videos-sections {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad) 100px;
}

.videos-block {
  padding-top: 70px;
}

.videos-block + .videos-block {
  border-top: 1px solid var(--border);
  margin-top: 70px;
}

.videos-block__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.videos-block__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.videos-block__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
}

.videos-grid {
  display: grid;
  gap: 1.2rem;
}

.videos-grid--1 { grid-template-columns: minmax(0, 700px); }
.videos-grid--2 { grid-template-columns: repeat(2, 1fr); }

.video-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.35s;
}

.video-card:hover { border-color: var(--border-2); }

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

.video-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card__info {
  padding: 1rem 1.3rem 1.2rem;
  border-top: 1px solid var(--border);
}

.video-card__title {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--text);
  font-weight: 400;
  line-height: 1.4;
}

/* =====================================================
   GALLERY PAGE
   ===================================================== */

.gallery-hero {
  padding-top: calc(var(--nav-h) + 90px);
  padding-bottom: 60px;
  padding-left: var(--pad);
  padding-right: var(--pad);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.gallery-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  margin-top: 1rem;
}

.gallery-grid {
  padding: 40px var(--pad) 100px;
  columns: 3 300px;
  gap: 10px;
  max-width: 1500px;
  margin: 0 auto;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 10px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: block;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
  filter: grayscale(8%);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(200, 169, 106, 0);
  transition: background 0.4s;
  pointer-events: none;
}

.gallery-item:hover .gallery-item__overlay {
  background: rgba(200, 169, 106, 0.06);
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 180px;
  padding: 2rem;
  border: 1px dashed var(--border);
  background: var(--bg-2);
  margin-bottom: 10px;
  break-inside: avoid;
  cursor: default;
}

.gallery-placeholder .ph-note {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-2);
  text-align: center;
  line-height: 1.7;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.96);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.8rem;
  color: var(--text-2);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.3s;
}

.lightbox__close:hover { color: var(--gold); }

/* =====================================================
   CONTACT PAGE
   ===================================================== */

.contact-page {
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  display: flex;
  flex-direction: column;
}

.contact-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(8rem, 20vw, 18rem);
  font-weight: 300;
  color: var(--text);
  opacity: 0.025;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.02em;
  z-index: 0;
}

.contact-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px var(--pad) 100px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8rem;
  width: 100%;
}

.contact-info__header {
  margin-bottom: 3rem;
}

.contact-info__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--text);
  margin-top: 0.8rem;
  line-height: 1.1;
}

.contact-info__items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info__item-label {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}

.contact-info__item-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 400;
}

.contact-info__item-value a:hover { color: var(--gold); }

.contact-subscribe {
  padding-top: 0.5rem;
}

.contact-subscribe__heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  margin: 0.8rem 0 0.6rem;
  line-height: 1.2;
}

.contact-subscribe__desc {
  color: var(--text-2);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
  max-width: 40ch;
}

.subscribe-form {
  border: 1px solid var(--border);
  display: flex;
  overflow: hidden;
  transition: border-color 0.3s;
}

.subscribe-form:focus-within { border-color: var(--border-2); }

.subscribe-form__input {
  flex: 1;
  background: var(--bg-2);
  border: none;
  padding: 1rem 1.3rem;
  color: var(--text);
  font-family: 'Raleway', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  outline: none;
  min-width: 0;
}

.subscribe-form__input::placeholder { color: var(--text-2); }

.subscribe-form__btn {
  background: var(--gold);
  border: none;
  padding: 1rem 1.6rem;
  color: #08080c;
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

.subscribe-form__btn:hover { background: var(--gold-2); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 960px) {
  .bio-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .bio-hero__img { height: 55vh; }
  .bio-hero__content { padding: 3.5rem var(--pad); }
  .bio-text__inner { grid-template-columns: 1fr; gap: 2rem; }
  .bio-text__sidebar { position: static; }

  .opera-block { grid-template-columns: 1fr; gap: 2rem; }
  .opera-block__heading { position: static; }

  .videos-grid--2 { grid-template-columns: 1fr; }
  .videos-grid--1 { grid-template-columns: 1fr; }

  .gallery-grid { columns: 2; }

  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }

  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(9, 9, 12, 0.98);
    padding: 2rem var(--pad);
    gap: 1.8rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open a { font-size: 0.75rem; }
}

@media (max-width: 600px) {
  .gallery-grid { columns: 1; }
  .contact-watermark { display: none; }
}

/* =====================================================
   AUDIO PLAYER — Fixed Bottom Bar
   ===================================================== */

/* Popup hint */
#player-hint {
  position: fixed;
  bottom: 84px;
  left: var(--pad);
  background: var(--gold);
  color: #08080c;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  z-index: 999;
  pointer-events: none;
  animation: hint-in 0.5s ease 1.2s both, hint-out 0.5s ease 6s forwards;
}

#player-hint::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 1.5rem;
  width: 0; height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--gold);
}

@keyframes hint-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hint-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); pointer-events: none; }
}

body { padding-bottom: 72px; }

#audio-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 72px;
  z-index: 998;
  background: rgba(10, 10, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 var(--pad);
}

/* Progress bar — sits at very top of player */
#player-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(200, 169, 106, 0.15);
  cursor: pointer;
  transition: height 0.2s;
}

#audio-player:hover #player-progress { height: 4px; }

#player-progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Track info */
.player__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.player__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 400;
}

.player__meta {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 1px;
}

/* Controls */
.player__controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}

.player__btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s;
  border-radius: 50%;
}

.player__btn:hover { color: var(--text); }

#player-play {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  color: var(--gold);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

#player-play:hover {
  color: var(--bg);
  background: var(--gold);
  border-color: var(--gold);
}

/* Time */
#player-time {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 2.8rem;
}

/* Volume */
.player__volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

#player-mute {
  color: var(--text-2);
}

#player-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
  border-radius: 2px;
}

#player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  transition: transform 0.2s;
}

#player-volume::-webkit-slider-thumb:hover { transform: scale(1.3); }

#player-volume::-moz-range-thumb {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
  #audio-player { gap: 0.8rem; padding: 0 1rem; }
  .player__info { display: none; }
  #player-volume { width: 60px; }
}
