/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  background-color: var(--bg-color, #08160F); /* Fallback to custom bg if shared doesn't define */
  color: var(--text-main-color, #F2FFF6); /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section padding and max-width for content */
.page-contact__section {
  padding: 80px 0;
  position: relative;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above text in DOM order */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  max-height: 500px; /* Limit height for hero image */
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-contact__hero-content {
  position: relative; /* Not absolute, for upper-lower flow */
  z-index: 2;
  color: #F2FFF6;
  max-width: 800px;
  padding: 0 20px;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__intro-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Secondary text color */
}

/* Buttons */
.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box; /* Crucial for button max-width on mobile */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__social-btn {
    background: #11271B; /* Darker background for social buttons */
    color: #F2FFF6;
    border: 1px solid #2E7A4E;
}

.page-contact__social-btn:hover {
    background: #2E7A4E;
    transform: translateY(-2px);
}

/* Section Titles */
.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-contact__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #2AD16F; /* Main brand green */
  border-radius: 2px;
}

.page-contact__section-title--alt {
  color: #F2C14E; /* Gold for alternative titles */
}

/* Text Blocks */
.page-contact__text-block {
  font-size: 1.1rem;
  color: #A7D9B8; /* Secondary text color */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-contact__text-block--alt {
  color: #F2FFF6;
  margin-bottom: 40px;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: #0A4B2C; /* Deep Green background for this section */
}

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

.page-contact__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #F2FFF6; /* Main text color */
}

.page-contact__card-title {
  font-size: 1.8rem;
  color: #F2C14E; /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__card-icon {
  width: 100%;
  max-width: 200px; /* Ensure icons are not tiny */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__card-description {
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

.page-contact__contact-info {
  font-size: 1.1rem;
  color: #F2FFF6;
  margin-bottom: 20px;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #08160F; /* Background */
  padding-bottom: 80px;
}

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

.page-contact__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-contact__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for WebKit */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #11271B; /* Card BG */
  color: #F2FFF6;
  position: relative;
  user-select: none;
}

.page-contact__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #2AD16F;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: '−';
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Secondary text color */
  text-align: left;
}

.page-contact__faq-answer p {
  margin: 0;
  color: #A7D9B8;
}

/* CTA Bottom Section */
.page-contact__cta-bottom {
  padding: 80px 0;
  background-color: #08160F; /* Background */
}

.page-contact__cta-bottom .page-contact__container {
    background-color: #11271B; /* Card BG */
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #2E7A4E;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-contact__section {
    padding: 50px 0;
  }

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Body handles header offset, this is for visual padding */
  }

  .page-contact__hero-image {
    max-height: 300px;
  }

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

  .page-contact__intro-text {
    font-size: 1rem;
  }

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

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

  /* Ensure containers have proper padding and max-width */
  .page-contact__container,
  .page-contact__section,
  .page-contact__card,
  .page-contact__faq-item,
  .page-contact__cta-bottom .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Images must be responsive */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__card-icon {
    max-width: 150px; /* Adjust card icon size for mobile */
  }

  .page-contact__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}