/* ==========================================
   CONTACT PAGE — FULL STYLESHEET
   ========================================== */

/* ---------- HERO (editorial + directory) ---------- */
.ct-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: clamp(7rem, 16vh, 9rem) var(--space-7);
  overflow: hidden;
  background-color: #f7f5f1;
  isolation: isolate;
}

.ct-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ct-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(0 0 0 / 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(0 0 0 / 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, rgb(0 0 0 / 0.9) 0%, rgb(0 0 0 / 0.3) 58%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 50% 45%, rgb(0 0 0 / 0.9) 0%, rgb(0 0 0 / 0.3) 58%, transparent 80%);
}

.ct-hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgb(132 103 31 / 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ct-hero__ring--1 {
  width: min(78vw, 44rem);
  aspect-ratio: 1;
}

.ct-hero__ring--2 {
  width: min(60vw, 33rem);
  aspect-ratio: 1;
  border-color: rgb(132 103 31 / 0.1);
}

.ct-hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100vw, 70rem);
  aspect-ratio: 1;
  transform: translate3d(-50%, -50%, 0);
  background:
    radial-gradient(closest-side, rgb(169 132 47 / 0.14) 0%, rgb(139 151 204 / 0.05) 45%, transparent 70%);
}

.ct-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ct-hero__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ct-hero__eyebrow {
  margin-bottom: var(--space-4);
  color: var(--color-accent-deep);
}

.ct-hero__title {
max-width: 16ch;
font-size: clamp(2.4rem, 5.5vw, 3.75rem);
font-weight: 900;
letter-spacing: -0.02em;
line-height: 1.04;
}

.ct-hero__accent {
  font-style: normal;
  color: var(--color-accent-deep);
}

.ct-hero__lead {
  max-width: 40rem;
  margin-top: var(--space-5);
  font-size: var(--text-body-lg);
  line-height: var(--line-height-snug);
  color: var(--color-ink-soft);
}

/* --- hero directory strip --- */
.ct-directory {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 60rem;
  margin-top: var(--space-8);
  border: 1px solid var(--color-line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow-lift);
}

.ct-directory__cell {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-decoration: none;
  color: var(--color-ink);
  transition: background-color 0.4s var(--ease-standard), color 0.4s var(--ease-standard);
}

.ct-directory__cell + .ct-directory__cell {
  border-top: 1px solid var(--color-line);
}

.ct-directory__cell:hover {
  background-color: var(--color-accent-deep);
  color: var(--color-bg-elevated);
}

.ct-directory__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background-color: var(--color-accent-soft);
  color: var(--color-accent-deep);
  transition: background-color 0.4s var(--ease-standard), color 0.4s var(--ease-standard);
}

.ct-directory__cell:hover .ct-directory__icon {
  background-color: var(--color-bg-elevated);
  color: var(--color-accent-deep);
}

.ct-directory__icon svg {
  width: 22px;
  height: 22px;
}

.ct-directory__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.ct-directory__label {
  font-size: var(--text-overline);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.4s var(--ease-standard);
}

.ct-directory__cell:hover .ct-directory__label {
  color: rgb(255 255 255 / 0.7);
}

.ct-directory__value {
  font-size: var(--text-body);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-directory__arrow {
  font-size: var(--text-title);
  color: var(--color-accent-deep);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s var(--ease-standard);
}

.ct-directory__cell:hover .ct-directory__arrow {
  transform: translateX(6px);
  color: var(--color-bg-elevated);
}

/* ---------- SECTION HEAD (shared) ---------- */
.ct-section-head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.ct-section-head .overline {
  margin-bottom: var(--space-3);
}

.ct-section-head__lead {
  margin-top: var(--space-3);
  color: var(--color-ink-soft);
}

/* ---------- SEND A MESSAGE ---------- */
.ct-message {
  background-color: var(--color-bg-muted);
}

.ct-message__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-9);
  align-items: start;
}

.ct-message__intro {
  display: flex;
  flex-direction: column;
}

.ct-message__title {
  max-width: 15ch;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
  margin-top: var(--space-3);
}

.ct-message__lead {
  margin-top: var(--space-5);
  max-width: 30rem;
  font-size: var(--text-body-lg);
  line-height: var(--line-height-snug);
  color: var(--color-ink-soft);
}

.ct-message__notes {
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ct-message__note {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-body);
  color: var(--color-ink);
}

.ct-message__note-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* --- social --- */
.ct-social {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-line);
}

.ct-social__label {
  font-size: var(--text-overline);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.ct-social__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.ct-social__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: 40px;
  background: var(--color-bg-elevated);
  color: var(--color-ink);
  text-decoration: none;
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
  transition: border-color 0.3s var(--ease-standard), color 0.3s var(--ease-standard), box-shadow 0.3s var(--ease-standard);
}

.ct-social__link svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent-deep);
}

.ct-social__link:hover {
  border-color: var(--color-accent-line);
  color: var(--color-accent-deep);
  box-shadow: var(--shadow-glow);
}

/* --- form --- */
.ct-form-wrap {
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: var(--color-bg-elevated);
  box-shadow: var(--shadow-lift);
  padding: var(--space-6);
}

.ct-form__head {
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line);
}

.ct-form__title {
  font-size: var(--text-title);
  letter-spacing: -0.02em;
}

.ct-form__sub {
  margin-top: var(--space-2);
  font-size: var(--text-small);
  color: var(--color-ink-soft);
}

.ct-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ct-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.ct-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ct-form__label {
  font-size: var(--text-small);
  font-weight: var(--font-weight-medium);
  color: var(--color-ink);
}

.ct-form__input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background-color: var(--color-bg-muted);
  color: var(--color-ink);
  font-size: var(--text-body);
  line-height: 1.4;
  transition: border-color 0.3s var(--ease-standard), box-shadow 0.3s var(--ease-standard), background-color 0.3s var(--ease-standard);
}

.ct-form__input::placeholder {
  color: var(--color-muted);
}

.ct-form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: var(--color-bg-elevated);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.ct-form__input--textarea {
  resize: vertical;
  min-height: 9rem;
}

.ct-form__submit {
  margin-top: var(--space-1);
}

.ct-form__status {
  min-height: 1.25rem;
  font-size: var(--text-small);
  color: var(--color-accent-deep);
}

/* ---------- FIND US / MAP ---------- */
.ct-map {
  background-color: var(--color-bg);
}

.ct-map__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.ct-map__card {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-bg-elevated);
  box-shadow: var(--shadow-lift);
}

.ct-map__visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.ct-map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(0 0 0 / 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(0 0 0 / 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

.ct-map__roads {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    linear-gradient(40deg, transparent 45%, rgb(169 132 47 / 0.18) 46%, rgb(169 132 47 / 0.18) 48%, transparent 49%),
    linear-gradient(130deg, transparent 55%, rgb(169 132 47 / 0.14) 56%, rgb(169 132 47 / 0.14) 58%, transparent 59%),
    linear-gradient(80deg, transparent 30%, rgb(0 0 0 / 0.05) 31%, rgb(0 0 0 / 0.05) 33%, transparent 34%);
}

.ct-map__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background-color: var(--color-accent-deep);
  color: var(--color-bg-elevated);
  box-shadow: var(--shadow-glow);
  z-index: 1;
}

.ct-map__pin svg {
  width: 22px;
  height: 22px;
}

.ct-map__pin::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-line);
  animation: ct-ping 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes ct-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.ct-map__badge {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.ct-map__badge-label {
  font-size: var(--text-overline);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-muted);
}

.ct-map__badge-value {
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: var(--font-weight-semibold);
  color: var(--color-accent-deep);
}

.ct-map__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-6);
}

.ct-map__overline {
  color: var(--color-accent-deep);
}

.ct-map__title {
  font-size: var(--text-title);
  letter-spacing: -0.02em;
}

.ct-map__text {
  font-size: var(--text-body);
  line-height: var(--line-height-snug);
  color: var(--color-ink-soft);
}

.ct-map__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

/* ---------- REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-standard),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 48rem) {
  .ct-directory {
    grid-template-columns: repeat(3, 1fr);
  }

  .ct-directory__cell {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-6);
  }

  .ct-directory__cell + .ct-directory__cell {
    border-top: 0;
    border-left: 1px solid var(--color-line);
  }

  .ct-directory__arrow {
    display: none;
  }

  .ct-form__row {
    grid-template-columns: 1fr 1fr;
  }

  .ct-map__card {
    grid-template-columns: 1.15fr 1fr;
  }
}

@media (min-width: 64rem) {
  .ct-message__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-9);
  }

  .ct-form-wrap {
    padding: var(--space-8);
  }
}

@media (max-width: 47.99rem) {
  .ct-hero__lead {
    font-size: var(--text-body);
  }

  .ct-directory__value {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    min-width: 0;
  }

  .ct-map__badge {
    top: var(--space-3);
    right: var(--space-3);
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .ct-hero__glow,
  .ct-map__pin::after {
    animation: none;
  }

  [data-reveal],
  .ct-directory__cell,
  .ct-directory__icon,
  .ct-directory__label,
  .ct-directory__arrow,
  .ct-social__link,
  .ct-form__input {
    transition: none;
  }
}
