/* ─── AL-R Custom Styles ─── */
/* Used alongside Tailwind for things that need custom CSS */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300&family=Inter:wght@300;400;500;600&display=swap');

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero background grid ── */
.hero-bg-lines {
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── Teal blob glow ── */
.hero-blob {
  position: absolute;
  right: -200px;
  top: -100px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,176,155,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Service card left-border reveal ── */
.svc-card {
  position: relative;
}
.svc-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #00B09B;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.svc-card:hover::before {
  transform: scaleY(1);
}

/* ── Sector card left-border reveal ── */
.sector-card {
  position: relative;
  overflow: hidden;
}
.sector-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #00B09B;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.sector-card:hover::after {
  transform: scaleY(1);
}

/* ── Metric bar animation ── */
.metric-fill {
  height: 100%;
  border-radius: 9999px;
  background: #00B09B;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
/* .metric-fill.animated width is set dynamically via JS inline style */

/* ── Step hover ── */
.step-num {
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.step.active .step-num,
.step:hover .step-num {
  background: #00338D;
  border-color: #00338D;
  color: #ffffff;
}

/* ── Testimonial card hover ── */
.tcard {
  transition: box-shadow 0.25s, transform 0.25s;
}
.tcard:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.09);
  transform: translateY(-3px);
}

/* ── CTA blob ── */
.cta-blob {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,176,155,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Mobile menu ── */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: flex;
}

/* ── Nav scroll shadow ── */
#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}

/* ── Page transition ── */
.page-fade {
  animation: pageFade 0.4s ease;
}
@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Active nav link ── */
.nav-link.active {
  color: #00338D;
  background: #f7f8fc;
  border-radius: 8px;
}

/* ── Contact form focus ── */
.form-input:focus {
  outline: none;
  border-color: #00B09B;
  box-shadow: 0 0 0 3px rgba(0,176,155,0.12);
}

/* ── Hamburger lines ── */
.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #00338D;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#hamburger.open .ham-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#hamburger.open .ham-line:nth-child(2) { opacity: 0; }
#hamburger.open .ham-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Scroll to top btn ── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 99;
  width: 44px;
  height: 44px;
  background: #00338D;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  border: none;
  font-size: 18px;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#scroll-top:hover {
  background: #001F5C;
}

/* ── Trust Bar Marquee Ticker ── */
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track {
  animation: ticker 20s linear infinite;
  padding-left: 2rem;
}
.ticker-track:hover {
  animation-play-state: paused;
}
