/* =========================
   FONTS
========================= */
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Open Sans';
  src: url('/fonts/OpenSans-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
}

/* =========================
   BASE & LAYOUT
========================= */
.site-content {
  width: 100%;
  margin: 0 auto;
  padding: 0 30px; /* mobile padding */
  box-sizing: border-box;
  margin-top: 120px;
  max-width: 700px;
}

/* optional: consistent container behavior everywhere */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .site-content,
  .container {
    padding: 0 32px; /* desktop spacing */
  }
}

html, body {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #F5F5EC;
  background-image: url('../img/background-plants.svg');
  background-repeat: repeat;
  background-size: 400px;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}

/* Typography defaults */
p {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 1.2rem;
  color: #5a623b;
  line-height: 1.6;
  opacity: 0;
  animation: textFadeIn 2s ease forwards;
}

li{
  font-size: 1.2rem;
  color: #5a623b;
  font-weight: 300;
}


h1{
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  color: #5a623b;
  font-size: 1.6rem;
  animation: textFadeIn 2s ease forwards;
}

h2{
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  color: #5a623b;
  font-size: 1.16rem;
}
hr {
  border: none;
  border-top: 1px solid #93a164a2;
  margin: 2rem 0;
}

@keyframes textFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  margin-top: 1rem;
  padding: 2rem 1rem;
  text-align: center;
}

/* =========================
   HEADER & TITLE
========================= */

.site-title {
  margin:0px;
  justify-self: start;

}

.site-title a {
  display: block;
  text-decoration: none;
  /*font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: #f0f0e7;
  text-align: left;
  margin: 0;

  opacity: 0;
  animation: titleFadeIn 2s ease forwards;*/
}

.site-title img {
  display: block;
  width: clamp(140px, 18vw, 320px);
  height: auto;

  opacity: 0;
  animation: titleFadeIn 2s ease forwards;
}

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

@media (max-width: 768px) {
  .site-title img {
    width: clamp(120px, 40vw, 220px);
  }
}

.site-header {
  width: 100%;
  background-color: #5a623b;
  display: flex;
  flex-direction: column;
  padding: 30px 0; /* top/bottom spacing */
  box-sizing: border-box;
}

.header-top {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  padding: 0 30px;
  box-sizing: border-box;
  width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

@media (max-width: 768px) {
  .header-top {
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    padding: 0 16px;
  }

  .site-title a {
    font-size: 1.3rem;
    white-space: nowrap;
  }

  .menu-toggle {
    position: static;   /* IMPORTANT: remove absolute */
    justify-self: end;
  }
}

/* LANGUAGE SWITCHER */
.language-switcher {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #f0f0e7;
}

.language-switcher a {
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  color: #f0f0e7;
}

.language-switcher a::after {
  content: "|";
  margin-left: 6px;
}

.language-switcher a:last-child::after {
  content: "";
}

.language-switcher a.active {
  font-weight: 700;
}

/* HAMBURGER */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #f0f0e7;
  justify-self: end;

  margin: 0;
  padding: 0;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: #5a623b;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  padding: 2rem;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-close {
  background: none;
  border: none;
  color: #f0f0e7;
  font-size: 2rem;
  cursor: pointer;

  display: block;
  margin-left: auto;
  margin-bottom: 1.5rem;
}

/* MENU LIST */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li {
  margin-bottom: 1rem;
  line-height: 1rem;
  margin-bottom: 0.5rem;
}

.sidebar a {
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #f0f0e7;
  font-size: 1rem;
  line-height: 1.2rem;
}
.sidebar span{
  color: #f0f0e7;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 2rem;
}

/* SUBMENU */
.sidebar ul ul {
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  margin-left: 1rem;
  font-size: 1rem;
}

/* =========================
   INTRO
========================= */
.intro-text {
  max-width: 700px;
  margin: 20px auto;
  opacity: 0;
  animation: introFadeIn 2s ease forwards;
}
 
.intro-text p:last-of-type {
  font-weight: 700;
}

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

/* =========================
   EXHIBITION CARDS
========================= */
.bold{
  font-weight: 700;
  text-decoration: none;
  color: #93a164;
}

.exhibition-grid {
  display: grid;
  grid-template-columns: 1fr; /* default = stacked everywhere */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 0;
  gap: 0;
}

.exhibition-card {
  position: relative;
  height: 70vh;
  overflow: hidden;
  text-shadow: rgba(0, 0, 0, 0.45) 2px 2px 6px;
}

.exhibition-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.exhibition-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,0.35);
  text-align: center;
}

.exhibition-title {
  font-family: 'Open Sans', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #f0f0e7;
  margin-bottom: 1rem;
  padding-left: 5%;
  padding-right: 5%;
}

.exhibition-button {
  padding: 0.6rem 1.2rem;
  border: 1px solid #f0f0e7;
  color: #f0f0e7;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  transition: 0.2s;
}

.exhibition-button:hover {
  background: #f0f0e7;
  color: #5a623b;
  text-shadow: none;
}

.exhibition-author {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.2rem;
  color: #f0f0e7;
  padding-left: 5%;
  padding-right: 5%;
}

.exhibition-quote {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  color: #f0f0e7;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  max-width: 50ch;
  opacity: 0.9;
  padding-left: 5%;
  padding-right: 5%;
}

/* =========================
   CLOSING EVENT
========================= */
.ce-program-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.ce-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  align-items: start;
}

.ce-row img {
  width: 40px;
  height: auto;
  display: block;
  animation: introFadeIn 1.5s ease forwards;
}

.ce-row p {
  margin: 0;
}

.button {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  margin-top: 1rem;

  background-color: #5A623B;
  color: #f0f0e7;

  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;

  border-radius: 4px;
  transition: 0.2s ease;
}

.button:hover {
  background-color: #f0f0e7;
  color: #5A623B;
  border: 1px solid #5A623B;
}
.ce-address {
  margin-top: 2rem;
}

.ce-address-text {
  font-size: 1.16rem;
  font-weight: 300;
  line-height: 1.3;
  color: #5a623b;
}

.ce-address-text a {
  color: #5a623b;
  text-decoration: underline;
}

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

.footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-logos img {
  height: 40px;
  width: auto;
}

.footer-text {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  color: #93a164;
}

/* =========================
   FORM
========================= */
.form-section {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.form-intro {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.form-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-section label {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.14rem;
  font-weight: 300;
  color: #5A623B;
}

.form-section input,
.form-section textarea {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #D6D6CA;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  box-sizing: border-box;
}

.form-section button {
  background-color: #5A623B;
  color: #f0f0e7;
  border: none;
  padding: 0.7rem 1.2rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s ease;
}

.form-section button:hover {
  background-color: #f0f0e7;
  color: #5A623B;
  border: 1px solid #5A623B;
}

.form-disclaimer p {
  font-family: 'Open Sans', sans-serif;
  margin: 0 0 0.6rem 0;
  color: #5A623B;
  font-weight: 300;
  font-size: 0.8rem;
    line-height: 1.5;
}

/* mobile */
@media (max-width: 768px) {
  .form-intro {
    padding: 0 1rem;
  }
}

/* =========================
   ACKNOWLEDGEMENTS
========================= */

.acknowledgements-page {
  max-width: 700px;
}

.ack-section {
  margin-bottom: 4rem;
  margin-top: 2rem;
  text-align: center;
}

.ack-section h2{
  margin-bottom: 0rem;
}

.ack-intro {
  margin-top: 0rem;
}

.ack-entry strong{
  font-weight: 1.4rem;
  color: #5a623b;
  margin-top: 2rem;
  margin-bottom: 0;
}

.ack-block p {
  font-style: italic;
  font-size: 1rem;
  margin-top: 0;
}

.everyone {
  font-weight: 400;
  font-size: 1.2rem;
  font-style: italic;
  color: #93a164; 
  margin-top: 2rem;
}


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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 700px;
  margin: 2rem auto;
}

.contact-image img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-text h1 {
  margin-top: 0;
}

.contact-text p {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
  }

  .contact-text p {
    font-size: 0.95rem;
  }

  .contact-image img {
    width: 100%;
    max-width: 140px;
    margin: 0 auto;
  }
}


/* =========================
   RESPONSIVE (safe)
========================= */

@media (min-width: 768px) {
  .section-nav ul {
    flex-direction: row;
    justify-content: center;
  }
}

/* =========================
   PETUNIAS VIDEO PAGE
========================= */

.petunias-page {
  width: 100vw;
  height: 100vh;
  background: black;

  display: flex;
  justify-content: center;
  align-items: center;

  margin: 0;
  padding: 0;
}

.petunias-page video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
