/* =========================================================
   Future Developers — Contact Page Styles
   ========================================================= */

.page-contact {
  background-color: var(--bg-dark);
}

/* Hero Section */
.contact-hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  /* Above .section-alt top wave (::before) so body copy isn’t painted under the dark divider */
  z-index: 3;
}

.contact-hero-blob {
  position: absolute;
  top: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #0ea5e9 0%, #1e3a8a 100%);
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: #fff;
}

.contact-hero-head {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.contact-hero-head .chip {
  margin-bottom: 1.5rem;
}

.contact-hero-head h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 1.25rem;
}

.contact-hero-head .lede {
  font-size: 1.15rem;
  color: rgba(239, 234, 255, 0.88);
  line-height: 1.65;
  max-width: 60ch;
  text-shadow: 0 1px 18px rgba(12, 10, 26, 0.65);
}

/* Contact Content Section */
.contact-content {
  padding: 4rem 0 8rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 1040px;
  margin: 0 auto;
  gap: 3rem;
  align-items: start;
}

/* Contact Info */
.contact-info {
  width: 100%;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
  text-align: center;
}

.contact-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-align: center;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px -24px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-card:hover {
  border-color: rgba(14, 165, 233, 0.35);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--blue-light);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.contact-card-icon--wa {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.35);
}

.contact-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.5rem;
}

.contact-card-link {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  transition: color 0.2s ease;
  word-break: break-word;
}

.contact-card-link:hover {
  color: var(--blue-light);
}

.contact-card-meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.contact-card--whatsapp {
  border-color: rgba(37, 211, 102, 0.2);
}

.contact-card--whatsapp:hover {
  border-color: rgba(37, 211, 102, 0.45);
}

.btn-whatsapp {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 280px;
  min-height: var(--h);
  padding: 0 1.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #2fe06e 0%, #25d366 100%);
  color: #0c0a1a !important;
  border: none;
  box-shadow: 0 8px 24px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
}

.btn-whatsapp:hover {
  filter: brightness(1.06);
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.65);
  transform: translateY(-1px);
  color: #0c0a1a !important;
}

.btn-whatsapp:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

/* Contact Form */
.contact-form-wrapper {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-card);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  outline: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239a8fc7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

select.form-input option {
  background-color: var(--bg-dark);
  color: #fff;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(61, 255, 142, 0.1);
  border: 1px solid rgba(61, 255, 142, 0.3);
  border-radius: 8px;
  color: #3dff8e;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    gap: 3rem;
  }

  .contact-methods {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (min-width: 640px) and (max-width: 900px) {
  .contact-methods {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }

  .contact-card--whatsapp {
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 4rem 0 2rem;
  }
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 1.5rem 1.25rem;
  }
}
