
/* Keralink shared UI polish: responsive navigation, footer, focus and performance-friendly effects. */
html { scroll-behavior: smooth; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
/* Clean link treatment: remove browser-default underlines while keeping clear hover/focus states. */
a { text-decoration: none; }
a:hover { text-decoration: none; }
html.menu-open { overflow: hidden; }
#mobileNav { position: relative; z-index: 60; box-shadow: 0 14px 30px rgba(15,23,42,.08); }
#mobileNav a { min-height: 44px; display: flex; align-items: center; }
#menuBtn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#menuBtn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(20,184,166,.35); outline-offset: 2px; }
nav[aria-label="Primary navigation"] a, nav[aria-label="Mobile navigation"] a { transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease; }
nav[aria-label="Primary navigation"] a[aria-current="page"], nav[aria-label="Mobile navigation"] a[aria-current="page"] { color: #0f766e; }
.site-footer { position: relative; overflow: hidden; background: linear-gradient(180deg,#0f172a 0%,#020617 100%); }
.site-footer::before { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(circle at 12% 0%, rgba(20,184,166,.10), transparent 32%), radial-gradient(circle at 88% 10%, rgba(45,212,191,.06), transparent 28%); }
.site-footer > div { position: relative; }
.site-footer h2, .site-footer h3 { letter-spacing: .08em; }
.site-footer nav a, .site-footer a { text-decoration: none; }
.site-footer nav a:hover, .site-footer a:hover { text-decoration: none; }
.site-footer nav a:hover { transform: translateX(2px); }
.site-footer .newsletter-form { padding: 4px; border: 1px solid rgba(148,163,184,.16); border-radius: 16px; background: rgba(15,23,42,.55); }
.site-footer .newsletter-form input { border: 0; background: transparent; }
.site-footer .newsletter-form button { min-height: 44px; }
@media (max-width: 639px) {
  .site-footer .newsletter-form { flex-direction: column; }
  .site-footer .newsletter-form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Professional footer palette: explicit colors prevent browser/default link blue. */
.site-footer a { color: #cbd5e1; }
.site-footer nav a { color: #cbd5e1; }
.site-footer a:hover, .site-footer nav a:hover { color: #5eead4; }
.site-footer .site-footer-brand, .site-footer .footer-heading { color: #f8fafc; }
.site-footer .footer-muted { color: #94a3b8; }

/* Mobile first-load rendering optimization: defer off-screen paint work. */
@media (max-width: 768px){
  #talent, #testimonials, #pricing, .site-footer { content-visibility:auto; contain-intrinsic-size: 700px; }
}


/* Navigation hitboxes: keep the visual label and the actual touch target aligned. */
nav[aria-label="Primary navigation"] a,
nav[aria-label="Mobile navigation"] a,
nav[aria-label="Policy navigation"] a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
nav[aria-label="Mobile navigation"] a { min-height: 44px; }

/* Unified header navigation hit areas: visual labels remain centered inside the same touch target. */
header nav a,
header > div > div > a:not([aria-label="Keralink Home"]),
header > div > div > button,
header > div > a:not([aria-label="Keralink Home"]),
header > div > nav a {
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
/* Keep the logo link visually compact; only the logo image itself defines its size. */
header a[aria-label="Keralink Home"],
header .brand-logo { min-height: 44px; align-items: center; }


/* Keralink unified header pass: visual/touch consistency only. */
.site-header-inner {
  min-height: 72px;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.site-header-inner img[src*="keralink-logo.webp"] {
  height: 48px !important;
  width: auto !important;
  max-width: 150px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: contain;
}
.site-home-link {
  display: inline-flex !important;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  text-decoration: none !important;
  color: #0f766e !important;
  background: transparent !important;
  border: 1px solid rgba(148,163,184,.28);
}
.site-home-link:hover {
  background: rgba(20,184,166,.10) !important;
}
@media (max-width: 1023px) {
  .site-header-inner { min-height: 68px; }
}

/* Home mobile menu: remove the unwanted white button box while preserving the 44px touch target. */
.home-header #menuBtn {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  min-width: 44px;
  min-height: 44px;
}
.home-header #menuBtn:hover,
.home-header #menuBtn:active {
  background: transparent !important;
}
