/* Global Styles */

/* Define colour palette */
:root {
  --primary-color: #16375B; /* dark navy blue */
  --secondary-color: #B79E6C; /* warm gold/tan */
  --light-bg: #F8F9FB; /* very light grey for backgrounds */
  --text-color: #333333; /* dark grey for body text */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
}

/* Header and Navigation */
header {
  background: var(--primary-color);
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img.logo {
  width: 160px;
  height: auto;
}

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

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 120px 40px;
  color: white;
  text-align: center;
}

/* Dark overlay for hero to ensure text legibility */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

/* Wrap hero text on top of overlay */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  margin-bottom: 30px;
}

.cta-btn {
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

/* Sections */
.section {
  padding: 60px 40px;
}

.section h2 {
  font-size: 36px;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 40px;
}

/* About page text */
.about-text {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 18px;
  color: #555555;
}

/* Features (three columns) */
.features {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 20px;
}

.feature-box {
  flex: 1;
  padding: 20px;
  text-align: center;
}

.feature-box h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 22px;
}

.feature-box p {
  color: #555555;
  font-size: 16px;
}

/* Grid layouts for trainings and shop */
.trainings-grid, .shop-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Card styling */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 20px;
}

.card-body p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
  flex: 1;
}

.btn {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.btn:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* Contact page */
.contact-info {
  text-align: center;
  margin-bottom: 30px;
}

.contact-info p {
  font-size: 18px;
  margin-bottom: 10px;
  color: #555555;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form input, .contact-form textarea {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #CCCCCC;
  border-radius: 5px;
  font-size: 16px;
}

.contact-form button {
  width: 160px;
  padding: 10px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  align-self: center;
  font-size: 16px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
  }
  .feature-box {
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p {
    font-size: 18px;
  }
  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul li {
    margin: 10px 0;
  }
}