/*
FONTS
*/

/*Wide text for members page*/
.wide-text {
  max-width: 900px;   
  margin: 2rem auto;
  padding: 1rem;
}

.wide-text p {
  font-size: 1.3rem;
}

/* Centered text */
.centered-text-block {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #333;
}

/* headers */
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  font-style: italic;
  font-weight: 200;
  color: #000000;
  margin-left: 12rem;
}

@media (max-width: 768px) {
  h2 { font-size: 5rem; }
}

h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 400;
  color: #000000;
  margin-left: 12rem;
}

/*Header for Our Vision*/
h4 {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 6rem;
  font-style: italic;
  font-weight: 100;
  color: #000000;
}

@media (max-width: 768px) {
  h4 { font-size: 5rem; }
}

/* Paragraphs */
p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 100;
  color: #000000;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  margin-left:  12rem;
  margin-right: 1.5rem;
  text-align: justify-all;
}

strong, b {
  color: #4682B4;
  font-family: 'Cormorant Garamond', serif;
  font-weight: bold;
}


/* Sliding text */
.text-slide {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: 0.2s;
}

.text-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .text-slide {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Base layout */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html {
  scroll-behavior: smooth; /* dont just jump to sections based on nav menu clicks */
}


/* above grain at z 1*/
main, header {
  position: relative;
  z-index: 2;
}

/*css effects*/
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: 
    repeating-radial-gradient(circle at 0 0, transparent 0, #000 2px);
  opacity: 0.025;
  pointer-events: none;
}

/*grain layer*/
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");

  mix-blend-mode: soft-light;;
  opacity: 0.2;
}

section {
  position: relative;
  /*background: #f4f1ea;*/
}

section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("grain.png");
  opacity: 0.7;
  mix-blend-mode: multiply;
  pointer-events: none;
}

p {
  color: #000000;
  transition: color 1.2s ease;
}

body {
  background-color: #8acbeb;
  transition: background-color 1s ease;
}

body.section-home {
  background-color:#8acbeb;
}

body.section-about {
  background-color: #FFFAED;
}

body.section-about p { 
  color:  #000000;
}
body.section-about .site-header .nav-menu a { 
  color:  #000000;
}

body.section-members {
  background-color:#FFFAED;
}

body.section-members p { 
  color:  #000000;
}

body.section-members h2 { 
  color:  #000000;
}

body.section-members .site-header .nav-menu a { 
  color: #000000;
}

body.section-duo {
  background-color: #FFFAED;
}

body.section-quartet {
  background-color: #FFFAED;
}

body.section-schedule {
  background-color: #FFFAED;
}

body.section-watch {
  background-color: #FFFAED;
}

body.section-contact {
  background-color: #FFFAED;
}

.page-content {
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================
   SIDEBAR HEADER (FIXED)
========================= */

.site-header {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 200px;
  position: fixed !important;
  top: 0;
  left: 0;
  background-color: transparent;
  z-index: 9999;
  border: none !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease, height 0.3s ease;
}

/* Wrapper */
.site-header .wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 0;
  margin: 1rem 1rem;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

/* Logo */
.site-title {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.site-title img {
  height: 80px;
  width: auto;
  display: block;
  transition: opacity 1.2s ease;
  opacity: 0;
}

/* Scrolled nav menu*/
.site-header.scrolled .site-title img {
  opacity: 1;
}

/* =========================
   NAVIGATION (FIXED)
========================= */

.site-nav {
  display: flex;
  flex-direction: column;
  height: 100%; 
}

/* Toggle button */
.nav-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: black;
  align-self: flex-start;
}

/* Menu list */
.nav-menu {
  position: sticky;
  transform: translateZ(0);
  top: 20px;
  max-height: calc(100vh - 20px);
  overflow-y: auto;
  transform: translateY(min(50vh, 300px)); /* cap the shift */
  transition: transform 1.2s ease, gap 0.5s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  gap: 1.4rem;
  list-style: none;
  align-items:  flex-start;
  margin-right: auto;
  /*margin-top: auto;  pushes to bottom */
}

/* Scrolled nav menu*/
.site-header.scrolled .nav-menu {
  transform: translateY(0);
  gap: 0.5rem;
}

.nav-menu a {
  line-height: 1;
}


/* Links */
.nav-menu a {
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 100;
  color: black;
  line-height: 1;
  display: block;
  text-align: left;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  /*color: #000000;*/
  color: #4682B4;
}



/*.site-header.scrolled .nav-menu a:hover {
  color: #4682B4 !important;
}*/

/* =========================
   BANNER
========================= */

.banner-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.full-banner {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.banner-text {
  position: absolute;
  bottom: 6rem;
  left: 3%;
  text-align: center;
  color: #1F1F1F;
  font-family: 'Cormorant Garamond', serif;
}

.banner-text h1 {
  font-size: 3rem;
  margin: 0;
}


/* =========================
   Index Page Logo
========================= */

.idx-container {
  position: relative;
  /*background-color: #FFFAED;*/
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center; /* horizontal centering*/
  align-items: center;  /* vertical centering */
}

.idx-logo {
  height: 8rem;
  object-fit: cover;
}

/* =========================
   CONTENT SECTIONS
========================= */

.blue-bg {
  background-color: #FFFAED;
  height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
}

.blue-bg p,
.blue-bg h2 {
  color: white;
}

.text-image-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
}

.text-column {
  flex: 1;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 200;
  font-size: 1.2rem;
  margin: 0 3rem;
  text-align: justify;
}

.image-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-column img {
  max-width: 100%;
  width: 75%;
  height: auto;
  border-radius: 8px;
}

/* =========================
   ICON GRID
========================= */

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin: 0 auto;
  padding: 0 2rem;
}

.icon-item {
  flex: 1 1 150px;
  max-width: 150px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-toggle {
  background: none;
  border: none;
  cursor: pointer;
}

.icon-toggle img {
  width: 200px;
  transition: transform 0.3s ease;
}

.icon-toggle:hover img {
  transform: scale(1.1);
}

.icon-dropdown {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease;
  margin-top: 1rem;
}

/* =========================
   SCHEDULE TABLE
========================= */

.schedule-table tr,
.schedule-table tbody tr,
.schedule-table tbody tr:nth-child(even),
.schedule-table tbody tr:nth-child(odd) {
  background: transparent !important;
}

.schedule-table {
  margin-left: 12rem;
  margin-right: 1rem;   
  width: calc(100% - 13rem);
  table-layout: fixed;
  background: transparent;
  border-collapse: collapse;
  border: none;
}

.schedule-table thead {
  display: none; /*hide header*/
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.schedule-table {
  border: none;
  box-shadow: none;
}

.schedule-table * {
  box-shadow: none;
  border: none;
}

.schedule-table td {
  vertical-align: top;
  line-height: 1.0;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 2px solid #454545;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.cell-content {
  display: block;
}

.Date {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 3rem;
  font-weight: 500;
  color: #000000;
}

.Year {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 200;
  color: #000000;
}

.Event {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size:  2rem;
  font-weight: 400;
  color: #000000;
}

.Event-subtitle {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1rem;
  font-weight: 200;
  color: #000000;
}

.Location {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size:  1rem;
  font-weight: 300;
  color: #000000;
}

.Location-city{
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size:  1rem;
  font-weight: 600;
  color: #000000;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

  .nav-toggle { display: block; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem;
  }

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

  .text-image-row { flex-direction: column; }

  .text-column,
  .image-column {
    margin: 0;
    padding: 0 1rem;
    width: 90%;
  }

  .site-header .wrapper { padding: 0 1rem; }
}

@media (max-width: 400px) {
  .icon-item {
    flex: 1 1 45%;
    max-width: 45%;
  }
}