/*
 * HirePro Hospitality Training Centre Website Stylesheet
 *
 * This stylesheet defines the visual appearance of the HirePro web site.
 * It uses a warm, modern colour palette inspired by the brand brief:
 *   Deep navy (primary), terracotta orange (secondary), soft beige (light)
 *   and charcoal grey (dark). Typography pairs a modern serif for headings
 *   with a clean sans‑serif for body copy. The layout is mobile‑first
 *   and fully responsive, using flexbox and CSS grid where appropriate.
 */

/* Import Google fonts for modern typography */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&family=Open+Sans:wght@300;400;600;700&display=swap');

/* CSS variables to centralise the colour palette */
:root {
  --color-primary: #0a2342;   /* deep navy */
  --color-secondary: #cb6843; /* terracotta orange */
  --color-light: #f5f1e6;     /* soft beige */
  --color-dark: #333333;      /* charcoal grey */
  --color-accent: #c49a6c;    /* muted gold accent */
  --max-width: 1200px;
}

/* Global reset and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Lora', serif;
  color: var(--color-primary);
  margin-bottom: 0.5em;
  line-height: 1.2;
}

p {
  margin-bottom: 1.2em;
}

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

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

/* Utility container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation bar */
header {
  background-color: var(--color-primary);
  color: #ffffff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
  margin-right: 0.5rem;
}

.nav-logo span {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Style brand name link in the navbar */
.nav-logo a {
  color: #ffffff;
  display: flex;
  align-items: center;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav li {
  margin-left: 1.5rem;
}

nav a {
  color: #ffffff;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: var(--color-secondary);
}

.btn-primary {
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #b35537;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 25px;
  background-color: #ffffff;
  margin-bottom: 5px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero section */
/*
 * Hero section styling. The hero uses a deep navy gradient instead of a
 * photographic background when no image is provided. When images become
 * available, a second gradient layer can be added on top of the photo.
 */
.hero {
  position: relative;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  /* Use the barista photo as the hero background with a semi‑transparent gradient overlay */
  background: linear-gradient(180deg, rgba(10,35,66,0.8) 0%, rgba(31,64,99,0.8) 100%), url('../assets/img/hero-barista.jpg') center/cover no-repeat;
  padding: 3rem 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f5f1e6;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Benefits section */
.benefits {
  background-color: var(--color-light);
  padding: 3rem 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefit-card .icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.benefit-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

/* About section styling */
.about {
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.about img {
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.about-content h2 {
  margin-bottom: 1rem;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Courses section styling */
.courses {
  padding: 3rem 1rem;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.course-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.course-card:hover {
  transform: translateY(-4px);
}

.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.course-card .course-content {
  padding: 1.5rem;
}

.course-card .course-content h3 {
  margin-bottom: 0.5rem;
}

.course-card .course-content p {
  margin-bottom: 1rem;
}

.course-card .course-content .btn-primary {
  margin-top: 0.5rem;
}

/* Course detail pages */
.course-detail {
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.course-detail img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.course-detail h2 {
  margin-bottom: 1rem;
}

.course-modules {
  margin-bottom: 2rem;
}

.course-modules ul {
  list-style: disc inside;
  margin-left: 1rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Admissions page */
.admissions {
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.step {
  background-color: var(--color-light);
  border-left: 4px solid var(--color-secondary);
  padding: 1rem;
  border-radius: 4px;
}

.step h4 {
  margin-bottom: 0.5rem;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
  background-color: var(--color-light);
  border-radius: 4px;
}

.faq-item p {
  margin-top: 0.5rem;
  padding-left: 0.5rem;
}

/* Admissions form */
.application-form {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.application-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.application-form input,
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.application-form button {
  margin-top: 0.5rem;
}

/* Contact page */
.contact {
  padding: 3rem 1rem;
  background-color: #ffffff;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-form {
  background-color: var(--color-light);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
}

footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

footer a {
  color: #ffffff;
  font-weight: 600;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--color-secondary);
}

footer p {
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--color-primary);
    flex-direction: column;
    align-items: flex-start;
    width: 250px;
    padding: 1rem;
    display: none;
  }
  nav ul.open {
    display: flex;
  }
  nav li {
    margin: 0.75rem 0;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}