/* ==========================================================================
   Contact page
   Map and details sit side by side as one block. The Google map is warmed
   toward the page's cream with a filter and carries a gold pin over its own
   marker. The pin is the only place location appears on the site: no
   address or label next to it. Core palette only.
   ========================================================================== */

/* --- 1. Head --- */
.ct-head {
  padding-block: var(--space-3xl) var(--space-xl);
}

.ct-head__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: end;
}

.ct-head__title {
  font-size: clamp(3rem, 5vw + 1rem, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.ct-head__lede {
  max-width: 42ch;
  justify-self: end;
  font-size: var(--fs-md);
  color: var(--color-text-muted);
}

/* --- 2. Map + details --- */
.ct-find {
  padding-bottom: var(--space-3xl);
}

.ct-find__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  background-color: var(--color-ivory);
  border-top: 1px solid var(--color-gold);
  border-radius: 2px;
  overflow: hidden;
}

.ct-map {
  position: relative;
  margin: 0;
  min-height: 480px; /* stretches with the details column beside it */
  overflow: hidden;
  background-color: var(--color-stone);
}

.ct-map__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  /* warm the tiles toward the page's cream; the marker goes grey under it */
  filter: grayscale(1) sepia(0.28) contrast(0.92) brightness(1.04);
}

/* Gold pin over the embed's own marker. The embed centres on the address,
   so the pin sits at the centre with its tip on the point. */
.ct-map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -40px 0 0 -17px;
  pointer-events: none;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--gold-metal);
  background-size: 200% 200%;
  box-shadow: 0 6px 16px rgba(var(--charcoal-rgb), 0.35);
}

.ct-map__pin::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background-color: var(--color-charcoal);
}


.ct-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-xl);
}

.ct-details__title {
  font-size: var(--fs-2xl);
  font-weight: 400;
}


.ct-lines {
  width: 100%;
  margin: var(--space-sm) 0 0;
  border-top: 1px solid var(--color-border);
}

.ct-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.ct-line dt {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 500;
}

.ct-line dt svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold-deep);
}

.ct-line dd {
  margin: 0;
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--color-text-muted);
}

.ct-details__note {
  margin-top: auto;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* --- 3. Quote form --- */
.ct-quote {
  padding-block: var(--space-3xl);
  background-color: var(--color-charcoal);
  color: var(--color-cream);
}

.ct-quote .h-section {
  color: var(--color-cream);
}

.ct-quote__intro .text-link {
  color: var(--color-gold-light);
}

.ct-quote__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: start;
}

.ct-quote__intro {
  display: grid;
  gap: var(--space-md);
}

.ct-quote__intro p {
  max-width: 38ch;
  color: var(--color-text-on-dark-muted);
}

.ct-quote__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2xs) var(--space-sm);
}

.ct-quote__chat {
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.ct-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg) var(--space-md);
  padding: var(--space-xl);
  background-color: var(--color-ivory);
  border-radius: 2px;
}

.ct-field {
  display: grid;
  gap: var(--space-2xs);
  align-content: start;
}

.ct-field--wide {
  grid-column: 1 / -1;
}

.ct-field label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
}

.ct-req {
  margin-left: 0.4em;
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--color-text-muted);
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  font: inherit;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-input-border); /* 3:1 against the ivory card */
  border-radius: 2px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ct-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.ct-field input:hover,
.ct-field select:hover,
.ct-field textarea:hover {
  border-color: var(--color-grey);
}

.ct-field input:focus-visible,
.ct-field select:focus-visible,
.ct-field textarea:focus-visible {
  outline: none;
  border-color: var(--color-gold-deep);
  box-shadow: 0 0 0 3px rgba(var(--gold-rgb), 0.3);
}

.ct-field [aria-invalid="true"] {
  border-color: var(--color-error);
}

.ct-help {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.ct-error {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--color-error);
}

.ct-form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  padding-top: var(--space-sm);
}

.ct-form__status {
  max-width: 48ch;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.ct-form__status:empty {
  display: none;
}

/* --- 4. FAQ --- */
.ct-faq {
  padding-block: var(--space-3xl);
}

.ct-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: var(--space-2xl);
  align-items: start;
}

.ct-faq__lede {
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .ct-find__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .ct-head__inner,
  .ct-find__grid,
  .ct-quote__grid,
  .ct-faq__grid {
    grid-template-columns: 1fr;
  }

  .ct-quote__grid,
  .ct-faq__grid {
    gap: var(--space-xl);
  }

  .ct-head__lede {
    justify-self: start;
  }

  .ct-map {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

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

  .ct-details {
    padding: var(--space-lg);
  }
}
