/*
 * Contact Page — .ct scoped styles
 * Source: Blueprint Memphis contact.dc.html / assets/contact.css
 * Form fields inherit the Beto Gravity Forms token sheet (assets/css/gravity-forms.css);
 * this file only styles the page layout, hero, cards, and map.
 *
 * Fonts: --ct-sans / --ct-mono fall back to system stacks. No Google Fonts CDN.
 */

.ct {
  --ct-paper: #FFFFFF;
  --ct-canvas: var(--nu-canvas, #F9FAFB);
  --ct-mist: #EEF2F6;
  --ct-line: #E5E7EB;
  --ct-ink: #174273;
  --ct-ink-lift: #1B4F82;
  --ct-ink-deep: #0F2F52;
  --ct-muted: #4A5565;
  --ct-muted-2: #99A1AF;
  --ct-border-hover: #D1D5DC;
  --ct-sans: 'Source Sans 3', system-ui, sans-serif;
  --ct-mono: 'Source Sans 3', system-ui, sans-serif;
  --ct-radius: 8px;
  --ct-accent: #86BF40;
  --ct-text: #101828;
  --ct-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family: var(--ct-sans);
  color: var(--ct-ink);
  background: var(--ct-canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/*
 * Content band: match sticky header chrome without changing the header.
 * Header = aa9500e outer pad 30px + .e-con-inner pad 32px (logo at 62px mid-width).
 * Mirror that on Contact only: outer .ct-hero / .ct-body pad 30, inner .ct-wrap pad 32.
 * Navy hero background still full-bleed on .ct-hero (pad does not clip bg on the section
 * if we put the 30px on an inner shell — use .ct-hero > .ct-wrap parent spacing via
 * padding on .ct-hero itself with background on .ct-hero: background paints padding edge).
 */
.ct .ct-hero,
.ct .ct-body {
  padding-inline: 30px;
  box-sizing: border-box;
}
.ct .ct-wrap {
  width: 100%;
  max-width: var(--nu-wide-width, 1440px);
  margin-inline: auto;
  padding-inline: 32px;
  box-sizing: border-box;
}
@media (max-width: 767px) {
  .ct .ct-hero,
  .ct .ct-body {
    padding-inline: 20px; /* match aa9500e mobile outer */
  }
}

/* ===== Hero band ===== */
.ct .ct-hero {
  /* Subtle navy wash — same stops as .ct-hours-card, without hatch/sheen */
  background: linear-gradient(
    150deg,
    var(--ct-ink-lift) 0%,
    var(--ct-ink) 45%,
    var(--ct-ink-deep) 100%
  );
}

.ct .ct-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--ct-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding-block: 1.5rem 0;
}

.ct .ct-crumb a {
  color: #fff;
  text-decoration: none;
}

.ct .ct-crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct .ct-crumb .sep {
  color: rgba(255, 255, 255, 0.35);
}

.ct .ct-hero-inner {
  max-width: 60ch;
  padding-block: clamp(2rem, 4vw, 3.25rem) clamp(2.25rem, 4vw, 3.25rem);
}

.ct .ct-eyb {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--ct-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.ct .ct-eyb .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.ct .ct-eyb .muted {
  color: rgba(255, 255, 255, 0.6);
}

.ct .ct-hero-title .elementor-heading-title {
  color: #F3F4F6;
  font-family: var(--ct-sans);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Vertical rhythm owned by Elementor flex gap on .ct-hero-inner (ctheroi1). */
.ct .ct-hero-title {
  margin-top: 0;
}

.ct .ct-hero-deck {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  margin-top: 0;
}

.ct .ct-hero-deck p {
  margin: 0;
  text-wrap: pretty;
}

/* ===== Body grid ===== */
.ct .ct-body {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 5.5rem);
}

.ct .ct-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

@media (max-width: 900px) {
  .ct .ct-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ===== Form card ===== */
.ct .ct-form-card {
  background: var(--ct-paper);
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  min-width: 0;
}

.ct .ct-form-title .elementor-heading-title {
  font-family: var(--ct-sans);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ct-text, #101828);
  text-wrap: balance;
}

/* Vertical rhythm owned by Elementor flex gap on .ct-form-card (ctfcard1). */
.ct .ct-form-sub {
  color: var(--ct-muted);
  font-size: 0.98rem;
  margin-top: 0;
  margin-bottom: 0;
}

.ct .ct-form-sub p {
  margin: 0;
}

/* Submit row: microcopy note next to the button */
.ct .gform_footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ct .gform_footer::after {
  content: "Your details stay private.";
  font-family: var(--ct-mono);
  font-size: 0.68rem;
  color: var(--ct-muted);
  letter-spacing: 0.02em;
}

/* Confirmation message styled as the success panel */
.ct .gform_confirmation_message {
  text-align: center;
  padding-block: clamp(1rem, 3vw, 2.5rem);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ct-muted);
}

.ct .gform_confirmation_message::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ct-accent, #86BF40);
  color: #fff;
  font-size: 1.9rem;
  margin: 0 auto 1.75rem;
}

/* ===== Sidebar ===== */
.ct .ct-side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
}

.ct .ct-info-card {
  background: var(--ct-paper);
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.15s, transform 0.2s var(--ct-ease-out);
}

.ct .ct-info-card:hover {
  border-color: var(--ct-border-hover);
}

.ct .ct-info-card .ic {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--ct-mist);
  display: grid;
  place-items: center;
  color: var(--ct-ink);
  font-size: 1rem;
  transition: background-color 0.2s var(--ct-ease-out), color 0.2s var(--ct-ease-out);
}

.ct .ct-info-card:hover .ic {
  background: var(--ct-accent, #86BF40);
  color: #fff;
}

.ct .ct-info-card .k {
  font-family: var(--ct-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ct-muted-2);
}

.ct .ct-info-card .v {
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 0.3rem;
  line-height: 1.3;
  color: var(--ct-ink);
}

.ct .ct-info-card .v a {
  color: inherit;
  text-decoration: none;
}

.ct .ct-info-card .v a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct .ct-info-card .sub,
.ct .ct-info-card .ct-info-sub {
  font-size: 0.86rem;
  color: var(--ct-muted);
  margin-top: 0.3rem;
  line-height: 1.45;
}

.ct .ct-info-card .ct-info-sub p {
  margin: 0;
}

/* Elementor-native info cards (icon + heading + text widgets). */
.ct .ct-info-card .ct-info-k .elementor-heading-title {
  font-family: var(--ct-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ct-muted-2);
  line-height: 1.3;
}

.ct .ct-info-card .ct-info-v {
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 0.3rem;
  line-height: 1.3;
  color: var(--ct-ink);
}

.ct .ct-info-card .ct-info-v p {
  margin: 0;
}

.ct .ct-info-card .ct-info-v a {
  color: inherit;
  text-decoration: none;
}

.ct .ct-info-card .ct-info-v a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct .ct-info-card .ic .elementor-widget-icon {
  margin: 0;
}

.ct .ct-info-card .ic .elementor-icon {
  font-size: 1rem;
  transition: color 0.2s var(--ct-ease-out), fill 0.2s var(--ct-ease-out);
}

.ct .ct-info-card:hover .ic .elementor-icon,
.ct .ct-info-card:hover .ic .elementor-icon i {
  color: var(--ct-paper);
}

.ct .ct-info-card:hover .ic .elementor-icon svg {
  fill: var(--ct-paper);
}

/* Hours card */
.ct .ct-hours-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #1B4F82 0%, #174273 45%, #0F2F52 100%);
  color: #fff;
  border-radius: var(--ct-radius);
  padding: 1.5rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ct .ct-hours-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 9px);
  pointer-events: none;
}

.ct .ct-hours-card::after {
  content: "";
  position: absolute;
  left: -20%;
  top: -40%;
  width: 80%;
  height: 180%;
  background: linear-gradient(105deg, rgba(134, 191, 64, 0.18) 0%, rgba(255, 255, 255, 0.04) 35%, transparent 65%);
  transform: rotate(8deg);
  pointer-events: none;
}

.ct .ct-hours-card > * {
  position: relative;
  z-index: 1;
}

.ct .ct-hours-card .k,
.ct .ct-hours-card .ct-hours-k .elementor-heading-title {
  font-family: var(--ct-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.ct .ct-hours-card h3,
.ct .ct-hours-card .ct-hours-title .elementor-heading-title {
  color: #fff;
  font-family: var(--ct-sans);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0.55rem 0 0;
}

.ct .ct-hours-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ct .ct-hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.ct .ct-hours-row .d,
.ct .ct-hours-row .ct-hours-d {
  color: rgba(255, 255, 255, 0.85);
}

.ct .ct-hours-row .ct-hours-d p {
  margin: 0;
}

.ct .ct-hours-row .t,
.ct .ct-hours-row .ct-hours-t {
  font-family: var(--ct-mono);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
}

.ct .ct-hours-row .ct-hours-t p {
  margin: 0;
}

.ct .ct-hours-row.is-closed .t {
  color: rgba(255, 255, 255, 0.4);
}

.ct .ct-social {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.ct .ct-social a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: all 0.15s;
}

.ct .ct-social a:hover {
  background: #fff;
  color: var(--ct-ink);
  border-color: #fff;
}

/* Elementor Social Icons widget in the hours card. */
.ct .ct-hours-card .elementor-widget-social-icons.ct-social {
  margin-top: 1.25rem;
}

.ct .ct-hours-card .elementor-widget-social-icons.ct-social .elementor-social-icons {
  gap: 0.5rem;
}

.ct .ct-hours-card .elementor-widget-social-icons.ct-social .elementor-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  transition: all 0.15s;
}

.ct .ct-hours-card .elementor-widget-social-icons.ct-social .elementor-social-icon i {
  color: #fff;
}

.ct .ct-hours-card .elementor-widget-social-icons.ct-social .elementor-social-icon svg {
  fill: #fff;
}

.ct .ct-hours-card .elementor-widget-social-icons.ct-social .elementor-social-icon:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ct-ink);
}

.ct .ct-hours-card .elementor-widget-social-icons.ct-social .elementor-social-icon:hover i {
  color: var(--ct-ink);
}

.ct .ct-hours-card .elementor-widget-social-icons.ct-social .elementor-social-icon:hover svg {
  fill: var(--ct-ink);
}

/* Copy-link control (last social item) + fixed tip so overflow:hidden cannot clip it. */
.ct .ct-hours-card .elementor-widget-social-icons.ct-social .elementor-social-icon.ct-copy-link {
  position: relative;
  cursor: pointer;
}

.ct .ct-hours-card .ct-copy-tip {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, calc(-100% - 10px)) translateY(4px);
  background: #fff;
  color: var(--ct-ink);
  font-family: var(--ct-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.55);
  z-index: 10000;
}

.ct .ct-hours-card .ct-copy-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #fff;
}

.ct .ct-hours-card .ct-copy-link.is-copied .ct-copy-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, calc(-100% - 10px)) translateY(0);
}

/* Map widget */
.ct .ct-map-widget {
  background: var(--ct-paper);
  border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius);
  overflow: hidden;
}

.ct .ct-map-widget .lmap {
  height: 210px;
  width: 100%;
  background: var(--ct-mist, #EEF2F6);
}

.ct .ct-map-widget .lmap .leaflet-control-attribution {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.7);
}

.ct .ct-map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  background: var(--ct-paper);
  border-top: 1px solid var(--ct-line);
}

.ct .ct-map-foot .addr {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ct-ink);
}

.ct .ct-map-foot .addr span {
  display: block;
  font-family: var(--ct-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ct-muted-2);
  margin-top: 0.2rem;
}

.ct .ct-map-foot a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ct-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ct-ink);
  text-decoration: none;
}

.ct .ct-map-foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ct .ct-map-foot .ct-map-addr {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ct-ink);
}

.ct .ct-map-foot .ct-map-addr p {
  margin: 0;
}

.ct .ct-map-foot .ct-map-btn .elementor-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--ct-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ct-ink);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.ct .ct-map-foot .ct-map-btn .elementor-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
  color: var(--ct-ink);
}

/* Map canvas: Elementor container with id="contact-map" via Custom Attributes. */
.ct .ct-map-widget .lmap.e-con {
  display: block;
}

/* ===== Mobile ===== */
@media (max-width: 767px) {
  .ct .ct-wrap {
    padding-inline: 20px; /* match header e-con-inner mobile */
  }

  .ct .ct-hero-deck {
    font-size: 1.08rem;
  }

  .ct .ct-form-card {
    padding: 1.5rem 1.25rem;
  }
}

/* FutureBridge: contact form tokens */
.ct .gform_wrapper,
.ct .gform_wrapper.gravity-theme,
.ct .gform_wrapper.gform-theme {
  --gf-num-font-family: "Source Sans 3", system-ui, sans-serif;
  --gf-num-label: #364153;
  --gf-num-text: #101828;
  --gf-num-muted: #4A5565;
  --gf-num-input-bg: #F9FAFB;
  --gf-num-input-border: #D1D5DC;
  --gf-num-input-border-focus: #174273;
  --gf-num-button-bg: #86BF40;
  --gf-num-button-bg-hover: #174273;
  /* a11y: white on #86BF40 is ~2.2:1; navy text matches Donate / Get Involved */
  --gf-num-button-text: #174273;
  --gf-num-button-text-hover: #FFFFFF;
  --gf-num-button-radius: 6px;
  --gf-num-input-radius: 6px;
  font-family: "Source Sans 3", system-ui, sans-serif;
}
.ct .gform_wrapper .gform_button,
.ct .gform_wrapper input[type="submit"].gform_button,
.ct .gform_wrapper .gform-theme-button {
  background-color: var(--gf-num-button-bg) !important;
  color: var(--gf-num-button-text) !important;
  border-radius: var(--gf-num-button-radius) !important;
  font-weight: 600 !important;
}
.ct .gform_wrapper .gform_button:hover,
.ct .gform_wrapper .gform_button:focus,
.ct .gform_wrapper input[type="submit"].gform_button:hover,
.ct .gform_wrapper input[type="submit"].gform_button:focus,
.ct .gform_wrapper .gform-theme-button:hover,
.ct .gform_wrapper .gform-theme-button:focus {
  background-color: var(--gf-num-button-bg-hover) !important;
  color: var(--gf-num-button-text-hover) !important;
}

/* a11y V2: privacy link distinguishable without color alone */
.ct .gform_wrapper .gfield_consent_label a,
.ct .gform_wrapper #label_1_6_1 a,
.ct .gform_wrapper label a[href*="privacy"] {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
