/* style/contact.css */
/* 
  Body background color is #08160F (dark), so text should be light (#F2FFF6).
  Card background color is #11271B (darker green), so text should be light (#F2FFF6).
*/

.page-contact {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* General Container */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  overflow: hidden; /* Ensure no overflow from image */
  background-color: #08160F; /* Background */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-contact__hero-content {
  max-width: 800px;
  margin-top: 20px;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-contact__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  border: none;
}

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

.page-contact__btn-secondary {
  background: transparent;
  color: #2AD16F; /* A lighter green from the gradient for contrast */
  border: 2px solid #2AD16F;
}

.page-contact__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
}

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

.page-contact__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: #08160F; /* Background */
  padding: 60px 0;
}

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

.page-contact__method-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 200px; /* Max size for icon */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-contact__method-text {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-contact__method-link {
  color: #2AD16F; /* A lighter green for links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__method-link:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

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

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

.page-contact__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 20px 25px;
  color: #F2FFF6; /* Text Main */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #F2FFF6; /* Text Main */
  list-style: none; /* Hide default marker for summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #2AD16F; /* Lighter green for toggle */
}

.page-contact__faq-answer {
  padding-top: 15px;
  border-top: 1px solid #1E3A2A; /* Divider */
  margin-top: 15px;
  color: #A7D9B8; /* Text Secondary */
}

/* Location Section */
.page-contact__location-section {
  background-color: #08160F; /* Background */
  padding: 60px 0;
}

.page-contact__location-details {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6; /* Text Main */
}

.page-contact__location-details p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #A7D9B8; /* Text Secondary */
}

.page-contact__location-details strong {
  color: #F2FFF6; /* Text Main */
}

.page-contact__location-map {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-contact__container {
    padding: 20px 15px;
  }

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure minimal top padding for hero on mobile */
  }

  .page-contact__hero-image-wrapper {
    max-height: 300px; /* Adjust height for mobile */
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact 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;
  }
  
  /* Ensure all containers with buttons also adapt */
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-contact__section-title {
    font-size: 2em;
  }

  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-contact__method-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-contact__method-card {
    padding: 20px;
  }

  .page-contact__method-title {
    font-size: 1.5em;
  }

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

  .page-contact__faq-question {
    font-size: 1.1em;
  }

  .page-contact__faq-answer {
    font-size: 0.95em;
  }

  .page-contact__location-details {
    padding: 20px;
  }

  .page-contact__location-details p {
    font-size: 1em;
  }

  /* Image responsiveness for mobile */
  .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-section,
  .page-contact__contact-methods,
  .page-contact__faq-section,
  .page-contact__location-section,
  .page-contact__location-details {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Specific padding adjustments for sections */
  .page-contact__contact-methods,
  .page-contact__faq-section,
  .page-contact__location-section {
    padding: 40px 0; /* Adjust vertical padding */
  }

  .page-contact__hero-image-wrapper,
  .page-contact__location-map {
    padding: 0; /* Remove horizontal padding if applied to these elements directly */
  }
}

/* Ensure images maintain aspect ratio and don't overflow parent containers */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Desktop specific width for video-container (if a video were present, it would apply) */
.page-contact__video-container {
  width: 100%; /* Must be explicitly set for desktop */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}