/* ============================================================
   other.css — TRI69 custom styles that extend Tailwind
   Place in: public/css/other.css  (or resources/css/other.css)
   Reference in blade: <link rel="stylesheet" href="{{ asset('css/other.css') }}">
   OR import in resources/css/app.css: @import './other.css';
   ============================================================ */

/* ── CSS Custom Properties (brand tokens) ─────────────────── */
:root {
  --gold:      #C49A3C;
  --gold-hi:   #DDB96A;
  --ink:       #08111E;
  --ink-mid:   #0D1F35;
  --ink-lite:  #132840;
  --cream:     #F2EDE3;
}

/* ── Base / Selection / Scrollbar ─────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection    { background: #C49A3C; color: #08111E; }
::-webkit-scrollbar       { width: 3px; }
::-webkit-scrollbar-track { background: #08111E; }
::-webkit-scrollbar-thumb { background: #C49A3C; border-radius: 2px; }

a { color: inherit; text-decoration: none; }

/* ── Eyebrow label pseudo-element ─────────────────────────── */
.tri-eyebrow::before { content: '◈'; font-size: 0.5em; opacity: 0.7; }

/* ── Gold divider gradient ────────────────────────────────── */
.tri-gold-line {
  width: 44px; height: 1px;
  background: linear-gradient(90deg, #C49A3C, transparent);
}

/* ── Navigation: scroll-solidify transition ───────────────── */
#tri-nav {
  background: transparent !important;
  transition: padding 0.45s ease, background 0.45s ease, border-color 0.45s ease;
  border-bottom: 1px solid transparent;
}
#tri-nav.solid {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  background: rgba(8, 17, 30, 0.94) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom-color: rgba(196, 154, 60, 0.09);
}

/* ── Nav link underline animation ─────────────────────────── */
.tri-nav-link {
  position: relative;
  transition: color 0.25s;
}
.tri-nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: #C49A3C;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tri-nav-link:hover::after,
.tri-nav-link.active::after { width: 100%; }
.tri-nav-link:hover,
.tri-nav-link.active { color: #DDB96A; }

/* ── Ghost button underline hover ─────────────────────────── */
.tri-btn-ghost {
  border-bottom: 1px solid rgba(242, 237, 227, 0.18);
  transition: color 0.2s, border-color 0.2s;
}
.tri-btn-ghost:hover { color: #DDB96A; border-bottom-color: #C49A3C; }

/* ── Mobile menu ─────────────────────────────────────────── */
#tri-mob-menu {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  transform: translateX(100%);
}
#tri-mob-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

/* Enhanced close button */
#tri-mob-menu button[aria-label="Close"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#tri-mob-menu button[aria-label="Close"]:hover {
  background: rgba(196, 154, 60, 0.1);
  transform: scale(1.1) rotate(90deg);
}
#tri-mob-menu button[aria-label="Close"]:active {
  transform: scale(0.95) rotate(90deg);
}

/* Mobile menu links with enhanced interactions */
.mobile-menu-link {
  position: relative;
  display: block;
  padding: 1rem 1.5rem;
  margin: 0.25rem 0;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px; /* Larger touch-friendly size */
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.mobile-menu-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(196, 154, 60, 0.12), rgba(221, 185, 106, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: -1;
  transform: scale(0.95);
}

.mobile-menu-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.mobile-menu-link:active {
  transform: scale(0.96);
}

/* Add subtle text shadow for better readability */
.mobile-menu-link {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-menu-link:hover {
  text-shadow: 0 2px 4px rgba(196, 154, 60, 0.3);
}

/* Enhanced active state */
.mobile-menu-link[data-menu-index="5"] {
  background: linear-gradient(135deg, rgba(196, 154, 60, 0.15), rgba(221, 185, 106, 0.1));
  border: 1px solid rgba(196, 154, 60, 0.2);
}

/* Ripple effect for mobile menu links */
.mobile-menu-link {
  overflow: hidden;
}

.mobile-menu-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.mobile-menu-link:active::after {
  width: 300px;
  height: 300px;
}

/* Enhanced mobile menu actions */
.mobile-menu-actions {
  animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Touch-friendly button improvements */
.tri-btn {
  min-height: 44px;
  min-width: 44px;
  position: relative;
  overflow: hidden;
}

.tri-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.tri-btn:active::before {
  width: 300px;
  height: 300px;
}

/* Hamburger menu enhancements */
#hamburger-btn {
  position: relative;
  overflow: hidden;
}

#hamburger-btn::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(45deg, transparent, rgba(196, 154, 60, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

#hamburger-btn:hover::before {
  transform: translateX(100%);
}

.hamburger-line {
  transform-origin: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Swipe gesture indicator */
#tri-mob-menu::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 4px;
  background: rgba(196, 154, 60, 0.3);
  border-radius: 2px;
  animation: swipeIndicator 2s ease-in-out infinite;
}

@keyframes swipeIndicator {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.3; }
  50% { transform: translateX(-50%) scaleX(0.6); opacity: 0.8; }
}

/* Focus management for accessibility */
.mobile-menu-link:focus-visible,
.tri-btn:focus-visible,
#hamburger-btn:focus-visible,
#tri-mob-menu button[aria-label="Close"]:focus-visible {
  outline: 2px solid #C49A3C;
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  #tri-mob-menu,
  .mobile-menu-link,
  .mobile-menu-actions,
  .tri-btn,
  #hamburger-btn,
  .hamburger-line {
    transition: none;
    animation: none;
  }
  
  #tri-mob-menu::after {
    animation: none;
  }
}

/* ── Card hover effects ────────────────────────────────────── */
.tri-card {
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.tri-card:hover {
  background: rgba(196, 154, 60, 0.055);
  border-color: rgba(196, 154, 60, 0.4);
  transform: translateY(-3px);
}

/* ── Icon box hover (when inside card) ────────────────────── */
.tri-card:hover .tri-icon-box {
  background: rgba(196, 154, 60, 0.18);
  border-color: rgba(196, 154, 60, 0.4);
}
.tri-icon-box { transition: background 0.3s, border-color 0.3s; }

/* ── Btn hover lifts ──────────────────────────────────────── */
.tri-btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.tri-btn:hover  { transform: translateY(-2px); }
.tri-btn:active { transform: translateY(0); }

.tri-btn-gold:hover {
  box-shadow: 0 8px 30px rgba(196, 154, 60, 0.42);
  filter: brightness(1.07);
}
.tri-btn-outline:hover {
  border-color: #C49A3C;
  color: #DDB96A;
  background: rgba(196, 154, 60, 0.08);
}

/* ── Hero background layers ───────────────────────────────── */
.tri-hero-bg {
  background: radial-gradient(ellipse 90% 80% at 65% 35%, rgba(19, 40, 64, 0.95) 0%, #08111E 60%);
}
.tri-hero-grid {
  background-image:
    linear-gradient(rgba(196,154,60,0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,154,60,0.038) 1px, transparent 1px);
  background-size: 68px 68px;
}
.tri-hero-glow {
  background: radial-gradient(circle, rgba(196,154,60,0.065) 0%, transparent 65%);
}

/* ── Scroll cue gradient line ─────────────────────────────── */
.tri-scroll-line {
  background: linear-gradient(to bottom, #C49A3C, transparent);
}

/* ── Service card ::before top-border reveal ──────────────── */
.tri-svc-card {
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.tri-svc-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, #C49A3C, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.tri-svc-card:hover { background: rgba(196, 154, 60, 0.05); }
.tri-svc-card:hover::before { transform: scaleX(1); }

/* ── Reason card hover number brightening ─────────────────── */
.tri-reason-num { transition: color 0.3s; }
.tri-reason-card:hover .tri-reason-num { color: rgba(196,154,60,0.12); }
.tri-reason-card {
  transition: background 0.3s, border-color 0.3s;
}
.tri-reason-card:hover {
  background: rgba(196, 154, 60, 0.05);
  border-color: rgba(196, 154, 60, 0.4);
}

/* ── Highlight cell hover ─────────────────────────────────── */
.tri-hl-cell { transition: background 0.3s; }
.tri-hl-cell:hover { background: rgba(196, 154, 60, 0.04); }

/* ── Country card hover ───────────────────────────────────── */
.tri-country-card { transition: background 0.3s, border-color 0.3s; }
.tri-country-card:hover {
  background: rgba(196, 154, 60, 0.05);
  border-color: rgba(196, 154, 60, 0.4);
}

/* ── Social button hover ──────────────────────────────────── */
.tri-social-btn { transition: border-color 0.2s, color 0.2s; }
.tri-social-btn:hover { border-color: #C49A3C; color: #DDB96A; }

/* ── Footer link hover ───────────────────────────────────────*/
.tri-footer-link { transition: color 0.2s; }
.tri-footer-link:hover { color: #F2EDE3; }

/* ── CTA section backgrounds ──────────────────────────────── */
.tri-cta-bg {
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(196,154,60,0.1) 0%, transparent 60%),
    linear-gradient(158deg, #0D1F35 0%, #08111E 50%, #132840 100%);
}
.tri-cta-grid {
  background-image:
    linear-gradient(rgba(196,154,60,0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,154,60,0.065) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Ticker animation ─────────────────────────────────────── */
@keyframes tickerRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tri-ticker-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  width: max-content;
  animation: tickerRun 36s linear infinite;
}
.tri-ticker-track:hover { animation-play-state: paused; }

/* ── Hero entry animations ────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.78) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.tri-h-a1 { opacity: 0; animation: fadeUp 0.9s 0.05s cubic-bezier(0.16,1,0.3,1) forwards; }
.tri-h-a2 { opacity: 0; animation: fadeUp 0.9s 0.18s cubic-bezier(0.16,1,0.3,1) forwards; }
.tri-h-a3 { opacity: 0; animation: fadeUp 0.9s 0.32s cubic-bezier(0.16,1,0.3,1) forwards; }
.tri-h-a4 { opacity: 0; animation: fadeUp 0.9s 0.46s cubic-bezier(0.16,1,0.3,1) forwards; }
.tri-h-a5 { opacity: 0; animation: fadeUp 0.9s 0.60s cubic-bezier(0.16,1,0.3,1) forwards; }
.tri-h-a6 { opacity: 0; animation: fadeUp 0.9s 0.74s cubic-bezier(0.16,1,0.3,1) forwards; }
.tri-h-a7 { opacity: 0; animation: fadeUp 0.9s 0.88s cubic-bezier(0.16,1,0.3,1) forwards; }
.tri-h-right { opacity: 0; animation: fadeLeft 1.1s 0.28s cubic-bezier(0.16,1,0.3,1) forwards; }
.tri-h-badge { opacity: 0; animation: popIn 0.6s 1.3s cubic-bezier(0.34,1.56,0.64,1) forwards; }
.tri-scroll-cue { opacity: 0; animation: fadeUp 0.8s 1.6s ease forwards; }

/* ── Float animation (hero visual cards) ─────────────────── */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.tri-float    { animation: floatY 5s ease-in-out infinite; }
.tri-float-d1 { animation-delay: 0.5s; }
.tri-float-d2 { animation-delay: 1.0s; }
.tri-float-d3 { animation-delay: 1.5s; }

/* ── Glow pulse (badge) ───────────────────────────────────── */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(196,154,60,0.18); }
  50%       { box-shadow: 0 0 0 10px rgba(196,154,60,0); }
}
.tri-glow-pulse { animation: glowPulse 2.5s ease infinite; }

/* ── Scroll reveal ────────────────────────────────────────── */
[data-sr] {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-sr].on          { opacity: 1; transform: none; }
[data-sr-d="1"]       { transition-delay: 0.10s; }
[data-sr-d="2"]       { transition-delay: 0.20s; }
[data-sr-d="3"]       { transition-delay: 0.30s; }
[data-sr-d="4"]       { transition-delay: 0.40s; }
[data-sr-d="5"]       { transition-delay: 0.50s; }

/* ── Pillar card hover ────────────────────────────────────── */
.tri-pillar-card { transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.tri-pillar-card:hover {
  background: rgba(196,154,60,0.05);
  border-color: rgba(196,154,60,0.4);
  transform: translateY(-3px);
}

/* ── Client card hover ────────────────────────────────────── */
.tri-client-card { transition: background 0.3s, border-color 0.3s, transform 0.3s; }
.tri-client-card:hover {
  background: rgba(196,154,60,0.05);
  border-color: rgba(196,154,60,0.4);
  transform: translateY(-3px);
}

/* ── Services background gradient ────────────────────────── */
.tri-services-bg {
  background: linear-gradient(180deg, #0D1F35 0%, #08111E 100%);
}

/* ── Clients background gradient ─────────────────────────── */
.tri-clients-bg {
  background: linear-gradient(180deg, #08111E 0%, #0D1F35 100%);
}
