/* ═══════════════════════════════════════════════════════════
   ARBOR — CONTACT PAGE STYLES
   Page-specific styles for contact.html only.
═══════════════════════════════════════════════════════════ */

/* ── SECTION SUB (contact page uses margin-bottom) ── */
.section-sub {
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ── PAGE HERO ── */
.contact-hero {
  padding: 14rem 7vw 6rem;
  text-align: center;
  background: linear-gradient(160deg, var(--g50) 0%, #ffffff 60%, #f8fff8 100%);
  position: relative;
  overflow: hidden;
}
.contact-hero-bg {
  position: absolute;
  width: 700px;
  height: 700px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(34, 197, 94, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}
.contact-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--g100);
  color: var(--g800);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--g200);
  opacity: 0;
}
.contact-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5vw, 5rem);
  line-height: 1.08;
  color: var(--g950);
  margin-bottom: 1.25rem;
  opacity: 0;
}
.contact-hero h1 em {
  font-style: italic;
  color: var(--g700);
}
.contact-hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--s600);
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
}

/* ── CONTACT BLOCK ── */
.contact-block {
  padding: 5rem 7vw 7rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Form */
.contact-form-wrap {
  opacity: 0;
  transform: translateY(30px);
}
.contact-form-wrap h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--g950);
  margin-bottom: 0.5rem;
}
.contact-form-wrap > p {
  font-size: 0.95rem;
  color: var(--s600);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--s700);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
input,
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--s200);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--s800);
  background: var(--white);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--g400);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}
textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.form-submit {
  width: 100%;
  padding: 1rem;
  background: var(--g700);
  color: var(--white);
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-submit:hover {
  background: var(--g800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.3);
}
.form-success {
  display: none;
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
}
.form-success svg {
  color: var(--g600);
  margin-bottom: 0.75rem;
}
.form-success h4 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--g900);
  margin-bottom: 0.5rem;
}
.form-success p {
  font-size: 0.9rem;
  color: var(--s600);
}

/* Info cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transform: translateX(30px);
}
.info-card {
  background: var(--g50);
  border: 1px solid var(--g100);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: default;
}
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-green);
}
.info-icon {
  width: 44px;
  height: 44px;
  background: var(--g100);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g700);
  flex-shrink: 0;
}
.info-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--g900);
  margin-bottom: 0.25rem;
}
.info-card p {
  font-size: 0.875rem;
  color: var(--s600);
  line-height: 1.6;
}
.info-card a {
  color: var(--g700);
  text-decoration: none;
  font-weight: 500;
}
.info-card a:hover {
  text-decoration: underline;
}

/* ── MAP SECTION ── */
.map-section {
  position: relative;
  height: 380px;
  background: linear-gradient(135deg, var(--g900) 0%, var(--g800) 100%);
  background-image: var(--map-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .map-section.has-photo { background-image: var(--map-bg-m); }
}
/* Dim overlay when photo is loaded */
.map-section.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  pointer-events: none;
}
/* Hide SVG trees when real photo is present */
.map-section.has-photo .map-trees {
  display: none;
}

/* Tree silhouettes fallback */
.map-trees {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0.08;
}

/* Location pin */
.map-pin-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.map-pin {
  width: 52px;
  height: 52px;
  background: var(--g600);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.map-pin svg {
  transform: rotate(45deg);
}
.map-pin-label {
  background: rgba(255, 255, 255, 0.96);
  color: var(--g900);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* ── FAQ ── */
.faq {
  padding: 7rem 7vw;
  background: var(--s50);
}
.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--s200);
  opacity: 0;
  transform: translateY(20px);
}
.faq-item:first-of-type {
  border-top: 1px solid var(--s200);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--s800);
  transition: color 0.2s;
}
.faq-question:hover {
  color: var(--g700);
}
.faq-icon {
  flex-shrink: 0;
  color: var(--g600);
  transition: transform 0.3s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
}
.faq-answer-inner {
  padding: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--s600);
  line-height: 1.8;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-info {
    transform: none;
  }
}
@media (max-width: 640px) {
  .contact-hero {
    padding: 10rem 1.25rem 4rem;
  }
  .contact-block {
    padding: 5rem 1.25rem 4rem;
    scroll-margin-top: 70px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .faq {
    padding: 5rem 1.25rem 4rem;
    scroll-margin-top: 70px;
  }
  .map-section {
    height: 260px;
  }
}
