/* ===================================
   Elix Publishing Inc. — Styles
   =================================== */

/* --- Variables --- */
:root {
  --gold: #8B6914;
  --gold-light: #C9A84C;
  --gold-pale: #F0E8D5;
  --bg: #FAFAF7;
  --bg2: #F4F2ED;
  --bg3: #EDE9E0;
  --dark: #1C1C1A;
  --text: #2E2B26;
  --text-muted: #8A8478;
  --text-light: #6B6560;
  --border: rgba(139, 105, 20, 0.18);
  --border-light: rgba(139, 105, 20, 0.1);
  --white: #fff;
}

/* --- Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* --- Navigation --- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 4rem;
  background: rgba(250, 250, 247, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.nav-logo img { height: 42px; display: block; }
.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
  color: var(--text-light); text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }

/* Language toggle */
.lang-toggle { display: flex; gap: 0.3rem; }
.lang-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.68rem;
  letter-spacing: 0.1em; padding: 0.28rem 0.65rem;
  cursor: pointer; transition: all 0.2s;
  font-family: 'Jost', sans-serif; text-transform: uppercase;
}
.lang-btn.active, .lang-btn:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(139, 105, 20, 0.06);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none;
}
.hamburger span {
  width: 22px; height: 1px; background: var(--gold); display: block;
}

/* --- Hero --- */
#hero {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: var(--bg);
}
.hero-texture {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 80%, rgba(139, 105, 20, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(139, 105, 20, 0.04) 0%, transparent 50%);
}
.hero-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 105, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 105, 20, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
}
.hero-content {
  position: relative; text-align: center;
  padding: 8rem 2rem 4rem;
  animation: fadeInUp 1s ease forwards;
  max-width: 800px;
}
.hero-logo {
  width: 260px; margin: 0 auto 2.5rem;
  display: block;
}
.hero-rule {
  display: flex; align-items: center;
  gap: 1.5rem; justify-content: center; margin-bottom: 2rem;
}
.hero-rule::before, .hero-rule::after {
  content: ''; flex: 1; max-width: 80px;
  height: 1px; background: var(--gold-light);
}
.hero-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.45em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text); line-height: 1.5;
  font-weight: 300; font-style: italic; margin-bottom: 2.5rem;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.5rem; color: var(--text-muted);
  font-size: 0.58rem; letter-spacing: 0.25em;
  text-transform: uppercase; animation: bounce 2.5s infinite;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
}

/* --- Buttons --- */
.btn-dark {
  display: inline-block; background: var(--dark);
  color: var(--gold-pale); padding: 0.9rem 2.8rem;
  font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; text-decoration: none;
  transition: all 0.3s; font-weight: 500;
  border: none; cursor: pointer; font-family: 'Jost', sans-serif;
}
.btn-dark:hover { background: var(--gold); color: var(--white); }

/* --- Sections --- */
section { padding: 7rem 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: 0.65rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.7rem; font-weight: 600;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark); line-height: 1.1; margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.gold-line {
  width: 48px; height: 1px;
  background: var(--gold-light); margin-bottom: 2rem;
}

/* Fade-in animation */
.fade-in {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- About --- */
#about {
  background: var(--bg2);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.about-text p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; line-height: 1.9;
  color: var(--text-light); margin-bottom: 1.1rem;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-stat {
  text-align: center; padding: 2.2rem 1.5rem;
  border: 1px solid var(--border); background: var(--white);
  transition: box-shadow 0.2s;
}
.about-stat:hover { box-shadow: 0 4px 24px rgba(139, 105, 20, 0.08); }
.about-stat .number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; color: var(--gold);
  line-height: 1; margin-bottom: 0.4rem;
}
.about-stat .label {
  font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--text-muted);
}
.artists-list {
  margin-top: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem; color: var(--text-muted);
  font-style: italic; line-height: 1.9;
  border-left: 2px solid var(--gold-light); padding-left: 1rem;
}

/* --- Biography --- */
#bio { background: var(--bg); }
.bio-grid {
  display: grid; grid-template-columns: 270px 1fr;
  gap: 4rem; align-items: start; margin-top: 3rem;
}
.bio-photo-col { position: sticky; top: 100px; }
.bio-photo-frame {
  position: relative; width: 100%; padding-bottom: 122%;
  background: var(--bg3); border: 1px solid var(--border);
  overflow: hidden;
}
.bio-photo-placeholder {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 0.8rem; color: var(--text-muted);
}
.bio-photo-placeholder .ph-icon { font-size: 3.5rem; opacity: 0.2; }
.bio-photo-placeholder p {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.4;
  font-family: 'Jost', sans-serif;
  text-align: center; padding: 0 1.5rem; line-height: 1.6;
}
.bio-photo-real {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 20%;
}
.bio-name-card {
  margin-top: 1.2rem; padding: 1.2rem;
  background: var(--bg2); border: 1px solid var(--border-light);
  text-align: center;
}
.bio-name-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--dark); margin-bottom: 0.3rem;
}
.bio-name-card span {
  font-size: 0.62rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}
.bio-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic; color: var(--dark);
  line-height: 1.6; margin-bottom: 2.5rem;
  padding-left: 1.5rem; border-left: 3px solid var(--gold-light);
}
.bio-paragraphs p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem; line-height: 1.95;
  color: var(--text-light); margin-bottom: 1.1rem;
}
.bio-paragraphs p strong { color: var(--dark); }
.bio-paragraphs p em { color: var(--gold); font-style: italic; }

/* --- Services --- */
#services {
  background: var(--bg2);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 3rem;
}
.service-card {
  padding: 2.5rem 2rem; border: 1px solid var(--border-light);
  background: var(--white); transition: all 0.3s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0); transition: transform 0.3s; transform-origin: left;
}
.service-card:hover {
  box-shadow: 0 8px 32px rgba(139, 105, 20, 0.1);
  transform: translateY(-2px);
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  font-size: 1.6rem; margin-bottom: 1.2rem;
  display: block; color: var(--gold);
}
.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; color: var(--dark); margin-bottom: 0.9rem;
}
.service-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem; line-height: 1.8; color: var(--text-light);
}

/* --- Catalog --- */
#catalog { background: var(--bg); }
.catalog-controls {
  display: flex; gap: 1rem; margin: 2.5rem 0 1.5rem;
  flex-wrap: wrap; align-items: center;
}
.search-box {
  flex: 1; min-width: 200px; padding: 0.75rem 1.2rem;
  background: var(--white); border: 1px solid var(--border);
  color: var(--text); font-family: 'Jost', sans-serif;
  font-size: 0.8rem; outline: none; transition: border-color 0.2s;
}
.search-box:focus { border-color: var(--gold); }
.search-box::placeholder { color: var(--text-muted); }
.catalog-count {
  font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 0.75rem; white-space: nowrap;
}
.catalog-table-wrap {
  max-height: 500px; overflow-y: auto;
  border: 1px solid var(--border-light); background: var(--white);
  scrollbar-width: thin; scrollbar-color: var(--gold-light) var(--bg3);
}
.catalog-table-wrap::-webkit-scrollbar { width: 4px; }
.catalog-table-wrap::-webkit-scrollbar-track { background: var(--bg3); }
.catalog-table-wrap::-webkit-scrollbar-thumb { background: var(--gold-light); }

table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg3); padding: 0.9rem 1.5rem;
  text-align: left; font-size: 0.62rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  position: sticky; top: 0; z-index: 2;
  border-bottom: 1px solid var(--border);
}
tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.12s;
}
tbody tr:hover { background: var(--gold-pale); }
tbody td { padding: 0.72rem 1.5rem; font-size: 0.82rem; }
td:first-child {
  color: var(--text-muted); width: 3rem; font-size: 0.72rem;
}
td:nth-child(2) { color: var(--dark); font-weight: 500; }
td:nth-child(3) {
  color: var(--text-muted);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; font-style: italic;
}

/* --- Catalog: Play button & Spotify link --- */
.song-actions {
  display: flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
}
.btn-play {
  background: none; border: 1px solid var(--border);
  color: var(--gold); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-size: 0.7rem; padding: 0;
  flex-shrink: 0;
}
.btn-play:hover {
  background: var(--gold); color: var(--white);
  border-color: var(--gold);
}
.btn-play.playing {
  background: var(--gold); color: var(--white);
  border-color: var(--gold);
}
.btn-play svg { width: 14px; height: 14px; fill: currentColor; }

.btn-spotify {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); transition: color 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; flex-shrink: 0;
}
.btn-spotify:hover { color: #1DB954; }
.btn-spotify svg { width: 18px; height: 18px; fill: currentColor; }

/* Mini audio player bar */
.audio-player-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 150; background: var(--dark);
  padding: 0.6rem 2rem;
  display: flex; align-items: center; gap: 1rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}
.audio-player-bar.visible { transform: translateY(0); }
.audio-player-bar .player-info {
  flex: 0 0 auto; max-width: 250px;
}
.audio-player-bar .player-title {
  color: var(--gold-pale); font-size: 0.78rem;
  font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.audio-player-bar .player-artist {
  color: rgba(255, 255, 255, 0.4); font-size: 0.68rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.audio-player-bar .player-controls {
  display: flex; align-items: center; gap: 0.8rem; flex: 1;
}
.audio-player-bar .player-btn {
  background: none; border: none;
  color: var(--gold-light); cursor: pointer;
  font-size: 1.2rem; padding: 0.2rem;
  display: flex; align-items: center;
}
.audio-player-bar .player-btn:hover { color: var(--gold-pale); }
.audio-player-bar .progress-wrap {
  flex: 1; height: 4px; background: rgba(255, 255, 255, 0.1);
  cursor: pointer; position: relative;
}
.audio-player-bar .progress-fill {
  height: 100%; background: var(--gold-light);
  width: 0%; transition: width 0.1s linear;
}
.audio-player-bar .player-time {
  color: rgba(255, 255, 255, 0.3); font-size: 0.65rem;
  min-width: 35px; text-align: right;
}
.audio-player-bar .player-close {
  background: none; border: none;
  color: rgba(255, 255, 255, 0.3); cursor: pointer;
  font-size: 1.1rem; padding: 0.2rem;
}
.audio-player-bar .player-close:hover { color: var(--gold-light); }

/* --- Contact --- */
#contact { background: var(--bg2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; margin-top: 3rem;
}
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; color: var(--dark); margin-bottom: 1.5rem;
}
.contact-item {
  display: flex; gap: 1rem;
  align-items: flex-start; margin-bottom: 1.5rem;
}
.contact-icon {
  font-size: 1rem; color: var(--gold); margin-top: 0.1rem;
}
.contact-detail {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; line-height: 1.65; color: var(--text-light);
}
.contact-detail strong {
  color: var(--dark); font-family: 'Jost', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.contact-detail a { color: var(--gold); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }
.contact-highlight {
  margin-top: 2rem; padding: 1.5rem;
  border-left: 3px solid var(--gold-light); background: var(--bg3);
}
.contact-highlight p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem; color: var(--text-light);
  line-height: 1.75; font-style: italic;
}

/* --- Contact Form --- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.62rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.8rem 1rem; background: var(--white);
  border: 1px solid var(--border); color: var(--text);
  font-family: 'Jost', sans-serif; font-size: 0.8rem;
  outline: none; transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--gold); }
.form-field textarea { resize: vertical; }
.form-note {
  font-size: 0.72rem; color: var(--text-muted);
  margin-top: 0.4rem; font-style: italic;
  font-family: 'Cormorant Garamond', serif;
}

/* --- Footer --- */
footer {
  background: var(--dark); padding: 2.5rem 4rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo img {
  height: 30px;
  filter: invert(1);
}
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a {
  font-size: 0.62rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.4);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copy {
  font-size: 0.62rem; color: rgba(255, 255, 255, 0.25);
  width: 100%; text-align: center; margin-top: 0.5rem;
}

/* --- Modals --- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 28, 26, 0.7);
  backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border: 1px solid var(--border);
  max-width: 680px; width: 100%; padding: 3rem;
  position: relative; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}
.modal-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--gold); }
.modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; color: var(--dark); margin-bottom: 1.5rem;
}
.modal-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem; line-height: 1.82; color: var(--text-light);
}
.modal-body h3 {
  color: var(--gold); margin: 1.5rem 0 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-family: 'Jost', sans-serif;
  font-weight: 600;
}
.modal-body p { margin-bottom: 0.9rem; }

/* --- Keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 1rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
  }
  .hamburger { display: flex; }
  .about-grid, .contact-grid, .bio-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .bio-photo-col { position: static; }
  .bio-photo-frame { padding-bottom: 75%; }
  footer { padding: 2rem 1.5rem; }
  .footer-links { display: none; }

  /* Audio player responsive */
  .audio-player-bar { padding: 0.5rem 1rem; gap: 0.6rem; }
  .audio-player-bar .player-info { max-width: 120px; }
  .audio-player-bar .player-time { display: none; }
}
