/* style/about.css */

/* Base styles for the About page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetic */
  text-align: center;
  background: #B71C1C; /* Custom background color for hero section */
  color: #FFF5E1; /* Text Main for dark background */
}

.page-about__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  object-fit: cover;
  margin-bottom: 30px;
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.page-about__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF5E1; /* Text Main */
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #333333; /* Dark text for gold button */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: #FFF5E1; /* Text Main for dark background */
  border: 2px solid #F4D34D; /* Gold border */
}

.page-about__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* General Section Styles */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-about__text-block {
  flex: 1;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-about__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__mission-vision-section .page-about__section-title {
  color: #C91F17; /* Main brand color for title */
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  background: #7A0E0E; /* Deep Red background */
  color: #FFF5E1; /* Text Main */
  padding: 60px 20px;
}

.page-about__why-choose-us-section .page-about__section-title {
  color: #F4D34D; /* Gold color for title */
  text-align: center;
  margin-bottom: 40px;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__feature-card {
  background: #D32F2F; /* Card BG */
  color: #FFF5E1; /* Text Main */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

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

.page-about__card-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFCC66; /* Glow color */
}

/* Commitment Section */
.page-about__commitment-section {
  background: #f8f8f8; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__commitment-section .page-about__section-title {
  color: #C91F17; /* Main brand color */
}

.page-about__commitment-section .page-about__container {
  flex-direction: row-reverse; /* Image on right, text on left */
}

/* Call to Action Section */
.page-about__cta-section {
  background: #C91F17; /* Main brand color */
  color: #FFF5E1; /* Text Main */
  padding: 80px 20px;
  text-align: center;
}

.page-about__cta-section .page-about__section-title {
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
}

.page-about__cta-section .page-about__description {
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-about__btn-large {
  font-size: 1.25rem;
  padding: 18px 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    padding: 0 30px;
  }

  .page-about__container {
    flex-direction: column;
    text-align: center;
  }

  .page-about__image {
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-about__commitment-section .page-about__container {
    flex-direction: column; /* Revert to column for consistency */
  }
}

@media (max-width: 768px) {
  /* General mobile container/padding */
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__why-choose-us-section,
  .page-about__commitment-section,
  .page-about__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-about__container {
    padding: 20px 0 !important; /* Adjust padding for mobile */
    gap: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-content {
    padding: 0 10px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-about__description {
    font-size: 1rem;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons mobile responsiveness */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Image mobile responsiveness */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__image {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  .page-about__card-title {
    font-size: 1.3rem;
  }

  .page-about__text-block p {
    font-size: 0.95rem;
  }

  .page-about__hero-section {
    padding-top: 10px !important; /* Ensure small top padding, not header-offset */
    padding-bottom: 40px;
  }

  .page-about__why-choose-us-section,
  .page-about__cta-section {
    padding: 40px 15px !important;
  }
}