/* 
 * LandAfrique Home Page Styles
 */

:root {
  --primary-color: #d2691e;
  --dark-color: #1a1a1a;
  --gray-color: #555555;
  --light-bg: #f8f9fa;
  --white: #ffffff;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
}

.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

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

.btn-primary:hover {
  background-color: #b8571a;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--primary-color);
  color: var(--white);
  margin-top: 30px;
}

.btn-outline {
  background-color: var(--white);
  color: var(--dark-color);
  border: 2px solid var(--dark-color);
}

.btn-outline:hover {
  background-color: var(--dark-color);
  color: var(--white);
}

/* Typography */
.section-label {
  display: block;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.section-description {
  font-size: 16px;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto 40px;
}

.text-center {
  text-align: center;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: url("../images/hero-bg.jpg") center center/cover no-repeat;
  background-color: var(--dark-color);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  color: var(--white);
  padding: 80px 0;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* About Section */
.about-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.about-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-color);
  margin-bottom: 20px;
}

.about-images {
  height: 100%;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  height: 100%;
}

.image-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.image-grid img:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  height: 250px;
}

.image-grid img:nth-child(2) {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  height: 100%;
}

/* Subsidiaries Section */
.subsidiaries-section {
  padding: 80px 0;
  background-color: var(--white);
}

.section-header {
  margin-bottom: 60px;
}

.subsidiary-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.subsidiary-logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.subsidiary-grid {
  margin-bottom: 40px;
}

.subsidiary-card {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 10px;
  height: 100%;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.subsidiary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.subsidiary-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.subsidiary-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-color);
  margin-bottom: 10px;
}

.learn-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.learn-more:hover {
  text-decoration: underline;
}

/* Impact Section */
.impact-section {
  padding: 80px 0;
  background-color: var(--light-bg);
}

.impact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.impact-intro {
  font-size: 16px;
  color: var(--gray-color);
  margin-bottom: 30px;
}

.impact-list {
  list-style: none;
  padding: 0;
}

.impact-list li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-color);
  margin-bottom: 15px;
  padding-left: 0;
}

/* Why Choose Section */
.why-choose-section {
  padding: 80px 0;
  background-color: var(--white);
}

.features-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.features-list li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--gray-color);
  margin-bottom: 12px;
}

.why-choose-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.cta-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 16px;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Blog Section */
.blog-section {
  padding: 80px 0;
  background-color: var(--white);
}

.blog-grid {
  margin-top: 40px;
}

.blog-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-date {
  display: block;
  font-size: 14px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.blog-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.blog-card p {
  font-size: 15px;
  color: var(--gray-color);
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.read-more:hover {
  text-decoration: underline;
}

/* Newsletter Section */
.newsletter-section {
  padding: 80px 0;
  background-color: var(--white);
}

.newsletter-content h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.newsletter-content > p {
  font-size: 16px;
  color: var(--gray-color);
  margin-bottom: 30px;
}

.newsletter-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.privacy-notice {
  margin-top: 15px;
  font-size: 14px;
  color: #888;
}

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

.privacy-notice a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .col-md-4,
  .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subsidiary-logos {
    gap: 20px;
  }

  .subsidiary-logos img {
    height: 40px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 24px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .about-section,
  .subsidiaries-section,
  .impact-section,
  .why-choose-section,
  .cta-section,
  .blog-section,
  .newsletter-section {
    padding: 50px 0;
  }
}
