/* ════════════════════════════════
   CONTACT — hero, form, CTA
════════════════════════════════ */

/* ════════════
   HERO
════════════ */
#contact-hero {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  height: 380px;
  background: #111009;
}

#contact-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

#contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(10,8,5,0.68) 0%, rgba(10,8,5,0.18) 38%, rgba(10,8,5,0.60) 100%);
}

#contact-nav {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  white-space: nowrap;
}

#contact-hero-phone {
  position: absolute;
  top: 34px;
  right: 38px;
  z-index: 20;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.05em;
}

#contact-title-block {
  position: absolute;
  bottom: 44px;
  left: 52px;
  z-index: 20;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both;
}

.contact-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.52);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

#contact-h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 64px;
  line-height: 0.94;
  color: #fff;
  letter-spacing: -0.026em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.2);
}

.contact-hero-pill {
  position: absolute;
  bottom: 44px;
  right: 44px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 100px;
  padding: 12px 22px;
  animation: fadeIn 1.2s ease both;
}

.contact-hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8FBF7F;
  animation: pulse 2.2s ease infinite;
}

.contact-hero-pill-txt {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.04em;
}

/* ════════════
   ADDRESS ROW
════════════ */
#contact-addr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 72px;
  padding: 0 4px;
}

#contact-addr-row .addr-sub,
#contact-addr-row .addr-main {
  font-size: 12px;
  color: #A8A09A;
  letter-spacing: 0.04em;
}

#contact-addr-row .addr-main {
  text-align: right;
}

/* ════════════
   CONTACT GRID
════════════ */
#contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 96px;
}

/* ── Left: info column ── */
#contact-info {
  padding-top: 12px;
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) both;
}

#contact-info-h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.02;
  color: #1C1A17;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.contact-info-sub {
  font-size: 14px;
  line-height: 1.75;
  color: #7A7268;
  max-width: 380px;
  margin-bottom: 44px;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-detail-label {
  font-size: 10px;
  font-weight: 500;
  color: #C0B4AC;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-detail-val {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: #1C1A17;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* ── Right: form card ── */
#contact-form-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 44px 46px;
  box-shadow: 0 24px 64px rgba(28, 26, 23, 0.07);
  animation: fadeUp 0.9s cubic-bezier(0.16,1,0.3,1) 0.12s both;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #A8A09A;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  background: rgba(241, 235, 224, 0.55);
  border: 1px solid rgba(28, 26, 23, 0.10);
  border-radius: 14px;
  padding: 14px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1C1A17;
  outline: none;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: #C0B4AC;
}

.form-input:focus {
  border-color: rgba(28, 26, 23, 0.42);
  background: #fff;
  box-shadow: 0 4px 18px rgba(28, 26, 23, 0.06);
}

.form-input.invalid {
  border-color: #C0392B;
  background: rgba(192, 57, 43, 0.04);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

.form-field-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.field-error {
  display: block;
  min-height: 16px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #C0392B;
  letter-spacing: 0.02em;
}

.char-count {
  margin-top: 6px;
  font-size: 11px;
  color: #C0B4AC;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── Submit button ── */
.form-submit-btn {
  width: 100%;
  justify-content: center;
  position: relative;
  margin-top: 8px;
}

.form-submit-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.form-submit-btn.loading .submit-spinner { display: inline-block; }
.form-submit-btn.loading .submit-label   { opacity: 0.65; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Form status line ── */
.form-status {
  min-height: 20px;
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.form-status.success { color: #4A7A43; }
.form-status.error   { color: #C0392B; }

/* ════════════
   TOASTS
════════════ */
#toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(28, 26, 23, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  border-radius: 100px;
  padding: 13px 26px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success::before { content: '✓'; color: #8FBF7F; font-weight: 700; }
.toast-error::before   { content: '✕'; color: #E08578; font-weight: 700; }

/* ════════════
   BACK HOME CTA
════════════ */
#contact-cta {
  text-align: center;
  padding: 72px 24px 24px;
  border-top: 1px solid rgba(28, 26, 23, 0.08);
}

#contact-cta-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 44px;
  color: #1C1A17;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.contact-cta-sub {
  font-size: 13px;
  color: #A8A09A;
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

/* ════════════
   RESPONSIVE
════════════ */
@media (max-width: 960px) {
  #contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  #contact-info-h2 { font-size: 44px; }
  #contact-h1      { font-size: 52px; }
}

@media (max-width: 640px) {
  #contact-hero { height: 420px; }

  #contact-nav {
    top: 20px;
  }

  /* 4 links don't fit at full size on narrow screens */
  #contact-nav .nav-link {
    padding: 8px 12px;
    font-size: 12px;
  }

  #contact-hero-phone { display: none; }

  #contact-title-block {
    left: 28px;
    bottom: 100px;
  }

  #contact-h1 { font-size: 42px; }

  .contact-hero-pill {
    left: 28px;
    right: auto;
    bottom: 32px;
  }

  #contact-addr-row {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 48px;
  }

  #contact-addr-row .addr-main { text-align: left; }

  #contact-form-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #contact-info-h2 { font-size: 36px; }

  #contact-cta-heading { font-size: 32px; }
}
