/* ===== Hero: photo as a faded background behind the text ===== */
.contact-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: clamp(460px, 72vh, 720px);
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
}

/* The photo sits towards the far side so the text never covers the people */
.contact-hero-media {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: -1;
  width: 72%;
}

.contact-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Fade into the navy on the text side, plus a subtle dark filter overall */
.contact-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, rgb(var(--shade) / 0.7) 30%, rgb(var(--shade) / 0.35) 65%, rgb(var(--shade) / 0.3) 100%);
}

html[dir="rtl"] .contact-hero-media::after {
  background: linear-gradient(to left, var(--ink) 0%, rgb(var(--shade) / 0.7) 30%, rgb(var(--shade) / 0.35) 65%, rgb(var(--shade) / 0.3) 100%);
}

.contact-hero-text {
  max-width: 34rem;
}

.contact-hero-text h1 {
  font-size: var(--fs-h1);
  color: #fff;
}

.contact-hero-text .lead {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-on-dark);
}

.quick-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

html[dir="rtl"] .quick-label {
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.quick-link a {
  font-size: 1.125rem;
  font-weight: 400;
  color: #fff;
  transition: color 0.3s var(--ease);
}

.quick-link a:hover {
  color: var(--accent-soft);
}

@media (max-width: 900px) {
  .contact-hero {
    height: auto;
    min-height: 520px;
    padding-block: 80px;
  }

  .contact-hero-media {
    width: 100%;
  }

  .contact-hero-media::after,
  html[dir="rtl"] .contact-hero-media::after {
    background: rgb(var(--shade) / 0.72);
  }
}

/* ===== Office details + form ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-details h2 {
  font-size: var(--fs-h3);
  margin-bottom: 28px;
}

.detail-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.detail-list li {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

html[dir="rtl"] .detail-label {
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.detail-list p {
  color: var(--text-muted);
  line-height: 1.7;
}

.detail-list a {
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.detail-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ===== Form ===== */
.form-card {
  padding: clamp(28px, 4vw, 56px);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-card h2 {
  font-size: var(--fs-h3);
  margin-bottom: 32px;
}

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

.field {
  position: relative;
}

.field--full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  width: 100%;
  padding: 26px 16px 10px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  outline: none;
  resize: vertical;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field textarea {
  min-height: 160px;
}

.field label {
  position: absolute;
  top: 18px;
  inset-inline-start: 17px;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transform-origin: var(--origin, left) top;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}

html[dir="rtl"] .field label {
  --origin: right;
}

.field input:focus,
.field textarea:focus {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43, 98, 163, 0.12);
}

.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(0.78);
  color: var(--accent);
}

.form-card .btn {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-card .btn {
    width: 100%;
  }
}

/* ===== Form submission states ===== */
.botcheck {
  display: none;
}

.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.form-status.is-success {
  background: rgba(43, 98, 163, 0.08);
  color: var(--navy);
}

.form-status.is-error {
  background: rgba(180, 35, 24, 0.08);
  color: #8a1c13;
}

.contact-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}
