/* === Ginkgo Accounting – Global Styles === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --emerald-50: #ecfdf5; --emerald-100: #d1fae5; --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7; --emerald-400: #34d399; --emerald-500: #10b981;
  --emerald-600: #059669; --emerald-700: #047857; --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --slate-50: #f8fafc; --slate-100: #f1f5f9; --slate-200: #e2e8f0;
  --slate-300: #cbd5e1; --slate-400: #94a3b8; --slate-500: #64748b;
  --slate-600: #475569; --slate-700: #334155; --slate-800: #1e293b;
  --slate-900: #0f172a;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--slate-900); background: #fff; -webkit-font-smoothing: antialiased; }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn95 { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInFromBottom { from { transform: translateY(2rem); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideInFromLeft { from { transform: translateX(-3rem); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInFromTop { from { transform: translateY(-0.5rem); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.animate-fade-in { animation: fadeIn 0.7s ease-out forwards; }
.animate-zoom-in { animation: zoomIn95 0.4s ease-out forwards; }
.animate-slide-up { animation: slideInFromBottom 0.7s ease-out forwards; }
.animate-slide-left { animation: slideInFromLeft 0.7s ease-out forwards; }
.animate-slide-top { animation: slideInFromTop 0.3s ease-out forwards; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* --- Layout Utilities --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }
.container-text { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }

.flex { display: flex; } .flex-col { flex-direction: column; }
.items-center { align-items: center; } .items-start { align-items: start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; } .gap-12 { gap: 3rem; } .gap-20 { gap: 5rem; }
.grow { flex-grow: 1; } .shrink-0 { flex-shrink: 0; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.relative { position: relative; } .absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-30 { z-index: 30; } .z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; } .overflow-x-hidden { overflow-x: hidden; }
.w-full { width: 100%; } .min-h-screen { min-height: 100vh; }
.text-center { text-align: center; } .text-left { text-align: left; }
.select-none { user-select: none; }

/* --- Spacing --- */
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-20 { margin-top: 5rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-12 { margin-bottom: 3rem; }
.ml-1 { margin-left: 0.25rem; } .mr-2 { margin-right: 0.5rem; }
.p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; } .p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; } .p-10 { padding: 2.5rem; } .p-12 { padding: 3rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-4 { padding-top: 1rem; } .pt-24 { padding-top: 6rem; }
.pb-2 { padding-bottom: 0.5rem; } .pb-8 { padding-bottom: 2rem; } .pb-20 { padding-bottom: 5rem; }

/* --- Colors & Backgrounds --- */
.bg-white { background: #fff; } .bg-slate-50 { background: var(--slate-50); }
.bg-slate-900 { background: var(--slate-900); } .bg-slate-800 { background: var(--slate-800); }
.text-white { color: #fff; } .text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); } .text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); } .text-slate-900 { color: var(--slate-900); }
.text-emerald-300 { color: var(--emerald-300); } .text-emerald-400 { color: var(--emerald-400); }
.text-emerald-500 { color: var(--emerald-500); } .text-emerald-600 { color: var(--emerald-600); }
.text-emerald-700 { color: var(--emerald-700); } .text-emerald-900 { color: var(--emerald-900); }
.text-red-600 { color: #dc2626; }

/* --- Typography Utilities --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1.1; }
.font-light { font-weight: 300; } .font-medium { font-weight: 500; }
.font-bold { font-weight: 700; } .font-black { font-weight: 900; }
.font-serif { font-family: var(--font-serif); } .font-sans { font-family: var(--font-sans); }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; } .tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter { letter-spacing: -0.05em; }
.leading-none { line-height: 1; } .leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.max-w-xs { max-width: 20rem; } .max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; }

/* --- Borders & Rounded --- */
.border { border: 1px solid; } .border-t { border-top: 1px solid; } .border-b { border-bottom: 1px solid; }
.border-2 { border: 2px solid; } .border-dashed { border-style: dashed; }
.border-slate-100 { border-color: var(--slate-100); } .border-slate-200 { border-color: var(--slate-200); }
.border-slate-700 { border-color: var(--slate-700); } .border-white-10 { border-color: rgba(255,255,255,0.1); }
.border-white-5 { border-color: rgba(255,255,255,0.05); }
.border-emerald-200 { border-color: var(--emerald-200); }
.border-emerald-600 { border-color: var(--emerald-600); }
.rounded { border-radius: 0.25rem; } .rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; } .rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; } .rounded-full { border-radius: 9999px; }

/* --- Shadows --- */
.shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }

/* --- Transitions --- */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease; }
.transition-opacity { transition: opacity 0.2s ease; }

/* --- Buttons & Interactivity --- */
button, [role="button"] { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--slate-900); padding: 1.5rem 0;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(15,23,42,0.95); backdrop-filter: blur(12px);
  padding: 0.5rem 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.nav-item { padding: 0.5rem 0; cursor: pointer; }
.nav-item span {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--slate-200); transition: color 0.2s;
}
.nav-item:hover span, .nav-item.active span { color: var(--emerald-400); }

.mega-menu {
  position: absolute; top: 100%; left: 0; width: 100%;
  background: #fff; border-top: 4px solid var(--emerald-600);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  animation: slideInFromTop 0.3s ease-out forwards;
  z-index: 50;
}
.mega-menu-link {
  display: flex; align-items: flex-start; text-align: left;
  color: var(--slate-700); padding: 0.4rem 0; transition: all 0.2s;
  font-size: 0.9375rem; font-weight: 500; line-height: 1.35;
}
.mega-menu-link:hover { color: var(--emerald-600); padding-left: 0.5rem; }
.mega-menu-link .chevron { opacity: 0; transition: opacity 0.2s; width: 12px; height: 12px; margin-right: 0.5rem; flex-shrink: 0; margin-top: 0.2rem; }
.mega-menu-link:hover .chevron { opacity: 1; }

/* --- Mobile Menu --- */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--slate-900); z-index: 40; padding: 6rem 1.5rem 2rem;
  overflow-y: auto;
}
.mobile-menu.open { display: block; animation: fadeIn 0.3s ease-out; }

/* --- Hero Slider --- */
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.7s ease-in-out; }
.hero-tab { text-align: left; padding: 1.5rem; transition: all 0.2s; position: relative; }
.hero-tab:hover { background: rgba(30,41,59,0.4); }
.hero-tab.active { background: rgba(30,41,59,0.8); }
.hero-tab .indicator { display: none !important; }
.hero-tab.active .indicator { display: none !important; }

/* --- Cards --- */
.capability-card {
  background: var(--slate-50); padding: 2rem; border-radius: 0.75rem;
  border: 1px solid var(--slate-100); transition: all 0.2s;
}
.capability-card:hover { border-color: rgba(16,185,129,0.5); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.capability-card .icon-wrap {
  width: 3rem; height: 3rem; background: #fff; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); margin-bottom: 1.5rem; transition: background 0.2s;
}
.capability-card:hover .icon-wrap { background: var(--emerald-600); }
.capability-card .icon-wrap svg { color: var(--emerald-600); transition: color 0.2s; }
.capability-card:hover .icon-wrap svg { color: #fff; }

/* --- Service Template Items --- */
.service-item {
  display: flex; gap: 1rem; padding: 1.5rem; background: var(--slate-50);
  border-radius: 0.75rem; border: 1px solid var(--slate-100);
}

/* --- Footer --- */
.site-footer {
  background: var(--slate-900); color: var(--slate-500);
  padding: 5rem 0; border-top: 1px solid rgba(255,255,255,0.05);
}
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--emerald-400); }

/* --- Forms --- */
.form-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-500); margin-bottom: 0.5rem; }
.form-input {
  width: 100%; background: #fff; border: 1px solid var(--slate-200);
  border-radius: 0.25rem; padding: 0.75rem; outline: none;
  transition: box-shadow 0.2s;
}
.form-input:focus { box-shadow: 0 0 0 2px var(--emerald-600); }
.form-input-dark { background: var(--slate-50); }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--slate-900); color: #fff; padding: 2.5rem;
  border-radius: 1rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 1.5rem;
}
.cta-btn {
  background: var(--emerald-600); color: #fff; font-weight: 700;
  padding: 0.75rem 2rem; border-radius: 0.75rem; transition: background 0.2s;
  display: inline-block;
}
.cta-btn:hover { background: var(--emerald-500); }

/* --- Upload Zone --- */
.upload-zone {
  border: 2px dashed var(--slate-200); border-radius: 0.75rem; padding: 2rem;
  text-align: center; transition: border-color 0.2s; position: relative;
}
.upload-zone:hover { border-color: var(--emerald-400); }

/* --- Contact Info Item --- */
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon-wrap {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: rgba(16,185,129,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .md-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .md-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .md-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .md-col-span-2 { grid-column: span 2; }
  .md-text-6xl { font-size: 3.75rem; line-height: 1; }
  .md-text-5xl { font-size: 3rem; line-height: 1.1; }
  .md-flex-row { flex-direction: row; }
  .md-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .md-p-12 { padding: 3rem; }
}
@media (min-width: 1024px) {
  .lg-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .lg-grid-cols-5-7 { grid-template-columns: 5fr 7fr; }
  .lg-flex { display: flex; }
  .lg-hidden { display: none; }
  .lg-show { display: flex; }
  .hide-mobile { display: none; }
  .hide-desktop { display: none; }
}
@media (max-width: 1023px) {
  .lg-show { display: none !important; }
}

/* SVG icons inline */
.icon { width: 1rem; height: 1rem; display: inline-block; vertical-align: middle; }
.icon-sm { width: 0.75rem; height: 0.75rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }

/* Blurred glow for team section */
.glow-blob {
  position: absolute; top: 0; right: 0; margin-top: -5rem; margin-right: -5rem;
  width: 16rem; height: 16rem; background: rgba(16,185,129,0.1);
  border-radius: 9999px; filter: blur(48px);
}
