/*
  site-enhancements.css — L&Y Global Consulting
  Shared hover effects, transitions, and cosmetic polish.
  Loaded by every page via <link rel="stylesheet" href="site-enhancements.css">
*/


/* ═══════════════════════════════════════════════
   NAV — sliding underline on hover
═══════════════════════════════════════════════ */

/* All non-active nav links get a slide-in underline */
nav a.nav-link {
  position: relative;
}
nav a.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #c2b49a;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
nav a.nav-link:hover::after {
  transform: scaleX(1);
}

/* Logo hover: subtle brightness lift */
nav a[href="index.html"]:first-child {
  transition: opacity 200ms ease;
}
nav a[href="index.html"]:first-child:hover {
  opacity: 0.85;
}

/* Contact CTA button in nav: fill on hover */
nav a.nav-cta {
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease;
}
nav a.nav-cta:hover {
  background: rgba(194, 180, 154, 0.08);
}


/* ═══════════════════════════════════════════════
   BUTTONS — primary (champagne fill)
═══════════════════════════════════════════════ */

a[class*="bg-champagne"],
button[class*="bg-champagne"] {
  position: relative;
  overflow: hidden;
  transition: background 220ms ease, transform 200ms ease, box-shadow 220ms ease !important;
}
a[class*="bg-champagne"]:hover,
button[class*="bg-champagne"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(194, 180, 154, 0.18);
}
a[class*="bg-champagne"]:active,
button[class*="bg-champagne"]:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Ghost / outline buttons */
a[class*="border-champagne"],
a[class*="border-[#b9b7b3]"] {
  transition: background 220ms ease, border-color 220ms ease,
              color 220ms ease, transform 200ms ease !important;
}
a[class*="border-champagne"]:hover {
  background: rgba(194, 180, 154, 0.06);
  transform: translateY(-1px);
}
a[class*="border-[#b9b7b3]"]:hover {
  border-color: rgba(194, 180, 154, 0.6);
  background: rgba(194, 180, 154, 0.05);
  transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════
   FOOTER LINKS — slide-in underline
═══════════════════════════════════════════════ */

footer a {
  position: relative;
  display: inline-block;
}
footer a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #c2b49a;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
footer a:hover::after {
  transform: scaleX(1);
}


/* ═══════════════════════════════════════════════
   METHODOLOGY / ARTICLE ROWS — hover lift
═══════════════════════════════════════════════ */

article.hover-lift,
.article-hover {
  transition: background 200ms ease;
}
article.hover-lift:hover,
.article-hover:hover {
  background: rgba(194, 180, 154, 0.03);
}

/* Insights / case-study card hover */
.card-hover {
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 260ms cubic-bezier(0.4, 0, 0.2, 1),
              border-color 260ms ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}


/* ═══════════════════════════════════════════════
   COSMETIC POLISH — global type & spacing
═══════════════════════════════════════════════ */

/* Slightly smoother heading rendering */
h1, h2, h3, h4 {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Champagne divider accent used in section headers */
.section-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(194, 180, 154, 0.45);
  margin-bottom: 24px;
}

/* Subtle selection color */
::selection {
  background: rgba(194, 180, 154, 0.25);
  color: #f5f2ec;
}

/* Smooth scroll for all anchor links */
html {
  scroll-behavior: smooth;
}

/* Focus ring using champagne accent (accessibility) */
:focus-visible {
  outline: 2px solid rgba(194, 180, 154, 0.6);
  outline-offset: 3px;
}


/* ═══════════════════════════════════════════════
   SCROLL FADE-UP (shared across pages)
   Add class="scroll-fade" to any element you
   want to fade in on scroll.
═══════════════════════════════════════════════ */

.scroll-fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════
   CHAMPAGNE GLOW on hero accent text
═══════════════════════════════════════════════ */

.text-champagne-glow {
  text-shadow: 0 0 32px rgba(194, 180, 154, 0.25);
}


/* ═══════════════════════════════════════════════
   NAV — smooth appearance on page load
═══════════════════════════════════════════════ */

nav {
  animation: navFadeIn 500ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════
   COMPARISON TABLE ROW HOVER (The Firm page)
═══════════════════════════════════════════════ */

.comparison-row {
  transition: background 200ms ease;
  cursor: default;
}
.comparison-row:hover {
  background: rgba(255, 255, 255, 0.015);
}
/* L&Y highlighted row — brighter on hover */
.comparison-row-highlight {
  transition: background 200ms ease;
  cursor: default;
}
.comparison-row-highlight:hover {
  background: #222222;
}


/* ═══════════════════════════════════════════════
   REGION TAGS — subtle pulse on hover
═══════════════════════════════════════════════ */

.region-tag {
  transition: border-color 220ms ease, color 220ms ease;
}
.region-tag:hover {
  border-color: rgba(194, 180, 154, 0.35) !important;
  color: rgba(245, 242, 236, 0.65) !important;
}
