/*
  Eldon Capital - shared styles.
  Layout and design are handled by Tailwind utilities in the HTML files;
  this file only holds the repeated link patterns so they live in one place.
  Brand colours are declared in each page's <style type="text/tailwindcss"> block.
*/

html { scroll-behavior: smooth; }

body { margin: 0; }

/* ---------- Navigation links: green underline on hover / current page ---------- */
.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.25rem 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 3px;
  background: var(--color-teal, #2cc5bf);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link[aria-current="page"]::after {
  opacity: 1;
}

/* ---------- Contact pill: outlined, fills green on hover ---------- */
.nav-cta {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 2px solid #fff;
  border-radius: 9999px;
  font-weight: 700;
  line-height: 1.5rem;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible,
.nav-cta[aria-current="page"]:hover {
  background-color: var(--color-teal, #2cc5bf);
  border-color: var(--color-teal, #2cc5bf);
}

/* ---------- Inline links (footer, body copy): green underline ---------- */
.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease;
}

.link:hover,
.link:focus-visible,
.link[aria-current="page"] {
  text-decoration-color: var(--color-teal, #2cc5bf);
}

/* Links inside long-form copy always show the underline */
.prose-link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--color-teal, #2cc5bf);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose-link:hover { color: var(--color-teal, #2cc5bf); }

/* Keyboard focus */
:focus-visible {
  outline: 2px solid var(--color-teal, #2cc5bf);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
