/* Contact page */
.contact-page svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-page h2 em {
  color: var(--green-600);
  font-style: normal;
}

/* Hero: photo background, copy left, form card right, locations row */
.contact-hero {
  position: relative;
  z-index: 0;
  padding: clamp(40px, 4.5vw, 72px) 0 clamp(28px, 3vw, 44px);
  background: var(--night) url("../img/home-hero-fleet-1600.webp") 64% 65% / cover no-repeat;
  background-image: image-set(url("../img/home-hero-fleet-1600.webp") 1x, url("../img/home-hero-fleet-2400.webp") 2x);
  color: #fff;
}

.contact-hero__overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(var(--fade-dir), rgba(8, 16, 11, .86) 0%, rgba(8, 16, 11, .7) 55%, rgba(8, 16, 11, .55) 100%);
}

.contact-hero__wrap {
  display: flex;
  justify-content: space-between;
  gap: clamp(40px, 5vw, 80px);
}

.contact-hero__left {
  display: flex;
  flex: 0 1 460px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 28px;
}

.contact-hero__title {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  container-type: inline-size;
}

.contact-hero__label {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 0;
  color: #9fd4a9;
  font-family: var(--f-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 0;
  color: #fff;
  /* Same type as the home page hero; the size is capped to what fits the column beside the form. */
  font-size: clamp(2.75rem, 18.5cqi, 7rem);
  font-weight: 550;
  font-stretch: 84%;
  line-height: .94;
  letter-spacing: -.02em;
  word-spacing: .08em;
}
.contact-hero h1 em {
  font-style: normal;
  color: #86d394;
}

.contact-hero__lead {
  max-width: 35rem;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.2rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .contact-hero__lead { font-size: 1.0625rem; }
}

/* Wide screens: the heading column grows to 600px so the heading can reach 112px; the form card takes the rest. */
@media (min-width: 1400px) {
  .contact-hero__left {
    flex: 1 1 600px;
    min-width: 0;
  }

  .contact-hero .contact-card {
    width: clamp(640px, calc(100% - 680px), 800px);
  }
}

.contact-hero__links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.contact-hero .contact-card {
  flex: 0 0 auto;
  width: clamp(340px, 60vw, 800px);
  padding: clamp(24px, 3vw, 48px);
  color: var(--ink-2);
  border: 0;
  border-top: 3px solid var(--green);
}

.contact-locations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding: clamp(20px, 2vw, 28px) 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, .25);
}

.contact-locations li {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.contact-locations svg {
  margin-top: 3px;
  color: #9fd4a9;
}

.contact-locations strong {
  display: block;
  color: #fff;
  font-family: var(--f-head);
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-locations span {
  color: rgba(255, 255, 255, .7);
  font-size: .9375rem;
}

.contact-card {
  padding: clamp(24px, 3.5vw, 48px);
  background: var(--paper);
}

.contact-card__title {
  margin: 0 0 clamp(24px, 2.4vw, 32px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 2.4vw, 32px);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
}

.contact-form__field--full {
  grid-column: 1 / -1;
}

.contact-form label {
  color: var(--ink-2);
  font-family: var(--f-head);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
}

.contact-form abbr {
  color: var(--green-600);
  text-decoration: none;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 50px;
  padding: .75rem .9rem;
  border: 1px solid #c9cdc6;
  border-radius: var(--radius);
  background-color: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}

.contact-form select {
  appearance: none;
  padding-inline-end: 2.4rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2366706a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .95rem center;
}

[dir="rtl"] .contact-form select {
  background-position: left .95rem center;
}

[dir="rtl"] .contact-form input[type="email"],
[dir="rtl"] .contact-form input[type="tel"] {
  direction: ltr;
  text-align: right;
}

[dir="rtl"] .contact-form input[type="email"]:placeholder-shown,
[dir="rtl"] .contact-form input[type="tel"]:placeholder-shown {
  direction: rtl;
}

.contact-form select:has(option[value=""]:checked) {
  color: #8a928c;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form ::placeholder {
  color: #8a928c;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
  border-color: var(--ink-3);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 1px var(--green-600);
  outline: none;
}

.contact-form input[aria-invalid="true"],
.contact-form select[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
  border-color: #b3261e;
}

.contact-form__error {
  color: #b3261e;
  font-size: .875rem;
}

.contact-form__alert {
  margin: 0;
  padding: .85rem 1rem;
  border-inline-start: 3px solid #b3261e;
  background: #fbeceb;
  color: #7a1a14;
  font-size: .9375rem;
}

.contact-form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-form__submit .btn {
  width: 100%;
  padding-block: 1.1rem;
  font-size: 1.0625rem;
}

.contact-ack {
  padding: clamp(12px, 3vw, 32px) 0;
  outline: none;
}

.contact-ack h2 {
  margin: 0 0 .75rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.contact-ack>p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 1.75rem;
  color: var(--ink-3);
}

/* Shared section head */
.contact-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.contact-head h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.contact-head>p {
  max-width: 410px;
  margin: 0 0 4px;
  color: var(--ink-3);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Regional desks */
.contact-desks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-desk {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 2.6vw, 40px);
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(17, 24, 20, .04);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-desk::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: var(--start);
  transition: transform .4s var(--ease);
  content: "";
}

.contact-desk:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(17, 24, 20, .09);
}

.contact-desk:hover::before {
  transform: scaleX(1);
}

.contact-desk__status {
  position: absolute;
  top: clamp(20px, 2vw, 28px);
  inset-inline-end: clamp(20px, 2vw, 28px);
  padding: .28rem .6rem;
  border-radius: 99px;
  background: var(--stone);
  color: var(--ink-2);
  font-family: var(--f-head);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-desk__status--priority {
  background: var(--green-600);
  color: #fff;
}

.contact-desk__status--active {
  background: var(--green-tint);
  color: var(--green-700);
}

.contact-desk__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .55rem;
}

.contact-desk__flag {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(17, 24, 20, .08), 0 2px 6px rgba(17, 24, 20, .12);
  object-fit: cover;
}

.contact-desk__region {
  margin: 0;
  color: var(--ink-3);
  font-size: 1rem;
}

.contact-desk h3 {
  margin: 0;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-size: clamp(1.35rem, 1.7vw, 1.6rem);
}

.contact-desk__rows {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-desk__rows li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.45;
}

.contact-desk__rows svg {
  margin-top: 2px;
  color: var(--ink-3);
  transition: color .25s;
}

.contact-desk:hover .contact-desk__rows svg {
  color: var(--green-600);
}

.contact-desk__rows a {
  color: var(--ink-2);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-desk__rows a:hover {
  color: var(--green-700);
  text-decoration: underline;
}

/* FAQ */
.contact-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}

.contact-faq__aside {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}

.contact-faq header h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 1.2rem + 3.4vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.contact-faq header>p:last-child {
  max-width: 420px;
  margin: 0;
  color: var(--ink-3);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.contact-faq__image {
  position: relative;
  flex: 1;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  background: var(--stone-2);
}

.contact-faq__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 55%;
  transition: transform .6s var(--ease);
}

.contact-faq__image:hover img {
  transform: scale(1.03);
}

.contact-faq__list {
  align-self: start;
  border-top: 1px solid var(--rule);
}

.contact-faq details {
  border-bottom: 1px solid var(--rule);
}

.contact-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  color: var(--ink);
  font-family: var(--f-head);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color .2s;
}

.contact-faq summary::-webkit-details-marker {
  display: none;
}

.contact-faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--green-600);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s, color .25s;
}

html:not(.js) .contact-faq details[open] summary::after,
.contact-faq details.is-open summary::after {
  transform: rotate(45deg);
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

.contact-faq summary:hover {
  color: var(--green-700);
}

.contact-faq__answer {
  overflow: hidden;
}

.contact-faq__answer p {
  max-width: 640px;
  margin: 0;
  padding: 0 0 22px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* CTA band */
.contact-cta {
  background: var(--night);
  color: rgba(255, 255, 255, .78);
}

.contact-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

.contact-cta__copy {
  padding: clamp(48px, 6vw, 96px) clamp(0px, 4vw, 64px) clamp(48px, 6vw, 96px) 0;
}

.contact-cta__copy h2 {
  max-width: 560px;
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
}

.contact-cta__copy>p:not(.eyebrow) {
  max-width: 460px;
  margin: 0 0 2rem;
}

.contact-cta__image {
  margin: 0;
  overflow: hidden;
}

.contact-cta__image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.contact-cta:hover .contact-cta__image img {
  transform: scale(1.03);
}

@media (max-width: 900px) {

  .contact-faq__grid,
  .contact-cta__grid {
    grid-template-columns: 1fr;
  }

  .contact-hero__wrap {
    flex-direction: column;
  }

  .contact-hero .contact-card {
    width: 100%;
    max-width: none;
  }

  .contact-locations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-head {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .contact-depts__grid,
  .contact-desks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cta__copy {
    padding-inline-end: 0;
  }

  .contact-cta__image {
    margin: 0 calc(var(--gutter) * -1);
  }
}

@media (max-width: 620px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-locations {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-locations li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
  }

  .contact-depts__grid,
  .contact-desks__grid {
    grid-template-columns: 1fr;
  }

  .contact-cta__image img {
    min-height: 240px;
  }

  .contact-faq__image {
    flex: none;
    min-height: 0;
    aspect-ratio: 1.5;
  }
}

/* ── Motion & Reveal Transitions ──────────────────────────────────────── */
.js .contact-locations.reveal,
.js .contact-head.reveal,
.js .contact-desk.reveal,
.js .contact-faq__aside.reveal,
.js .contact-faq__list.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.js .contact-locations.reveal.is-visible,
.js .contact-head.reveal.is-visible,
.js .contact-desk.reveal.is-visible,
.js .contact-faq__aside.reveal.is-visible,
.js .contact-faq__list.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .contact-desk:nth-child(2).reveal { transition-delay: .08s; }
.js .contact-desk:nth-child(3).reveal { transition-delay: .16s; }
.js .contact-desk:nth-child(4).reveal { transition-delay: .24s; }
.js .contact-desk:nth-child(5).reveal { transition-delay: .32s; }
.js .contact-desk:nth-child(6).reveal { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .contact-live {
    animation: none;
  }

  .contact-desk,
  .contact-cta__image img,
  .contact-faq__image img,
  .contact-faq summary::after,
  .js .contact-locations.reveal,
  .js .contact-head.reveal,
  .js .contact-desk.reveal,
  .js .contact-faq__aside.reveal,
  .js .contact-faq__list.reveal {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .contact-desk,
  .contact-cta__image img,
  .contact-faq__image img {
    transform: none !important;
  }
}