/* Root variables for theme colors and fonts */
:root {
  /* Updated palette to match Fusion Harbor Academia logo (gold and black) */
  --primary-color: #000000; /* Black for strong contrast and header/footer */
  --secondary-color: #b79a63; /* Warm gold accent drawn from the logo */
  --background-light: #f5f3ee; /* Light off‑white background reminiscent of the logo backdrop */
  --text-color: #2d2d2d;
  --text-light: #5f5f5f;
  --max-width: 1200px;
  font-size: 16px;
}

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

body {
  font-family: 'Poppins', 'Tajawal', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
}

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

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

ul {
  list-style: none;
}

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

/* Top bar */
.top-bar {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 0.5rem 0;
}

.top-bar .brand {
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Logo */
.logo {
  height: 40px;
  width: auto;
  display: block;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-switcher .lang-button {
  background: transparent;
  border: 1px solid var(--secondary-color);
  color: var(--secondary-color);
  padding: 0.25rem 0.7rem;
  margin-left: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s, color 0.3s;
}

.language-switcher .lang-button:hover,
.language-switcher .lang-button.active {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Hero section */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.8s ease-in-out;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.45); /* improves text readability */
  padding: 20px;
}

/* Training Center Name */
.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #c7ab70; /* gold tone matching logo */
  letter-spacing: 1px;
}

/* Tagline */
.tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: #ffffff;
  max-width: 900px;
  line-height: 1.5;
}

/* Arabic direction */
.lang-ar {
  direction: rtl;
  font-family: "Tajawal", "Cairo", sans-serif;
}

.lang-en {
  direction: ltr;
}


/* Sections */
section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--secondary-color);
  text-align: center;
}

/* About section */
.about p {
  max-width: 800px;
  margin: 0.5rem auto;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  text-align: center;
}

/* Vision & Mission */
.vision-mission .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.vision-mission .col {
  flex: 0 0 48%;
  margin-bottom: 1.5rem;
}

.vision-mission p {
  color: var(--text-light);
  margin-top: 0.5rem;
  line-height: 1.7;
}

/* Values */
.values-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.value-card {
  background-color: #fdfcfb;
  border-radius: 8px;
  padding: 1.5rem;
  flex: 0 0 32%;
  margin-bottom: 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.value-card .value-number {
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 0.75rem auto;
}

.value-card h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Goals */
.goals-list {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

.goals-list li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.goals-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-size: 1.2rem;
  line-height: 1;
}

/* Services */
.services-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.services-column {
  flex: 0 0 48%;
  margin-bottom: 2rem;
}

.services-column h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.services-column ul li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.97rem;
  position: relative;
  padding-left: 1.5rem;
}

.services-column ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
}

/* Methodology */
.methodology .steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
}

.step {
  background-color: #fdfcfb;
  border-radius: 8px;
  flex: 0 0 31%;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.step-number {
  width: 36px;
  height: 36px;
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem auto;
  font-weight: 600;
}

.step h4 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Why Us */
.why-us ul {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.8;
}

.why-us li {
  margin-bottom: 0.8rem;
  position: relative;
  padding-left: 1.5rem;
}

.why-us li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary-color);
  font-size: 1.3rem;
  line-height: 1;
}

/* Contact */
.contact .contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.contact .detail {
  display: flex;
  align-items: center;
  margin: 0 1rem 0.5rem;
  font-size: 1rem;
  color: var(--primary-color);
}

.contact .icon {
  margin-right: 0.4rem;
  font-size: 1.3rem;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* Language visibility */
/* The JavaScript toggles a class on the body to determine which language to show. */
.lang-en {
  direction: ltr;
}

.lang-ar {
  direction: rtl;
}

body[data-lang='ar'] .lang-en {
  display: none;
}

body[data-lang='ar'] .lang-ar {
  display: block;
}

body[data-lang='en'] .lang-ar {
  display: none;
}

body[data-lang='en'] .lang-en {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .vision-mission .col,
  .services-column,
  .values-cards .value-card,
  .methodology .step {
    flex: 0 0 100%;
  }
  .services-wrapper {
    flex-direction: column;
  }
  .values-cards,
  .steps {
    flex-direction: column;
    align-items: stretch;
  }
  .value-card,
  .step {
    margin-bottom: 1.5rem;
  }
  .hero {
    height: 50vh;
    min-height: 300px;
  }
  .tagline {
    font-size: 1.6rem;
  }
}