/* ---------------------------------------------------------
   GOOGLE FONTS
--------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;600&family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');


/* ---------------------------------------------------------
   TAILWIND LAYERS (KEEP AS-IS)
--------------------------------------------------------- */
@tailwind base;
@tailwind components;
@tailwind utilities;


/* ---------------------------------------------------------
   BRAND TYPOGRAPHY — GLOBAL FONT VARIABLES
--------------------------------------------------------- */
:root {
  --font-heading: 'Playfair Display', serif;
  --font-body: 'EB Garamond', serif;
  --font-tagline: 'Brush Script MT', cursive;

  --color-brand: #96ba20;
  --color-dark: #0a0a0a;
  --color-light: #f5f5f5;
}

/* BODY */
body {
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #ffffff;
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* TAGLINE */
.tagline,
.font-tagline {
  font-family: var(--font-tagline);
}

/* BRAND COLOR SHORTCUTS */
.text-encube {
  color: var(--color-brand) !important;
}
.bg-encube {
  background-color: var(--color-brand) !important;
}
.bg-encube:hover {
  background-color: #7ea116 !important;
}

/* ---------------------------------------------------------
   HEADER — KEEP CONSISTENT TYPE
--------------------------------------------------------- */
header nav a {
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
}

/* CTA in header */
#header-cta {
  font-family: var(--font-body);
  font-weight: 600;
}

/* ---------------------------------------------------------
   INSIGHTS GRID — FIX 4 COL LAYOUT
--------------------------------------------------------- */
#insights-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px) {
  #insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  #insights-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card Hover */
.insight-card img {
  transition: transform .35s ease;
}
.insight-card:hover img {
  transform: scale(1.08);
}

/* Headings inside card */
#insights-grid h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

/* ---------------------------------------------------------
   HERO SECTION SPACING
--------------------------------------------------------- */
.hero-content {
  padding-top: 7rem;
  padding-bottom: 4rem;
}
@media (min-width: 768px) {
  .hero-content {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
}

/* ---------------------------------------------------------
   FOOTER — FIXED BRAND TYPOGRAPHY
--------------------------------------------------------- */
footer,
footer * {
  font-family: var(--font-body) !important;
}

footer h4 {
  font-family: var(--font-heading) !important;
}

footer .brand-tagline {
  font-family: var(--font-tagline) !important;
}

/* footer links */
footer a {
  transition: color .3s ease;
}
footer a:hover {
  color: var(--color-brand) !important;
}

/* Footer bullets fix */
footer ul li {
  list-style: none;
}

/* Fade-in animation for freshly loaded cards */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp .6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------------------------------------------------------
  HEADER STYLESCROLL EFFECTS
--------------------------------------------------------- */
#main-header {
    transition: background-color .35s ease,
                padding .35s ease,
                box-shadow .35s ease,
                transform .35s ease,
                opacity .35s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #96BA20;
    transition: width .3s ease;
}

.nav-link:hover::after {
    width: 100%;
}
/* Ensure paragraph spacing inside insight content */
.insight-content p {
    margin-bottom: 1.25rem; /* 20px spacing */
    line-height: 1.75;      /* improve readability */
}

@keyframes whatsappShake {
  0%   { transform: translateX(0); }
  10%  { transform: translateX(-3px); }
  20%  { transform: translateX(3px); }
  30%  { transform: translateX(-3px); }
  40%  { transform: translateX(3px); }
  50%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}

/* Apply shake ONLY to inner icon wrapper */
.whatsapp-shake {
  animation: whatsappShake 2.8s ease-in-out infinite;
  transform-origin: center;
}

/* Pause on hover */
a:hover .whatsapp-shake {
  animation-play-state: paused;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-shake {
    animation: none;
  }
}
/* -------- GLOW (continuous, subtle) -------- */
@keyframes whatsappGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(134,174,18,0.5);
  }
  50% {
    box-shadow: 0 0 18px 6px rgba(134,174,18,0.35);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(134,174,18,0.5);
  }
}

.whatsapp-glow {
  animation: whatsappGlow 3.5s ease-in-out infinite;
}

/* -------- SHAKE (short burst) -------- */
@keyframes whatsappShake {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(-3px); }
  30%  { transform: translateX(3px); }
  45%  { transform: translateX(-3px); }
  60%  { transform: translateX(3px); }
  75%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}

.whatsapp-shake {
  animation: whatsappShake 0.6s ease-in-out;
}

/* Pause glow on hover (premium feel) */
.whatsapp-glow:hover {
  animation-play-state: paused;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .whatsapp-glow,
  .whatsapp-shake {
    animation: none !important;
  }
}

/* Service Tabs Active State index page*/
.service-tab.active {
    background-color: #86ae12; /* EnCube green */
    border-color: #86ae12;
    color: #ffffff;
}

.service-tab.active h4,
.service-tab.active span {
    color: #ffffff !important;
}

.service-tab.active i {
    color: #ffffff;
    transform: translateX(6px);
}

/* Smooth animation */
.service-tab {
    transition: all 0.3s ease;
}

.service-tab i {
    transition: all 0.3s ease;
}
/* -------- JOB CRAD -------- */
.job-card {
  transition: 
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
  border: 1px solid rgba(0,0,0,0.04);
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Extra softness per department */
.job-card[data-dept="strategy"]:hover {
  background-color: #eef2ff; /* indigo-50 */
}

.job-card[data-dept="finance"]:hover {
  background-color: #ecfdf5; /* emerald-50 */
}

.job-card[data-dept="legal"]:hover {
  background-color: #fffbeb; /* amber-50 */
}

#header-logo {
  display: block;
  width: 150px;
  height: auto;
}

#modal-linkedin {
    pointer-events: auto;
    z-index: 100;
}