/*!
 * VK Creative Learning - site.css
 * Hand-written companion stylesheet for the Tailwind CDN build.
 * Tailwind CDN (cdn.tailwindcss.com) generates utility classes on the fly
 * from the classes it finds in the page, using the theme in the inline
 * `tailwind.config` script in header-tw.php. It cannot process @apply /
 * @layer component classes from a separate stylesheet, so the small set of
 * reusable "component" classes (buttons, cards, accordion, carousel, modal,
 * scroll-reveal, etc.) used across the Tailwind pages are written here as
 * plain CSS instead, using the same brand colors as the Tailwind config.
 *
 * Brand colors: brand-500 #13b244 (logo green) ... ink-900 #0b0f0d (near-black)
 */

html {
  scroll-behavior: smooth;
}
body {
  font-family: Poppins, ui-sans-serif, system-ui, sans-serif;
  color: #334155;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #0b0f0d;
}

/* Buttons */
.btn, .btn-primary, .btn-outline, .btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background-color: #13b244;
  color: #fff;
}
.btn-primary:hover {
  background-color: #0c7d30;
}
.btn-primary:focus-visible {
  outline: 2px solid #0f9b3b;
  outline-offset: 2px;
}
.btn-outline {
  border: 1px solid #13b244;
  color: #0c7d30;
  background: transparent;
}
.btn-outline:hover {
  background-color: #eafbf0;
}
.btn-dark {
  background-color: #0b0f0d;
  color: #fff;
}
.btn-dark:hover {
  background-color: #0f9b3b;
}

/* Layout helpers */
.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}
.section-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  text-align: center;
  color: #0b0f0d;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}
.section-subtitle {
  margin-top: 0.75rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: #64748b;
}
.highlight {
  color: #0f9b3b;
}

/* Cards */
.card-surface {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 29px 0 rgba(15, 23, 20, 0.08);
  transition: transform 0.3s ease;
}
.service-card {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 29px 0 rgba(15, 23, 20, 0.08);
  transition: transform 0.3s ease;
  padding: 1.5rem;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-4px);
}
.service-card .service-icon-wrap {
  margin: 0 auto 1rem;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #0b0f0d;
  color: #2ec968;
  font-size: 1.5rem;
}

/* Nav */
.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: #0f9b3b;
}
.nav-link.text-active {
  color: #0f9b3b;
}

/* Stat / counter tiles */
.stat-tile {
  text-align: center;
}
.stat-tile .stat-icon {
  margin: 0 auto 0.75rem;
  display: flex;
  height: 4rem;
  width: 4rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(19, 178, 68, 0.2);
  color: #5edb90;
}
.stat-tile .stat-number {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
}
@media (min-width: 768px) {
  .stat-tile .stat-number {
    font-size: 2.25rem;
  }
}

/* Simple horizontal carousel (replaces Owl Carousel) */
.vk-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.vk-carousel-track::-webkit-scrollbar {
  display: none;
}
.vk-carousel-track > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Accordion (replaces Bootstrap accordion, used on the FAQ section) */
.vk-accordion-item {
  border-bottom: 1px solid #e2e8f0;
}
.vk-accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  text-align: left;
  font-weight: 600;
  color: #0b0f0d;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.vk-accordion-trigger:hover {
  color: #0f9b3b;
}
.vk-accordion-trigger[aria-expanded='true'] .vk-accordion-icon {
  transform: rotate(45deg);
}
.vk-accordion-icon {
  color: #13b244;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.vk-accordion-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}
.vk-accordion-panel[data-open='true'] {
  max-height: 600px;
  opacity: 1;
}
.vk-accordion-panel > div {
  padding-bottom: 1rem;
  color: #64748b;
}


/* Simple modal (replaces Bootstrap modal, used for video popups) */
.vk-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
}
.vk-modal[data-open='true'] {
  display: flex;
}
.vk-modal-panel {
  position: relative;
  width: 100%;
  max-width: 48rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background: #000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.vk-modal-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 10;
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0b0f0d;
  border: 0;
  cursor: pointer;
}
.vk-modal-close:hover {
  background: #fff;
}

/* Reveal on scroll (replaces AOS).
   Fail-safe by default: content is fully visible (opacity:1) unless the
   tiny inline script in <head> confirms JS is running and adds `vk-js` to
   <html> -- so a JS error, a blocked script, or a slow/failed observer
   NEVER leaves text permanently invisible. See header-tw.php for the
   safety-net script (also force-reveals everything after 2.5s regardless,
   in case the IntersectionObserver never fires). */
.vk-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
html.vk-js .vk-reveal {
  opacity: 0;
  transform: translateY(1rem);
}
.vk-reveal.vk-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Container widths (matches the site's original Tailwind config: center + custom breakpoints) */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 1024px) { .container { max-width: 960px; padding-left: 2rem; padding-right: 2rem; } }
@media (min-width: 1280px) { .container { max-width: 1140px; } }
@media (min-width: 1536px) { .container { max-width: 1280px; } }

/* ---------- Floating contact FABs (WhatsApp / Call / Mail) ---------- */
.vk-float-fabs {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  /* Without this, the flex container's default cross-axis
     stretch made EVERY icon grow to match whichever one was
     hovered (its 172px expanded width became the container's
     width, and stretch then applied that width to the others
     too). flex-end keeps each icon at its own natural size and
     right-aligned, so only the hovered icon expands. */
  align-items: flex-end;
  gap: 14px;
}
/* On desktop, pin the stack to the vertical center of the right edge
   instead of the bottom corner (mobile keeps the bottom row layout
   from the max-width:440px rule further down). */
@media (min-width: 1024px) {
  .vk-float-fabs {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}
.vk-float-fab {
  position: relative;
  display: flex;
  align-items: center;
  height: 50px;
  width: 50px;
  border-radius: 999px;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(11, 15, 13, 0.22);
  opacity: 0;
  transform: translateX(28px) scale(0.85);
  animation: vk-fab-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background-color 0.3s ease;
}
.vk-float-fab:nth-of-type(1) { animation-delay: 0.15s; }
.vk-float-fab:nth-of-type(2) { animation-delay: 0.3s; }
.vk-float-fab:nth-of-type(3) { animation-delay: 0.45s; }
.vk-float-fab:hover {
  width: 172px;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 34px rgba(11, 15, 13, 0.3);
}
.vk-float-fab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.vk-float-fab__label {
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.25s ease 0.08s, transform 0.25s ease 0.08s;
}
.vk-float-fab:hover .vk-float-fab__label {
  opacity: 1;
  transform: translateX(0);
}
.vk-float-fab--whatsapp { background: #25d366; }
.vk-float-fab--whatsapp:hover { background: #1fb959; }
.vk-float-fab--whatsapp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25d366;
  opacity: 0.55;
  animation: vk-fab-pulse 2.4s ease-out infinite;
  z-index: -1;
}
.vk-float-fab--whatsapp:hover::before { animation: none; opacity: 0; }
.vk-float-fab--call { background: #13b244; }
.vk-float-fab--call:hover { background: #0d8a35; }
.vk-float-fab--mail { background: #172420; }
.vk-float-fab--mail:hover { background: #0b0f0d; }

@keyframes vk-fab-in {
  0% { opacity: 0; transform: translateX(28px) scale(0.85); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes vk-fab-pulse {
  0% { transform: scale(1); opacity: 0.45; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 440px) {
  .vk-float-fabs {
    right: 0;
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
  }
  .vk-float-fab {
    width: 100% !important;
    height: 54px;
    border-radius: 0 !important;
    animation: vk-fab-in-up 0.45s ease forwards;
    justify-content: center;
  }
  .vk-float-fab:hover { transform: none; box-shadow: none; }
  .vk-float-fab__icon { width: auto; }
  .vk-float-fab__label,
  .vk-float-fab--mail { display: none; }
}
@keyframes vk-fab-in-up {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- Back to top ---------- */
#button {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease,
              background-color 0.3s ease,
              box-shadow 0.3s ease;
}
#button:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 16px 32px rgba(11, 15, 13, 0.32);
}

/* On mobile the chat launcher sits bottom-right (right:14px), just
   above the full-width WhatsApp/Call bar. Back-to-top used to sit at
   the same right:24px/bottom:24px spot and stack right on top of it.
   Move it to the opposite corner on small screens so both stay
   clean, single floating icons instead of overlapping. */
@media (max-width: 520px) {
  #button {
    right: auto !important;
    left: 14px;
    bottom: 84px;
  }
}

/* ---------- Reserve clearance for the floating contact FABs ---------- */
/* Prevents the fixed WhatsApp/Call/Mail stack from overlapping the hero
   enquiry-form card on narrower desktop widths (~1024-1400px). Sized to
   clear the stack's hover-expanded width (172px) plus its 24px right
   offset, with a little breathing room, not just its 50px resting width -
   otherwise hovering an icon slid it right up against the card's edge. */
@media (min-width: 1024px) {
  .vk-hero-safe-right {
    padding-right: calc(1rem + 200px) !important;
  }
}

/* ---------- Toast notifications (replaces inline flash-message boxes) ---------- */
.vk-toast-container {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: calc(100% - 2.5rem);
  max-width: 380px;
  pointer-events: none;
}
@media (max-width: 640px) {
  .vk-toast-container {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    max-width: none;
  }
}
.vk-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10b981;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.vk-toast.vk-toast--show {
  opacity: 1;
  transform: translateX(0);
}
.vk-toast.vk-toast--error {
  border-left-color: #ef4444;
}
.vk-toast-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #d1fae5;
  color: #059669;
}
.vk-toast--error .vk-toast-icon {
  background: #fee2e2;
  color: #dc2626;
}
.vk-toast-body {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #1e293b;
  padding-top: 0.15rem;
}
.vk-toast-close {
  flex: none;
  border: none;
  background: none;
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem;
  margin: -0.15rem -0.2rem -0.15rem 0;
  transition: color 0.2s ease;
}
.vk-toast-close:hover {
  color: #475569;
}
