/*
 * MVM Surveys — Custom Styles
 * M.V.M. Surveys (Thailand) Co., Ltd.
 * Precision-Driven, Field-Proven.
 *
 * Color Palette: White & Sage Green
 * Add CSS class names to Kadence blocks via Advanced tab
 */

/* ==============================================
   1. DESIGN SYSTEM — Colors & Variables
   ============================================== */

:root {
  --mvm-navy: #ffffff;
  --mvm-navy-mid: #f8faf9;
  --mvm-navy-light: #f0f4f2;
  --mvm-blue: #d4a843;
  --mvm-blue-accent: #7a9e8d;
  --mvm-gold: #b4c9bc;
  --mvm-gold-light: #d8e2dc;
  --mvm-white: #ffffff;
  --mvm-text-body: #4a5551;
  --mvm-text-heading: #1b2623;
  --mvm-card-bg: #22967e;
  --mvm-card-border: rgba(0, 0, 0, 0.06);
  --mvm-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* ==============================================
   2. GLOBAL OVERRIDES — Body & Typography
   ============================================== */

body {
  background-color: var(--mvm-navy) !important;
  color: var(--mvm-text-body) !important;
}

/* ==============================================
   3. SECTION EYEBROW — Small sage label above headings
   Usage: Add class "mvm-eyebrow" to an Advanced Text block
   ============================================== */

.mvm-eyebrow {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  color: var(--mvm-blue) !important;
  margin-bottom: 18px !important;
}

.mvm-eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--mvm-blue);
  margin-right: 14px;
  vertical-align: middle;
}

/* ==============================================
   4. LEARN MORE LINK
   Usage: Add class "mvm-learn-more" to an Advanced Text block
   Make sure the text is a hyperlink
   ============================================== */

.mvm-learn-more a {
  color: var(--mvm-blue) !important;
  text-decoration: none !important;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition:
    color 0.3s ease,
    gap 0.3s ease;
}

.mvm-learn-more a:hover {
  color: var(--mvm-text-heading) !important;
  gap: 12px;
}

.mvm-learn-more a::after {
  content: "\2192";
  transition: transform 0.3s ease;
}

.mvm-learn-more a:hover::after {
  transform: translateX(4px);
}

/* ==============================================
   5. STAT BAR — The 4-column number strip
   Usage: Add class "mvm-stat-bar" to a Row Layout block
   ============================================== */

.mvm-stat-bar {
  background: var(--mvm-navy-mid) !important;
  border-top: 1px solid var(--mvm-card-border) !important;
  border-bottom: 1px solid var(--mvm-card-border) !important;
}

.mvm-stat-bar .wp-block-kadence-column:not(:last-child) {
  border-right: 1px solid var(--mvm-card-border);
}

.mvm-stat-bar .kb-count-up-process,
.mvm-stat-bar .kt-adv-heading-wrap {
  text-align: center;
}

/* ==============================================
   6. SERVICE CARDS — Cards with subtle shadow and top border
   Usage: Add class "mvm-service-card" to an individual column
   ============================================== */

.mvm-service-card {
  background: var(--mvm-card-bg) !important;
  border: 1px solid var(--mvm-card-border) !important;
  border-radius: 10px !important;
  padding: 36px 28px !important;
  transition: all 0.4s ease !important;
  overflow: hidden;
  position: relative;
  box-shadow: var(--mvm-shadow);
}

.mvm-service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mvm-blue), var(--mvm-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.mvm-service-card:hover {
  border-color: rgba(93, 130, 113, 0.15) !important;
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.mvm-service-card:hover::before {
  transform: scaleX(1);
}

/* ==============================================
   7. ICON BOX — Rounded square for icons
   Usage: Add class "mvm-icon-box" to a Kadence Icon block wrapper
   ============================================== */

.mvm-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--mvm-navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mvm-icon-box svg {
  color: var(--mvm-blue);
}

/* ==============================================
   8. BUTTONS — Primary (sage) and Outline (ghost)
   Usage: Add class "mvm-btn-primary" or "mvm-btn-outline"
   ============================================== */

.mvm-btn-primary .kb-button {
  background: var(--mvm-blue) !important;
  color: var(--mvm-white) !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 16px 36px !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  transition: all 0.35s ease !important;
}

.mvm-btn-primary .kb-button:hover {
  background: #4a7060 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(93, 130, 113, 0.25);
}

.mvm-btn-outline .kb-button {
  background: transparent !important;
  color: var(--mvm-text-heading) !important;
  border: 1.5px solid var(--mvm-card-border) !important;
  border-radius: 4px !important;
  padding: 16px 36px !important;
  font-family: "DM Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  transition: all 0.35s ease !important;
}

.mvm-btn-outline .kb-button:hover {
  border-color: var(--mvm-blue) !important;
  color: var(--mvm-blue) !important;
}

/* ==============================================
   9. SECTION BACKGROUNDS — Alternating tones
   Usage: Add these classes to Row Layout blocks
   ============================================== */

.mvm-bg-white {
  background: var(--mvm-navy) !important;
}

.mvm-bg-alabaster {
  background: var(--mvm-navy-mid) !important;
}

.mvm-bg-mint {
  background: var(--mvm-navy-light) !important;
}

.mvm-section-divider {
  position: relative;
}

.mvm-section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(93, 130, 113, 0.15),
    transparent
  );
}

/* ==============================================
   10. CTA BANNER — Call-to-action section
   Usage: Add class "mvm-cta" to a Row Layout block
   ============================================== */

.mvm-cta {
  background: linear-gradient(
    135deg,
    var(--mvm-navy-light) 0%,
    rgba(93, 130, 113, 0.08) 100%
  ) !important;
  border: 1px solid var(--mvm-card-border) !important;
  border-radius: 12px !important;
  position: relative;
  overflow: hidden;
}

.mvm-cta::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(180, 201, 188, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

/* ==============================================
   11. FADE-UP ANIMATION — Scroll reveal
   Usage: Add class "mvm-fade-up" to any block
   ============================================== */

.mvm-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.mvm-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.mvm-fade-up.mvm-delay-1 {
  transition-delay: 0.15s;
}
.mvm-fade-up.mvm-delay-2 {
  transition-delay: 0.3s;
}
.mvm-fade-up.mvm-delay-3 {
  transition-delay: 0.45s;
}

/* ===== WORK GALLERY STRIP ===== */
.gallery-strip {
  padding: 80px 0;
  background: var(--navy);
  overflow: hidden;
}

.gallery-strip-header {
  text-align: center;
  margin-bottom: 48px;
  padding: 0 60px;
}

.gallery-strip-header .section-eyebrow {
  justify-content: center;
}

.gallery-strip-header .section-eyebrow::before {
  display: none;
}

.gallery-scroll {
  display: flex;
  gap: 16px;
  padding: 0 60px;
}

.gallery-item {
  flex-shrink: 0;
  width: 320px;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--navy-mid);
  border: 1px solid rgba(33, 150, 243, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(transparent, rgba(10, 26, 46, 0.9));
  font-size: 13px;
  color: var(--light-gray);
  letter-spacing: 0.5px;
}

.gallery-placeholder-text {
  font-size: 13px;
  color: var(--text-body);
  opacity: 0.5;
}

/* ==============================================
   12. FOOTER
   Usage: Add class "mvm-footer" to the footer Row Layout
   ============================================== */

.mvm-footer {
  background: var(--mvm-text-heading) !important;
  color: var(--mvm-gold-light) !important;
}

.mvm-footer a {
  color: var(--mvm-gold) !important;
  transition: color 0.3s ease;
}

.mvm-footer a:hover {
  color: var(--mvm-white) !important;
}

/* ==============================================
   13. RESPONSIVE — Mobile adjustments
   ============================================== */

@media (max-width: 768px) {
  .mvm-stat-bar .wp-block-kadence-column:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--mvm-card-border);
  }

  .mvm-service-card {
    padding: 28px 20px !important;
  }

  .mvm-eyebrow {
    font-size: 11px !important;
    letter-spacing: 2px !important;
  }
}

/* ==============================================
   14. HOVER POP-UP — Text lift effect
   Usage: Add class "mvm-hover-pop" to an Advanced Text block
   ============================================== */

.mvm-hover-pop {
  transition:
    transform 0.3s ease,
    color 0.3s ease !important;
  display: inline-block !important; /* Ensures the text can move */
  cursor: pointer !important;
}

.mvm-hover-pop:hover {
  transform: translateY(-6px) !important; /* Lifts the text up 6px */
  color: var(--mvm-blue) !important; /* Changes to your gold color */
}

/* ==============================================
   15. SERVICE ROW — Card hover effect adapted for full rows
   Usage: Add class "mvm-service-row" to a Row Layout block
   ============================================== */

.mvm-service-row {
  background: var(--mvm-card-bg) !important;
  border: 1px solid var(--mvm-card-border) !important;
  border-radius: 12px !important; /* Slightly rounder for big rows */
  transition: all 0.4s ease !important;
  overflow: hidden;
  position: relative;
  box-shadow: var(--mvm-shadow);
}

/* The animated top gradient line */
.mvm-service-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px; /* Slightly thicker for a big row */
  background: linear-gradient(90deg, var(--mvm-blue), var(--mvm-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: 10; /* Ensures the line stays on top of the row's background */
}

/* The hover lift and shadow */
.mvm-service-row:hover {
  border-color: rgba(93, 130, 113, 0.15) !important;
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Expands the line on hover */
.mvm-service-row:hover::before {
  transform: scaleX(1);
}
