/* ==========================================================================
   Auld & Associates — Contact page styles
   css/contact.css  (depends on css/main.css tokens + utilities)
   ========================================================================== */

/* ==========================================================================
   Page hero
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, var(--brass-glow), transparent 60%),
    linear-gradient(160deg, var(--ink-950) 0%, var(--ink-900) 55%, var(--ink-950) 100%);
}

.page-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .05;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(230, 233, 238, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 233, 238, .5) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 80% 20%, black 0%, transparent 65%);
}

.page-hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  box-shadow: inset 0 0 16vw rgba(0, 0, 0, .6);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  padding-block: calc(var(--header-h) + 2.5rem) 3rem;
}

.page-hero__eyebrow-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  margin-bottom: 1.5rem;
}

.page-hero__title {
  color: var(--ink-100);
  margin-bottom: 1.25rem;
}

.page-hero__lede {
  color: var(--ink-300);
  font-size: 1.0625rem;
  max-width: 38rem;
}

/* ==========================================================================
   Text-link underline (grows from left on hover, per motion spec)
   ========================================================================== */
.link-underline {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--brass-400);
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-reveal);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

.link-underline svg {
  width: 15px;
  height: 15px;
  transition: transform var(--dur-fast) var(--ease-reveal);
}

.link-underline:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Contact section — two column layout
   ========================================================================== */
.contact-section { background: var(--ink-950); }

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
  }
}

.contact-info__heading {
  margin-bottom: 1.75rem;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  padding: 1.75rem 1.85rem;
}

.contact-card .card__icon {
  width: 26px;
  height: 26px;
  margin-bottom: 1rem;
}

.contact-card .card__title {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.contact-card__hint {
  color: var(--ink-300);
  font-size: .85rem;
  margin-top: .35rem;
}

.contact-card__directions {
  margin-top: .85rem;
  font-size: .875rem;
  font-weight: 500;
}

.contact-prefer {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-on-dark);
  color: var(--ink-300);
  font-size: .95rem;
}

.contact-prefer strong {
  color: var(--ink-100);
}

/* ==========================================================================
   Form card
   ========================================================================== */
.form-card {
  padding: 2.5rem;
}

.form-card__heading {
  margin-bottom: 1.75rem;
}

.form__optional {
  text-transform: none;
  letter-spacing: normal;
  color: var(--ink-300);
  font-weight: 400;
}

/* A native <select>'s default min-width is its min-content size, which is
   driven by the longest <option> text ("Background Check or Pre-Employment
   Verification"). Inside .form__group's column flexbox that min-content
   width wins over stretch alignment and forces the whole page wider on
   narrow viewports. Overriding min-width lets it shrink like the other
   .form__group controls. */
.form__select {
  min-width: 0;
  width: 100%;
}

.form__error.is-visible {
  display: block;
}

.form__group .form__input[aria-invalid="true"],
.form__group .form__textarea[aria-invalid="true"] {
  border-color: #a86a48;
}

.form__status {
  display: block;
}

.form__status[hidden] {
  display: none;
}

.form__status--error {
  color: #d99a76;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: .5rem;
}

.form__mailto-link {
  font-size: .9rem;
}

.form-success {
  text-align: center;
  padding-block: 1.5rem;
}

.form-success__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  color: var(--brass-500);
  margin-bottom: 1.25rem;
}

.form-success__icon svg { width: 100%; height: 100%; }

.form-success h3 {
  margin-bottom: .75rem;
}

.form-success p {
  color: var(--ink-300);
  max-width: 36ch;
  margin-inline: auto;
}

/* ==========================================================================
   Office band
   ========================================================================== */
.office-band { background: var(--ink-900); }

.office-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .office-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
  }
}

.office-card {
  background: var(--ink-800);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.office-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, var(--brass-glow), transparent 55%),
    linear-gradient(rgba(230, 233, 238, .4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 233, 238, .4) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  opacity: .1;
  pointer-events: none;
}

.office-card__icon {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  color: var(--brass-500);
  margin-bottom: 1.25rem;
}

.office-card__icon svg { width: 100%; height: 100%; }

.office-card__address {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.office-card__hours {
  position: relative;
  color: var(--ink-300);
  font-size: .9rem;
  margin-bottom: 1.5rem;
}

.office-text {
  color: var(--ink-300);
  font-size: 1.0625rem;
  max-width: 32ch;
}
