/* ============================================================
   Derangula Consulting — custom styles
   (Plain CSS port of the original Tailwind v4 @theme + index.css)
   ============================================================ */

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  --font-serif: "Fraunces", Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --color-brand-green-dark: #115e59;
  --color-brand-green-primary: #108a43;
  --color-brand-green-light: #16a34a;
  --color-brand-charcoal: #fafbfa;
  --color-brand-gray: #f3f4f3;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  margin: 0;
}

/* Font-family utility helpers used in markup */
.font-sans    { font-family: var(--font-sans); }
.font-display { font-family: var(--font-display); }
.font-serif   { font-family: var(--font-serif); }
.font-mono    { font-family: var(--font-mono); }

::selection {
  background-color: var(--color-brand-green-primary);
  color: #ffffff;
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Background mesh gradient (Elegant Light) */
.mesh-bg {
  background-color: #fafbfa;
  background-image:
    radial-gradient(at 100% 0%, rgba(16, 138, 67, 0.06) 0px, transparent 60%),
    radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 60%),
    radial-gradient(at 50% 50%, rgba(250, 251, 250, 0.95) 0px, transparent 100%);
}

.text-stroke {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.12);
  color: transparent;
}
.text-stroke-hover:hover {
  -webkit-text-stroke: 1px var(--color-brand-green-light);
}

/* Marquee */
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-marquee { animation: marquee 28s linear infinite; }
.marquee-track:hover .animate-marquee { animation-play-state: paused; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Simple JS-driven page transition (replaces framer-motion AnimatePresence) */
.page-enter { animation: pageEnter 0.4s ease both; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .animate-marquee { animation: none; }
  .page-enter { animation: none; }
  html { scroll-behavior: auto; }
}

/* Slide-over drawer (services detail) */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: stretch; justify-content: flex-end;
}
.drawer-overlay .backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease both;
}
.drawer-panel {
  position: relative;
  height: 100%;
  width: 100%;
  max-width: 42rem;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
  overflow-y: auto;
  animation: drawerIn 0.35s cubic-bezier(.16,1,.3,1) both;
  display: flex; flex-direction: column; justify-content: space-between;
}
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* dropcap for blog article paragraphs */
.dropcap::first-letter {
  font-size: 1.875rem;
  font-family: var(--font-display);
  font-weight: 700;
  float: left;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  color: var(--color-brand-green-primary);
}

/* Hero floating cards */
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.float-a { animation: floatA 6s ease-in-out infinite; }
.float-b { animation: floatB 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .float-a, .float-b { animation: none; } }
