/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Default text color for the page content, based on dark body bg */
  background-color: #08160F; /* Ensure consistency with body background */
}

/* Section padding and max-width */
.page-contact__section {
  padding: 60px 20px;
  background-color: #08160F; /* Default section background */
}

.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Titles and descriptions */
.page-contact__section-title {
  font-size: 2.5em;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-title--light {
  color: #F2FFF6; /* For dark background sections */
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section-description--light {
  color: #A7D9B8; /* For dark background sections */
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above, text below */
  align-items: center;
  text-align: center;
  background-color: #08160F;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 40px;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-contact__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F2FFF6;
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* Example clamp for H1 */
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #A7D9B8;
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for responsiveness */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
}

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

.page-contact__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main color */
  border: 2px solid #2E7A4E;
}

.page-contact__btn-secondary:hover {
  background: #0A4B2C;
  color: #57E38D;
  border-color: #57E38D;
}

/* Contact Methods Grid */
.page-contact__contact-methods {
  background-color: #08160F;
}

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

.page-contact__method-card {
  background-color: #11271B;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-icon {
  width: 100%; /* Ensure full width within card */
  max-width: 200px; /* Max size for icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-contact__method-text {
  color: #A7D9B8;
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #0A4B2C; /* Custom Deep Green background */
  padding: 80px 20px;
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__faq-item {
  background-color: #11271B;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
  border: 1px solid #2E7A4E;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #11271B;
  color: #F2FFF6;
  position: relative;
  list-style: none; /* For <summary> */
}

/* Hide default marker for <details> summary */
.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-contact__faq-item summary::marker {
  display: none;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D;
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #A7D9B8;
}

.page-contact__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

.page-contact__faq-answer a {
  color: #57E38D; /* Highlight links in FAQ answers */
  text-decoration: none;
}

.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* Why Contact Section */
.page-contact__why-contact {
  background-color: #08160F;
}

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

.page-contact__why-item {
  background-color: #11271B;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__why-icon {
  width: 200px; /* Enforce min width */
  height: 200px; /* Enforce min height */
  max-width: 200px; /* Ensure it doesn't grow too large */
  max-height: 200px;
  margin-bottom: 20px;
  border-radius: 50%; /* Circular icons */
  object-fit: cover;
}

.page-contact__why-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-contact__why-text {
  color: #A7D9B8;
  flex-grow: 1;
}

/* CTA Banner at the bottom */
.page-contact__cta-banner {
  background-color: #0A4B2C; /* Custom Deep Green background */
  padding: 80px 20px;
  text-align: center;
}

.page-contact__cta-content {
  max-width: 800px;
}

/* General Link styles within content */
.page-contact a {
  color: #57E38D;
  text-decoration: none;
}

.page-contact a:hover {
  text-decoration: underline;
}

/* --- Responsive Design --- */

/* Mobile-first approach, then override for larger screens */
@media (max-width: 768px) {
  .page-contact__section {
    padding: 40px 15px;
  }

  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* Adjust H1 for smaller screens */
    padding: 0 15px;
  }

  .page-contact__hero-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__methods-grid,
  .page-contact__why-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__method-card,
  .page-contact__why-item {
    padding: 25px;
  }

  .page-contact__method-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important; /* Ensure images scale correctly */
    height: auto !important;
    max-width: 100% !important;
  }

  /* Special override for the small circular icons to meet the 200x200px rule */
  .page-contact__why-item .page-contact__why-icon {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    border-radius: 50%;
    object-fit: cover;
  }

  .page-contact__faq-section {
    padding: 60px 15px;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-contact__faq-answer {
    padding: 0 20px 15px;
  }

  .page-contact__cta-banner {
    padding: 60px 15px;
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are handled by .page-contact__container */
  }
}

/* Ensure no filter is used on images */
.page-contact img {
  filter: none !important;
}

/* Ensure content area images are not too small */
/* This rule applies to any img within .page-contact, overriding smaller default icon sizes */
.page-contact img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Ensure body padding-top is not duplicated here */
/* (This is handled by shared.css and is a reminder) */
/* .page-contact { padding-top: var(--header-offset); } - DO NOT ADD THIS HERE */