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

[x-cloak] { display: none !important; }

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

/* Dark mode overrides */
html.dark body {
  background-color: #0f172a;
  color: #e2e8f0;
}
html.dark .bg-white { background-color: #1e293b !important; }
html.dark .bg-slate-50, html.dark .bg-gray-50 { background-color: #1e293b !important; }
html.dark .bg-slate-100, html.dark .bg-gray-100 { background-color: #0f172a !important; }
html.dark .bg-gradient-to-r, html.dark .bg-gradient-to-b, html.dark .bg-gradient-to-br { background-image: none !important; background-color: #0f172a !important; }
html.dark [class*="from-lime-50"], html.dark [class*="from-green-50"], html.dark [class*="from-white"] { background-color: #0f172a !important; background-image: none !important; }
html.dark .text-slate-900, html.dark .text-gray-900 { color: #f1f5f9 !important; }
html.dark .text-slate-800, html.dark .text-gray-800 { color: #e2e8f0 !important; }
html.dark .text-slate-700, html.dark .text-gray-700 { color: #cbd5e1 !important; }
html.dark .text-slate-600, html.dark .text-gray-600 { color: #94a3b8 !important; }
html.dark .text-slate-500, html.dark .text-gray-500 { color: #94a3b8 !important; }
html.dark .text-slate-400, html.dark .text-gray-400 { color: #94a3b8 !important; }
html.dark .text-slate-300 { color: #cbd5e1 !important; }
html.dark .text-white { color: #ffffff !important; }
html.dark p, html.dark span, html.dark li, html.dark td, html.dark th, html.dark label { color: #cbd5e1; }
html.dark h1, html.dark h2, html.dark h3, html.dark h4, html.dark h5, html.dark h6 { color: #f1f5f9 !important; }
html.dark a:not([class*="bg-lime"]):not([class*="bg-green"]):not([class*="text-lime"]):not([class*="text-white"]) { color: #94a3b8; }
html.dark a:hover { color: #84cc16 !important; }
html.dark .border-slate-200, html.dark .border-gray-200 { border-color: #334155 !important; }
html.dark .border-slate-100, html.dark .border-gray-100 { border-color: #1e293b !important; }
html.dark .border-white\/10 { border-color: rgba(255,255,255,0.1) !important; }
html.dark .shadow-sm, html.dark .shadow-md, html.dark .shadow-lg, html.dark .shadow-xl { --tw-shadow-color: rgba(0,0,0,0.4); }
html.dark nav { background-color: rgba(15, 23, 42, 0.95) !important; backdrop-filter: blur(12px); }
html.dark nav .nav-link { color: #cbd5e1; }
html.dark nav .nav-link:hover, html.dark nav .nav-link.active { color: #84cc16; }
html.dark .section { border-color: #334155; }
html.dark .bg-white\/5 { background-color: rgba(255,255,255,0.05) !important; }
html.dark .bg-white\/80 { background-color: rgba(15, 23, 42, 0.9) !important; }
html.dark .rounded-2xl, html.dark .rounded-xl, html.dark .rounded-3xl { border-color: #334155; }
html.dark input, html.dark textarea, html.dark select { background-color: #1e293b !important; border-color: #475569 !important; color: #e2e8f0 !important; }
html.dark input::placeholder, html.dark textarea::placeholder { color: #64748b !important; }
html.dark .bg-lime-50, html.dark .bg-green-50, html.dark .bg-emerald-50 { background-color: rgba(132, 204, 22, 0.1) !important; }
html.dark .bg-lime-100, html.dark .bg-green-100 { background-color: rgba(132, 204, 22, 0.15) !important; }
html.dark .prose { color: #cbd5e1 !important; }
html.dark .prose h1, html.dark .prose h2, html.dark .prose h3, html.dark .prose h4 { color: #f1f5f9 !important; }
html.dark .prose p, html.dark .prose li { color: #94a3b8 !important; }
html.dark .prose a { color: #84cc16 !important; }
html.dark .prose blockquote { border-color: #475569 !important; color: #94a3b8 !important; }
html.dark .prose code { background-color: #334155 !important; color: #e2e8f0 !important; }
html.dark footer { background-color: #020617 !important; }

/* ===== News & Article portal cards (dark mode) ===== */
html.dark .news-hero,
html.dark .news-card,
html.dark .news-box {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  border-radius: 20px;
}
html.dark .news-hero { border-radius: 24px; }
html.dark .news-box { padding: 28px; }
html.dark .news-hero .p-7 { padding: 28px; }
html.dark .news-card { padding: 20px; }
html.dark .news-hero h2,
html.dark .news-card h3,
html.dark .news-box h3 { color: #f1f5f9 !important; }
html.dark .news-hero p,
html.dark .news-card p { color: #cbd5e1 !important; }
html.dark .news-cat { color: #cbd5e1 !important; }
html.dark .news-cat:hover { background-color: #0f172a !important; color: #60a5fa !important; }
html.dark .news-cat.is-active { background-color: rgba(37,99,235,0.15) !important; color: #60a5fa !important; }
html.dark .side-search input { background-color: #0f172a !important; border-color: #475569 !important; color: #e2e8f0 !important; }
html.dark .news-thumb, html.dark .news-hero-media { background: #0f172a !important; }

/* Make faded meta text readable in dark mode */
html.dark .text-slate-400 { color: #94a3b8 !important; }
html.dark .text-slate-500 { color: #cbd5e1 !important; }
html.dark .text-gray-600, html.dark .text-gray-500 { color: #cbd5e1 !important; }

/* Breadcrumb chip spacing */
html.dark nav.mb-6 span.truncate { color: #e2e8f0 !important; }

/* ===== Soften decorative elements in dark mode ===== */
html.dark .bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px) !important;
}
html.dark .blob {
  opacity: 0.15 !important;
  filter: blur(110px) !important;
}

/* ===== Articles / Blog portal cards (dark mode) ===== */
html.dark .blog-feature,
html.dark .blog-card,
html.dark .blog-box {
  background: #1e293b !important;
  background-image: none !important;
  border-color: #334155 !important;
}
html.dark .blog-feature-sec,
html.dark .blog-section { background: #0f172a !important; }
html.dark .blog-feature h2,
html.dark .blog-card h3,
html.dark .blog-box h3 { color: #f1f5f9 !important; }
html.dark .blog-feature p,
html.dark .blog-card p { color: #cbd5e1 !important; }
html.dark .blog-feature-body, html.dark .blog-card-body { color: #cbd5e1 !important; }
html.dark .blog-cat { color: #cbd5e1 !important; }
html.dark .blog-cat:hover { background-color: #0f172a !important; color: #a78bfa !important; }
html.dark .blog-cat.is-active { background-color: rgba(124,58,237,0.15) !important; color: #a78bfa !important; }
html.dark .blog-thumb, html.dark .blog-feature-media { background: #0f172a !important; }
html.dark .side-search input { background-color: #0f172a !important; border-color: #475569 !important; color: #e2e8f0 !important; }

/* ===== Our Team cards (dark mode) ===== */
html.dark .team-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}
html.dark .team-name { color: #f1f5f9 !important; }
html.dark .team-role { color: #a3e635 !important; }
html.dark .team-desc, html.dark .team-desc-clamp { color: #cbd5e1 !important; }
html.dark #team h2 { color: #f1f5f9 !important; }
html.dark #team .text-gray-600 { color: #cbd5e1 !important; }

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;
}

/* Text More */
.team-desc-wrapper {
  margin-top: 0.75rem;
}

.team-desc {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
  transition: all 0.3s ease;
}

.team-desc-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.team-desc-full {
  display: block;
  overflow: visible;
}

.team-desc-btn {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  padding: 0;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: color 0.2s ease;
}

.team-desc-btn:hover {
  color: #1e40af;
}

.team-desc-btn:focus {
  outline: none;
}

.team-desc-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== 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; }
}
