/* =====================================================================
   FONT IMPORT
   ===================================================================== */

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


/* =====================================================================
   DESIGN TOKENS
   Global colours and font — edit here to update the whole site.
   ===================================================================== */

:root {
  --font:         'Albert Sans', sans-serif;
  --color-bg:     #f7f6f4;
  --color-text:   #1a1a1a;
  --color-subtle: #333333;
  --color-muted:  #888888;
  --color-white:  #ffffff;
  --color-border: #e0ddd9;
  --nav-height:   56px;
}


/* =====================================================================
   TYPOGRAPHY
   Styles are set on plain HTML elements — no classes needed in the HTML.

   h1          Page titles: "Biography", "Recordings", "Contact Me"
   h2          Section subheadings
   p           All body text paragraphs
   blockquote  The large italic quote on the hero page
   cite        Attribution line below a quote
   small       Captions, footer copyright, card labels
   nav a       Navigation links (handled in the nav section below)
   ===================================================================== */

h1 {
  font-family: var(--font);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-text);
  line-height: 1.1;
}

h2 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-text);
  line-height: 1.4;
}

p {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-subtle);
  line-height: 1.8;
}

blockquote {
  font-family: var(--font);
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--color-white);
  line-height: 1.4;
}

cite {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  font-style: normal;
  color: var(--color-white);
  opacity: 0.8;
  display: block;
}

small {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}


/* =====================================================================
   RESET
   ===================================================================== */

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
}

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


/* =====================================================================
   NAVIGATION — DESKTOP
   ===================================================================== */

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 3rem;
  z-index: 200;
}

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

nav a {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
}

nav.dark { background: transparent; }
nav.dark a { color: var(--color-white); }
nav.dark a:hover { opacity: 0.7; }

nav.light { background-color: var(--color-bg); border-bottom: 1px solid var(--color-border); }
nav.light a { color: var(--color-text); }
nav.light a:hover { opacity: 0.6; }

nav a.btn-contact {
  background-color: var(--color-text);
  color: var(--color-white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
}

nav.dark a.btn-contact {
  background-color: var(--color-white);
  color: var(--color-text) !important;
  opacity: 1 !important;
}

nav a.btn-contact:hover { opacity: 0.8 !important; }


/* =====================================================================
   NAVIGATION — MOBILE HAMBURGER
   Hidden on desktop. Shown on mobile via media query below.
   ===================================================================== */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--color-white);
  transition: transform 0.3s, opacity 0.3s;
}

nav.light .nav-hamburger span { background-color: var(--color-text); }

nav.open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

nav ul.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 1rem 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 199;
}

nav.open ul.mobile-menu { display: flex; }

nav ul.mobile-menu li { width: 100%; }

nav ul.mobile-menu a {
  display: block;
  width: 100%;
  padding: 0.9rem 2rem;
  font-size: 0.9rem;
  color: var(--color-text) !important;
  border-bottom: 1px solid var(--color-border);
}

nav ul.mobile-menu a.btn-contact {
  background: none;
  border-radius: 0;
}


/* =====================================================================
   SOCIAL ICONS — DESKTOP (inline, in hero and page footers)
   ===================================================================== */

.social-icons {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  gap: 1rem;
}

.social-icons a {
  opacity: 0.7;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s;
  color: var(--color-white);
}

.social-icons a:hover { opacity: 1; }
.social-icons.light a { color: var(--color-text); }


/* =====================================================================
   SOCIAL ICONS — MOBILE (fixed bar at bottom, hidden on desktop)
   ===================================================================== */

.mobile-social-bar {
  display: none;
}


/* =====================================================================
   HERO PAGE
   ===================================================================== */

.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.6);
}

.hero-quote {
  position: absolute;
  bottom: 15%;
  left: 5%;
  max-width: min(320px, 80vw);
  padding-right: 1rem;
}

.hero-quote blockquote { margin-bottom: 1rem; }


/* =====================================================================
   INNER PAGE SHELL
   ===================================================================== */

.page-content {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 6rem;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.page-title { margin-bottom: 3rem; }


/* =====================================================================
   BIOGRAPHY PAGE
   ===================================================================== */

.bio-photo {
  width: 100%;
  max-width: 500px;
  height: 380px;
  object-fit: cover;
  object-position: center top;
  margin: 2.5rem 0;
}

.bio-text p { margin-bottom: 1.5rem; }


/* =====================================================================
   RECORDINGS PAGE
   ===================================================================== */

.recordings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.recording-card {
  border: 1px solid var(--color-border);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  aspect-ratio: 16 / 9;
}

.recording-card iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.recording-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-muted);
  background: #f0eeec;
}

.play-icon {
  width: 52px;
  height: 52px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon::after {
  content: '';
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 3px;
}


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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-photo {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
}

.contact-right p { margin-bottom: 2rem; }

.google-form-embed {
  width: 100%;
  min-height: 600px;   /* fallback before JS resizes it */
  border: none;
  display: block;
  /* No fixed height — JS auto-sizes it to match form content */
}

.form-placeholder {
  padding: 2rem;
  background: #f0eeec;
  border: 1px dashed #ccc;
  text-align: center;
}


/* =====================================================================
   FOOTER
   ===================================================================== */

.page-footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* =====================================================================
   RESPONSIVE — TABLET (max 768px)
   ===================================================================== */

@media (max-width: 768px) {

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

  .contact-photo { height: 320px; }

  .page-content {
    padding-top: calc(var(--nav-height) + 2.5rem);
  }
}


/* =====================================================================
   RESPONSIVE — MOBILE (max 560px)
   ===================================================================== */

@media (max-width: 560px) {

  /* Hamburger nav — controlled by .nav-mobile-right */

  /* Hero quote */
  .hero-quote {
    bottom: 12%;
    left: 4%;
  }

  /* Hide inline social icons, show fixed bottom bar instead */
  .social-icons { display: none; }

  .mobile-social-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    gap: 2rem;
    padding: 0.9rem 1rem;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    z-index: 150;
  }

  .mobile-social-bar a {
    color: var(--color-text);
    opacity: 0.6;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.2s;
  }

  .mobile-social-bar a:hover { opacity: 1; }

  /* Inner pages */
  .page-content {
    padding-top: calc(var(--nav-height) + 2rem);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 5rem;   /* space above fixed social bar */
  }

  .page-title { margin-bottom: 2rem; }

  /* Bio photo */
  .bio-photo {
    max-width: 100%;
    height: 260px;
    margin: 1.5rem 0;
  }

  /* Recordings: single column */
  .recordings-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Contact: hide photo on mobile */
  .contact-photo { display: none; }

  /* Footer */
  .page-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 3rem;
  }
}


/* =====================================================================
   SCHEDULE PAGE
   ===================================================================== */

/* Each event is an <article> with a date column and details column */
.schedule-event {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
}

.schedule-event:first-child {
  border-top: 1px solid var(--color-border);
}

/* Left column: day + year stacked */
.schedule-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0.2rem;
}

.schedule-day {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.2;
}

.schedule-year {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.05em;
}

/* Right column: event details */
.schedule-title {
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

.schedule-time {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.schedule-venue {
  font-size: 0.9rem;
  color: var(--color-subtle);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.schedule-description {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-top: 0.4rem;
}

/* Empty / loading state */
.schedule-empty {
  color: var(--color-muted);
  font-size: 0.9rem;
  padding: 3rem 0;
}

/* Mobile: stack date above details */
@media (max-width: 560px) {
  .schedule-event {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .schedule-date {
    flex-direction: row;
    gap: 0.5rem;
    align-items: baseline;
  }
}


/* =====================================================================
   HERO TEXT (name + tagline overlay, top-centre of hero image)
   ===================================================================== */

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.hero-name {
  font-family: var(--font);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.hero-tagline {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: 0.8;
}


/* =====================================================================
   LANGUAGE TOGGLE BUTTON
   ===================================================================== */

.lang-toggle {
  background: none;
  border: 1px solid currentColor;
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.55rem;
  transition: opacity 0.2s;
}

.lang-toggle.dark  { color: var(--color-white); }
.lang-toggle.light { color: var(--color-text); }
.lang-toggle:hover { opacity: 0.6; }


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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 3 / 4;   /* portrait orientation — suits performance photos */
  cursor: pointer;
  background: #e8e6e3;   /* placeholder colour while image loads */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
}

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

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* Gallery responsive */
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem; }
}


/* =====================================================================
   NAV MOBILE RIGHT — wraps lang toggle + hamburger on mobile
   ===================================================================== */

.nav-mobile-right {
  display: none;   /* hidden on desktop */
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

@media (max-width: 560px) {
  nav ul.desktop-menu { display: none; }
  .nav-mobile-right { display: flex; }
  .nav-hamburger { display: flex; }
  nav { padding: 0 1.5rem; }
}
