/*
 * Direct contact, 2026-09-15.
 *
 * WhatsApp and email have to be findable in a second: a Contact link in the
 * navigation, a band of two large cards before the enquiry form, chips beside
 * the form, the footer (footer.css), and a WhatsApp button that follows the reader
 * down the page until the cards themselves are on screen.
 *
 * WhatsApp's own green (#25d366) is too light for white text, so it is kept
 * for the icon and the card itself uses a deeper green that passes contrast.
 */

:root {
  --wa: #25d366;
  --wa-deep: #0b6b3a;
  --wa-ink: #07482a;
}

.icon-sprite {
  height: 0;
  overflow: hidden;
  position: absolute;
  width: 0;
}

.nav-contact {
  color: var(--wa-deep);
  font-weight: 700;
}

/* --- the band ------------------------------------------------------------ */

.reach-section {
  background:
    radial-gradient(50% 70% at 0% 0%, rgb(37 211 102 / 22%) 0%, transparent 65%),
    radial-gradient(45% 60% at 100% 100%, rgb(245 165 36 / 22%) 0%, transparent 65%),
    linear-gradient(160deg, #f3fbf4 0%, #fdf6e8 100%);
  display: grid;
  gap: 44px;
  isolation: isolate;
  position: relative;
}

.reach-head {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.reach-head .eyebrow {
  align-items: center;
  color: var(--wa-deep);
  display: inline-flex;
  gap: 9px;
}

.reach-head .eyebrow::before {
  background: linear-gradient(96deg, var(--wa) 0%, var(--amber) 100%);
  border-radius: 999px;
  content: "";
  height: 3px;
  width: 26px;
}

.reach-head h2 {
  font-size: clamp(32px, 4.6vw, 56px);
}

.reach-head h2 span {
  color: var(--wa-deep);
  display: block;
}

.reach-head > p:last-child {
  color: var(--muted);
  font-size: 16px;
  margin: 18px auto 0;
  max-width: 520px;
}

.reach-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 980px;
  width: 100%;
}

.reach-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: inherit;
  display: grid;
  gap: 6px;
  grid-template-areas:
    "icon label"
    "icon value"
    "icon action";
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 22px;
  overflow: hidden;
  padding: 30px 30px 28px;
  position: relative;
  text-decoration: none;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}

.reach-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* The corner circle is painted as a background, not a positioned box, so
   nothing hangs past the card's edge. */
.reach-whatsapp {
  background:
    radial-gradient(circle at 100% 0%, rgb(37 211 102 / 26%) 0 120px, transparent 121px),
    linear-gradient(140deg, var(--wa-ink) 0%, var(--wa-deep) 100%);
  color: #fff;
}

.reach-email {
  background:
    radial-gradient(circle at 100% 0%, rgb(245 165 36 / 18%) 0 120px, transparent 121px),
    #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.reach-icon {
  align-items: center;
  align-self: center;
  border-radius: 20px;
  display: flex;
  grid-area: icon;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.reach-icon svg {
  height: 40px;
  width: 40px;
}

.reach-whatsapp .reach-icon {
  background: var(--wa);
  box-shadow: 0 10px 24px -10px rgb(37 211 102 / 80%);
  color: #fff;
}

.reach-email .reach-icon {
  background: var(--amber-soft);
  color: #8a5300;
}

.reach-label {
  font-size: 12px;
  font-weight: 700;
  grid-area: label;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reach-whatsapp .reach-label {
  color: #bff3d2;
}

.reach-email .reach-label {
  color: #8a5300;
}

.reach-value {
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 700;
  grid-area: value;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.reach-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  grid-area: action;
  justify-self: start;
  margin-top: 10px;
  padding: 8px 16px;
}

.reach-whatsapp .reach-action {
  background: #fff;
  color: var(--wa-ink);
}

.reach-email .reach-action {
  background: var(--teal-deep);
  color: #fff;
}

.reach-shop {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  gap: 8px;
  justify-content: center;
  text-align: center;
}

.reach-shop a {
  color: var(--wa-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* --- beside the form ----------------------------------------------------- */

.quick-reach {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.quick-reach > span {
  flex-basis: 100%;
  font-size: 13px;
}

.quick-chip {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 8px;
  padding: 10px 18px 10px 12px;
  text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.quick-chip svg {
  height: 22px;
  width: 22px;
}

.quick-chip:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.quick-whatsapp {
  background: var(--wa-deep);
  color: #fff;
}

.quick-email {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--teal-deep);
}

/* --- the floating button ------------------------------------------------- */

.whatsapp-float {
  align-items: center;
  background: var(--wa);
  border-radius: 999px;
  bottom: max(18px, env(safe-area-inset-bottom));
  box-shadow: 0 14px 30px -12px rgb(7 72 42 / 70%);
  color: #fff;
  display: flex;
  gap: 10px;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 18px;
  text-decoration: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease),
    visibility 240ms;
  width: 58px;
  z-index: 25;
}

.whatsapp-float svg {
  height: 32px;
  width: 32px;
}

.whatsapp-float::before {
  animation: wa-ring 2.6s var(--ease) infinite;
  border: 2px solid var(--wa);
  border-radius: inherit;
  content: "";
  inset: 0;
  position: absolute;
}

.float-text {
  display: none;
}

.whatsapp-float.is-tucked {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  visibility: hidden;
}

@keyframes wa-ring {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@media (min-width: 900px) {
  .whatsapp-float {
    background: var(--wa-deep);
    padding: 0 22px 0 14px;
    right: 24px;
    width: auto;
  }

  .whatsapp-float svg {
    color: var(--wa);
    height: 28px;
    width: 28px;
  }

  .whatsapp-float::before {
    border-color: var(--wa-deep);
  }

  .float-text {
    display: inline;
    font-size: 15px;
    font-weight: 700;
  }
}

/* --- narrower screens ---------------------------------------------------- */

@media (max-width: 760px) {
  .reach-section {
    gap: 30px;
  }

  .reach-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .reach-card {
    column-gap: 16px;
    padding: 22px 20px;
  }

  .reach-icon {
    border-radius: 16px;
    height: 58px;
    width: 58px;
  }

  .reach-icon svg {
    height: 32px;
    width: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reach-card,
  .quick-chip,
  .whatsapp-float {
    transition: none;
  }

  .reach-card:hover,
  .quick-chip:hover {
    transform: none;
  }

  .whatsapp-float::before {
    animation: none;
    display: none;
  }
}
