/* Import the fonts */
@import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;1,500&display=swap');

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  color: var(--black);
}

body {
  font-family: "Work Sans", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "EB Garamond", serif;
  font-style: italic; 
}

.placeholder,
[placeholder] {
  background-color: rgba(255, 255, 255, 0.7);
}

body {
  min-height: 100vh;

  display: flex;
  flex-flow: column nowrap;

  background-color: var(--white);
}

header {
  min-height: 48px;
  padding: 0 80px;

  background: #DD702D;

  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}

/* Desktop styles */
@media only screen and (min-width: 769px) {
  .mobile-nav {
    display: none;
  }
  .header-logo {
    display: none;
  }
}

.hamburger {
  display: none;
}

@media only screen and (max-width: 768px) {
  /* Show hamburger icon on small screens */
  header {
    place-items: center;
    justify-content: center;
    padding: 10px 20px;
    gap: 1rem;
  }
  
  .header-logo {
    height: 2rem;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    width: 32px;
    height: 32px;
  }

  /* Hide desktop nav on small screens */
  .nav-container .desktop-nav {
    display: none;
  }

  /* Show the mobile nav when the toggle is active */
  .mobile-nav {
    display: block;
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    background-color: #DD702D;
    padding: 1rem;
    z-index: 10;
  border-bottom: 1px solid #DD702D;

/* Enlistment defensive overrides */
.enlistment .tables-container .text-teal,
.enlistment .tables-container .text-teal * {
  color: #DD702D !important;
  border-color: #DD702D !important;
}

.enlistment .tables-container,
.enlistment .tables-container table,
.enlistment .tables-container th,
.enlistment .tables-container td {
  border-color: #DD702D !important;
  outline-color: #DD702D !important;
}

/* Enlistment table header styling: use Fira Regular and green accent */
.enlistment .tables-container table thead,
.enlistment table thead {
  font-family: "Fira Regular", 'Fira Sans', 'Work Sans', sans-serif;
  font-weight: 400; /* Regular */
  color: #8CB33D !important;
}
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-nav ul li {
    font-size: 16px;
  }

  .hidden {
    display: none;
  }
}

header ul {
  list-style-type: none;
  margin: 0;
  height: 100%;

  display: flex;
  flex-flow: row wrap;
  column-gap: 16px;
  align-items: center;
}

header ul li {
  padding: 6px 16px;
  border-radius: 8px;
  transition: 0.3s;

  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14px;
}

header ul li:hover {
  background-color: #8cb33d;
}

header a {
  color: var(--white);
  text-decoration: none;
}

main {
  flex-grow: 1;
  background: url("../noise-texture.png");
  background-repeat: repeat;
}

footer {
  background: #3C4D1A;
  margin-top: auto;
}

footer .upper {
  padding: 4rem 11rem;
  justify-content: center;

  display: flex;
  flex-wrap: wrap;
  
  align-items: center;
  background: #3C4D1A;
}

footer .upper-links {
  display: flex;
  row-gap: 24px;
}

footer .footer-logo {
  width: 300px;
  padding-top: 20px;
  margin-right: 10%;
}

footer ul {
  list-style-type: none;

  margin: 0;
  padding: 16px;

  display: flex;
  flex-flow: column nowrap;
  row-gap: 24px;
  justify-content: flex-start;
}

footer ul li {
  font-size: 16px;
  font-weight: 600;
}

footer a {
  color: var(--white);
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
}

footer .lower {
  background-color: #212B0E;
  padding: 20px 64px;
}

footer .lower p {
  margin: 0;
  color: white;
  font-weight: 600;
  text-align: center;
}

@media screen and (max-width: 768px) {
  footer .footer-logo {
    width: 250px;
  }
}

@media screen and (max-width: 576px) {
  footer .footer-logo {
    width: 200px;
  }
}

@media screen and (max-width: 350px) {
  footer .upper {
    padding: 4rem 5rem;
  }

  footer .footer-logo {
    width: 150px;
  }
}

.link {
  transition: 0.3s;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}

.link.teal {
  color: var(--teal-50);
}

.link.teal:hover {
  color: var(--teal-60);
  text-decoration-color: var(--teal-60);
}

.link.teal:active {
  color: var(--teal-80);
  text-decoration-color: var(--teal-80);
}

.link.black {
  color: var(--black);
}

.link.black:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.link.black:active {
  color: var(--orange-700);
  text-decoration-color: var(--orange-700);
}

.link.white {
  color: var(--white);
}

.link.white:hover {
  color: var(--cream);
  text-decoration-color: var(--cream);
}

.link.white:active {
  color: var(--cream-300);
  text-decoration-color: var(--cream-300);
}

input[type="date"] {
  border: none;
  border-bottom: 1px solid var(--blue);
  padding: 8px;

  font-size: var(--default-font-size);
  text-transform: uppercase;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  background: url("../calendar.svg");
  background-size: cover;
  width: 20px;
  height: 20px;
}

input[type="time"] {
  border: none;
  border-bottom: 1px solid var(--blue);
  padding: 8px;

  font-size: var(--default-font-size);
  text-transform: uppercase;
}

input[type="time"]::-webkit-calendar-picker-indicator {
  background: url("../clock.svg");
  background-size: cover;
  width: 20px;
  height: 20px;
}

.class-type {
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  font-weight: 600;
  padding: 4px 16px;

  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;

  min-height: 48px;
  font-size: var(--subtitle-font-size);
  letter-spacing: var(--subtitle-letter-spacing);

}

/* Ensure paragraph tags inside class-type also render white */
.class-type p { color: #fff; font-size: 20px; }

.class-type.workshop {
  /* Workshop gradient (top-down): #CEE89B -> #8CB33D */
  background: linear-gradient(180deg, #CEE89B 0%, #8CB33D 100%);
}

.class-type.talkpanel {
  /* Panel (Talk/Panel) gradient (top-down): #F2D79D -> #F7C556 */
  background: linear-gradient(180deg, #F2D79D 0%, #F7C556 100%);
}

.class-type.trip {
  /* Trip gradient (top-down): #C7E8F0 -> #73CBE1 */
  background: linear-gradient(180deg, #C7E8F0 0%, #73CBE1 100%);
}

.class-type.film-showing {
  background: linear-gradient(180deg, #F7C556 0%, #DD702D 100%);
}

.class-type.performance {
  background: linear-gradient(180deg, #C7E8F0 0%, #73CBE1 100%);
}

input[type="checkbox"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  scale: 2;
  transform: translate(25%, 25%);
}

/* Brand directive: Global H2 styling */
h2 {
  color: #056C63;
  font-family: 'RL Aqva Black', 'EB Garamond', serif;
  font-style: normal; /* override earlier italic */
  font-weight: 900;
}
