/*
Theme Name: Straventis Global
Author: Straventis Global
Version: 1.0
*/

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

  :root {
    --white: #FFFFFF;
    --black: #000000;
    --purple: #412795;
    --purple-light: #5535c4;
    --purple-faint: #f0ecff;
    --gray-100: #f7f7f8;
    --gray-200: #ebebed;
    --gray-400: #9a9aa8;
    --gray-600: #5a5a6e;
    --gray-800: #1e1e2e;
    --font-display: 'Cabin', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    cursor: none;
  }
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
  /* ── CUSTOM CURSOR ── */
  #cursor,
#cursor-ring {
  pointer-events: none;
}
  #cursor {
    position: fixed;
    width: 12px; height: 12px;
    background: var(--purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
  }
  #cursor-ring {
    position: fixed;
    width: 40px; height: 40px;
    border: 1.5px solid rgba(65,39,149,0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.3s;
  }
  body:has(a:hover) #cursor, body:has(button:hover) #cursor { width: 6px; height: 6px; }
  body:has(a:hover) #cursor-ring, body:has(button:hover) #cursor-ring { width: 60px; height: 60px; border-color: var(--purple); }

  /* ── NAV ── */
 .nav-logo {
  position: relative;
  display: inline-block;
  width: 180px;   /* IMPORTANT: set fixed width */
  height: 50px;   /* IMPORTANT: set fixed height */
}

/* Stack both logos perfectly */
.nav-logo .logo {
  position: absolute;
  inset: 0;              /* shorthand for top:0; left:0; right:0; bottom:0 */
  width: 100%;
  transition: opacity 0.3s ease;
}

/* Default */
.logo-black { opacity: 1; }
.logo-white { opacity: 0; }

/* On scroll */
nav.scrolled .logo-black { opacity: 0; }
nav.scrolled .logo-white { opacity: 1; }
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 24px 60px;
    display: flex; align-items: center; justify-content: space-between;
    backdrop-filter: blur(0px);
    transition: backdrop-filter 0.4s, background 0.4s, padding 0.4s;
  }
  nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    padding: 16px 60px;
    border-bottom: 1px solid var(--gray-200);
  }
  .nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
    letter-spacing: -0.5px;
    text-decoration: none;
  }
  .nav-logo span { color: var(--purple); }
  .nav-links { display: flex; gap: 40px; list-style: none; }
  .nav-links a {
    font-size: 14px; font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 0; height: 1.5px; background: var(--purple);
    transition: width 0.3s var(--ease-out);
  }
  .nav-links a:hover { color: var(--purple); }
  .nav-links a:hover::after { width: 100%; }
  .nav-cta {
    padding: 10px 24px;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 13px; font-weight: 500;
    border: none; border-radius: 4px;
    cursor: none;
    letter-spacing: 0.02em;
    transition: background 0.25s, transform 0.2s;
    text-decoration: none;
  }
  .nav-cta:hover { background: var(--purple); transform: translateY(-1px); }

 /*new header css*/
 .nav-cta {
  padding: 10px 24px;
  background: var(--white);          /* ← white bg */
  color: var(--black);               /* ← black text */
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  border: 1.5px solid var(--white);
  border-radius: 4px;
  cursor: none;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
  transform: translateY(-1px);
}
 
/* ── SCROLLED STATE — Black background, white text ── */
nav.scrolled .nav-cta {
  background: var(--black);          /* ← black bg */
  color: var(--white);               /* ← white text */
  border-color: var(--black);
}
nav.scrolled .nav-cta:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}
 
/* ════════════════════════════════════════════
   SERVICES DROPDOWN
════════════════════════════════════════════ */
.nav-has-dropdown {
  position: relative;
}
 
/* Trigger label with chevron */
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: none;
}
.nav-chevron {
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.nav-has-dropdown:hover .nav-chevron,
.nav-has-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}
 
/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  /*top: calc(100% + 16px);*/
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 380px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
  list-style: none;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
  z-index: 999;
}
 
/* Arrow pointer on dropdown */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  border-top: 1px solid var(--gray-200);
}
 
/* Open state */
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
 
/* Dropdown list items */
.nav-dropdown li { list-style: none; }
 
.nav-dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--black);
  transition: background 0.2s;
}
.nav-dropdown a:hover {
  background: var(--gray-100, #f7f7f8);
}
.nav-dropdown a::after { display: none; } /* kill underline animation */
 
.dd-num {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.1em;
  padding-top: 3px;
  flex-shrink: 0;
  min-width: 20px;
}
.dd-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.dd-text strong {
  font-size: 13px; font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.dd-text small {
  font-size: 12px; font-weight: 300;
  color: var(--gray-400);
  line-height: 1.4;
}
 
/* Divider between items */
.nav-dropdown li + li a {
  border-top: 1px solid var(--gray-200);
}
 
/* ════════════════════════════════════════════
   HAMBURGER BUTTON
   Hidden on desktop, shown on mobile
════════════════════════════════════════════ */
.nav-hamburger {
  display: none;                     /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s, background 0.25s;
  flex-shrink: 0;
}
nav.scrolled .nav-hamburger {
  border-color: var(--gray-200);
}
.nav-hamburger:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
}
nav.scrolled .nav-hamburger:hover {
  background: var(--gray-100, #f7f7f8);
}
.nav-hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s, width 0.3s;
  transform-origin: center;
}
nav.scrolled .nav-hamburger span {
  background: var(--black);
}
 
/* Hamburger → X animation */
.nav-hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
 
/* ════════════════════════════════════════════
   MOBILE MENU DRAWER
════════════════════════════════════════════ */
/*.mobile-menu {*/
/*  display: none;                     */
/*  position: fixed; inset: 0;*/
/*  z-index: 1100;*/
/*  pointer-events: none;*/
/*}*/
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu.is-open {
  pointer-events: auto;
}
 
/* Backdrop overlay */
.mobile-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-menu.is-open .mobile-overlay {
  opacity: 1;
}
 
/* Drawer slides in from right */
.mobile-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 90vw);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.is-open .mobile-drawer {
  transform: translateX(0);
}
 
/* Drawer header */
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.mobile-logo {
  color: var(--black) !important;  /* override any hero nav colour */
  font-size: 18px;
}
.mobile-logo span { color: var(--purple) !important; }
 
.mobile-close {
  width: 36px; height: 36px;
  background: var(--gray-100, #f7f7f8);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  color: var(--black);
  flex-shrink: 0;
}
.mobile-close:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
 
/* Mobile nav list */
.mobile-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}
.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
 
/* Mobile nav link */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 16px; font-weight: 500;
  color: var(--black);
  text-decoration: none;
  letter-spacing: -0.01em;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  border-bottom: 1px solid var(--gray-200);
  line-height: 1;
}
.mobile-nav-link:hover {
  color: var(--purple);
  background: rgba(65,39,149,0.03);
}
.mobile-nav-item:last-child .mobile-nav-link {
  border-bottom: none;
}
 
/* Mobile chevron */
.mobile-chevron {
  transition: transform 0.35s var(--ease-out);
  flex-shrink: 0;
  color: var(--gray-400);
}
.mobile-has-sub.sub-open .mobile-chevron {
  transform: rotate(180deg);
}
.mobile-has-sub.sub-open .mobile-accordion-trigger {
  color: var(--purple);
}
 
/* Mobile sub-menu accordion */
.mobile-sub-menu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  background: var(--gray-100, #f7f7f8);
  transition: max-height 0.4s var(--ease-out);
}
.mobile-has-sub.sub-open .mobile-sub-menu {
  max-height: 600px;              /* large enough for all items */
}
 
.mobile-sub-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 24px 14px 28px;
  font-size: 14px; font-weight: 400;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-200);
  transition: color 0.2s, background 0.2s, padding-left 0.3s;
  line-height: 1.4;
}
.mobile-sub-link:last-child { border-bottom: none; }
.mobile-sub-link:hover {
  color: var(--purple);
  background: rgba(65,39,149,0.04);
  padding-left: 36px;
}
 
.msub-num {
  font-family: var(--font-display);
  font-size: 10px; font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 18px;
}
 
/* Mobile drawer footer */
.mobile-drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.25s, transform 0.2s;
  text-align: center;
}
.mobile-cta-btn:hover {
  background: var(--purple);
  transform: translateY(-1px);
}
.mobile-contact-line {
  text-align: center;
}
.mobile-contact-line a {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}
.mobile-contact-line a:hover { color: var(--purple); }
 /*new header css ends*/

  /* ── FOOTER ── */
  img.footer-logo {
    width: 180px;
    height: auto;
}
  footer {
    background: var(--black);
    padding: 80px 60px 40px;
  }
  .footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px; padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 40px;
  }
  .footer-brand {}
  .footer-logo {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px; margin-bottom: 16px;
    text-decoration: none; display: block;
  }
  .footer-logo span { color: var(--purple-light); }
  .footer-tagline {
    font-size: 14px; color: rgba(255,255,255,0.3);
    line-height: 1.7; font-weight: 300;
    max-width: 240px;
  }
  .footer-col-head {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    margin-bottom: 20px;
  }
  .footer-links { display: flex; flex-direction: column; gap: 12px; }
  .footer-links a {
    font-size: 14px; color: rgba(255,255,255,0.45);
    text-decoration: none; font-weight: 300;
    transition: color 0.2s;
  }
  .footer-links a:hover { color: var(--white); }
  .footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
  }
  .footer-copy {
    font-size: 12px; color: rgba(255,255,255,0.2);
    letter-spacing: 0.02em;
  }
  .footer-social { display: flex; gap: 16px; }
  .social-link {
    width: 36px; height: 36px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    transition: border-color 0.25s, background 0.25s;
  }
  .social-link:hover { border-color: var(--purple); background: var(--purple); }

  /* ── RESPONSIVE ── */
  @media (max-width: 1024px) {
      #cursor,
  #cursor-ring {
    display: none !important;
  }

  body {
    cursor: auto; /* restore normal cursor */
  }
    nav { padding: 20px 32px; }
    nav.scrolled { padding: 14px 32px; }
    .nav-links { display: none; }
    #hero { padding: 120px 32px 60px; }
    .hero-stats { display: none; }
    #intro { grid-template-columns: 1fr; gap: 48px; padding: 80px 32px; }
    .intro-right-visual { height: 300px; }
    #problems { padding: 80px 32px; }
    .problems-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
    .problems-grid { grid-template-columns: 1fr 1fr; }
    #services { padding: 80px 32px; }
    .services-header { flex-direction: column; align-items: flex-start; }
    #why { padding: 80px 32px; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    #process { padding: 80px 32px; }
    .process-header { grid-template-columns: 1fr; gap: 24px; }
    .process-timeline { grid-template-columns: 1fr 1fr; gap: 40px; }
    .process-line { display: none; }
    #expect { grid-template-columns: 1fr; gap: 48px; padding: 80px 32px; }
    .expect-float-badge { display: none; }
    #testimonials { padding: 80px 32px; }
    #cta { padding: 100px 32px; }
    footer { padding: 60px 32px 32px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
      /* Hide desktop nav items */
  .nav-links { display: none !important; }
  .nav-cta   { display: none !important; }
  /* Show hamburger */
  .nav-hamburger { display: flex; }
  /* Show the mobile menu container (JS controls is-open) */
  /*.mobile-menu { display: block; }*/
}
 
/* Ensure body doesn't scroll when drawer is open */
body.menu-open {
  overflow: hidden;
}
 nav {
  z-index: 1200;
}
.nav-hamburger {
  position: relative;
  z-index: 1300;
}
/* ── Cursor override for hamburger + mobile buttons ── */
.nav-hamburger,
.mobile-close,
.mobile-accordion-trigger {
  cursor: pointer;    /* override global cursor:none for functional buttons */
}
  }
  @media (max-width: 640px) {
    #hero { padding: 100px 20px 60px; }
    .hero-scroll-indicator { left: 20px; }
    .problems-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; }
    .service-item { grid-template-columns: 48px 1fr auto; }
    footer { padding: 48px 20px 24px; }
    .footer-top { grid-template-columns: 1fr; }
    nav { padding: 18px 20px; }
    nav.scrolled { padding: 12px 20px; }
  }

  /* ── UTILS ── */
  .overflow-hidden { overflow: hidden; }
  .will-animate { will-change: transform, opacity; }
  
  
