/* ==================================================
   Shared contact strip (views/partials/contact-strip.ejs)
   ================================================== */

.contact-strip {
  position: relative;
  overflow: hidden;
  padding: 70px 0;
  background-color: #071328;
  /* !important: theme.css gives light sections a dotted texture with a very specific selector */
  background-image:
    radial-gradient(ellipse 45% 70% at 100% 0%, rgba(245, 166, 35, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 80% at 0% 100%, rgba(31, 86, 214, 0.22), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
  background-size: auto, auto, 48px 48px, 48px 48px !important;
}

/* slim logo-colour line along the top */
.contact-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1F56D6 0%, #F5A623 55%, #6DB33F 100%);
}

/* ---------- intro ---------- */
.contact-strip-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-family: var(--heading-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #F5A623;
}

.contact-strip-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #F5A623;
}

.contact-strip-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 30px;
  margin-bottom: 6px;
}

.contact-strip-intro h3 {
  margin-bottom: 0;
  font-size: 26px;
  line-height: 1.25;
  color: #ffffff;
}

.contact-strip-intro p {
  margin: 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- cards ---------- */
.contact-strip-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr 0.85fr;
  gap: 16px;
}

.contact-strip-card,
.contact-strip-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 118px;
  padding: 20px 22px;
  border-radius: 18px;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-strip-card {
  background: rgba(255, 255, 255, 0.05);
  border: solid 1px rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.contact-strip-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 166, 35, 0.55);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.contact-strip-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #0B1D3A;
  background: linear-gradient(135deg, #FFD66B, #F5A623);
  box-shadow: 0 10px 22px rgba(245, 166, 35, 0.3);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-strip-card:hover .contact-strip-icon {
  transform: rotate(-10deg) scale(1.08);
}

.contact-strip-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  line-height: 1.35;
}

.contact-strip-text small {
  margin-bottom: 2px;
  font-family: var(--heading-font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.contact-strip-text a,
.contact-strip-text strong,
.contact-strip-text span {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.contact-strip-text a:hover {
  color: #F5A623;
}

.contact-strip-text span {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- call-to-action card ---------- */
.contact-strip-cta {
  justify-content: space-between;
  text-decoration: none;
  color: #0B1D3A;
  background: linear-gradient(120deg, #FFD66B 0%, #F5A623 50%, #FF8A1F 100%);
  box-shadow: 0 16px 34px rgba(245, 166, 35, 0.35);
}

.contact-strip-cta:hover {
  color: #0B1D3A;
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(245, 166, 35, 0.5);
}

.contact-strip-cta span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.contact-strip-cta small {
  font-family: var(--heading-font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.contact-strip-cta strong {
  font-family: var(--heading-font);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.contact-strip-cta i {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0B1D3A;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.contact-strip-cta:hover i {
  transform: translateX(5px);
}

/* ---------- responsive ---------- */
/* medium screens: two cards per row so every line still fits */
@media (max-width: 1399px) {
  .contact-strip-grid {
    grid-template-columns: 1fr 1.3fr;
  }

  .contact-strip-cta {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .contact-strip {
    padding: 56px 0;
  }

  .contact-strip-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip-card,
  .contact-strip-cta {
    min-height: 0;
  }

  /* very narrow phones: let the long email addresses wrap rather than overflow */
  .contact-strip-text a {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-strip-card,
  .contact-strip-cta,
  .contact-strip-icon,
  .contact-strip-cta i {
    transition: none;
  }
}
