/* =========================================================
   Built For Ecommerce - styles.css
   This is the ONLY stylesheet in the project.

   RULE OF THUMB used across comp/*.js:
   - If a property never changes (no :hover, no media query,
     no animation) it is written inline as style="..." on the
     element itself, right where you'd want to edit it.
   - If a property is involved in a hover effect, an open/closed
     state, an animation, or a responsive breakpoint, it lives
     here instead (inline styles always win over CSS classes,
     so these things can't be inline without breaking).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --black: #0a0a0a;
  --cream-blue: #dde2e1;
  --white: #f8f7f4;
  --off: #f2f1ed;
  --gray-100: #e8e7e3;
  --gray-200: #d0cfc9;
  --gray-400: #8f8d86;
  --gray-500: #737068;
  --gray-600: #5a5955;
  --gray-700: #3d3c38;
  --gray-800: #2e2d2a;

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--gray-400); border-radius: 2px; }

/* =========================================================
   NAV LINKS (purple nav bg, white-ish text)
   ========================================================= */
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(248,247,244,0.7);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta:hover { opacity: 0.8; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  border-radius: 6px;
  transition: background 0.15s;
  z-index: 200;
  position: relative;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.1); }
.nav-hamburger:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s ease, width 0.3s ease;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   MOBILE NAV — bottom sheet, slides up, rounded top corners
   ========================================================= */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.mobile-nav-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0); transition: background 0.35s ease; pointer-events: none; }
.mobile-nav-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; max-height: 85vh;
  background: #6C5CE7;
  border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateY(100%);
  pointer-events: all;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.is-open { pointer-events: all; }
.mobile-nav.is-open .mobile-nav-overlay { background: rgba(10,10,10,0.4); pointer-events: all; }
.mobile-nav.is-open .mobile-nav-sheet { transform: translateY(0); }

.mobile-nav-handle span { display: block; }

.mobile-nav-close { transition: background 0.15s; }
.mobile-nav-close:hover { background: rgba(255,255,255,0.2); }
.mobile-nav-close:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.mobile-nav-links li {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  width: 100%;
}
.mobile-nav.is-open .mobile-nav-links li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
.mobile-nav.is-open .mobile-nav-links li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.mobile-nav.is-open .mobile-nav-links li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
.mobile-nav.is-open .mobile-nav-links li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.20s; }
.mobile-nav.is-open .mobile-nav-links li:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.24s; }

.mobile-nav-link { border-radius: 10px; transition: background 0.15s; }
.mobile-nav-link:hover { background: rgba(255,255,255,0.1); }

.mobile-nav-footer {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease 0.28s, transform 0.3s ease 0.28s;
}
.mobile-nav.is-open .mobile-nav-footer { opacity: 1; transform: none; }
.mobile-nav-cta:hover { opacity: 0.85; }
.mobile-nav-email { transition: color 0.15s; }
.mobile-nav-email:hover { color: var(--white); }

body.nav-open { overflow: hidden; }

@media (max-width: 880px) {
  .mobile-nav { display: block; }
}

/* =========================================================
   HERO - gradient text, CTA buttons, outcomes strip
   ========================================================= */
@keyframes hero-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-gradient-text {
  background-size: 200% auto;
  animation: hero-gradient-shift 6s ease-in-out infinite;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #6C5CE7 0%, #00C2A8 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease;
}
.hero-btn-primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 30px rgba(108,92,231,0.35);
  background-position: 100% 50%;
}
.hero-btn-primary:active { transform: translateY(0) scale(0.98); }

.hero-btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(248,247,244,0.3);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero-btn-secondary:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
  transform: translateY(-2px);
}
.hero-btn-secondary:active { transform: translateY(0); }

/* =========================================================
   BUTTONS - base + hover where the hover changes a property
   that is also set as a base style
   ========================================================= */
.btn-secondary {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.btn-secondary:hover { border-color: var(--black); }

.btn-ghost {
  color: rgba(248,247,244,0.6);
  border-bottom: 1px solid rgba(248,247,244,0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }

.btn-white {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,194,168,0.35);
}

/* =========================================================
   WHY POINTS / ABOUT POINTS - colorful on load via --accent,
   smooth color-mix hover shift + slide
   ========================================================= */
.why-point {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--white));
  transition: background 0.4s cubic-bezier(0.4,0,0.2,1), transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.why-point:hover {
  background: color-mix(in srgb, var(--accent) 18%, var(--white));
  transform: translateX(8px);
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-q {
  color: var(--black);
  transition: color 0.2s;
}
.faq-q:hover { color: #00C2A8; }
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: #00C2A8;
  border-color: #00C2A8;
  color: var(--black);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 24px; }

/* =========================================================
   SERVICE CARDS - bg-image cards, dark overlay. Icon + title
   visible at rest, description reveals on hover.
   ========================================================= */
.service-card {
  position: relative;
  overflow: hidden;
  height: 460px;
  cursor: pointer;
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/test.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card:hover .service-card-bg { transform: scale(1.12); }

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.82);
  transition: background 0.6s ease;
}
.service-card:hover .service-card-overlay { background: rgba(10, 10, 10, 0.94); }

.service-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease;
}
.service-card:hover .service-icon-bg {
  transform: translateY(-4px) rotate(-6deg);
}

.service-name {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card:hover .service-name { transform: translateY(-6px); }

.service-desc {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.service-card:hover .service-desc { opacity: 1; transform: translateY(0); }

/* =========================================================
   PROJECT ROWS - image-led zigzag case studies
   ========================================================= */
.project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.project-row:last-child { margin-bottom: 0; }
.project-row.visible { opacity: 1; transform: none; }
.project-row.reverse .project-visual { order: 2; }

.project-visual {
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
}
.project-visual-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.project-row:hover .project-visual-bg { transform: scale(1.1); }

/* =========================================================
   PROCESS — slanted card stack, colored bg, icon on the right
   Replaces the old .process-step / .process-steps rules.
   Desktop: each card rotated and offset, no overlap.
   Mobile: cards stack flat, no rotation, no offset.
   ========================================================= */
.process-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.process-card {
  position: relative;
  width: 72%;
  padding: 24px 28px;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform-origin: top center;
  transform: rotate(var(--tilt));
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-card:hover {
  transform: rotate(calc(var(--tilt) * -1.4)) translateY(-6px);
}

.process-card-text { flex: 1; min-width: 0; }

.process-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(10,10,10,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-card--1 { margin-left: 0%;  --tilt: -3deg; }
.process-card--2 { margin-left: 26%; --tilt: 2.5deg; }
.process-card--3 { margin-left: 0%;  --tilt: -2deg; }
.process-card--4 { margin-left: 26%; --tilt: 3deg; }
.process-card--5 { margin-left: 0%;  --tilt: -2.5deg; }



@media (max-width: 900px) {
  .process-card {
    width: 100% !important;
    margin-left: 0 !important;
    transform: none !important;
    box-shadow: 0 10px 24px rgba(0,0,0,0.28) !important;
  }
  .process-card:hover {
    transform: none !important;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-link { color: rgba(248,247,244,0.5); transition: color 0.2s; }
.footer-link:hover { color: rgba(248,247,244,0.88); }

.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(248,247,244,0.6);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-icon-link:hover {
  background: #00C2A8;
  color: var(--black);
  transform: translateY(-2px);
}

/* =========================================================
   SCROLL-REVEAL ANIMATION STATES (toggled by index.js)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }

.problem-item { opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.5s; }
.problem-item.visible { opacity: 1; transform: none; }

.process-step { opacity: 0; transform: translateY(20px); }
.process-step.visible { opacity: 1; transform: none; }

.problem-graphic {
  position: absolute;
  top: -15%;
  right: -5%;
  width: 480px;
  height: 480px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .problem-graphic {
    width: 260px;
    height: 260px;
    top: -8%;
    right: -15%;
    opacity: 0.2;
  }
}

@media (max-width: 480px) {
  .problem-graphic {
    width: 200px;
    height: 200px;
    opacity: 0.15;
  }
}
/* =========================================================
   RESPONSIVE - everything below 900px.
   Inline base values are overridden here with !important,
   since inline styles otherwise beat class rules.
   ========================================================= */
@media (max-width: 900px) {
  .container, .nav-inner { padding-left: 24px !important; padding-right: 24px !important; }

  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }
  .mobile-nav { display: block !important; }

  .hero-outcomes {
    position: relative !important;
    grid-template-columns: 1fr 1fr !important;
    margin-top: 40px !important;
  }
  section:has(.hero-outcomes) {
    padding-bottom: 0 !important;
  }

  .problem-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .services-header { grid-template-columns: 1fr !important; gap: 24px !important; }
  .services-grid { grid-template-columns: 1fr !important; }

  .industries-inner { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }

  .projects-header { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .project-row { grid-template-columns: 1fr !important; gap: 32px !important; margin-bottom: 64px !important; }
  .project-row.reverse .project-visual { order: 0 !important; }
  .project-visual { height: 280px !important; }

  .process-steps { grid-template-columns: 1fr !important; }

  .why-grid { grid-template-columns: 1fr !important; }

  .faq-grid { grid-template-columns: 1fr !important; }
  .faq-sidebar { position: static !important; }

  .about-grid { grid-template-columns: 1fr !important; }

  .cta-big-text { font-size: clamp(36px, 9vw, 64px) !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }

  .section-title { font-size: clamp(28px, 6vw, 44px) !important; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}