/* --- Custom Variables & CSS Reset --- */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text-dark: #000000;
  --color-text-light: #222222;
  --color-cyan: #62caf4;
  --color-border: #000000;

  /* Fonts */
  --font-primary: 'Libre Franklin', sans-serif;
  --font-heading: 'Playfair Display', serif;

  /* Spacing */
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Max width */
  --container-width: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
li {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background-color: var(--color-cyan);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* --- Layout Components --- */

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* --- Header --- */

.site-header {
  background-color: transparent;
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  min-height: 80px;
  border-bottom: 2px solid var(--color-border);
}

.logo-link {
  display: block;
  max-width: 150px;
  /* Adjust based on logo proportions */
}

.logo {
  max-height: 50px;
  width: auto;
}

.desktop-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-black);
  text-transform: capitalize;
  transition: color 0.3s ease;
}

.nav-item:hover,
.nav-item:focus {
  color: var(--color-accent);
}

/* --- Mobile Menu --- */

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-black);
  border-radius: 2px;
  transition: all 0.3s linear;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-white);
  padding-top: 100px;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-nav[aria-hidden="false"] {
  transform: translateY(0);
}

.mobile-nav-list {
  text-align: center;
  width: 100%;
}

.mobile-nav-list li {
  margin-bottom: var(--spacing-md);
}

.mobile-nav-list .nav-item {
  font-size: 1.5rem;
  font-weight: 400;
}

/* Menu Toggle Animation */
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* --- Big Logo Section --- */

.big-logo-section {
  display: flex;
  justify-content: center;
  padding: var(--spacing-md) 0;
}

.big-logo {
  max-width: 18%;
  height: auto;
}

/* --- Hero Section --- */

.hero-section {
  width: 100%;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: center;
}

.hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  /* border-radius for pill shape */
  border-radius: 60px 60px 20px 20px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --- Welcome / Content Section --- */

.welcome-section {
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.welcome-inner {
  max-width: 1400px;
  width: 100%;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  align-items: start;
}

.welcome-heading {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
  letter-spacing: -1px;
}

.welcome-paragraphs p {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  /* Regular weight based on screenshot */
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.welcome-image-wrapper {
  margin-top: var(--spacing-xl);
  display: flex;
  justify-content: center;
  width: 100%;
}

.welcome-bottom-image {
  max-width: 80%;
  height: auto;
}

/* --- Footer --- */

.site-footer {
  background-color: transparent;
  padding: var(--spacing-lg) 0;
  text-align: center;
}

.site-footer p {
  font-size: 0.875rem;
  color: var(--color-text-dark);
}

/* --- Media Queries --- */

/* Tablet and up */
@media screen and (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .welcome-heading {
    font-size: 3rem;
  }
}

/* Large Desktop */
@media screen and (min-width: 1024px) {
  .welcome-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .welcome-heading {
    font-size: 4rem;
  }

  .welcome-bottom-image {
    max-width: 60%;
  }
}

@media screen and (max-width: 767px) {
  .header-inner {
    flex-direction: row-reverse;
  }

  .logo-link {
    display: flex;
    justify-content: center;
    flex-grow: 1;
  }

  .welcome-heading {
    font-size: 2.5rem;
  }

  .big-logo {
    margin-top: 2rem;
    max-width: 25%;
  }
}

/* --- About Page Styles --- */

.about-hero-section {
  background-color: var(--color-cyan);
  padding: var(--spacing-lg) 0 0 0;
  /* No bottom padding so the image can stretch if needed or just align */
  padding-bottom: var(--spacing-xl);
}

.about-hero-container {
  padding-top: var(--spacing-sm);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.page-title {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  /* Larger than welcome heading based on screenshot */
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--spacing-md);
  margin-top: 0;
  line-height: 1;
  letter-spacing: -2px;
}

.about-paragraphs p {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-black);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  line-height: 1;
  letter-spacing: -1px;
}

.qualifications-list p {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.qualifications-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.qualifications-logos img {
  max-width: 250px;
  height: auto;
}

.ada-logo-wrapper {
  display: flex;
  flex-direction: column;
}

.ada-logo-wrapper img {
  max-width: 250px;
}

.rego-text {
  font-family: var(--font-primary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
  color: var(--color-text-light);
}

.about-image-right {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.about-headshot-wrapper {
  width: 100%;
  max-width: 700px;
  /* border-radius for pill shape */
  border-radius: 60px 60px 20px 20px;
  overflow: hidden;
}

.about-headshot {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* --- Vision Section --- */
.vision-section {
  background-color: var(--color-white);
  padding: var(--spacing-xl) 0;
}

.vision-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.4;
  max-width: 800px;
  margin-top: -1rem;
  /* Adjusting gap below title */
}

.vision-section .section-subtitle {
  margin-top: 0;
  margin-bottom: 2rem;
}

/* --- Bottom Band Section --- */
.bottom-band-section {
  background-color: var(--color-cyan);
  padding: var(--spacing-xl) 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottom-band-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.bottom-band-image {
  max-width: 60%;
  height: auto;
}

/* Tablet and up */
@media screen and (min-width: 768px) {
  .page-title {
    font-size: 6rem;
  }
}

/* Large Desktop */
@media screen and (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .page-title {
    font-size: 8rem;
  }

  .section-subtitle {
    font-size: 4.5rem;
  }
}

@media screen and (max-width: 767px) {
  .page-title {
    font-size: 4rem;
  }

  .section-subtitle {
    font-size: 3rem;
  }

  .vision-text {
    font-size: 1.4rem;
  }
}

/* --- What is MSL Page Styles --- */

.msl-header {
  background-color: var(--color-white);
}

.msl-header .header-inner {
  border-bottom: none;
}

.msl-hero-section {
  background-color: var(--color-white);
  padding: var(--spacing-xl) 0;
}

.msl-hero-container {
  padding-top: var(--spacing-lg);
}

.msl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.msl-paragraphs p {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.msl-bullet-list {
  margin-top: 2.5rem;
}

.msl-bullet-list li {
  display: flex;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.msl-bullet-list .dash {
  margin-right: 1.5rem;
  flex-shrink: 0;
}

/* Large Desktop */
@media screen and (min-width: 1024px) {
  .msl-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* --- Sessions Page Styles --- */

.session-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.session-header-overlay .header-inner {
  border-bottom: none;
}

.session-header-overlay .nav-item {
  color: var(--color-white);
}

.session-header-overlay .nav-item.active {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.session-header-overlay .hamburger-line {
  background-color: var(--color-white);
}

.session-hero-banner {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background-image: url('images/Session header.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.session-hero-banner-title {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  letter-spacing: -2px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* Tablet and up */
@media screen and (min-width: 768px) {
  .session-hero-banner-title {
    font-size: 8rem;
    letter-spacing: -4px;
  }
}

/* Large Desktop */
@media screen and (min-width: 1024px) {
  .session-hero-banner-title {
    font-size: 11rem;
    letter-spacing: -6px;
  }
}

.session-content-section {
  background-color: var(--color-white);
  padding: var(--spacing-md) 0 var(--spacing-xl) 0;
}

.session-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
}

.session-intro {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.session-bullet-list {
  margin-top: 1rem;
}

.session-bullet-list li {
  display: flex;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.session-bullet-list .dash {
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.session-image-right {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.session-image-wrapper {
  width: 100%;
  max-width: 700px;
  border-radius: 60px 60px 20px 20px;
  overflow: hidden;
}

.session-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Large Desktop */
@media screen and (min-width: 1024px) {
  .session-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* --- Contact Page Styles --- */

.contact-section {
  background-color: var(--color-white);
  padding: var(--spacing-xl) 0;
}

.contact-container {
  padding-top: var(--spacing-md);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

.contact-info .page-title {
  font-family: var(--font-heading);
  font-size: 5.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--spacing-md);
  margin-top: 0;
  line-height: 1;
  letter-spacing: -2px;
}

.contact-detail {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  /* tight margin */
}

/* Underline email text */
.email-link {
  text-decoration: underline;
  color: var(--color-text-light);
  transition: color 0.3s ease;
}

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

.contact-info .map-wrapper {
  margin-top: var(--spacing-lg);
  width: 100%;
  overflow: hidden;
}

/* Contact Form Wrapper */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-dark);
}

.form-group .required {
  color: #d9534f;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text-dark);
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fafafa;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-black);
  box-shadow: 0 0 0 1px var(--color-black);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #999;
}

/* Form Submit Button */
.submit-button {
  display: inline-block;
  align-self: flex-start;
  padding: 1rem 3rem;
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  border-radius: 40px;
  /* Pill shape */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
  margin-top: 1rem;
}

.submit-button:hover,
.submit-button:focus {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Tablet and up */
@media screen and (min-width: 768px) {
  .form-row {
    flex-direction: row;
    gap: 1.5rem;
  }

  .half-width {
    flex: 1;
  }
}

/* Large Desktop */
@media screen and (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .contact-info .page-title {
    font-size: 6rem;
  }

  .contact-info .map-wrapper {
    margin-top: 3rem;
  }
}

/* --- Utility Classes --- */

.bg-white {
  background-color: var(--color-white) !important;
}

.no-border {
  border-bottom: none !important;
}