/* ============================================================
   GFM Consult - Custom Styles
   ============================================================ */

:root {
  --color-lime: #84cc16;
  --color-lime-dark: #65a30d;
  --color-emerald: #10b981;
  --color-slate-deep: #0f172a;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #0f172a;
  background-color: #ffffff;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Gradient Text ===== */
.text-gradient {
  background: linear-gradient(90deg, #65a30d 0%, #10b981 50%, #0f766e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Soft Animated Blob ===== */
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  animation: floatBlob 14s ease-in-out infinite;
}
@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

/* ===== Grid Pattern Background ===== */
.bg-grid {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ===== Hover Lift Card ===== */
.lift {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.18);
}

/* ===== Marquee ===== */
.marquee {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Custom Scrollbar (subtle) ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #84cc16; }

/* ===== Glass Card ===== */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.glass-dark {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== Active Nav Link ===== */
.nav-link.active {
  color: #65a30d;
}
.nav-link.active::after {
  width: 100%;
}
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #84cc16, #10b981);
  transition: width .3s ease;
}
.nav-link:hover::after { width: 100%; }

/* ===== Floating Dots Nav (LHMS) ===== */
.dot-nav-item {
  width: 10px; height: 10px;
  border-radius: 9999px;
  background: #cbd5e1;
  transition: all .25s ease;
  display: block;
}
.dot-nav-item.active {
  background: #84cc16;
  transform: scale(1.35);
}
.dot-nav-item:hover { background: #65a30d; }

/* ===== Section padding helpers ===== */
.section { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 768px) {
  .section { padding-top: 7rem; padding-bottom: 7rem; }
}

/* ===== Tab button active ===== */
.tab-btn.active {
  background: #0f172a;
  color: #ecfccb;
  border-color: #0f172a;
}

/* ===== Timeline ===== */
.timeline-step.active .timeline-dot {
  background: #84cc16;
  box-shadow: 0 0 0 6px rgba(132, 204, 22, 0.18);
}
.timeline-step.active .timeline-content {
  border-color: #84cc16;
}

/* ===== Print/Print Hide ===== */
@media print {
  .no-print { display: none !important; }
}

/* ============================================================
   ABOUT / COMPANY PROFILE — spacing polish
============================================================ */
#about { scroll-margin-top: 5rem; }
#about p + p { margin-top: 1rem; }
#about ul li { line-height: 1.55; }
@media (max-width: 1023px) {
  #about .grid { gap: 2.5rem; }
}

/* ============================================================
   OUR TEAM — modern card + consistent photo
============================================================ */
#team { scroll-margin-top: 5rem; }

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.06);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 48px -24px rgba(15, 23, 42, 0.22);
  border-color: #bef264; /* lime-300 */
}

/* Photo wrapper: locks aspect ratio so images never stretch */
.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f1f5f9;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .6s ease;
}
.team-card:hover .team-photo img {
  transform: scale(1.05);
}
/* Soft gradient at the bottom of the photo for legibility */
.team-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0));
  pointer-events: none;
}

.team-body { padding: 1.5rem; }
.team-name { font-weight: 700; color: #0f172a; font-size: 1.05rem; line-height: 1.3; }
.team-role { margin-top: .25rem; font-size: .875rem; font-weight: 600; color: #4d7c0f; } /* lime-700 */
.team-desc { margin-top: .75rem; font-size: .875rem; line-height: 1.6; color: #475569; }

/* Badge over photo */
.team-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: #3f6212; /* lime-800 */
  border: 1px solid #d9f99d; /* lime-200 */
  backdrop-filter: blur(6px);
}
.team-badge.is-primary {
  background: #84cc16; /* lime-500 */
  color: #0a0a0a;
  border-color: transparent;
  box-shadow: 0 4px 12px -2px rgba(132, 204, 22, 0.45);
}
.team-badge.is-emerald {
  color: #065f46; /* emerald-800 */
  border-color: #a7f3d0; /* emerald-200 */
}

/* Responsive grid: mobile 1 · tablet 2 · desktop 3 */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
}
@media (min-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}
