/* PRSPS Website v2 Styles */

/* Colour palette and fonts */
:root {
  --color-primary: #e2b947; /* warm gold accent */
  --color-secondary: #041629; /* deep navy for text */
  --color-light: #ffffff; /* white backgrounds */
  --color-muted: #f7f7f7; /* soft grey for panels */
  --color-border: #e5e5e5; /* light border lines */
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-secondary);
  background-color: var(--color-light);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.site-header {
  background-color: var(--color-light);
  color: var(--color-secondary);
  border-bottom: 3px solid var(--color-primary);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img {
  height: 54px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.8rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--color-secondary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.site-nav a.active,
.site-nav a:hover {
  color: var(--color-primary);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  border: none;
  background: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

/* Colour for the inline SVG hamburger icon */
.nav-icon {
  color: var(--color-secondary);
}

/* On small screens the hamburger lines can be difficult to see against the gradient
   hero background. Use the primary accent colour for better contrast. */
@media (max-width: 768px) {
  /* Ensure the mobile hamburger lines (if present) use the same dark colour as the desktop version */
  .nav-toggle span {
    background-color: var(--color-secondary);
  }
}

/* Hero section */
.hero {
  /* gradient combining primary and secondary colours */
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-light);
  text-align: center;
  padding: 5rem 1rem;
}

/* Hero image styling */
.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin: 0 0 1rem;
  letter-spacing: 2px;
}

/* Reduce the size of the hero heading on smaller screens so it wraps
   to three lines instead of four. This improves readability on mobile. */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
    line-height: 1.1;
  }
}
.hero .tagline {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.hero .dates {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
}
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}
.btn-primary:hover {
  background-color: #c79a32;
}
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-light);
}
.btn-secondary:hover {
  background-color: #02101f;
  color: var(--color-primary);
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-light {
  background-color: var(--color-light);
  color: var(--color-secondary);
}
.section-muted {
  background-color: var(--color-muted);
  color: var(--color-secondary);
}
.section-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 1.2rem;
  letter-spacing: 2px;
  text-align: center;
}

/* Card grid utility (for schedule, speakers, sponsors) */
.card-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}
.card {
  background-color: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-body {
  padding: 1rem 1.2rem 1.5rem;
}
.card-body h3 {
  font-family: var(--font-heading);
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* Schedule summary tiles */
.summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.summary-item {
  flex: 1 1 200px;
  background-color: var(--color-muted);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
}
.summary-item h3 {
  font-family: var(--font-heading);
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}

/* Form styles */
form {
  max-width: 600px;
  margin: 0 auto;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 1rem;
}
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Footer */
.site-footer {
  background-color: var(--color-secondary);
  color: var(--color-light);
  padding: 2rem 0;
  margin-top: 4rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.footer-content p {
  margin: 0;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.footer-links a {
  color: var(--color-light);
  text-decoration: none;
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--color-primary);
}

/* Schedule table */
.schedule-day {
  margin-bottom: 2rem;
}
.schedule-day h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.schedule-table th,
.schedule-table td {
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  text-align: left;
}
.schedule-table th {
  background-color: var(--color-muted);
  font-weight: 600;
}
.schedule-table tbody tr:nth-child(even) {
  background-color: var(--color-light);
}
.schedule-table tbody tr:nth-child(odd) {
  background-color: var(--color-muted);
}

/* Logo carousel for partner organisations on the home page */
.logo-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.logo-carousel .logo-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.logo-carousel .logo-item img {
  height: 80px;
  width: auto;
}
@media (min-width: 769px) {
  .logo-carousel .logo-item img {
    height: 100px;
  }
}

/* Admin attendees table */
#attendees-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
#attendees-table th,
#attendees-table td {
  border: 1px solid var(--color-border);
  padding: 0.5rem;
  text-align: left;
}
#attendees-table th {
  background-color: var(--color-muted);
  font-weight: 600;
}

/* Speaker biography sections */
.speaker-bio {
  margin-bottom: 2rem;
}
.speaker-bio h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.speaker-bio p {
  margin-bottom: 0.5rem;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 60%;
    max-width: 300px;
    background-color: var(--color-light);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    padding-top: 5rem;
  }
  .site-nav.open {
    transform: translateX(0);
  }
  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    padding-left: 1.5rem;
  }
  .nav-toggle {
    display: flex;
  }
}